Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.137.164.200
{"version":3,"sources":["pages/masters/subject/subjectEntry/subjectDet.js","pages/masters/subject/subjectEntry/GetOldSubDet.js","pages/masters/subject/subjectEntry/index.js","actions/masters/subEntryScrn.js"],"names":["SubjectDet","state","changeCell","data","el","i","newdata","type","value","checked","Object","objectSpread","defineProperty","name","_this","props","changeSublvl","_objectSpread3","add","_callee","error","regenerator_default","a","wrap","_context","prev","next","subjectData","sublvl","length","fssubcode","fssubname","header","content","showError","abrupt","addRow","setState","fssubcodeDis","stop","_this2","this","Sublvl","console","log","disabledStats","react_default","createElement","style","overflowX","className","Table","celled","compact","Header","Row","HeaderCell","colSpan","textAlign","Button","basic","size","onClick","color","icon","width","Body","map","key","Cell","padding","Form","Input","readOnly","onChange","e","fshortname","Checkbox","ftheory","fintass","fretain","fgroup","maxLength","toUpperCase","fsmaxmarks","fsminmarks","fparentsub","fmodmarks","fgrace","fcodeno","fqpcode","fvalmax","fdeleted","Component","connect","GetOldSubDet","fdegree","fsubcode","handleChange","getSubectDetails","_this$state","degree","degsub","split","subcode","undefined","getOldSubDet","close","_this$state2","Modal","maxHeight","dimmer","dim","open","onClose","closeOnDimmerClick","display","Content","height","overflowY","Group","placeholder","label","deggrp","univ","SubjectEntry","fsubject","SubjectOpt","Disable","fltp","crdisable","componentDidMount","fetchDegrees","user","fdeggrp","componentDidUpdate","prevProps","getSubjects","show","handleMaskChange","_callee2","_context2","target","changeSubDet","_callee3","_","_ref3","_context3","getExamNo","mainlvl","fexamno","getSubDet","fetchBoards","ExamNoDet","FCREDIT","handleSubjects","_callee4","_ref5","_context4","filter","getSubjectDet","handleAddition","_callee5","_context5","concat","toConsumableArray","handleChangedata","substring","handleChekbox","handleSave","_callee6","str","l","t","p","totcredt","_context6","fsubname","fblockno","fboard","fmaxmarks","fminmarks","parseInt","ftheorymin","fthelig","fpractmin","fprelig","fcredits","saveSubDet","cancel","cancelDet","delete","_callee7","_error","_error2","_context7","deleteSub","ExamNoOpt","DegreeOpt","degrees","Mainlvl","fboardOpt","board","Fragment","Card","fluid","Link","to","Divider","Description","Grid","columns","divided","Column","marginBottom","Field","Dropdown","search","selection","options","text","fdescpn","disabled","id","FEXAMNO","FEXAMNAME","allowAdditions","openOnFocus","selectOnBlur","onAddItem","searchQuery","onSearchChange","_ref10","onKeyPress","isDecimal","fthcr","fprcr","fmarkdesc1","fmarkdesc2","fsubshort","isNumber","fexsubcode","fprintord","fcarryupto","react_input_mask_default","formatChars","n","m","d","z","y","mask","fdeptcode","fboardcode","fboardname","fthhrs","fprhrs","marginLeft","control","fmandatory","fsubsidary","fsuspend","subjectDet","subjectEntry_GetOldSubDet","getExmNo","_ref","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","mark","dispatch","getState","response","univadmin","get","params","univcode","funivcode","sent","error_code","msg","payload","_x","_x2","apply","arguments","_ref2","_x3","_x4","subDet","_error3","success","post","_x5","_x6","_ref4","_error4","_x7","_x8","examno","_error5","_x9","_x10"],"mappings":"qVAMMA,6MACJC,MAAQ,KAERC,WAAa,SAACC,EAAMC,EAAIC,GACtB,IAAIC,EAAU,GACd,GAAiB,YAAbH,EAAKI,KAAoB,CAC3B,IAAMC,EAAQL,EAAKM,QAAU,IAAM,IACnCH,EAAOI,OAAAC,EAAA,EAAAD,CAAA,GAAQN,EAARM,OAAAE,EAAA,EAAAF,CAAA,GAAaP,EAAKU,KAAOL,IAChCM,EAAKC,MAAMC,aAAaV,EAASD,OAC5B,CAC0B,IAAAY,EAA/B,GAAiB,cAAbd,EAAKU,KACPP,EAAOI,OAAAC,EAAA,EAAAD,CAAA,GAAQN,GAARa,EAAA,GAAAP,O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,EAAAC,GAAA,OAAAhJ,EAAA8H,MAAAlP,KAAAmP,YAAA","file":"static/js/147.a64ec70f.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Button, Form, Table } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { showError } from \"../../../../actions\";\nimport { changeSublvl, addRow } from \"../../../../actions/masters/subEntryScrn\";\n\nclass SubjectDet extends Component {\n state = {};\n\n changeCell = (data, el, i) => {\n let newdata = {};\n if (data.type == \"checkbox\") {\n const value = data.checked ? \"T\" : \"F\";\n newdata = { ...el, [data.name]: value };\n this.props.changeSublvl(newdata, i);\n } else {\n if (data.name == \"fsmaxmarks\") {\n newdata = { ...el, [data.name]: data.value, [\"fvalmax\"]: data.value };\n // newdata = { ...el, [\"fvalmax\"]: data.value };\n this.props.changeSublvl(newdata, i);\n } else {\n newdata = { ...el, [data.name]: data.value };\n this.props.changeSublvl(newdata, i);\n }\n }\n };\n\n add = async () => {\n let i = this.props.subjectData.sublvl.length;\n const el = this.props.subjectData.sublvl[i - 1];\n\n if (el.fssubcode === \"\" || el.fssubname === \"\") {\n const error = {\n header: \"Error\",\n content: \"Fill Details to Add next Row. \"\n };\n this.props.showError(error);\n return;\n }\n const type = \"ADD_SUBLVL\";\n await this.props.addRow(type);\n this.setState({ fssubcodeDis: true });\n };\n render() {\n const Sublvl = this.props.subjectData.sublvl;\n console.log(\"fssubcodefssubcode\", Sublvl);\n const disabledStats = this.props.disabledStats;\n\n return (\n <div style={{ overflowX: \"scroll\" }} className=\"mt-5\">\n <Table celled compact>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell colSpan=\"16\" textAlign=\"right\">\n <Button\n basic\n size=\"small\"\n onClick={this.add}\n color=\"green\"\n icon=\"plus\"\n content=\"Add\"\n // className=\"ml-3 p-2\"\n />\n </Table.HeaderCell>\n </Table.Row>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell width=\"1\">Code</Table.HeaderCell>\n <Table.HeaderCell width=\"9\">Description</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Short Name</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Th</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">IA/ Viva</Table.HeaderCell>\n <Table.HeaderCell width=\"4\">Retain Marks?</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Group</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Max. Marks</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Min. Marks</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Parent Sub</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Mod Marks</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Grace</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Code No.</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">QP Code</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Val Max</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Del?</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {Sublvl.map((el, i) => {\n console.log(el.fssubcode);\n return (\n <Table.Row key={i}>\n <Table.Cell style={{ padding: \"0px 0px\" }} textAlign=\"center\">\n <Form.Input\n style={{ width: \"50px\" }}\n type=\"text\"\n value={el.fssubcode}\n name=\"fssubcode\"\n readOnly={disabledStats}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n value={el.fssubname}\n style={{ width: \"100%\" }}\n name=\"fssubname\"\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fshortname\"\n value={el.fshortname}\n style={{ width: \"70px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"ftheory\"\n checked={el.ftheory == \"T\"}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"fintass\"\n checked={el.fintass == \"T\"}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"fretain\"\n onChange={(e, data) => this.changeCell(data, el, i)}\n checked={el.fretain == \"T\"}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fgroup\"\n value={el.fgroup}\n style={{ width: \"70px\" }}\n maxLength={1}\n onChange={(e, data) => {\n data.value = data.value.toUpperCase();\n this.changeCell(data, el, i);\n }}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fsmaxmarks\"\n value={el.fsmaxmarks}\n style={{ width: \"100px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fsminmarks\"\n value={el.fsminmarks}\n style={{ width: \"100px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fparentsub\"\n value={el.fparentsub}\n style={{ width: \"70px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fmodmarks\"\n value={el.fmodmarks}\n style={{ width: \"60px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"fgrace\"\n checked={el.fgrace == \"T\"}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"fcodeno\"\n checked={el.fcodeno == \"T\"}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fqpcode\"\n value={el.fqpcode}\n style={{ width: \"100px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n type=\"text\"\n name=\"fvalmax\"\n value={el.fvalmax}\n style={{ width: \"50px\" }}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" style={{ padding: \"0px 0px\" }}>\n <Form.Checkbox\n value=\"T\"\n name=\"fdeleted\"\n checked={el.fdeleted == \"T\"}\n onChange={(e, data) => this.changeCell(data, el, i)}\n />\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n subjectData: state.subjectData\n };\n};\nexport default connect(\n mapStateToProps,\n {\n showError,\n changeSublvl,\n addRow\n }\n)(SubjectDet);\n","import React, { Component } from \"react\";\nimport { Button, Modal, Form, Message, Dropdown } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { showError } from \"../../../../actions\";\nimport { getOldSubDet } from \"../../../../actions/masters/subEntryScrn\";\n\nclass GetOldSubDet extends Component {\n state = {\n fdegree: \"\",\n fsubcode: \"\"\n };\n\n handleChange = (e, data) => {\n console.log(data);\n this.setState({ [data.name]: data.value });\n };\n\n getSubectDetails = () => {\n const { fdegree, fsubcode } = this.state;\n if (fsubcode == \"\") {\n const error = {\n header: \"Error\",\n content: \"Please Enter Subject Code\"\n };\n this.props.showError(error);\n }\n var degree = fdegree;\n let degsub = fsubcode.split(\",\");\n let subcode = fsubcode;\n if (degsub[1] == undefined) {\n degree = this.props.degree;\n subcode = fsubcode;\n } else {\n degree = degsub[0];\n subcode = degsub[1];\n }\n\n this.props.getOldSubDet(degree, subcode);\n this.props.close();\n //this.setState({ open: false });\n };\n\n render() {\n const { fdegree, fsubcode } = this.state;\n\n return (\n <div>\n {/* <Modal style={{ height: \"50%\", top: \"28%\", left: \"28%\", width: \"50%\" }} */}\n <Modal\n style={{ maxHeight: \"60%\", width: \"50%\" }}\n dimmer={this.props.dim}\n open={this.props.open}\n onClose={this.props.close}\n closeOnDimmerClick={false}\n >\n <Modal.Header style={{ display: \"flex\" }}>\n Get Subject Details\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"blue\"\n content=\"Submit\"\n onClick={this.getSubectDetails}\n icon=\"file pdf outline\"\n />\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n onClick={this.props.close}\n content=\"Cancel\"\n />\n </div>\n </Modal.Header>\n\n <Modal.Content style={{ height: \"40vh\", overflowY: \"auto\" }}>\n <Form>\n <Form.Group>\n <Form.Input\n placeholder=\"Enter equivalent subject, if any (Different Course seperate by comma. Ex: BSC,A010', 'Subject code')\"\n value={fsubcode}\n width={10}\n name=\"fsubcode\"\n label=\"Enter equivalent subject, if any (Different Course seperate by comma. Ex: BSC,A010', 'Subject code')\"\n onChange={(e, data) => this.handleChange(e, data)}\n />\n {/* <Form.Input\n placeholder=\"Subject Code\"\n value={fsubcode}\n width={5}\n name=\"fsubcode\"\n label=\"Subject Code\"\n onChange={(e, data) => this.handleChange(e, data)}\n /> */}\n </Form.Group>\n </Form>\n </Modal.Content>\n </Modal>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n deggrp: state.deggrp,\n univ: state.univ\n };\n};\n\nexport default connect(\n mapStateToProps,\n { showError, getOldSubDet }\n)(GetOldSubDet);\n\n// export default ReportTimeTable\n","import React, { Component } from \"react\";\nimport {\n Card,\n Button,\n Form,\n Dropdown,\n Divider,\n Checkbox,\n Grid,\n Modal,\n Message\n} from \"semantic-ui-react\";\nimport { Link } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport {\n fetchDegrees,\n showError,\n getExamNo,\n fetchBoards\n} from \"../../../../actions\";\nimport {\n changeSubDet,\n getSubDet,\n getSubjectDet,\n saveSubDet,\n cancelDet,\n deleteSub\n} from \"../../../../actions/masters/subEntryScrn\";\nimport InputMask from \"react-input-mask\";\nimport SubjectDet from \"./subjectDet\";\nimport GetOldSubDet from \"./GetOldSubDet\";\nimport { isNumber, isDecimal } from \"../../../parms\";\n\nclass SubjectEntry extends Component {\n state = {\n fsubject: \"\",\n SubjectOpt: [],\n Disable: false,\n fltp: \"\",\n open: false,\n fssubcodeDis: true,\n crdisable: true\n };\n\n componentDidMount = async () => {\n await this.props.fetchDegrees(this.props.user.fdeggrp);\n };\n\n componentDidUpdate = prevProps => {\n if (this.props.getSubjects !== prevProps.getSubjects) {\n this.setState({ SubjectOpt: this.props.getSubjects });\n }\n };\n\n show = () => this.setState({ open: true });\n\n close = () => {\n this.setState({ open: false });\n };\n\n handleMaskChange = async e => {\n this.setState({ fltp: e.target.value }, () =>\n this.props.changeSubDet(\"fltp\", this.state.fltp)\n );\n };\n\n handleChange = async (_, { name, value }) => {\n await this.props.changeSubDet(name, value);\n\n if (name == \"fdegree\") {\n await this.props.getExamNo(value);\n }\n\n if (\n name == \"fexamno\" ||\n (name == \"fdegree\" && this.props.subjectData.mainlvl.fexamno != \"\")\n ) {\n await this.props.getSubDet();\n await this.props.fetchBoards();\n if (this.props.ExamNoDet[0].FCREDIT == \"T\") {\n this.setState({ crdisable: false });\n }\n }\n };\n\n handleSubjects = async (_, { name, value }) => {\n const fsubject = this.state.SubjectOpt.filter((el, i) => {\n return el.fsubcode == value.toUpperCase();\n })[0];\n\n if (fsubject != undefined) {\n await this.props.changeSubDet(name, value);\n await this.props.getSubjectDet(value);\n this.setState({ Disable: true });\n }\n };\n\n handleAddition = async (_, data) => {\n var { name, value } = data;\n const error = {\n header: \"Error\",\n content: \"Subject code can only have 4 characters.\"\n };\n this.show();\n value.length > 4\n ? this.props.showError(error)\n : await this.setState({\n SubjectOpt: [\n ...this.state.SubjectOpt,\n { fsubcode: value.toUpperCase() }\n ]\n });\n this.props.changeSubDet(name, value);\n if (this.props.subjectData.sublvl[0][\"fssubcode\"] == \"\")\n this.setState({ fssubcodeDis: false });\n // this.setState({ degDisable: true });\n // this.setState({ newData: true });\n };\n\n handleChangedata = (e, data) => {\n if (data.name == \"fsubname\") {\n this.props.changeSubDet(data.name, data.value);\n this.props.changeSubDet(\"fmarkdesc1\", data.value);\n this.props.changeSubDet(\"fsubshort\", data.value.substring(0, 4));\n } else this.props.changeSubDet(data.name, data.value);\n };\n\n handleChekbox = (e, data) => {\n const value = data.checked ? \"T\" : \"F\";\n this.props.changeSubDet(data.name, value);\n };\n\n handleSave = async () => {\n const data = this.props.subjectData.mainlvl;\n const sublvl = this.props.subjectData.sublvl;\n var error = \"\";\n if (data.fdegree == \"\" || data.fexamno == \"\") {\n error = {\n header: \"Error\",\n content: \"Please select Degree and Exam No.\"\n };\n }\n if (data.fsubcode == \"\" || data.fsubname == \"\") {\n error = {\n header: \"Error\",\n content: \"Subject Code or Subject Name cannot be empty.\"\n };\n }\n console.log(data.fblockno);\n if (\n data.fblockno != \"\" &&\n data.fblockno != null &&\n (data.fblockno <= 0 || data.fblockno > 9)\n ) {\n error = {\n header: \"Error\",\n content: \"Block No should be between 1 and 8.\"\n };\n }\n\n if (data.fboard == \"\") {\n error = {\n header: \"Error\",\n content: \"Please select Board.\"\n };\n }\n\n if (data.fmaxmarks == null || data.fmaxmarks <= 0) {\n error = {\n header: \"Error\",\n content: \"Max. marks should be greater than 0\"\n };\n }\n\n if (data.fminmarks == null || data.fminmarks == \"\") {\n error = {\n header: \"Error\",\n content: \"Min. marks should not be Empty\"\n };\n } else if (parseInt(data.fminmarks) > parseInt(data.fmaxmarks)) {\n error = {\n header: \"Error\",\n content: \"Min. marks should be less than max. marks\"\n };\n }\n\n let fsminmarks = 0;\n let fsmaxmarks = 0;\n for (let i = 0; i < sublvl.length; i++) {\n fsminmarks = parseInt(fsminmarks) + parseInt(sublvl[i].fsminmarks);\n fsmaxmarks = parseInt(fsmaxmarks) + parseInt(sublvl[i].fsmaxmarks);\n }\n\n if (data.ftheorymin == null || data.ftheorymin == \"\") {\n error = {\n header: \"Error\",\n content: \"Theory Min. marks should not be Empty\"\n };\n } else if (parseInt(data.fminmarks) < parseInt(fsminmarks)) {\n error = {\n header: \"Error\",\n content:\n \"Theory min. marks should not be lesser than element min. marks\"\n };\n }\n\n if (parseInt(data.fminmarks) > parseInt(fsmaxmarks)) {\n error = {\n header: \"Error\",\n content: \"Theory min. marks should not be > element max. marks\"\n };\n }\n\n if (\n parseInt(data.fminmarks) > parseInt(data.fthelig) &&\n (parseInt(data.fthelig) != 0 || parseInt(data.fthelig) != 0)\n ) {\n error = {\n header: \"Error\",\n content:\n \"Theory min. marks should not be greater than theory exemption marks\"\n };\n }\n\n if (\n parseInt(data.ftheorymin) <= 0 ||\n parseInt(data.ftheorymin) > parseInt(data.fminmarks)\n ) {\n error = {\n header: \"Error\",\n content: \"Min. marks to pass in Theory should be >= 0 and <= min marks\"\n };\n }\n\n if (parseInt(data.fpractmin) > parseInt(fsminmarks)) {\n error = {\n header: \"Error\",\n content: \"Practical min. marks should not be < element min. marks\"\n };\n }\n\n if (parseInt(data.fpractmin) > parseInt(fsmaxmarks)) {\n error = {\n header: \"Error\",\n content: \"Practical min. marks should not be > element max. marks\"\n };\n }\n\n if (parseInt(data.fpractmin) > parseInt(data.fprelig)) {\n error = {\n header: \"Error\",\n content:\n \"Practical min. marks should not be greater than practical exemption marks\"\n };\n }\n\n if (\n ((parseInt(data.fpractmin) != \"\" || parseInt(data.fpractmin) != 0) &&\n parseInt(data.fpractmin) < 0) ||\n parseInt(data.fpractmin) >\n parseInt(data.fminmarks) - parseInt(data.ftheorymin)\n ) {\n error = {\n header: \"Error\",\n content:\n \"Min. marks to pass in Practical should be >= 0 and <= min marks - theory min\"\n };\n }\n\n console.log(data.fltp, data.fcredits);\n let str = data.fltp.split(\":\");\n let l = str[0];\n let t = str[1];\n let p = str[2];\n\n let totcredt = parseInt(l) + parseInt(t) + parseInt(p);\n\n if (\n parseInt(totcredt) != parseInt(data.fcredits) &&\n this.props.ExamNoDet[0].FCREDIT == \"T\"\n ) {\n error = {\n header: \"Error\",\n content: \"LTP and Total Credits are not matching\"\n };\n }\n return (\n error != \"\"\n ? await this.props.showError(error)\n : await this.props.saveSubDet(),\n this.setState({ Disable: false })\n );\n\n // this.props.saveSubDet();\n };\n\n cancel = () => {\n this.props.cancelDet();\n this.setState({ Disable: false });\n };\n\n delete = async () => {\n if (this.props.subjectData.mainlvl.fdegree == \"\") {\n let error = {\n header: \"Error\",\n content: \"Please Select Degree\"\n };\n await this.props.showError(error);\n } else if (this.props.subjectData.mainlvl.fexamno == \"\") {\n let error = {\n header: \"Error\",\n content: \"Please Select Semester\"\n };\n await this.props.showError(error);\n } else if (this.props.subjectData.mainlvl.fsubcode == \"\") {\n let error = {\n header: \"Error\",\n content: \"Please Select Subject\"\n };\n await this.props.showError(error);\n } else {\n let degree = this.props.subjectData.mainlvl.fdegree;\n let fexamno = this.props.subjectData.mainlvl.fexamno;\n let fsubcode = this.props.subjectData.mainlvl.fsubcode;\n await this.props.deleteSub(degree, fexamno, fsubcode);\n this.setState({ Disable: false });\n }\n };\n\n // isUppercase = data => {\n // console.log(\"data: \", data.value);\n // };\n render() {\n const ExamNoOpt = this.props.ExamNoDet;\n const DegreeOpt = this.props.degrees;\n const SubjectOpt = this.state.SubjectOpt;\n const Mainlvl = this.props.subjectData.mainlvl;\n const fboardOpt = this.props.board;\n const { open, crdisable } = this.state;\n const formatChars = {\n n: \"[0-9]\",\n m: \"[0-9]\",\n e: \"[0-9]\",\n d: \"[0-9]\",\n z: \"[0-9]\",\n y: \"[0-9]\"\n };\n\n return (\n <>\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h3>Subject Entry</h3>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"green\"\n content=\"Save\"\n onClick={this.handleSave}\n icon=\"upload\"\n />\n <Button\n basic\n onClick={this.delete}\n color=\"red\"\n icon=\"trash\"\n content=\"Delete\"\n />\n <Button\n basic\n onClick={this.cancel}\n color=\"black\"\n icon=\"times circle\"\n content=\"Cancel\"\n />\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n <Divider />\n <Card.Description>\n <Form>\n <Grid columns=\"three\" divided className=\"mt-3\">\n <Grid.Column width={6}>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={16}>\n <label>Degree</label>\n <Dropdown\n search\n placeholder=\"Degrees\"\n selection\n options={DegreeOpt.map((el, i) => {\n return {\n key: i,\n value: el.fdegree,\n text: `${el.fdegree} - ${el.fdescpn}`\n };\n })}\n name=\"fdegree\"\n value={Mainlvl.fdegree}\n onChange={this.handleChange}\n disabled={this.state.Disable}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field>\n <label>Exam No.</label>\n <Dropdown\n placeholder=\"Exam No.\"\n search\n selection\n id=\"fexamno\"\n name=\"fexamno\"\n value={Mainlvl.fexamno}\n options={ExamNoOpt.map((el, i) => {\n return {\n key: i,\n value: el.FEXAMNO,\n text: `${el.FEXAMNAME}`\n };\n })}\n onChange={this.handleChange}\n disabled={this.state.Disable}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={4}>\n <label>Subject Code</label>\n <Dropdown\n compact\n placeholder=\"Select\"\n search\n selection\n allowAdditions\n openOnFocus={false}\n selectOnBlur={false}\n onAddItem={(e, data) => {\n data.value = data.value.toUpperCase();\n this.handleAddition(e, data);\n }}\n id=\"fsubject\"\n searchQuery={this.state.fsubject}\n onSearchChange={(e, { searchQuery }) => {\n this.setState({\n fsubject: searchQuery.toUpperCase()\n });\n }}\n name=\"fsubcode\"\n maxLength=\"4\"\n value={Mainlvl.fsubcode}\n options={SubjectOpt.map((el, i) => {\n return {\n key: i,\n value: el.fsubcode,\n text: `${el.fsubcode}`\n };\n })}\n onChange={(e, data) => {\n data.value = data.value.toUpperCase();\n this.handleSubjects(e, data);\n }}\n disabled={this.state.Disable}\n />\n </Form.Field>\n <Form.Field width={12}>\n <Form.Input\n placeholder=\"Subject Name\"\n value={Mainlvl.fsubname}\n label=\"Subject Name\"\n name=\"fsubname\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={5}>\n <Form.Input\n placeholder=\"Credits\"\n value={Mainlvl.fcredits}\n label=\"Credits\"\n name=\"fcredits\"\n maxLength=\"2\"\n disabled={crdisable}\n onKeyPress={isDecimal}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={6}>\n <Form.Input\n placeholder=\"Th. Credits\"\n value={Mainlvl.fthcr}\n label=\"Th. Credits\"\n maxLength=\"2\"\n onKeyPress={isDecimal}\n name=\"fthcr\"\n disabled={crdisable}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={5}>\n <Form.Input\n placeholder=\"Pr. Credits\"\n value={Mainlvl.fprcr}\n label=\"Pr. Credits\"\n maxLength=\"2\"\n onKeyPress={isDecimal}\n name=\"fprcr\"\n disabled={crdisable}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n <Form.Field>\n <Form.Input\n placeholder=\"Subject Name for Marks Card\"\n value={Mainlvl.fmarkdesc1}\n label=\"Subject Name for Marks Card\"\n name=\"fmarkdesc1\"\n maxLength=\"50\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field>\n <Form.Input\n placeholder=\"FMARKDESC2\"\n value={Mainlvl.fmarkdesc2}\n // label=\"\"\n maxLength=\"50\"\n name=\"fmarkdesc2\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Grid.Column>\n <Grid.Column width={5}>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Short Name\"\n value={Mainlvl.fsubshort}\n label=\"Subject Short Name\"\n name=\"fsubshort\"\n maxLength=\"12\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Block No.\"\n value={Mainlvl.fblockno}\n label=\"Block No.\"\n name=\"fblockno\"\n maxLength=\"1\"\n onKeyPress={isNumber}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Maximum Marks\"\n value={Mainlvl.fmaxmarks}\n label=\"Maximum Marks\"\n name=\"fmaxmarks\"\n maxLength=\"4\"\n onKeyPress={isNumber}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Minimum Marks\"\n value={Mainlvl.fminmarks}\n label=\"Minimum Marks\"\n name=\"fminmarks\"\n maxLength=\"4\"\n onKeyPress={isNumber}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Theory Ex. Marks\"\n value={Mainlvl.fthelig}\n label=\"Th. Ex. Marks\"\n name=\"fthelig\"\n onChange={(e, data) => {\n data.value = data.value.toUpperCase();\n this.handleChangedata(e, data);\n }}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Practical Ex. Marks\"\n value={Mainlvl.fprelig}\n label=\"Pr. Ex. Marks\"\n name=\"fprelig\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Theory Min.\"\n value={Mainlvl.ftheorymin}\n label=\"Theory Min\"\n name=\"ftheorymin\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Practical Min.\"\n value={Mainlvl.fpractmin}\n label=\"Practical Min.\"\n name=\"fpractmin\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Ex. Sub Code\"\n value={Mainlvl.fexsubcode}\n label=\"Ex. Sub Code\"\n name=\"fexsubcode\"\n onChange={(e, data) => {\n data.value = data.value.toUpperCase();\n this.handleChangedata(e, data);\n }}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Print Order\"\n value={Mainlvl.fprintord}\n label=\"Print Order\"\n name=\"fprintord\"\n maxLength=\"3\"\n onKeyPress={isNumber}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n </Grid.Column>\n <Grid.Column width={5}>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={9}>\n <Form.Input\n placeholder=\"Carry Upto\"\n value={Mainlvl.fcarryupto}\n label=\"Carry Upto\"\n name=\"fcarryupto\"\n maxLength=\"1\"\n onChange={(e, data) => {\n data.value = data.value.toUpperCase();\n this.handleChangedata(e, data);\n }}\n />\n </Form.Field>\n\n <Form.Field width={9}>\n <label> L /T /P </label>\n <InputMask\n type=\"text\"\n formatChars={formatChars}\n mask=\"e:e:e\"\n placeholder=\"L:T:P\"\n name=\"fltp\"\n value={Mainlvl.fltp}\n disabled={crdisable}\n onChange={this.handleMaskChange}\n />\n {/* <Form.Input\n placeholder=\"L / T / P\"\n value={Mainlvl.fltp}\n label=\"L / T / P\"\n name=\"fltp\"\n onChange={this.handleChangedata}\n /> */}\n </Form.Field>\n </Form.Group>\n <Form.Group style={{ marginBottom: \"1em\" }}>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Departmen Code\"\n value={Mainlvl.fdeptcode}\n label=\"Departmen Code\"\n name=\"fdeptcode\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={8}>\n <label>Board</label>\n <Dropdown\n compact\n search\n selection\n value={Mainlvl.fboard}\n name=\"fboard\"\n options={fboardOpt.map((el, i) => {\n return {\n key: i,\n value: el.fboardcode,\n text: `${el.fboardname}`\n };\n })}\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n {/* style={{ marginTop: \"10%\" }} */}\n\n <Grid.Column>\n <Form.Group>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Th. Teach Hrs.\"\n value={Mainlvl.fthhrs}\n label=\"Th. Teach Hrs.\"\n name=\"fthhrs\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Pr. Teach Hrs.\"\n value={Mainlvl.fprhrs}\n label=\"Pr. Teach Hrs.\"\n name=\"fprhrs\"\n onChange={this.handleChangedata}\n />\n </Form.Field>\n </Form.Group>\n </Grid.Column>\n <Grid.Column style={{ marginLeft: \"1rem\" }}>\n <Form.Field\n control={Checkbox}\n label=\"Mandatory\"\n value={Mainlvl.fmandatory}\n name=\"fmandatory\"\n checked={Mainlvl.fmandatory == \"T\" ? true : false}\n onChange={this.handleChekbox}\n />\n <Form.Field\n control={Checkbox}\n label=\"Subsidary\"\n value={Mainlvl.fsubsidary}\n name=\"fsubsidary\"\n checked={Mainlvl.fsubsidary == \"T\" ? true : false}\n onChange={this.handleChekbox}\n />\n <Form.Field\n control={Checkbox}\n label=\"Suspended\"\n value={Mainlvl.fsuspend}\n name=\"fsuspend\"\n checked={Mainlvl.fsuspend == \"T\" ? true : false}\n onChange={this.handleChekbox}\n />\n </Grid.Column>\n </Grid.Column>\n </Grid>\n </Form>\n <SubjectDet disabledStats={this.state.fssubcodeDis} />\n <GetOldSubDet\n open={open}\n dim=\"blurring\"\n close={this.close}\n degree={Mainlvl.fdegree}\n />\n </Card.Description>\n </Card.Content>\n </Card>\n </>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n user: state.user,\n degrees: state.degrees,\n board: state.board,\n ExamNoDet: state.getExmNo,\n getSubjects: state.getSubjects,\n subjectData: state.subjectData\n };\n};\nexport default connect(\n mapStateToProps,\n {\n fetchDegrees,\n showError,\n getExamNo,\n changeSubDet,\n getSubDet,\n getSubjectDet,\n saveSubDet,\n fetchBoards,\n cancelDet,\n deleteSub\n }\n)(SubjectEntry);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getSubDet = () => {\n return async (dispatch, getState) => {\n const state = getState();\n // dispatch({\n // type: \"SET_LOADER\"\n // });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSubDet\",\n univcode: state.univ.funivcode,\n fdeggrp: state.user.fdeggrp,\n fdegree: state.subjectData.mainlvl.fdegree,\n fexamno: state.subjectData.mainlvl.fexamno\n }\n });\n\n // dispatch({\n // type: \"UNSET_LOADER\"\n // });\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"GET_SUBJECTS\",\n payload: response.data\n });\n }\n };\n};\n\nexport const changeSubDet = (name, value) => {\n return {\n type: \"CHANGE_SUB_DATA\",\n payload: { name, value }\n };\n};\n\nexport const changeSublvl = (el, i) => {\n return {\n type: \"CHANGE_SUB_LVL\",\n payload: { el, i }\n };\n};\n\nexport const getSubjectDet = () => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSubjectData\",\n univcode: state.univ.funivcode,\n fdegree: state.subjectData.mainlvl.fdegree,\n fexamno: state.subjectData.mainlvl.fexamno,\n fsubcode: state.subjectData.mainlvl.fsubcode\n }\n });\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"Response\", response);\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"GET_SUBJECT_DATA\",\n payload: response.data\n });\n }\n };\n};\n\nexport const cancelDet = () => {\n return {\n type: \"CANCEL_DET\"\n };\n};\n\nexport const addRow = type => {\n return {\n type: type\n // payload: { newRow }\n };\n};\n\nexport const saveSubDet = () => {\n return async (dispatch, getState) => {\n const state = getState();\n const subDet = state.subjectData;\n\n dispatch({\n type: \"SET_LOADER\"\n });\n\n const response = await univadmin.post(\n \"app.php?a=saveSubDet&univcode=\" + state.univ.funivcode,\n { data: subDet }\n );\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n // console.log(\"Response\", response);\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n dispatch({\n type: \"SUCC_SUBJECT\"\n });\n }\n };\n};\n\nexport const getOldSubDet = (fdegree, fsubcode) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSubjectData\",\n univcode: state.univ.funivcode,\n fdegree: fdegree,\n fsubcode: fsubcode,\n fexamno: state.subjectData.mainlvl.fexamno\n }\n });\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"Response\", response);\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"GET_OLD_SUBJECT_DATA\",\n payload: response.data\n });\n }\n };\n};\n\nexport const deleteSub = (degree, examno, subcode) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"deleteSub\",\n univcode: state.univ.funivcode,\n fdegree: degree,\n fexamno: examno,\n fsubcode: subcode\n }\n });\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n // console.log(\"Response\", response);\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n dispatch({\n type: \"SUCC_SUBJECT\"\n });\n }\n };\n};\n"],"sourceRoot":""}
|