0xV3NOMx
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 : 18.189.194.225


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/41.7b5d10d5.chunk.js.map

{"version":3,"sources":["pages/before-exam/timetable/genttform.js","pages/before-exam/timetable/gentimetable.js","pages/common/SelectDeggrp.js","actions/before-exam/timetable.js","pages/before-exam/timetable/report.js","pages/common/todayDate.js"],"names":["GenTimeTableForm","state","deggrp","fdeggrp","fyear","fexamtype","fexamdate","fexamrange","fdaytype","fsunday","fstrdate","deggrpError","fexamrangeError","fstrdateError","frmSubmit","disabled","cancel","_this","setState","getToday","freset","changeDeggrp","e","data","filter","el","i","value","handleChangedate","Object","defineProperty","target","name","handleChange","type","checked","validateForm","_callee","_this$state","regenerator_default","a","wrap","_context","prev","next","ferror","ferrorm","abrupt","props","setFromValues","stop","generateTimeTable","_callee2","_context2","sent","console","log","generateTimetable","this","fetchDegGrp","onRef","_this$state2","react_default","createElement","Form","error","Message","content","SelectDeggrp","frmDeggrp","dgerror","Group","Input","placeholder","width","label","readOnly","onChange","className","react_input_mask_default","formatChars","n","m","d","z","y","mask","inline","Field","control","Radio","Checkbox","Button","color","onClick","Component","connect","TimeTable","ttform","trrefs","open","frmdegree","degreeError","child","cancelTimetable","show","dimmer","close","values","releaseTimeTable","undefined","renderHeader","Card","Header","style","display","basic","icon","Link","to","_this2","fluid","Content","Divider","Description","height","overflowY","genttform","ref","report","dim","React","timetable","saveExamtimetable","prevProps","user","deggroup_options","map","key","text","concat","fdescpn","react__WEBPACK_IMPORTED_MODULE_5___default","semantic_ui_react__WEBPACK_IMPORTED_MODULE_7__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","size","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","_callee3","_error2","_context3","get","params","univcode","_x5","_x6","parameters","_ref4","_callee4","_error3","_context4","_x7","_x8","saveExamtimetableUT","_ref5","_callee5","_error4","_context5","_x9","_x10","_ref6","_callee6","_context6","_x11","_x12","getfreezeTimetable","frz","_ref7","_callee7","_context7","dgp","year","examtype","examrange","fcurtype","_x13","_x14","changefreezetimetable","changereleasetimetable","freezetimetable","stt","_ref8","_callee8","_context8","freezeTimeTable","fname","tabledata","frzarr","_x15","_x16","selectallchkbx","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__","marginTop","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","today","Date","dd","getDate","mm","getMonth","yyyy","getFullYear"],"mappings":"oUAgBMA,6MACJC,MAAQ,CACNC,OAAQ,GACRC,QAAS,GACTC,MAAO,GACPC,UAAW,GACXC,UAAW,GACXC,WAAY,GACZC,SAAU,IACVC,SAAS,EACTC,SAAU,GACVC,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,WAAW,EACXC,UAAU,KASZC,OAAS,WACPC,EAAKC,SAAS,CACZf,QAAS,GACTC,MAAO,GACPC,UAAW,GACXC,UAAW,GACXC,WAAY,GACZC,SAAU,IACVC,SAAS,EACTC,SAAUS,cACVC,QAAQ,EACRT,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,WAAW,EACXC,UAAU,OAIdM,aAAe,SAACC,EAAGC,GACjB,IAIIrB,EAJYe,EAAKhB,MAAMC,OAAOsB,OAChC,SAACC,EAAIC,GAAL,OAAWD,EAAGtB,UAAYoB,EAAKI,QAGV,GAEvBV,EAAKC,SAAS,CACZd,MAAOF,EAAOE,MACdC,UAAWH,EAAOG,UAClBC,UAAWJ,EAAOI,UAClBH,QAASD,EAAOC,aAIpByB,iBAAmB,SAAAN,GACjBL,EAAKC,SAALW,OAAAC,EAAA,EAAAD,CAAA,GAAiBP,EAAES,OAAOC,KAAOV,EAAES,OAAOJ,WAG5CM,aAAe,SAACX,EAAGC,GACjB,OAAQA,EAAKW,MACX,IAAK,OAGL,IAAK,QAEH,YADAjB,EAAKC,SAALW,OAAAC,EAAA,EAAAD,CAAA,GAAiBN,EAAKS,KAAOT,EAAKI,QAEpC,IAAK,WAEH,YADAV,EAAKC,SAALW,OAAAC,EAAA,EAAAD,CAAA,GAAiBN,EAAKS,KAAOT,EAAKY,UAEpC,QACE,WAINC,kCAAe,SAAAC,IAAA,IAAAC,EAAAnC,EAAAC,EAAAC,EAAAK,EAAAH,EAAAC,EAAAC,EAAAc,EAAA,OAAAgB,E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AAK,IAAMA,GAGbJ,EAAQE,EAAK,IAAME,EAAK,IAAME","file":"static/js/41.7b5d10d5.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {\n  Card,\n  Button,\n  Form,\n  Message,\n  Radio,\n  Checkbox\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp } from \"../../../actions\";\nimport { generateTimetable } from \"../../../actions/before-exam/timetable\";\nimport SelectDeggrp from \"../../common/SelectDeggrp\";\nimport getToday from \"../../common/todayDate\";\nimport InputMask from \"react-input-mask\";\n\nclass GenTimeTableForm extends Component {\n  state = {\n    deggrp: [],\n    fdeggrp: \"\",\n    fyear: \"\",\n    fexamtype: \"\",\n    fexamdate: \"\",\n    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  };\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 = () => {\n    this.setState({\n      fdeggrp: \"\",\n      fyear: \"\",\n      fexamtype: \"\",\n      fexamdate: \"\",\n      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  };\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    } = 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 (fstrdate == \"\") {\n      this.setState({\n        fstrdateError: true,\n        ferror: true,\n        ferrorm: \"Starting date required.\"\n      });\n      return;\n    } else {\n      this.setState({ fexamrangeError: false, ferror: false, ferrorm: \"\" });\n    }\n\n    this.setState({ disabled: true });\n\n    const data = {\n      fdeggrp,\n      fyear,\n      fexamtype,\n      fstrdate,\n      fexamrange,\n      fdaytype,\n      fsunday\n    };\n\n    await this.props.setFromValues(data);\n    return data;\n  };\n\n  generateTimeTable = async () => {\n    const data = await this.validateForm();\n    console.log(data);\n    this.props.generateTimetable(data);\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    } = 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            <div className=\"field\">\n              <label> Starting Date </label>\n              <InputMask\n                type=\"text\"\n                formatChars={formatChars}\n                width={5}\n                mask=\"ed/nm/zyyy\"\n                name=\"fstrdate\"\n                value={fstrdate}\n                onChange={this.handleChangedate}\n                placeholder=\"dd/mm/yyyy\"\n                disabled={disabled}\n              />\n            </div>\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          <Form.Group inline>\n            <Form.Field\n              control={Radio}\n              name=\"fdaytype\"\n              label=\"Continuous Days\"\n              value=\"C\"\n              checked={fdaytype === \"C\"}\n              onChange={this.handleChange}\n              disabled={disabled}\n            />\n            <Form.Field\n              control={Radio}\n              name=\"fdaytype\"\n              label=\"Alternate Days\"\n              value=\"A\"\n              checked={fdaytype === \"A\"}\n              onChange={this.handleChange}\n              disabled={disabled}\n            />\n          </Form.Group>\n\n          <Form.Group inline>\n            <Form.Field\n              control={Checkbox}\n              onChange={this.handleChange}\n              name=\"fsunday\"\n              checked={fsunday === true}\n              label=\"Consider Sunday`s\"\n              disabled={disabled}\n            />\n          </Form.Group>\n\n          <Button color=\"blue\" onClick={this.generateTimeTable}>\n            Genarate\n          </Button>\n        </Form>\n      </div>\n    );\n  }\n}\n\nconst mapStateToProps = state => {\n  return {\n    deggrp: state.deggrp\n  };\n};\n\nexport default connect(\n  mapStateToProps,\n  {\n    generateTimetable,\n    fetchDegGrp\n  }\n)(GenTimeTableForm);\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} from \"../../../actions/before-exam/timetable\";\nimport GenTimeTableForm from \"./genttform\";\nimport ReportTimetable from \"./report\";\nimport { Link } from \"react-router-dom\";\n\nclass TimeTable 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  };\n\n  componentDidMount() {\n    this.props.fetchDegGrp();\n  }\n\n  cancel = () => {\n    this.child.cancel();\n    this.props.cancelTimetable();\n    this.setState({ frmSubmit: 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  releaseTimeTable = async () => {\n    const data = await this.child.validateForm();\n    if (data === undefined) return;\n\n    // take Confirmation from user\n\n    // call release to public action\n    this.props.releaseTimeTable(data);\n  };\n\n  renderHeader = () => {\n    return (\n      <Card.Header style={{ display: \"flex\" }}>\n        <h4>Genarate Time Table</h4>\n        <div className=\"ml-auto\">\n          <Button\n            basic\n            onClick={this.releaseTimeTable}\n            color=\"teal\"\n            icon=\"share square\"\n            content=\"Release\"\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 } = this.state;\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                <GenTimeTableForm\n                  setFromValues={this.setFromValues}\n                  onRef={ref => (this.child = ref)}\n                />\n              </div>\n              <ReportTimetable open={open} dim={dimmer} close={this.close} />\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.timetable\n  };\n};\n// withRouter(connect(...)(MyComponent))\nexport default connect(\n  mapStateToProps,\n  {\n    fetchDegGrp,\n    saveExamtimetable,\n    cancelTimetable,\n    releaseTimeTable\n  }\n)(TimeTable);\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    //     \"&deggrp=\" +\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&deggrp=\" +\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&deggrp=\" +\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&deggrp=\" +\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&deggrp=\" +\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&deggrp=\" +\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":""}