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 : 3.133.152.151


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/563.d7eb95d3.chunk.js.map

{"version":3,"file":"static/js/563.d7eb95d3.chunk.js","mappings":"wMAIO,MAAMA,EAAgBC,MAC3BC,EACAC,EACAC,EACAC,EACAC,KAEA,UACQC,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,+BAGAP,EACA,aACAC,EACA,UACAC,EACA,QACAC,EACFK,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,WACXb,EAAS,CAAEc,KAAM,SAAUC,QAASJ,EAAIC,KAAKA,KAAKI,aAElDhB,EAAS,CAAEc,KAAM,aAAcC,QAAS,IAC1C,GAEJ,CAAE,MAAOE,GAAM,GAGJC,EAAenB,MAC1BC,EACAC,EACAC,EACAC,EACAC,EACAY,KAEA,UACQX,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,4BAGAP,EACA,aACAC,EACA,UACAC,EACA,QACAC,EACA,eACAY,EACFP,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,WACXb,EAAS,CAAEc,KAAM,kBAAmBC,QAASJ,EAAIC,KAAKA,KAAKO,MAE3DnB,EAAS,CAAEc,KAAM,aAAcC,QAAS,IAC1C,GAEJ,CAAE,MAAOE,GAAM,GAGJG,EAAgBA,CAACjB,EAAOC,EAAKiB,EAAML,IACvCjB,MAAOC,EAAUsB,WAChBjB,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,yBAGAL,EACA,YACAC,EACA,SACAiB,EACA,YACAL,EACFP,QAAS,CAAE,eAAgB,sBAE1BC,MAAMC,IACLY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L6BM,GAAgB1C,SAAC,cAK5DzC,IACCoC,EAAAA,EAAAA,KAACgD,EAAAA,EAAK,CACJC,OAAQ,CAAEC,EAAG,KACbC,YAAY,EACZC,UAAQ,EACRC,QA9IQ,CAChB,CACE3C,MAAO,SACP4C,UAAW,OACXC,MAAO,SACP3C,MAAO,KACP4C,OAAQA,CAACC,EAAGd,KAAK,CACfe,QAASf,EAAQ,IAAM,EAAI,EAAI,KAGnC,CACEjC,MAAO,cACP4C,UAAW,OACXC,MAAO,SACP3C,MAAO,MAET,CACEF,MAAO,YACP4C,UAAW,WACXC,MAAO,OACP3C,MAAO,MAET,CACEF,MAAO,UACP4C,UAAW,KACXC,MAAO,SACP3C,MAAO,QAqHD+C,WAAY9D,EACZ+D,KAAK,QACLjD,MAAO,CACLkD,QAAS,MACTjD,MAAO,MACP2B,WAAY,MACZuB,UAAW,QACXC,SAAU,SACVC,IAAK,SAOnB,G","sources":["Actions/Exam_Preparation/IA_Marks/Identify_CO_Marks.js","Actions/Utility/Attendance/Attendance_Entry_Daywise.js","Pages/Exam_Preparation/IA_Marks/Identify_CO_Marks.js"],"sourcesContent":["import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\nimport { Alert } from \"../../../Components/Alert\";\n\nexport const getSubElement = async (\n  dispatch,\n  fcollcode,\n  funivcode,\n  teach,\n  cls\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"getDegSemSubDetnew\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&univcode=\" +\n        funivcode +\n        \"&teach=\" +\n        teach +\n        \"&cls=\" +\n        cls,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETSUB\", payload: res.data.data.subelement });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getTestMarks = async (\n  dispatch,\n  fcollcode,\n  funivcode,\n  teach,\n  cls,\n  subelement\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"getTestMaxQnnew\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&univcode=\" +\n        funivcode +\n        \"&teach=\" +\n        teach +\n        \"&cls=\" +\n        cls +\n        \"&subelement=\" +\n        subelement,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETTESTANDMARKS\", payload: res.data.data.sub });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getCOmarksdet = (teach, cls, test, subelement) => {\n  return async (dispatch, getState) => {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"viewCOMarks\" +\n        \"&teachcode=\" +\n        teach +\n        \"&clscode=\" +\n        cls +\n        \"&test=\" +\n        test +\n        \"&subcode=\" +\n        subelement,\n      headers: { \"Content-Type\": \"application/json\" },\n    })\n      .then((res) => {\n        console.log(res);\n        if (res.data.error_code == 0) {\n          dispatch({ type: \"CO_MARKS_DETAILS\", payload: res.data.data });\n        } else {\n          dispatch({ type: \"CLEAR_DATA\", payload: [] });\n        }\n      })\n      .catch((err) => console.log(\"Error====>\", err));\n  };\n};\n\nexport const saveCOmarks = async (dispatch, formData) => {\n  try {\n    await axios.post(base_url + \"saveCoMarksNew\", formData).then((res) => {\n      if (res.data.error_code == 0) {\n        // dispatch({ type: \"SAVECO\", payload: res.data.data });\n        Alert(res.data.data);\n      } else {\n        // dispatch({ type: \"CLEAR_DATA\", payload: res.data.data });\n        Alert(res.data.data);\n      }\n    });\n  } catch (err) {}\n};\n","import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\nimport { Alert } from \"../../../Components/Alert\";\n\nconst loading = (value) => {\n  return {\n    type: \"LOADING\",\n    load: value,\n  };\n};\n\nexport const getTeachName = async (\n  dispatch,\n  fcollcode,\n  funivcode,\n  usertype,\n  user\n) => {\n  // dispatch(loading(true));\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"loaddayteachname\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&univcode=\" +\n        funivcode +\n        \"&usertype=\" +\n        usertype +\n        \"&user=\" +\n        user,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETTEACHNAMES\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {\n    // dispatch(loading(false));\n  }\n};\n\nexport const getclsNames = async (\n  dispatch,\n  fcollcode,\n  fusertype,\n  fuser,\n  teachcode\n) => {\n  // dispatch(loading(true));\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"loadclassnameday\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&usertype=\" +\n        fusertype +\n        \"&user=\" +\n        fuser +\n        \"&teachcode=\" +\n        teachcode,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        console.log(\"anita\");\n        dispatch({ type: \"GETCLANAME\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {\n    // dispatch(loading(false));\n  }\n};\nexport const showView1Data = async (dispatch, formdata, fcollcode, sort) => {\n  dispatch(loading(false));\n  try {\n    await axios\n      .post(\n        base_url +\n          \"viewattendanceentry\" +\n          \"&collcode=\" +\n          fcollcode +\n          \"&sort=\" +\n          sort,\n        formdata\n      )\n      .then((res) => {\n        if (res.data.error_code == 0) {\n          dispatch(loading(false));\n          dispatch({ type: \"VIEW1DATA\", payload: res.data.data });\n        } else {\n          dispatch(loading(false));\n          dispatch({ type: \"CLEAR_DATA\", payload: [] });\n        }\n      });\n  } catch (err) {\n    dispatch(loading(false));\n  }\n};\n\nexport const saveAttendace = async (dispatch, formData) => {\n  // dispatch(loading(true));\n  try {\n    await axios.post(base_url + \"saveattendanceentry\", formData).then((res) => {\n      if (res.data.error_code == 0) {\n        Alert(res.data.msg);\n        // dispatch(loading(false));\n\n        return;\n      } else {\n        Alert(res.data.data.msg);\n        // dispatch(loading(false));\n        return;\n      }\n    });\n  } catch (err) {\n    // dispatch(loading(false));\n  }\n};\n\nexport const viewToModifyORDelete = async (\n  dispatch,\n  fcollcode,\n  funivcode,\n  fusertype,\n  fuser,\n  teachfrom,\n  teachto\n) => {\n  // dispatch(loading(true));\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"viewDeleteAddStudDet\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&univcode=\" +\n        funivcode +\n        \"&usertype=\" +\n        fusertype +\n        \"&user=\" +\n        fuser +\n        \"&fromteach=\" +\n        teachfrom +\n        \"&toteach=\" +\n        teachto,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETFORDELETE\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {\n    // dispatch(loading(false));\n  }\n};\n\nexport const toDelete = async (\n  fcollcode,\n  teachcode,\n  clsId,\n  period,\n  fnoclass,\n  fdate\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"deleteAddstudentry\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&teachcode=\" +\n        teachcode +\n        \"&clsid=\" +\n        clsId +\n        \"&period=\" +\n        period +\n        \"&noofcls=\" +\n        fnoclass +\n        \"&date=\" +\n        fdate,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        Alert(res.data.data);\n      } else {\n        Alert(res.data.data);\n      }\n    });\n  } catch (err) {}\n};\n\nexport const toModify = async (\n  dispatch,\n  fcollcode,\n  teachcode,\n  clsId,\n  period,\n  fnoclass,\n  fdate\n) => {\n  // dispatch(loading(true));\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"modifyAddstudentry\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&teachcode=\" +\n        teachcode +\n        \"&clsid=\" +\n        clsId +\n        \"&period=\" +\n        period +\n        \"&noofcls=\" +\n        fnoclass +\n        \"&date=\" +\n        fdate,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"MODIFYDATA\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {\n    // dispatch(loading(false));\n  }\n};\n","import {\n  Card,\n  Row,\n  Col,\n  Button,\n  Space,\n  Select,\n  Input,\n  Table,\n  Checkbox,\n} from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport {\n  getTeachName,\n  getclsNames,\n} from \"../../../Actions/Utility/Attendance/Attendance_Entry_Daywise\";\nimport { connect, useDispatch } from \"react-redux\";\nimport {\n  getSubElement,\n  getTestMarks,\n  getCOmarksdet,\n  saveCOmarks,\n} from \"../../../Actions/Exam_Preparation/IA_Marks/Identify_CO_Marks\";\nfunction Identify_CO_Marks(props) {\n  const [teach, setTeach] = useState(\"\");\n  const [cls, setCls] = useState(\"\");\n  const [subelement, setSubelement] = useState(\"\");\n  const [subdata, setSubdata] = useState([]);\n  const [test, setTest] = useState(\"\");\n  const [marks, setMarks] = useState(\"\");\n  const [view, setView] = useState(false);\n  const [dat, setDat] = useState([]);\n  const dispatch = useDispatch();\n  useEffect(() => {\n    TeachName();\n    setTeach(props.teachData);\n    const qnmax = 10;\n    const alpha = [\"A\", \"B\"];\n    let data = [];\n\n    for (let i = 1; i <= qnmax; i++) {\n      for (let j = 0; j < alpha.length; j++) {\n        let obj = {};\n        obj.slno = i;\n        obj.qnno = i + alpha[j];\n        obj.maxmarks = \"\";\n        obj.co = \"\";\n        data.push(obj);\n      }\n    }\n    setDat(data);\n  }, []);\n\n  const TeachName = () => {\n    setTeach(props.teachData);\n    getTeachName(\n      dispatch,\n      props.user.fcollcode,\n      props.user.funivcode,\n      props.user.fusertype,\n      props.user.fuser\n    );\n  };\n  const teachsDataselect = [\n    { value: \"select\", label: \"---Select Teacher---\" },\n    ...props.teachData,\n  ];\n\n  const changeTeach = async (e) => {\n    setTeach(e);\n    await getclsNames(\n      dispatch,\n      props.user.fcollcode,\n      props.user.fusertype,\n      props.user.fuser,\n      e\n    );\n    setSubdata(props.subDetData);\n\n    changeCls();\n  };\n  const clsDataselect = [\n    { value: \"select\", label: \"---Select Class---\" },\n    ...props.classData,\n  ];\n\n  const changeCls = async (e) => {\n    setCls(e);\n    await getSubElement(\n      dispatch,\n      props.user.fcollcode,\n      props.user.funivcode,\n      teach,\n      e\n    );\n  };\n  const subdetails = [\n    { key: \"select\", value: \"Select\", label: \"---Select Subject Element---\" },\n    ...props.subDetData,\n  ];\n\n  let testaopt = [];\n  let test1 = props.testmarksData.value;\n  for (let i = 1; i <= test1; i++) {\n    let testname = { key: i, value: \"Test \" + i, label: \"Test-\" + i };\n    testaopt.push(testname);\n  }\n\n  const subjectHandler = async (e) => {\n    setSubelement(e);\n    await getTestMarks(\n      dispatch,\n      props.user.fcollcode,\n      props.user.funivcode,\n      teach,\n      cls,\n      e\n    );\n    setSubdata(props.subDetData);\n    testmarksHandler();\n  };\n\n  const testmarksHandler = async (e) => {\n    setTest(e);\n    setMarks(props.testmarksData.fvalmax);\n  };\n\n  const changeHandler = (e, co, i) => {\n    console.log(e.target.checked, co, i);\n    const arr = dat;\n    arr[i][\"co\"] = e.target.checked ? co : \"\";\n    setDat([...arr]);\n  };\n\n  const inputHandler = (value, i) => {\n    const arr = dat;\n    arr[i][\"maxmarks\"] = value;\n    setDat([...arr]);\n    console.log(arr);\n  };\n\n  const viewCOdetails = async () => {\n    await props.getCOmarksdet(teach, cls, test, subelement);\n    setView(true);\n    let arr = dat;\n    let newArr = arr.map((el, i) => {\n      props.coData.map((item, index) => {\n        if (el.qnno == item.fqnno) {\n          el.slno = i + 1;\n          el.qnno = item.fqnno;\n          el.maxmarks = item.FMARKS;\n          el.co = item.FCO;\n        }\n        return el;\n      });\n      return el;\n    });\n    setDat([...newArr]);\n  };\n\n  console.log(dat, \"anita\");\n\n  let dataTable = dat.map((el, i) => ({\n    key: i,\n    slno: el.slno,\n    qnno: el.qnno,\n    maxmarks: (\n      <Input\n        value={el.maxmarks}\n        onChange={(e) => inputHandler(e.target.value, i)}\n      />\n    ),\n    co: (\n      <div>\n        CO1{\" \"}\n        <Checkbox\n          checked={el.co == 1 ? true : false}\n          onChange={(e) => changeHandler(e, \"1\", i)}\n        />\n        &nbsp;&nbsp; CO2{\" \"}\n        <Checkbox\n          checked={el.co == 2 ? true : false}\n          onChange={(e) => changeHandler(e, \"2\", i)}\n        />\n        &nbsp;&nbsp; CO3{\" \"}\n        <Checkbox\n          checked={el.co == 3 ? true : false}\n          onChange={(e) => changeHandler(e, \"3\", i)}\n        />\n        &nbsp;&nbsp; CO4{\" \"}\n        <Checkbox\n          checked={el.co == 4 ? true : false}\n          onChange={(e) => changeHandler(e, \"4\", i)}\n        />\n        &nbsp;&nbsp; CO5{\" \"}\n        <Checkbox\n          checked={el.co == 5 ? true : false}\n          onChange={(e) => changeHandler(e, \"5\", i)}\n        />\n        &nbsp;&nbsp; CO6{\" \"}\n        <Checkbox\n          checked={el.co == 6 ? true : false}\n          onChange={(e) => changeHandler(e, \"6\", i)}\n        />\n        &nbsp;\n      </div>\n    ),\n  }));\n\n  const tabledata = [\n    {\n      title: \"Sl. No\",\n      dataIndex: \"slno\",\n      align: \"center\",\n      width: \"2%\",\n      onCell: (_, index) => ({\n        rowSpan: index % 2 === 0 ? 2 : 0,\n      }),\n    },\n    {\n      title: \"Question No\",\n      dataIndex: \"qnno\",\n      align: \"center\",\n      width: \"3%\",\n    },\n    {\n      title: \"Max Marks\",\n      dataIndex: \"maxmarks\",\n      align: \"left\",\n      width: \"3%\",\n    },\n    {\n      title: \"Details\",\n      dataIndex: \"co\",\n      align: \"center\",\n      width: \"13%\",\n    },\n  ];\n\n  const saveCoMarks = async () => {\n    let formData = new FormData();\n    let newTableData = dat.filter((el, i) => {\n      return el.co != \"\";\n    });\n    formData.append(\"data\", JSON.stringify(newTableData));\n    console.log(newTableData, \"newTableData\");\n    formData.append(\"collcode\", props.user.fcollcode);\n    formData.append(\"user\", props.user.fuser);\n    formData.append(\"testName\", test);\n    formData.append(\"classId\", cls);\n    formData.append(\"subelement\", subelement);\n    await saveCOmarks(dispatch, formData);\n  };\n\n  return (\n    <div className=\"container-fluid\">\n      <Card\n        hoverable\n        title=\"CO Marks Entry\"\n        style={{ width: \"100%\" }}\n        extra={\n          <Space direction=\"horizontal\">\n            <Button className=\"save\" onClick={() => saveCoMarks()}>\n              Save\n            </Button>\n            <Button className=\"clear\">Clear</Button>\n            <Button className=\"exit\">Exit</Button>\n          </Space>\n        }\n      >\n        <div style={{ marginBottom: \"20px\" }}>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={3}>\n              <label>Teacher Name</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={teach}\n                options={teachsDataselect}\n                onChange={(e) => changeTeach(e)}\n              ></Select>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Class Name</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={cls}\n                options={clsDataselect}\n                onChange={(e) => changeCls(e)}\n              ></Select>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={3}>\n              <label>Subject Element</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={subelement}\n                options={subdetails}\n                onChange={(e) => subjectHandler(e)}\n              ></Select>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Test</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={test}\n                options={testaopt}\n                onChange={(e) => testmarksHandler(e)}\n              ></Select>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={3}>\n              <label>Marks</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Input\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={marks}\n              ></Input>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\", marginLeft: \"148px\" }}>\n            <Button className=\"save\" onClick={() => viewCOdetails()}>\n              View\n            </Button>\n          </Row>\n        </div>\n        {view && (\n          <Table\n            scroll={{ y: 400 }}\n            pagination={false}\n            bordered\n            columns={tabledata}\n            dataSource={dataTable}\n            size=\"small\"\n            style={{\n              padding: \"2px\",\n              width: \"70%\",\n              marginLeft: \"15%\",\n              marginTop: \"-10px\",\n              position: \"sticky\",\n              top: 0,\n            }}\n          />\n        )}\n      </Card>\n    </div>\n  );\n}\nconst mapStateToProps = (state) => {\n  return {\n    user: state.AuthReducer.userData,\n    teachData: state.getattEntryTeacherNameReducer.teachData,\n    classData: state.getattEntryClassNameReducer.classData,\n    subDetData: state.subDetailsReducer.subDetData,\n    testmarksData: state.testMarksReducer.testmarksData,\n    coData: state.putMarksReducer.putcoData,\n  };\n};\nexport default connect(mapStateToProps, {\n  getCOmarksdet,\n})(Identify_CO_Marks);\n"],"names":["getSubElement","async","dispatch","fcollcode","funivcode","teach","cls","axios","method","url","base_url","headers","then","res","data","error_code","type","payload","subelement","err","getTestMarks","sub","getCOmarksdet","test","getState","console","log","catch","saveCOmarks","formData","post","Alert","loading","value","load","getTeachName","usertype","user","getclsNames","fusertype","fuser","teachcode","showView1Data","formdata","sort","saveAttendace","msg","viewToModifyORDelete","teachfrom","teachto","toDelete","clsId","period","fnoclass","fdate","connect","state","AuthReducer","userData","teachData","getattEntryTeacherNameReducer","classData","getattEntryClassNameReducer","subDetData","subDetailsReducer","testmarksData","testMarksReducer","coData","putMarksReducer","putcoData","props","setTeach","useState","setCls","setSubelement","subdata","setSubdata","setTest","marks","setMarks","view","setView","dat","setDat","useDispatch","useEffect","TeachName","alpha","i","j","length","obj","slno","qnno","maxmarks","co","push","teachsDataselect","label","clsDataselect","changeCls","e","subdetails","key","testaopt","test1","testname","testmarksHandler","fvalmax","changeHandler","target","checked","arr","dataTable","map","el","_jsx","Input","onChange","inputHandler","_jsxs","children","Checkbox","className","Card","hoverable","title","style","width","extra","Space","direction","Button","onClick","FormData","newTableData","filter","append","JSON","stringify","saveCoMarks","marginBottom","Row","Col","span","xs","sm","md","lg","xl","Select","showSearch","placeholder","options","changeTeach","marginLeft","subjectHandler","newArr","item","index","fqnno","FMARKS","FCO","viewCOdetails","Table","scroll","y","pagination","bordered","columns","dataIndex","align","onCell","_","rowSpan","dataSource","size","padding","marginTop","position","top"],"sourceRoot":""}