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.222.110.231
Current Path : /var/www/college/static/js/ |
| Current File : /var/www/college/static/js/964.e2692d0c.chunk.js.map |
{"version":3,"file":"static/js/964.e2692d0c.chunk.js","mappings":"yNAIA,MAAMA,EAAWC,IACR,CACLC,KAAM,UACNC,KAAMF,IAIGG,EAAeC,MAC1BC,EACAC,EACAC,EACAC,EACAC,KAGA,UACQC,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,6BAGAP,EACA,aACAC,EACA,aACAC,EACA,SACAC,EACFK,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,WACXb,EAAS,CAAEJ,KAAM,gBAAiBkB,QAASH,EAAIC,KAAKA,OAEpDZ,EAAS,CAAEJ,KAAM,aAAckB,QAAS,IAC1C,GAEJ,CAAE,MAAOC,GACP,GAISC,EAAcjB,MACzBC,EACAC,EACAgB,EACAC,EACAC,KAGA,UACQd,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,6BAGAP,EACA,aACAgB,EACA,SACAC,EACA,cACAC,EACFV,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,YACXO,QAAQC,IAAI,SACZrB,EAAS,CAAEJ,KAAM,aAAckB,QAASH,EAAIC,KAAKA,QAEjDZ,EAAS,CAAEJ,KAAM,aAAckB,QAAS,IAC1C,GAEJ,CAAE,MAAOC,GACP,GAGSO,EAAgBvB,MAAOC,EAAUuB,EAAUtB,EAAWuB,KACjExB,EAASN,GAAQ,IACjB,UACQW,EAAAA,EACHoB,KACCjB,EAAAA,EAAAA,gCAGEP,EACA,SACAuB,EACFD,GAEDb,MAAMC,IACsB,GAAvBA,EAAIC,KAAKC,YACXb,EAASN,GAAQ,IACjBM,EAAS,CAAEJ,K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ACJC,GAAI,EACJ3G,MAAO,CAAE8G,WAAY,QAASzG,UAE9BC,EAAAA,EAAAA,KAACC,EAAAA,EAAK,CACJ3D,KAAK,OACL6D,YAAY,IACZE,SAAWR,GA5MHA,KACpBmD,EAAWnD,GACX/B,QAAQC,IAAI8B,EAAE,EA0Me4G,CAAa5G,EAAES,OAAOjE,YAG3C2D,EAAAA,EAAAA,KAAC+F,EAAAA,EAAG,CAACrG,MAAO,CAAE8G,WAAY,QAASzG,UACjCC,EAAAA,EAAAA,KAACW,EAAAA,GAAM,CAACwE,UAAU,SAASvE,QAASA,IA/D1BnE,iBACd+B,EAAAA,EAAAA,IACJ9B,EACAiG,EAAM7F,KAAKH,UACXgG,EAAM7F,KAAKF,UACX+F,EAAM7F,KAAKa,UACXgF,EAAM7F,KAAKc,MACXa,EACAC,EACD,EAsDmDgI,GAAgB3G,SAAC,iBAMjEC,EAAAA,EAAAA,KAAA,OAAKN,MAAO,CAAEc,aAAc,QAAST,UACnCC,EAAAA,EAAAA,KAAC2G,EAAAA,EAAK,CACJC,OAAQ,CAAEC,EAAG,KACbC,YAAY,EACZC,UAAQ,EACRC,QAASxD,EACTyD,WAAYpD,EACZ9C,KAAK,QACLrB,MAAO,CACLC,QAAS,MACTqB,MAAO,OAEPkG,UAAW,QACXC,SAAU,SACVC,IAAK,WAKT,G","sources":["Actions/Utility/Attendance/Attendance_Entry_Daywise.js","Components/datatable.js","Pages/Before_Exam/Attendance/ModifyThe_Att_Entry_Daywise.js"],"sourcesContent":["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 { Input, Button, Space } from \"antd\";\nimport { SearchOutlined } from \"@ant-design/icons\";\n\nexport const getColumnSearchProps = (dataIndex) => ({\n filterDropdown: ({\n setSelectedKeys,\n selectedKeys,\n confirm,\n clearFilters,\n close,\n }) => (\n <div\n style={{\n padding: 8,\n }}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <Input\n autoFocus\n placeholder={`Search ${dataIndex}`}\n value={selectedKeys}\n onChange={(e) =>\n setSelectedKeys(e.target.value ? [e.target.value] : [])\n }\n onPressEnter={() => {\n confirm();\n }}\n style={{\n marginBottom: 8,\n display: \"block\",\n }}\n />\n <Space>\n <Button\n type=\"primary\"\n onClick={() => confirm()}\n icon={<SearchOutlined />}\n size=\"small\"\n style={{\n width: 90,\n }}\n >\n Search\n </Button>\n <Button\n onClick={() => {\n clearFilters();\n confirm();\n }}\n size=\"small\"\n style={{\n width: 90,\n }}\n >\n Reset\n </Button>\n </Space>\n </div>\n ),\n filterIcon: (filtered) => (\n <SearchOutlined\n style={{\n color: filtered ? \"#CFFF8D\" : \"#fff\",\n }}\n />\n ),\n onFilter: (value, record) =>\n record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()),\n});\n\nexport const filterOption = (input, option) =>\n option.value.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0 ||\n option.label.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0;\n\nexport const sortWithAlphabets = (a, b, index) =>\n a[index].localeCompare(b[index]);\n","import React, { useEffect, useState } from \"react\";\nimport { Card, Button, Table, Space, Row, Col, Input } from \"antd\";\nimport { useParams, Link } from \"react-router-dom\";\nimport { connect, useDispatch } from \"react-redux\";\nimport {\n viewToModifyORDelete,\n toDelete,\n} from \"../../../Actions/Utility/Attendance/Attendance_Entry_Daywise\";\nimport moment from \"moment\";\nimport {\n getColumnSearchProps,\n sortWithAlphabets,\n} from \"../../../Components/datatable\";\nimport { DeleteOutlined } from \"@ant-design/icons\";\nconst ModifyThe_Att_Entry_Daywise = (props) => {\n const [update, setUpdate] = useState(\"\");\n const [teachfrom, setTeachfrom] = useState(\"\");\n const [teachto, setTeachto] = useState(\"\");\n const params = useParams();\n const dispatch = useDispatch();\n console.log(params);\n useEffect(() => {\n view2Data();\n setUpdate({ clsid: params.classid });\n }, []);\n\n const fromTeach = (e) => {\n setTeachfrom(e);\n console.log(e);\n };\n const torangeTeach = (e) => {\n setTeachto(e);\n console.log(e);\n };\n const view2Data = async () => {\n await viewToModifyORDelete(\n dispatch,\n props.user.fcollcode,\n props.user.funivcode,\n props.user.fusertype,\n props.user.fuser,\n teachfrom,\n teachto\n );\n };\n const deleteHandler = async (teachcode, clsId, period, fnoclass, fdate) => {\n await toDelete(\n props.user.fcollcode,\n teachcode,\n clsId,\n period,\n fnoclass,\n fdate\n );\n view2Data();\n };\n\n const deletecolumns = [\n {\n title: <label style={{ fontSize: \"12px\" }}>Sl. No</label>,\n dataIndex: \"slno\",\n align: \"center\",\n width: \"4%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Teacher Name</label>,\n dataIndex: \"name\",\n ...getColumnSearchProps(\"name\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"name\"),\n align: \"center\",\n width: \"15%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Class ID</label>,\n dataIndex: \"clsID\",\n ...getColumnSearchProps(\"clsID\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"clsID\"),\n align: \"center\",\n width: \"5%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Class Name</label>,\n dataIndex: \"clsname\",\n ...getColumnSearchProps(\"clsname\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"clsname\"),\n align: \"center\",\n width: \"10%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Date</label>,\n dataIndex: \"date\",\n ...getColumnSearchProps(\"date\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"date\"),\n align: \"center\",\n width: \"8%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Period</label>,\n dataIndex: \"period\",\n ...getColumnSearchProps(\"period\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"period\"),\n align: \"center\",\n width: \"5%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>No. Of Class</label>,\n dataIndex: \"noofcls\",\n ...getColumnSearchProps(\"noofcls\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"noofcls\"),\n align: \"center\",\n width: \"4%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Present</label>,\n dataIndex: \"present\",\n ...getColumnSearchProps(\"present\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"present\"),\n align: \"center\",\n width: \"5%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Absent</label>,\n dataIndex: \"absent\",\n ...getColumnSearchProps(\"absent\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"absent\"),\n align: \"center\",\n width: \"5%\",\n },\n {\n title: <label style={{ fontSize: \"12px\" }}>Delete</label>,\n dataIndex: \"delete\",\n ...getColumnSearchProps(\"delete\"),\n sorter: (a, b) => sortWithAlphabets(a, b, \"delete\"),\n align: \"center\",\n width: \"7%\",\n },\n ];\n const tableTodeletedata = props.viewToDeleteAtt.map((el, i) => ({\n key: i,\n slno: i + 1,\n name: el.fteach,\n clsID: el.fclassid,\n clsname: el.fclassname,\n date: moment(el.fdate).format(\"DD/MM/YYYY\"),\n period: el.fperiod,\n noofcls: el.fnoclass,\n present: el.pcnt,\n absent: el.acnt,\n delete: (\n <div>\n <Button\n className=\"save\"\n onClick={() =>\n deleteHandler(\n el.fteachcode,\n el.fclassid,\n el.fperiod,\n el.fnoclass,\n el.fdate\n )\n }\n >\n <DeleteOutlined />\n </Button>\n <Link\n to={{\n pathname: `/attendance-entry-daywise/${el.fclassid}/${el.fdate}/${el.fnoclass}/${el.fperiod}/${el.fteachcode}`,\n }}\n >\n <Button className=\"save\">Modify</Button>\n </Link>\n </div>\n ),\n }));\n\n const sortTeachcode = async () => {\n await viewToModifyORDelete(\n dispatch,\n props.user.fcollcode,\n props.user.funivcode,\n props.user.fusertype,\n props.user.fuser,\n teachfrom,\n teachto\n );\n };\n\n return (\n <div className=\"container-fluid\">\n <Card\n hoverable\n title=\"Modify Attendance Entry\"\n style={{ width: \"100%\" }}\n extra={\n <Space direction=\"horizontal\">\n <Link to=\"/attendance-entry-daywise\">\n <Button className=\"report\">Add</Button>\n </Link>\n <Link to=\"/\">\n <Button className=\"exit\">Exit</Button>\n </Link>\n </Space>\n }\n >\n <div style={{ marginBottom: \"20px\" }}>\n <Row style={{ marginBottom: \"10px\" }}>\n <Col span={3}>\n <label>Teacher Range:</label>\n </Col>\n <Col\n xs={12}\n sm={12}\n md={6}\n lg={4}\n xl={4}\n style={{ marginRight: \"10px\" }}\n >\n <Input\n type=\"text\"\n placeholder=\"0\"\n onChange={(e) => fromTeach(e.target.value)}\n ></Input>\n </Col>\n <Col\n xs={12}\n sm={12}\n md={6}\n lg={4}\n xl={4}\n style={{ marginLeft: \"10px\" }}\n >\n <Input\n type=\"text\"\n placeholder=\"z\"\n onChange={(e) => torangeTeach(e.target.value)}\n ></Input>\n </Col>\n <Col style={{ marginLeft: \"90px\" }}>\n <Button className=\"report\" onClick={() => sortTeachcode()}>\n View\n </Button>\n </Col>\n </Row>\n </div>\n <div style={{ marginBottom: \"20px\" }}>\n <Table\n scroll={{ y: 400 }}\n pagination={false}\n bordered\n columns={deletecolumns}\n dataSource={tableTodeletedata}\n size=\"small\"\n style={{\n padding: \"2px\",\n width: \"100%\",\n // marginLeft: \"10%\",\n marginTop: \"-10px\",\n position: \"sticky\",\n top: 1,\n }}\n />\n </div>\n </Card>\n </div>\n );\n};\nconst mapStateToProps = (state) => {\n console.log(\n state.modifysttEntryToDeleteReducer.modifyForAttEntry,\n \"hhsdvcuh\"\n );\n return {\n user: state.AuthReducer.userData,\n // teachData: state.getattEntryTeacherNameReducer.teachData,\n // classData: state.getattEntryClassNameReducer.classData,\n // view1Data: state.view1attEntryDataResucer.view1Data,\n viewToDeleteAtt: state.viewAttentryToDeleteReducer.viewToDeleteAtt,\n modifyForAttEntry: state.modifysttEntryToDeleteReducer.modifyForAttEntry,\n };\n};\nexport default connect(mapStateToProps)(ModifyThe_Att_Entry_Daywise);\n"],"names":["loading","value","type","load","getTeachName","async","dispatch","fcollcode","funivcode","usertype","user","axios","method","url","base_url","headers","then","res","data","error_code","payload","err","getclsNames","fusertype","fuser","teachcode","console","log","showView1Data","formdata","sort","post","saveAttendace","formData","Alert","msg","viewToModifyORDelete","teachfrom","teachto","toDelete","clsId","period","fnoclass","fdate","getColumnSearchProps","dataIndex","filterDropdown","_ref","setSelectedKeys","selectedKeys","confirm","clearFilters","close","_jsxs","style","padding","onKeyDown","e","stopPropagation","children","_jsx","Input","autoFocus","placeholder","concat","onChange","target","onPressEnter","marginBottom","display","Space","Button","onClick","icon","SearchOutlined","size","width","filterIcon","filtered","color","onFilter","record","toString","toLowerCase","includes","filterOption","input","option","indexOf","label","sortWithAlphabets","a","b","index","localeCompare","connect","state","modifysttEntryToDeleteReducer","modifyForAttEntry","AuthReducer","userData","viewToDeleteAtt","viewAttentryToDeleteReducer","props","update","setUpdate","useState","setTeachfrom","setTeachto","params","useParams","useDispatch","useEffect","view2Data","clsid","classid","deletecolumns","title","fontSize","align","sorter","tableTodeletedata","map","el","i","key","slno","name","fteach","clsID","fclassid","clsname","fclassname","date","moment","format","fperiod","noofcls","present","pcnt","absent","acnt","delete","className","deleteHandler","fteachcode","DeleteOutlined","Link","to","pathname","Card","hoverable","extra","direction","Row","Col","span","xs","sm","md","lg","xl","marginRight","fromTeach","marginLeft","torangeTeach","sortTeachcode","Table","scroll","y","pagination","bordered","columns","dataSource","marginTop","position","top"],"sourceRoot":""}
|