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IC,GAAI,EAAGC,GAAI,EAAEnB,UACxCF,EAAAA,EAAAA,KAACsB,EAAAA,EAAM,CACLC,YAAU,EACVC,YAAY,SACZlB,MAAO,CAAEC,MAAO,QAChB7C,MAAOZ,EACP2E,QAASzD,EACT0D,SAAWzC,GAAMQ,EAAYR,WAKnCe,EAAAA,EAAAA,KAACc,EAAAA,EAAG,CAACR,MAAO,CAAEO,aAAc,QAASX,UACnCF,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACT,MAAO,CAAEqB,WAAY,SAAUzB,UAClCF,EAAAA,EAAAA,KAACW,EAAAA,GAAM,CAACV,UAAU,OAAO2B,QAASA,IAAMlC,IAAkBQ,SAAC,uBASzE,G","sources":["Pages/Before_Exam/Attendance/DegreeWise_IA_Report.js","Actions/Utility/Attendance/DegreeWise_IA_Report.js"],"sourcesContent":["import { Card, Space, Button, Row, Col, Select, Input } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\n// import { getSecAndSub } from \"../../../Actions/Before_Exam/Add_Stud_To_Cls\";\nimport {\n getTestdata,\n getdegreeIAreport,\n getDegree,\n getSemester,\n getSecAndSub,\n getSubElement,\n} from \"../../../Actions/Utility/Attendance/DegreeWise_IA_Report\";\nimport { connect, useDispatch } from \"react-redux\";\nfunction DegreeWise_IA_Report(props) {\n const [degree, setDegree] = useState(\"\");\n const [sem, setSem] = useState(\"\");\n const [sub, setSub] = useState(\"\");\n const [test, setTest] = useState(\"\");\n const [element, setElement] = useState(\"\");\n const [eleData, setEleData] = useState([]);\n\n const dispatch = useDispatch();\n\n useEffect(() => {\n getDegrees();\n degreeHandler();\n }, []);\n\n const degreeOpt = [\n { value: \"select\", label: \"---Select Degree---\" },\n ...props.degreeData,\n ];\n\n const semOpt = [{ value: \"select\", label: \"---select---\" }, ...props.semData];\n const subOpt = [{ value: \"select\", label: \"---select---\" }, ...props.subData];\n const eleOpt = [\n { key: \"select\", value: \"select\", label: \"---select---\" },\n ...props.subAttData,\n ];\n\n const testOpt = [\n { value: \"select\", label: \"---Select---\" },\n ...props.testData,\n ];\n\n const getDegrees = async () => {\n await getDegree(dispatch, props.user.fcollcode);\n degreeHandler();\n };\n const degreeHandler = async (e) => {\n await getSemester(dispatch, props.user.fcollcode, e);\n setDegree(e);\n semHandler();\n };\n const semHandler = async (e) => {\n setSem(e);\n\n await getSecAndSub(dispatch, props.user.fcollcode, degree, e);\n subHandler();\n };\n\n const subHandler = async (e) => {\n setSub(e);\n await getSubElement(dispatch, degree, sem, e);\n setEleData(props.subAttData);\n elementHandler();\n };\n\n const elementHandler = async (e) => {\n setElement(e);\n await getTestdata(\n dispatch,\n props.user.fcollcode,\n props.user.funivcode,\n degree,\n sem,\n sub,\n e\n );\n testHandler();\n };\n\n const testHandler = async (e) => {\n setTest(e);\n };\n\n const generateHandler = async () => {\n await getdegreeIAreport(\n props.user.fcollcode,\n props.user.funivcode,\n degree,\n sem,\n sub,\n test,\n element\n );\n };\n\n return (\n <div className=\"container-fluid\">\n <Card\n hoverable\n title=\"DegreeWise IA Report\"\n style={{ width: \"100%\" }}\n extra={\n <Space direction=\"horizontal\">\n <Button className=\"exit\">Exit</Button>\n </Space>\n }\n >\n <div style={{ marginBottom: \"20px\" }}>\n <Row style={{ marginBottom: \"10px\" }}>\n <Col span={2}>\n <label>Degree</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={degree}\n options={degreeOpt}\n onChange={(e) => degreeHandler(e)}\n ></Select>\n </Col>\n <Col span={2} style={{ marginLeft: \"80px\" }}>\n <label>Exam No</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={sem}\n options={semOpt}\n onChange={(e) => semHandler(e)}\n ></Select>\n </Col>\n </Row>\n\n <Row style={{ marginBottom: \"10px\" }}>\n <Col span={2}>\n <label>subject</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={sub}\n options={subOpt}\n onChange={(e) => subHandler(e)}\n ></Select>\n </Col>\n <Col span={2} style={{ marginLeft: \"80px\" }}>\n <label>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={element}\n options={eleOpt}\n onChange={(e) => elementHandler(e)}\n ></Select>\n </Col>\n </Row>\n <Row style={{ marginBottom: \"10px\" }}>\n <Col span={2}>\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={testOpt}\n onChange={(e) => testHandler(e)}\n ></Select>\n </Col>\n </Row>\n\n <Row style={{ marginBottom: \"10px\" }}>\n <Col style={{ marginLeft: \"100px\" }}>\n <Button className=\"save\" onClick={() => generateHandler()}>\n Generate\n </Button>\n </Col>\n </Row>\n </div>\n </Card>\n </div>\n );\n}\nconst mapStateToProps = (state) => {\n console.log(state.subElementAttReducer.subeleAttData, \"state\");\n return {\n user: state.AuthReducer.userData,\n degreeData: state.degreeAttReducer.degreeAttData,\n semData: state.semAttReducer.semAttData,\n subData: state.subAttReducer.subAttData,\n subAttData: state.subElementAttReducer.subeleAttData,\n testData: state.testReducer.testData,\n };\n};\nexport default connect(mapStateToProps)(DegreeWise_IA_Report);\n","import { base_url } from \"../../../Components/consts/api\";\nimport axios from \"axios\";\nexport const getDegree = async (dispatch, fcollcode) => {\n try {\n await axios({\n method: \"GET\",\n url: base_url + \"GetDegreeForAttendanceReport\" + \"&collcode=\" + fcollcode,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n if (res.data.error_code == 0) {\n dispatch({ type: \"GET_DEGREE_ATTENDANCE\", payload: res.data.data });\n } else {\n dispatch({ type: \"CLEAR_DATA\", payload: [] });\n }\n });\n } catch (err) {}\n};\n\nexport const getSemester = async (dispatch, fcollcode, degree) => {\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"GetSemForAttendanceReport\" +\n \"&collcode=\" +\n fcollcode +\n \"°ree=\" +\n degree,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n if (res.data.error_code == 0) {\n dispatch({ type: \"GET_SEM_ATTENDANCE\", payload: res.data.data });\n } else {\n dispatch({ type: \"CLEAR_DATA\", payload: [] });\n }\n });\n } catch (err) {}\n};\n\nexport const getSecAndSub = async (dispatch, fcollcode, degree, sem) => {\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"getsubforIAreport\" +\n \"&collcode=\" +\n fcollcode +\n \"°ree=\" +\n degree +\n \"&sem=\" +\n sem,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n console.log(res, \"hi\");\n if (res.data.error_code == 0) {\n dispatch({ type: \"GET_SUB_ATTENDANCE\", payload: res.data.data });\n } else {\n dispatch({ type: \"CLEAR_DATA\", payload: [] });\n }\n });\n } catch (err) {}\n};\n\nexport const getSubElement = async (dispatch, degree, sem, sub) => {\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"getsubElementforIAreport\" +\n \"°ree=\" +\n degree +\n \"&sem=\" +\n sem +\n \"&sub=\" +\n sub,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n console.log(res, \"res\");\n if (res.data.error_code == 0) {\n dispatch({ type: \"GET_ELEMENT_ATTENDANCE\", payload: res.data.data });\n } else {\n dispatch({ type: \"CLEAR_DATA\", payload: [] });\n }\n });\n } catch (err) {}\n};\n\nexport const getTestdata = async (\n dispatch,\n fcollcode,\n funivcode,\n degree,\n sem,\n sub,\n element\n) => {\n console.log(fcollcode, funivcode, degree, sem, sub, element, \"elememt\");\n try {\n await axios({\n method: \"GET\",\n url:\n base_url +\n \"testforIAreport\" +\n \"&collcode=\" +\n fcollcode +\n \"&univcode=\" +\n funivcode +\n \"°ree=\" +\n degree +\n \"&sem=\" +\n sem +\n \"&sub=\" +\n sub +\n \"&element=\" +\n element,\n headers: { \"Content-Type\": \"application/json\" },\n }).then((res) => {\n if (res.data.error_code == 0) {\n console.log(\"anita\");\n dispatch({ type: \"GETTEST\", payload: res.data.data });\n } else {\n dispatch({ type: \"CLEAR_DATA\", payload: [] });\n }\n });\n } catch (err) {}\n};\n\nexport const getdegreeIAreport = (\n collcode,\n univcode,\n degree,\n sem,\n sub,\n test,\n element\n) => {\n window.open(\n base_url +\n \"iaMarksDegwiseReport\" +\n \"&collcode=\" +\n collcode +\n \"&univcode=\" +\n univcode +\n \"°ree=\" +\n degree +\n \"&sem=\" +\n sem +\n \"&sub=\" +\n sub +\n \"&test=\" +\n test +\n \"&element=\" +\n element\n );\n};\n"],"names":["connect","state","console","log","subElementAttReducer","subeleAttData","user","AuthReducer","userData","degreeData","degreeAttReducer","degreeAttData","semData","semAttReducer","semAttData","subData","subAttReducer","subAttData","testData","testReducer","props","degree","setDegree","useState","sem","setSem","sub","setSub","test","setTest","element","setElement","eleData","setEleData","dispatch","useDispatch","useEffect","getDegrees","degreeHandler","degreeOpt","value","label","semOpt","subOpt","eleOpt","key","testOpt","async","fcollcode","axios","method","url","base_url","headers","then","res","data","error_code","type","payload","err","getDegree","getSemester","e","semHandler","getSecAndSub","subHandler","getSubElement","elementHandler","funivcode","getTestdata","testHandler","generateHandler","getdegreeIAreport","collcode","univcode","window","open","_jsx","className","children","Card","hoverable","title","style","width","extra","Space","direction","Button","_jsxs","marginBottom","Row","Col","span","xs","sm","md","lg","xl","Select","showSearch","placeholder","options","onChange","marginLeft","onClick"],"sourceRoot":""}
|