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.145.107.223
{"version":3,"sources":["pages/before-exam/timetable/freezeform.js","pages/before-exam/timetable/freezetimetable.js","pages/common/SelectDeggrp.js","actions/before-exam/timetable.js","pages/before-exam/timetable/report.js","pages/common/todayDate.js"],"names":["FreezeTimeTableForm","state","deggrp","fdeggrp","_this","props","user","fyear","fexamtype","fexamdate","fexamrange","fdaytype","fsunday","fstrdate","deggrpError","fexamrangeError","fstrdateError","frmSubmit","disabled","table","cancel","_callee","regenerator_default","a","wrap","_context","prev","next","setState","getToday","freset","stop","changeDeggrp","e","data","filter","el","i","value","handleChangedate","Object","defineProperty","target","name","handleChange","type","checked","validateForm","_callee2","_this$state","_context2","ferror","ferrorm","abrupt","freezetimetable","generateTimeTable","_callee3","_context3","sent","generateTimetable","handlesubmit","_callee4","_this$state2","_context4","getfreezeTimetable","tablefalse","tabletrue","this","fetchDegGrp","onRef","_this$state3","react_default","createElement","Form","error","Message","content","SelectDeggrp","frmDeggrp","dgerror","Group","Input","placeholder","width","label","readOnly","onChange","Button","color","onClick","Component","connect","FreezeTimetable","ttform","trrefs","open","frmdegree","degreeError","tabletru","tablefls","child","cancelTimetable","show","dimmer","close","setFromValues","values","freezeTimeTable","undefined","deleteRow","objectSpread","changefreezetimetable","selectall","console","log","timetable","selectallchkbx","renderHeader","Card","Header","style","display","className","basic","icon","Link","to","_this2","fluid","Content","Divider","Description","height","overflowY","freezeform","ref","report","dim","Table","celled","padded","selectable","structured","size","marginTop","fontSize","Row","HeaderCell","singleLine","textAlign","freezeallcheck","frzdisable","Body","frzarr","map","key","Cell","fqpcode","fsubname","fdate","fdescpn","ffreeze","frelease","React","saveExamtimetable","releaseTimeTable","prevProps","deggroup_options","text","concat","react__WEBPACK_IMPORTED_MODULE_5___default","semantic_ui_react__WEBPACK_IMPORTED_MODULE_7__","Field","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","search","selection","openOnFocus","options","selectOnBlur","frmvalues","_ref","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default","mark","dispatch","getState","response","univadmin","post","univ","funivcode","payload","error_code","msg","status","_x","_x2","apply","arguments","getupdateTimetable","_ref2","_error","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","fdegree","header","showError","_x3","_x4","loaddegreettm","_ref3","_error2","get","params","univcode","_x5","_x6","parameters","_ref4","_error3","_x7","_x8","saveExamtimetableUT","_ref5","_callee5","_error4","_context5","_x9","_x10","_ref6","_callee6","_context6","_x11","_x12","frz","_ref7","_callee7","_context7","dgp","year","examtype","examrange","fcurtype","_x13","_x14","changereleasetimetable","stt","_ref8","_callee8","_context8","fname","tabledata","_x15","_x16","check","selectallchkbxrelease","getreleaseTimetable","_ref9","_callee9","_context9","_x17","_x18","releasetimetable","_ref10","_callee10","_error5","_context10","relarr","_x19","_x20","ReportTimeTable","frtype","frtypes","frtypeError","rftype","emptydates","fdegfrom","fdegto","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__","generateReport","window","ReportAPI","ignore","changecheckempty","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__","report_options","react__WEBPACK_IMPORTED_MODULE_7___default","maxHeight","onClose","closeOnDimmerClick","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","_common_SelectDeggrp__WEBPACK_IMPORTED_MODULE_16__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","inline","control","Radio","today","Date","dd","getDate","mm","getMonth","yyyy","getFullYear"],"mappings":"iTAkBMA,qNACJC,MAAQ,CACNC,OAAQ,GACRC,QAASC,EAAKC,MAAMC,KAAKH,QACzBI,MAAOH,EAAKC,MAAMC,KAAKC,MACvBC,UAAWJ,EAAKC,MAAMC,KAAKE,UAC3BC,UAAWL,EAAKC,MAAMC,KAAKG,UAC3BC,WAAYN,EAAKC,MAAMC,KAAKI,WAC5BC,SAAU,IACVC,SAAS,EACTC,SAAU,GACVC,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,WAAW,EACXC,UAAU,EACVC,OAAM,KASRC,4BAAS,SAAAC,IAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OACPvB,EAAKwB,SAAS,CACZzB,QAASC,EAAKC,MAAMC,KAAKH,QACzBI,MAAOH,EAAKC,MAAMC,KAAKC,MACvBC,UAAWJ,EAAKC,MAAMC,KAAKE,UAC3BC,UAAWL,EAAKC,MAAMC,KAAKG,UAC3BC,WAAYN,EAAKC,MAAMC,KAAKI,WAC5BC,SAAU,IACVC,SAAS,EACTC,SAAUgB,cACVC,QAAQ,EACRhB,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,WAAW,EACXC,UAAU,IAfL,wBAAAO,EAAAM,SAAAV,QAoBTW,aAAe,SAACC,EAAGC,GACjB,IAIIhC,EAJYE,EAAKH,MAAMC,OAAOiC,OAChC,SAACC,EAAIC,GAAL,OAAWD,EAAGjC,UAAY+B,EAAKI,QAGV,GAEvBlC,EAAKwB,SAAS,CACZrB,MAAOL,EAAOK,MACdC,UAAWN,EAAOM,UAClBC,UAAWP,EAAOO,UAClBN,QAASD,EAAOC,aAIpBoC,iBAAmB,SAAAN,GACjB7B,EAAKwB,S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H,QAASC,IACT9P,KAAK,SACLyC,MAAM,MACN9C,MAAM,aACNQ,QAAoB,eAAXmO,EACT3L,SAAUnB,KAAKvB,eAEjBiP,EAAAtQ,EAAAiD,cAAC0N,EAAA,EAAKtH,MAAN,CACE4H,QAASC,IACT9P,KAAK,SACLyC,MAAM,QACN9C,MAAM,eACNQ,QAAoB,iBAAXmO,EACT3L,SAAUnB,KAAKvB,2BA5VH8C,aA8WfC,gBAPS,SAAC1F,GACvB,MAAO,CACLC,OAAQD,EAAMC,OACd2L,KAAM5L,EAAM4L,OAIwB,GAAzBlG,CAA6BkL,qCCzW7BhP,IAlBf,WACE,IAAI6Q,EAAQ,IAAIC,KACZC,EAAKF,EAAMG,UACXC,EAAKJ,EAAMK,WAAa,EACxBC,EAAON,EAAMO,cAWjB,OATIL,EAAK,KACPA,EAAK,IAAMA,GAGTE,EAAK,KACPA,EAAK,IAAMA,GAGbJ,EAAQE,EAAK,IAAME,EAAK,IAAME","file":"static/js/40.75b5a08f.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {\n Card,\n Button,\n Form,\n Message,\n Radio,\n Checkbox,\n Table\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp } from \"../../../actions\";\nimport { generateTimetable , getfreezeTimetable, freezetimetable } \n from \"../../../actions/before-exam/timetable\";\nimport SelectDeggrp from \"../../common/SelectDeggrp\";\nimport getToday from \"../../common/todayDate\";\nimport InputMask from \"react-input-mask\";\n\nclass FreezeTimeTableForm extends Component {\n state = {\n deggrp: [],\n fdeggrp: this.props.user.fdeggrp,\n fyear: this.props.user.fyear,\n fexamtype: this.props.user.fexamtype,\n fexamdate: this.props.user.fexamdate,\n fexamrange: this.props.user.fexamrange,\n fdaytype: \"C\",\n fsunday: false,\n fstrdate: \"\",\n deggrpError: false,\n fexamrangeError: false,\n fstrdateError: false,\n frmSubmit: false,\n disabled: false,\n table:false\n };\n\n async componentDidMount() {\n await this.props.fetchDegGrp();\n this.props.onRef(this);\n this.setState({ deggrp: this.props.deggrp });\n }\n\n cancel = async () => {\n this.setState({\n fdeggrp: this.props.user.fdeggrp,\n fyear: this.props.user.fyear,\n fexamtype: this.props.user.fexamtype,\n fexamdate: this.props.user.fexamdate,\n fexamrange: this.props.user.fexamrange,\n fdaytype: \"C\",\n fsunday: false,\n fstrdate: getToday(),\n freset: false,\n deggrpError: false,\n fexamrangeError: false,\n fstrdateError: false,\n frmSubmit: false,\n disabled: false\n });\n // await this.props.tablehandle();\n };\n\n changeDeggrp = (e, data) => {\n let deggrpsel = this.state.deggrp.filter(\n (el, i) => el.fdeggrp === data.value\n );\n\n let deggrp = deggrpsel[0];\n\n this.setState({\n fyear: deggrp.fyear,\n fexamtype: deggrp.fexamtype,\n fexamdate: deggrp.fexamdate,\n fdeggrp: deggrp.fdeggrp\n });\n };\n\n handleChangedate = e => {\n this.setState({ [e.target.name]: e.target.value });\n };\n\n handleChange = (e, data) => {\n switch (data.type) {\n case \"text\":\n this.setState({ [data.name]: data.value });\n return;\n case \"radio\":\n this.setState({ [data.name]: data.value });\n return;\n case \"checkbox\":\n this.setState({ [data.name]: data.checked });\n return;\n default:\n return;\n }\n };\n\n validateForm = async () => {\n const {\n fdeggrp,\n fyear,\n fexamtype,\n fstrdate,\n fexamrange,\n fdaytype,\n fsunday,\n table\n } = this.state;\n\n if (fdeggrp == \"\") {\n this.setState({\n deggrpError: true,\n ferror: true,\n ferrorm: \"Degree Group required.\"\n });\n return;\n } else {\n this.setState({ deggrpError: false, ferror: false, ferrorm: \"\" });\n }\n\n if (fexamrange == \"\") {\n this.setState({\n fexamrangeError: true,\n ferror: true,\n ferrorm: \"Exam Range required.\"\n });\n return;\n } else {\n this.setState({ fexamrangeError: false, ferror: false, ferrorm: \"\" });\n }\n\n \n\n const data = {\n fdeggrp,\n fyear,\n fexamtype, \n fexamrange,\n fdaytype,\n fsunday,\n table\n };\n\n await this.props.freezetimetable(data);\n\n this.cancel();\n\n return data;\n };\n\n generateTimeTable = async () => {\n const data = await this.validateForm();\n this.props.generateTimetable(data);\n };\n\n handlesubmit = async () =>{ \n const {\n fdeggrp,\n fyear,\n fexamtype,\n fstrdate,\n fexamrange,\n fdaytype,\n fsunday\n } = this.state;\n\n if (fdeggrp == \"\") {\n this.setState({\n deggrpError: true,\n ferror: true,\n ferrorm: \"Degree Group required.\"\n });\n return;\n } else {\n this.setState({ deggrpError: false, ferror: false, ferrorm: \"\" });\n }\n\n if (fexamrange == \"\") {\n this.setState({\n fexamrangeError: true,\n ferror: true,\n ferrorm: \"Exam Range required.\"\n });\n return;\n } else {\n this.setState({ fexamrangeError: false, ferror: false, ferrorm: \"\" });\n }\n \n const err_code = this.props.getfreezeTimetable(this.state); \n if(err_code == -1){\n this.props.tablefalse();\n }else{\n this.props.tabletrue();\n }\n\n \n\n }\n \n\n render() { \n const {\n fdeggrp,\n fyear,\n fexamtype,\n fexamdate,\n fstrdate,\n fexamrange,\n fdaytype,\n ferror,\n ferrorm,\n fsunday,\n deggrpError,\n fexamrangeError,\n disabled,\n table\n } = this.state;\n\n const formatChars = {\n n: \"[0-1]\",\n m: \"[0-9]\",\n e: \"[0-3]\",\n d: \"[0-9]\",\n z: \"[1-2]\",\n y: \"[0-9]\"\n };\n return (\n <div>\n <Form error>\n {ferror ? <Message error content={ferrorm} /> : null}\n <SelectDeggrp\n changeDeggrp={this.changeDeggrp}\n disabled={disabled}\n frmDeggrp={fdeggrp}\n dgerror={deggrpError}\n />\n <Form.Group>\n <Form.Input\n placeholder=\"Exam Year\"\n value={fyear}\n width={4}\n label=\"Exam Year\"\n readOnly\n />\n <Form.Input\n placeholder=\"Exam Type\"\n value={fexamtype}\n width={3}\n label=\"Exam Type\"\n readOnly\n />\n <Form.Input\n placeholder=\"Exam Date\"\n label=\"Exam Date\"\n width={10}\n value={fexamdate}\n readOnly\n />\n </Form.Group>\n <Form.Group>\n <Form.Input\n placeholder=\"Exam Range\"\n width={5}\n onChange={this.handleChange}\n value={fexamrange}\n name=\"fexamrange\"\n label=\"Exam Range\"\n error={fexamrangeError}\n disabled={disabled}\n />\n\n \n {/* <Form.Input placeholder='Starting Date' width={5} onChange={this.handleChange}\n label=\"Starting Date\" name=\"fstrdate\" value={fstrdate} error={fstrdateError}\n disabled={disabled} /> */}\n </Form.Group>\n\n\n <Button color=\"blue\" onClick={this.handlesubmit} >\n Submit\n </Button>\n </Form>\n </div> \n \n );\n }\n}\n\nconst mapStateToProps = state => { \n return {\n deggrp: state.deggrp,\n user: state.user\n };\n};\n\nexport default connect(\n mapStateToProps,\n {\n generateTimetable,\n getfreezeTimetable,\n fetchDegGrp,\n freezetimetable\n\n }\n)(FreezeTimeTableForm);\n","import React from \"react\";\nimport { Card, Divider, Button, Table } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp } from \"../../../actions\";\nimport {\n cancelTimetable,\n saveExamtimetable,\n releaseTimeTable,\n changefreezetimetable,\n selectallchkbx,\n} from \"../../../actions/before-exam/timetable\";\nimport FreezeTimeTableForm from \"./freezeform\";\nimport ReportTimetable from \"./report\";\nimport { Link } from \"react-router-dom\";\n\nclass FreezeTimetable extends React.Component {\n state = {\n ttform: {},\n trrefs: [],\n open: false,\n frmDeggrp: \"\",\n frmdegree: \"\",\n deggrpError: false,\n degreeError: false,\n frmSubmit: false,\n table: false,\n };\n\n componentDidMount() {\n this.props.fetchDegGrp();\n // this.tablehandle();\n }\n\n tabletru = () => {\n this.setState({\n table: true,\n });\n };\n tablefls = () => {\n this.setState({\n table: false,\n });\n };\n\n cancel = () => {\n this.child.cancel();\n this.props.cancelTimetable();\n this.setState({ frmSubmit: false, table: false });\n };\n\n show = (dimmer) => () => this.setState({ dimmer, open: true });\n\n close = (e, data) => {\n if (e.type == \"keydown\") return;\n this.setState({ open: false });\n };\n\n setFromValues = async (values) => {\n await this.setState({ ttform: values, frmSubmit: true });\n };\n\n freezeTimeTable = async () => {\n const data = await this.child.validateForm();\n if (data === undefined) return;\n this.setState({\n table: false,\n });\n };\n\n deleteRow = (e, el, i) => {\n const data = { ...el, [e.target.name]: e.target.checked ? \"T\" : \"F\" };\n this.props.changefreezetimetable(data, i);\n };\n\n selectall = (e) => {\n console.log(e.target.checked);\n console.log(this.props.timetable);\n this.props.selectallchkbx(e.target.checked);\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Freeze Time Table</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n onClick={this.freezeTimeTable}\n color=\"teal\"\n icon=\"share square\"\n content=\"Freeze\"\n />\n <Button\n basic\n onClick={this.cancel}\n color=\"black\"\n icon=\"times circle\"\n content=\"Cancel\"\n />\n {/* <Button\n onClick={this.show(\"blurring\")}\n basic\n color=\"blue\"\n content=\"Report\"\n icon=\"file\"\n /> */}\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n );\n };\n\n render() {\n const { dimmer, open, table } = this.state;\n // this.state = { value: this.props.timetable };\n console.log(this.props.timetable);\n\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n {this.renderHeader()}\n <Divider />\n <Card.Description style={{ height: \"72vh\", overflowY: \"auto\" }}>\n <div className=\"col-md-8 col-sm-9\">\n <FreezeTimeTableForm\n setFromValues={this.setFromValues}\n onRef={(ref) => (this.child = ref)}\n tabletrue={this.tabletru}\n tablefalse={this.tablefls}\n />\n </div>\n <ReportTimetable open={open} dim={dimmer} close={this.close} />\n {table ? (\n <div className=\"animated fadeIn\">\n <div className=\"ui mini form\">\n <Table\n celled\n padded\n selectable\n structured\n size=\"large\"\n color=\"olive\"\n style={{ marginTop: \"25px\" }}\n >\n <Table.Header style={{ fontSize: \"1.2em\" }}>\n <Table.Row>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n singleLine\n textAlign=\"center\"\n >\n <label>Sl. No.</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"7%\" }}\n textAlign=\"center\"\n >\n <label>QP Code</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"30%\" }}\n textAlign=\"center\"\n >\n <label>Subject Name</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"10%\" }}\n textAlign=\"center\"\n >\n <label>Date</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"20%\" }}\n textAlign=\"center\"\n >\n <label>Timings</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n textAlign=\"center\"\n >\n <label>Freeze</label>\n <div className=\"checkbox\">\n <input\n type=\"checkbox\"\n name=\"allfreeze\"\n onChange={(e) => this.selectall(e)}\n checked={this.props.timetable.freezeallcheck}\n disabled={this.props.timetable.frzdisable}\n />\n </div>\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {this.props.timetable.frzarr.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell textAlign=\"center\">\n {i + 1}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el.fqpcode}\n </Table.Cell>\n <Table.Cell textAlign=\"left\">\n {el.fsubname}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el.fdate}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el.fdescpn}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n <div className=\"ui checkbox\">\n <input\n type=\"checkbox\"\n name=\"ffreeze\"\n onChange={(e) => this.deleteRow(e, el, i)}\n checked={el.ffreeze == \"T\" ? true : false}\n disabled={el.frelease == \"T\" ? true : false}\n />\n <label> </label>\n </div>\n\n {/* <Button size='mini' color=\"red\" icon='trash' content=\"Delete\"/> */}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n </div>\n ) : null}\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n deggrp: state.deggrp,\n timetable: state.freezeTimeTable,\n };\n};\n// withRouter(connect(...)(MyComponent))\nexport default connect(mapStateToProps, {\n fetchDegGrp,\n saveExamtimetable,\n cancelTimetable,\n releaseTimeTable,\n changefreezetimetable,\n selectallchkbx,\n})(FreezeTimetable);\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Form, Dropdown } from \"semantic-ui-react\";\nimport { fetchDegGrp } from \"../../actions\";\n\nclass SelectDeggrp extends Component {\n componentDidMount() {\n this.props.fetchDegGrp();\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.user !== prevProps.user) {\n this.props.fetchDegGrp();\n }\n }\n\n render() {\n const deggroup = this.props.deggrp;\n\n var deggroup_options = deggroup.map((el, i) => {\n return {\n key: i,\n value: el.fdeggrp,\n text: `${el.fdeggrp} - ${el.fdescpn}`,\n };\n });\n\n return (\n <Form.Field width=\"16\">\n <label>Degree Group</label>\n <Dropdown\n size=\"mini\"\n error={this.props.dgerror}\n fluid\n search\n selection\n value={this.props.frmDeggrp}\n onChange={this.props.changeDeggrp}\n placeholder=\"Select Degree Group\"\n disabled={this.props.disabled}\n openOnFocus={false}\n options={deggroup_options}\n selectOnBlur={false}\n // searchInput={{ autoFocus: true }}\n />\n </Form.Field>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n deggrp: state.deggrp,\n user: state.user,\n };\n};\n\nexport default connect(mapStateToProps, { fetchDegGrp })(SelectDeggrp);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const generateTimetable = (frmvalues) => {\n return async function (dispatch, getState) {\n const state = getState();\n\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const response = await univadmin.post(\n \"/app.php?a=generateExamTimetable&univcode=\" + state.univ.funivcode,\n {\n data: {\n frmvalues: frmvalues,\n },\n }\n );\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else {\n dispatch({\n type: \"SET_ERROR\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getupdateTimetable = (frmvalues) => {\n return async function (dispatch, getState) {\n const state = getState();\n console.log(frmvalues);\n\n dispatch({\n type: \"CANCEL_TIMETABLE\",\n });\n\n dispatch({\n type: \"SET_LOADER\",\n });\n\n // const response = await univadmin.post(\n // \"/app.php?a=getupdateTimetable&univcode=\" + state.univ.funivcode,\n // {\n // data: {\n // frmvalues: {\n // ...state.user,\n // fexamrange: frmvalues.fexamrange,\n // fdeggrp: frmvalues.fdeggrp,\n // fyear: frmvalues.fyear,\n // fexamtype: frmvalues.fexmtype,\n // fexamdate: frmvalues.fexamdate,\n // },\n // },\n // }\n // );\n console.log(frmvalues);\n\n const response = await univadmin.post(\n \"/app.php?a=getupdateTimetableUT&univcode=\" + state.univ.funivcode,\n {\n data: {\n frmvalues: {\n ...state.user,\n fexamrange: frmvalues.fexamrange,\n fdeggrp: frmvalues.fdeggrp,\n fyear: frmvalues.fyear,\n fexamtype: frmvalues.fexamtype,\n fexamdate: frmvalues.fexamdate,\n fdegree: frmvalues.fdegree,\n },\n },\n }\n );\n // console.log(response);\n // return;\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = {\n header: \"Error\",\n content: response.data.data.msg,\n };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"GENERATE_TIMETABLE\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const loaddegreettm = (deggrp) => {\n return async function (dispatch, getState) {\n const state = getState();\n console.log(deggrp);\n\n dispatch({\n type: \"SET_LOADER\",\n });\n\n dispatch({\n type: \"DEL_FETCH_DEGREES_TTM\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getdegreettm\",\n univcode: state.univ.funivcode,\n deggrp: deggrp,\n },\n });\n\n // const response = await univadmin.post(\n // \"/app.php?a=getdegreettm&univcode=\" +\n // state.univ.funivcode +\n // \"°grp=\" +\n // deggrp\n // );\n console.log(response);\n // return;\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = {\n header: \"Error\",\n content: response.data.data.msg,\n };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"FETCH_DEGREES_TTM\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const saveExamtimetable = (timetable, parameters) => {\n return async function (dispatch, getState) {\n const state = getState();\n // const timetable = state.timetable.toJS();\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=saveExamTimetable&univcode=\" + state.univ.funivcode,\n {\n data: {\n timetable: timetable,\n params: parameters,\n user: state.user,\n },\n }\n );\n dispatch({\n type: \"UNSET_LOADER\",\n });\n // console.log(typeof response.data)\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else {\n const error = {\n header: \"Success\",\n content: response.data.data.msg,\n };\n dispatch(showError(error));\n }\n };\n};\n\nexport const saveExamtimetableUT = (timetable, parameters) => {\n return async function (dispatch, getState) {\n const state = getState();\n // const timetable = state.timetable.toJS();\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=saveExamTimetableUT&univcode=\" + state.univ.funivcode,\n {\n data: {\n timetable: timetable,\n params: parameters,\n user: state.user,\n },\n }\n );\n dispatch({\n type: \"UNSET_LOADER\",\n });\n // console.log(typeof response.data)\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else {\n const error = {\n header: \"Success\",\n content: response.data.data.msg,\n };\n dispatch(showError(error));\n }\n };\n};\n\nexport const releaseTimeTable = (parameters) => {\n return async function (dispatch, getState) {\n const state = getState();\n // const timetable = state.timetable.toJS();\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=releaseExamTimetable&univcode=\" + state.univ.funivcode,\n {\n data: {\n params: parameters,\n },\n }\n );\n dispatch({\n type: \"UNSET_LOADER\",\n });\n // console.log(typeof response.data)\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else {\n dispatch({\n type: \"SET_ERROR\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const cancelTimetable = () => {\n return {\n type: \"CANCEL_TIMETABLE\",\n };\n};\n\nexport const getfreezeTimetable = (frz) => {\n return async function (dispatch, getState) {\n const state = getState();\n const fdeggrp = state.user.fdeggrp;\n\n dispatch({\n type: \"SET_LOADER\",\n });\n dispatch({\n type: \"CLEAR_FREEZE_TIME_TABLE\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getfreezeTimetable\",\n univcode: state.univ.funivcode,\n dgp: frz.fdeggrp,\n year: frz.fyear,\n examtype: frz.fexamtype,\n examrange: frz.fexamrange,\n fcurtype: state.user.fcurtype,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else if (response.data.error_code === 0) {\n dispatch({\n type: \"GET_FREEZE_TIME_TABLE\",\n payload: response.data,\n });\n } else if (response.data.error_code === -1) {\n const error = {\n header: \"Error\",\n content: \"No data found for selected Exam Range..!\",\n };\n dispatch(showError(error));\n return -1;\n }\n };\n};\n\nexport const changefreezetimetable = (el, i) => {\n return {\n type: \"GET_FREEZE_TIME_TABLE_CHANGE\",\n payload: { el, i },\n };\n};\nexport const changereleasetimetable = (el, i) => {\n return {\n type: \"GET_RELEASE_TIME_TABLE_CHANGE\",\n payload: { el, i },\n };\n};\n\nexport const freezetimetable = (stt) => {\n return async function (dispatch, getState) {\n const state = getState();\n console.log(stt, state.freezeTimeTable);\n const fdeggrp = state.user.fdeggrp;\n\n dispatch({\n type: \"SET_LOADER\",\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n const response = await univadmin.post(\n \"/app.php?a=freezetimetable&univcode=\" + state.univ.funivcode,\n {\n data: {\n dgp: stt.fdeggrp,\n year: stt.fyear,\n examtype: stt.fexamtype,\n examrange: stt.fexamrange,\n user: state.user.fname,\n tabledata: state.freezeTimeTable.frzarr,\n },\n }\n );\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else if (response.data.error_code === 0) {\n const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n\nexport const selectallchkbx = (check) => {\n return {\n type: \"FREEZE_SELECT_ALL_CHECKBOX\",\n payload: check,\n };\n};\n\nexport const selectallchkbxrelease = (check) => {\n return {\n type: \"RELEASE_SELECT_ALL_CHECKBOX\",\n payload: check,\n };\n};\n\nexport const getreleaseTimetable = (frz) => {\n return async function (dispatch, getState) {\n const state = getState();\n const fdeggrp = state.user.fdeggrp;\n\n dispatch({\n type: \"SET_LOADER\",\n });\n dispatch({\n type: \"CLEAR_RELEASE_TIME_TABLE\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getreleaseTimetable\",\n univcode: state.univ.funivcode,\n dgp: frz.fdeggrp,\n year: frz.fyear,\n examtype: frz.fexamtype,\n examrange: frz.fexamrange,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else if (response.data.error_code === 0) {\n console.log(response.data);\n dispatch({\n type: \"GET_RELEASE_TIME_TABLE\",\n payload: response.data,\n });\n } else if (response.data.error_code === -1) {\n const error = {\n header: \"Error\",\n content: \"No data found for selected Exam Range..! / Freezing Not Done\",\n };\n dispatch(showError(error));\n return -1;\n }\n };\n};\n\nexport const releasetimetable = (stt) => {\n return async function (dispatch, getState) {\n const state = getState();\n // console.log(stt,state.freezeTimeTable);\n const fdeggrp = state.user.fdeggrp;\n\n dispatch({\n type: \"SET_LOADER\",\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n const response = await univadmin.post(\n \"/app.php?a=releasetimetable&univcode=\" + state.univ.funivcode,\n {\n data: {\n dgp: stt.fdeggrp,\n year: stt.fyear,\n examtype: stt.fexamtype,\n examrange: stt.fexamrange,\n user: state.user.fname,\n tabledata: state.releaseTimeTable.relarr,\n },\n }\n );\n\n if (typeof response.data !== \"object\") {\n const data = {\n error_code: -1,\n data: { msg: \"Something went wrong\" },\n status: \"failure\",\n };\n dispatch({\n type: \"SET_ERROR\",\n payload: data,\n });\n } else if (response.data.error_code === 0) {\n const error = { header: \"Success\", content: response.data.data.msg };\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 }\n };\n};\n","import React, { Component } from \"react\";\nimport {\n Button,\n Modal,\n Form,\n Message,\n Dropdown,\n Radio,\n Checkbox,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport SelectDeggrp from \"../../common/SelectDeggrp\";\nimport { ReportAPI } from \"../../../apis/consts\";\n\nclass ReportTimeTable extends Component {\n state = {\n deggrp: [],\n fdeggrp: \"\",\n fyear: \"\",\n fexamtype: \"\",\n fexamdate: \"\",\n fexamrange: \"ABCDEF\",\n deggrpError: false,\n frtype: \"QP Code Wise\",\n frtypes: [\"Error Report\", \"QP Code Wise\", \"Degree Wise\"],\n fexamrangeError: false,\n frtypeError: false,\n ferror: false,\n ferrorm: \"\",\n rftype: \"PDF Format\",\n emptydates: false,\n fdegfrom: \"0\",\n fdegto: \"ZZZZ\",\n };\n\n componentDidMount() {\n this.setState({ deggrp: this.props.deggrp });\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.deggrp !== prevProps.deggrp) {\n this.setState({ deggrp: [...this.props.deggrp] });\n }\n }\n\n changeDeggrp = (e, data) => {\n let deggrpsel = this.state.deggrp.filter(\n (el, i) => el.fdeggrp === data.value\n );\n\n let deggrp = deggrpsel[0];\n\n this.setState({\n fyear: deggrp.fyear,\n fexamtype: deggrp.fexamtype,\n fexamdate: deggrp.fexamdate,\n fdeggrp: deggrp.fdeggrp,\n });\n };\n\n handleChange = (e, data) => {\n this.setState({ [data.name]: data.value });\n };\n\n generateReport = () => {\n const {\n fdeggrp,\n fexamrange,\n frtype,\n rftype,\n emptydates,\n fdegfrom,\n fdegto,\n } = this.state;\n\n if (fdeggrp == \"\") {\n this.setState({\n deggrpError: true,\n ferror: true,\n ferrorm: \"Degree Group required.\",\n });\n return;\n } else {\n this.setState({ deggrpError: false, ferror: false, ferrorm: \"\" });\n }\n\n if (fexamrange == \"\") {\n this.setState({\n fexamrangeError: true,\n ferror: true,\n ferrorm: \"Exam Range required.\",\n });\n return;\n } else {\n this.setState({ fexamrangeError: false, ferror: false, ferrorm: \"\" });\n }\n\n if (frtype == \"\") {\n this.setState({\n frtypeError: true,\n ferror: true,\n ferrorm: \"Report Type required.\",\n });\n return;\n } else {\n this.setState({ frtypeError: false, ferror: false, ferrorm: \"\" });\n }\n console.log(rftype);\n\n if (frtype === \"Error Report\")\n window.open(\n ReportAPI +\n \"GenerateExamTimetableError°grp=\" +\n this.state.fdeggrp +\n \"&univcode=\" +\n this.props.univ.funivcode +\n \"&examrange=\" +\n this.state.fexamrange,\n \"_blank\"\n );\n else if (frtype === \"Degree Wise\") {\n console.log(frtype, rftype);\n let ignore = emptydates ? \"T\" : \"F\";\n console.log(frtype, rftype, ignore);\n if (rftype == \"Excel Format\") {\n window.open(\n ReportAPI +\n \"examTimeTableDegreeWiseExcel°grp=\" +\n this.state.fdeggrp +\n \"&univcode=\" +\n this.props.univ.funivcode +\n \"&ignorett=\" +\n ignore +\n \"&fdegfrom=\" +\n fdegfrom +\n \"&fdegto=\" +\n fdegto +\n \"&examrange=\" +\n this.state.fexamrange,\n \"_blank\"\n );\n } else {\n window.open(\n ReportAPI +\n \"GenerateDGExamTimetable°grp=\" +\n this.state.fdeggrp +\n \"&univcode=\" +\n this.props.univ.funivcode +\n \"&ignorett=\" +\n ignore +\n \"&fdegfrom=\" +\n fdegfrom +\n \"&fdegto=\" +\n fdegto +\n \"&examrange=\" +\n this.state.fexamrange,\n \"_blank\"\n );\n }\n } else if (frtype === \"QP Code Wise\") {\n if (rftype == \"Excel Format\") {\n window.open(\n ReportAPI +\n \"examTimeTableQPWiseReportExcel°grp=\" +\n this.state.fdeggrp +\n \"&univcode=\" +\n this.props.univ.funivcode +\n \"&examrange=\" +\n this.state.fexamrange,\n \"_blank\"\n );\n } else {\n window.open(\n ReportAPI +\n \"GenerateQPExamTimetable°grp=\" +\n this.state.fdeggrp +\n \"&univcode=\" +\n this.props.univ.funivcode +\n \"&examrange=\" +\n this.state.fexamrange,\n \"_blank\"\n );\n }\n }\n };\n\n changecheckempty = (e, data) => {\n console.log(data.checked);\n this.setState({ emptydates: data.checked });\n };\n\n render() {\n const {\n fdeggrp,\n fyear,\n fexamtype,\n fexamdate,\n fexamrange,\n frtype,\n frtypes,\n deggrpError,\n fexamrangeError,\n frtypeError,\n ferror,\n ferrorm,\n rftype,\n emptydates,\n fdegfrom,\n fdegto,\n } = this.state;\n\n const report_options = frtypes.map((el, i) => {\n return { key: i, value: el, text: el };\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 Time Table Report\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"blue\"\n content=\"Generate\"\n onClick={this.generateReport}\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: \"50vh\", overflowY: \"auto\" }}>\n <Form error>\n {ferror ? <Message error content={ferrorm} /> : null}\n <SelectDeggrp\n changeDeggrp={this.changeDeggrp}\n frmDeggrp={fdeggrp}\n dgerror={deggrpError}\n />\n <Form.Group>\n <Form.Input\n placeholder=\"Exam Year\"\n value={fyear}\n width={4}\n label=\"Exam Year\"\n readOnly\n />\n <Form.Input\n placeholder=\"Exam Type\"\n value={fexamtype}\n width={3}\n label=\"Exam Type\"\n readOnly\n />\n <Form.Input\n placeholder=\"Exam Date\"\n label=\"Exam Date\"\n width={10}\n value={fexamdate}\n readOnly\n />\n </Form.Group>\n <label>\n <b>Report Type</b>\n </label>\n <Dropdown\n size=\"mini\"\n fluid\n search\n selection\n name=\"frtype\"\n value={frtype}\n onChange={this.handleChange}\n placeholder=\"Report Type\"\n label=\"Report Type\"\n error={frtypeError}\n options={report_options}\n />\n {frtype == \"Degree Wise\" ? (\n <Form.Group style={{ marginTop: \"10px\" }}>\n <Form.Input\n placeholder=\"From\"\n error={false}\n width={5}\n onChange={this.handleChange}\n value={fdegfrom}\n name=\"fdegfrom\"\n label=\"Degree Range\"\n error={fexamrangeError}\n />\n\n <Form.Input\n placeholder=\"To\"\n error={false}\n width={5}\n onChange={this.handleChange}\n value={fdegto}\n name=\"fdegto\"\n style={{ marginTop: \"22px\" }}\n error={fexamrangeError}\n />\n </Form.Group>\n ) : null}\n\n <Form.Group>\n <Form.Input\n placeholder=\"Exam Range\"\n error={false}\n width={5}\n onChange={this.handleChange}\n value={fexamrange}\n name=\"fexamrange\"\n label=\"Exam Range\"\n error={fexamrangeError}\n />\n </Form.Group>\n {/* <div className=\"ui checkbox\">\n <label> Neglect empty Dates </label>\n <input\n type=\"checkbox\"\n name=\"emptydates\"\n value={emptydates}\n onChange={(e) => this.changecheckempty(e)}\n checked={\"checked\"}\n />\n </div> */}\n {frtype == \"Degree Wise\" ? (\n <Checkbox\n onChange={(e, data) => this.changecheckempty(e, data)}\n value={emptydates}\n checked={emptydates}\n label=\"Ignore empty Dates\"\n />\n ) : null}\n <Form.Group inline>\n <Form.Field\n control={Radio}\n name=\"rftype\"\n label=\"PDF\"\n value=\"PDF Format\"\n checked={rftype === \"PDF Format\"}\n onChange={this.handleChange}\n />\n <Form.Field\n control={Radio}\n name=\"rftype\"\n label=\"EXCEL\"\n value=\"Excel Format\"\n checked={rftype === \"Excel Format\"}\n onChange={this.handleChange}\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(mapStateToProps, {})(ReportTimeTable);\n\n// export default ReportTimeTable\n","\nfunction getToday() {\n var today = new Date();\n var dd = today.getDate();\n var mm = today.getMonth() + 1; //January is 0!\n var yyyy = today.getFullYear();\n\n if (dd < 10) {\n dd = '0' + dd;\n }\n\n if (mm < 10) {\n mm = '0' + mm;\n }\n\n today = dd + '/' + mm + '/' + yyyy;\n return today;\n}\n\nexport default getToday;"],"sourceRoot":""}
|