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 : 13.58.214.43
{"version":3,"sources":["pages/masters/Degree/degActionsScreen/editDegreeDetails.js"],"names":["_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","connect","state","user","degSemList","getDegSemList","degsem","showError","getDegSemDetForEdit","changeDegSem","saveDegSemDet","emptyDegSem","getNextDegree","props","_useState","useState","_useState2","_slicedToArray","edit","setEdit","_useState3","_useState4","open","setOpen","_useState5","_useState6","fdegree","setDegree","_useState7","_useState8","activeIndex","setActiveIndex","_useState9","_useState10","setDeg","_useState11","_useState12","setExam","useEffect","_initfn","_asyncToGenerator","_callee","_context","match","params","ifdegree","ifexamno","fdeggrp","degree_ref","current","focus","apply","arguments","initfn","handleChange","_ref","useRef","totsub_ref","handleSubmit","_ref2","_callee2","error","_error","_error2","_error3","_error4","_error5","_error6","_error7","_error8","_error9","_error10","_error11","_error12","_error13","_error14","_error15","_error16","_error17","_error18","_error19","_error20","_error21","_error22","_error23","_error24","_error25","_error26","_error27","_error28","_error29","_error30","_error31","_error32","_error33","_error34","_error35","_context2","FDEGREE","header","content","FDESCPN","FEXAMNO","FEXAMNAME","charCodeAt","FCMAXTERMS","FTOTSUB","FMINTOT","FTOTGRACE","FSUBGRPER","FSUBGRMARK","FGRACESUB","FNOVAL","FDEVPER","FAGGRMIN","FRANKATT","FFACULTY","FPERSET","FMCTYPE","FCOLLDEPT","FNOTERMS","FMAXTERMS","FMAXACTIVE","FMAXATT","FMAXAPP","parseInt","FNEXTEXAM","FSUBFAIL","wheight","wHeight","unique_deg","item","findIndex","x","fdescpn","deg_options","map","el","key","text","concat","graceRef","subfailRef","noval_ref","class_ref","initqp_ref","faculty_ref","regrefno_ref","checkValidation","target","deglist","filter","fnextexam","_ref3","_callee3","examno","data","_context3","fexamno","String","fromCharCode","document","createEvent","getSem","shiftTab","_ref4","_callee4","tab","_context4","t0","_x","panes","menuItem","render","React","createElement","Tab","Pane","SubjectDet","setTab","isValid","GraceMarksDetails","GeneralEligibility","Computation","ClassRankDetails","ClosingDetails","GeneralDetails","RegulationsDetails","handlers","GET_NEXT_DEGREE","GET_PREV_DEGREE","Fragment","HotKeys","keyMap","Card","fluid","Content","Header","style","display","as","className","Link","to","pathname","Button","basic","color","icon","onClick","Divider","Description","overflowY","height","Modal","maxHeight","width","onClose","closeOnDimmerClick","Form","Field","Dropdown","size","search","selection","onChange","placeholder","openOnFocus","options","selectOnBlur","searchInput","autoFocus","float","_callee5","degree","_context5","DegreeHeader","margin","padding","menu","attached","tabular","onTabChange","_ref6"],"mappings":"oXACAA,EAAA,kBAAAC,GAAA,IAAAC,EAAAD,EAAA,GAAAE,EAAAC,OAAAC,UAAAC,EAAAH,EAAAI,eAAAC,EAAAJ,OAAAK,gBAAA,SAAAP,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAO,OAAAC,EAAA,mBAAAC,cAAA,GAAAC,EAAAF,EAAAG,UAAA,aAAAC,EAAAJ,EAAAK,eAAA,kBAAAC,EAAAN,EAAAO,aAAA,yBAAAC,EAAAjB,EAAAD,EAAAE,GAAA,OAAAC,OA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AC7BiD,EAAML,oBAAoBkB,EAAS,KAAI,OAC7CH,GAAQ,GAEJqI,EAAO,CAAE/K,KAAM,UAAW1E,MAAOuU,GAC7BzE,SAASC,YAAY,cAC7B5G,EAAa5J,EAAGkQ,GAAM,yBAAA+E,EAAAjP,SAAA+O,MAExBrI,QAAQ,eAQlB0E,IAAAC,cAAC6D,IAAY,CACX1N,KAAMA,EACNI,KAAMA,EACNC,QAASA,EACTyB,WAAYA,EACZoI,QAAShC,KAEX0B,IAAAC,cAACmB,IAAI,CACHC,OAAK,EACLG,MAAO,CAAEuC,OAAQ,WAAYC,QAAS,OAAQtB,MAAO,QAErD1C,IAAAC,cAACC,IAAG,CACF+D,KAAM,CACJC,UAAU,EACVC,SAAS,EACTlC,MAAO,OACPN,UAAW,WAEb9B,MAAOA,GACP7I,YAAaA,EACboN,YAAa,SAACxV,EAACyV,GAAA,IAAIrN,EAAWqN,EAAXrN,YAAW,OAC5BC,EAAeD","file":"static/js/297.731686df.chunk.js","sourcesContent":["import React, { useState, useEffect, useRef } from \"react\";\r\nimport { HotKeys } from \"react-hotkeys\";\r\nimport FocusLock from \"react-focus-lock\";\r\nimport {\r\n Form,\r\n Card,\r\n Header,\r\n Button,\r\n Divider,\r\n Tab,\r\n Modal,\r\n Dropdown,\r\n} from \"semantic-ui-react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { showError } from \"../../../../actions\";\r\nimport {\r\n getDegSemDetForEdit,\r\n changeDegSem,\r\n saveDegSemDet,\r\n emptyDegSem,\r\n getDegSemList,\r\n getNextDegree,\r\n} from \"../../../../actions/masters/degSemList\";\r\nimport SubjectDet from \"./subjectDet\";\r\nimport GraceMarksDetails from \"./graceMarksDet\";\r\nimport GeneralEligibility from \"./generalEligibility\";\r\nimport ClosingDetails from \"./closingDet\";\r\nimport GeneralDetails from \"./generalDet\";\r\nimport RegulationsDetails from \"./regulations\";\r\nimport ClassRankDetails from \"./classRankDet\";\r\nimport Computation from \"./computationDet\";\r\nimport DegreeHeader from \"./degreeHeader\";\r\nimport { connect } from \"react-redux\";\r\nimport { wHeight } from \"../../../parms\";\r\n\r\nfunction EditDegreeDetails(props) {\r\n // state = { edit: false, open: false, dimmer: \"blurring\", fdegree: \"\" };\r\n const [edit, setEdit] = useState(false);\r\n const [open, setOpen] = useState(false);\r\n const [fdegree, setDegree] = useState(\"\");\r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const [degree, setDeg] = useState(\"\");\r\n const [examno, setExam] = useState(\"\");\r\n\r\n useEffect(() => {\r\n async function initfn() {\r\n await setDeg(props.match.params.ifdegree);\r\n await setExam(props.match.params.ifexamno);\r\n props.emptyDegSem();\r\n props.getDegSemList(props.user.fdeggrp);\r\n if (props.match.params.ifdegree !== \"degree\") {\r\n // call get degree sem details for edit action\r\n props.getDegSemDetForEdit(\r\n props.match.params.ifdegree,\r\n props.match.params.ifexamno\r\n );\r\n setEdit(true);\r\n } else {\r\n // setOpen(true);\r\n degree_ref.current.focus();\r\n }\r\n }\r\n initfn();\r\n }, [props.match.params.ifdegree, props.match.params.ifexamno]);\r\n\r\n // const inputGroupChangeHandler = (event) => {\r\n // setProjectGroupDetails((prevState) => ({\r\n // ...prevState,\r\n // [event.target.id]: event.target.value\r\n // }));\r\n // }\r\n\r\n const handleChange = (e, { name, value }) => {\r\n props.changeDegSem(name, value);\r\n };\r\n const degree_ref = useRef(null);\r\n const totsub_ref = useRef(null);\r\n\r\n const handleSubmit = async () => {\r\n if (props.degsem.FDEGREE == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Degree code!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FDESCPN == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Degree description!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FEXAMNO == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Exam no.!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FEXAMNAME == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Exam description!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n props.degsem.FEXAMNAME !== \"\" &&\r\n props.degsem.FEXAMNAME.charCodeAt(0) <= props.degsem.FEXAMNO.charCodeAt(0)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Next exam should be greater than current exam.\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FCMAXTERMS == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. terms allowed for course completion!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FTOTSUB == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter No. of subjects!\",\r\n };\r\n await setActiveIndex(0);\r\n totsub_ref.current.focus();\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMINTOT == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Min. no. of subjects to pass!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FTOTGRACE == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. grace marks!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FSUBGRPER == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. grace marks for the subject (in %)!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FSUBGRMARK == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. grace marks for the subject (in nos)!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FGRACESUB == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. graced subjects allowed!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n // if (props.degsem.FBLKPASS == \"\") {\r\n // const error = {\r\n // header: \"Error\",\r\n // content: \"Enter Block range to pass!\",\r\n // };\r\n // props.showError(error);\r\n // return;\r\n // }\r\n\r\n if (props.degsem.FNOVAL == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter No. of valuations!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FDEVPER == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Deviation %\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FAGGRMIN == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter AGGREGATE MIN. IN %\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FRANKATT == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. attempts for Rank!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FFACULTY == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Faculty code!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FPERSET == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Codes per set!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMCTYPE == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Marks card type!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FCOLLDEPT == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter College / Department!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FNOTERMS == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter No. of terms for the exam!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMAXTERMS == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. terms allowed!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMAXACTIVE == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. active terms allowed!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMAXATT == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. attempts allowed!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FMAXAPP == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Max. appearance allowed!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n // FMAXATT\tmaxatt\tMax. attempts allowed\r\n // FMAXAPP\tmaxapp\tMax. appearance allowed\r\n if (props.degsem.FTOTSUB < 1 || props.degsem.FTOTSUB > 99) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Total subjects should be between 1 and 99\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n if (props.degsem.FMINTOT > props.degsem.FTOTSUB) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Min. to pass should be less than or equal to total subjects\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FTOTGRACE < 1 || props.degsem.FTOTGRACE > 99) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Max.grace allowed has to be between 1 and 99\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (parseInt(props.degsem.FSUBGRMARK) > parseInt(props.degsem.FTOTGRACE)) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max.grace marks per subject has to be between 1 and max.grace marks allowed\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FGRACESUB < 1 || props.degsem.FGRACESUB > 99) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Max.grace subjects allowed has to be between 1 and 99\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FNEXTEXAM == \"\" && props.degsem.FSUBFAIL > 0) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Total failed subjects should not be greater than 0 for final exam\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n if (!(props.degsem.FRANKATT > 0)) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Rank attempts has to be greater than 0\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (props.degsem.FNOVAL < 1 || props.degsem.FNOVAL > 5) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"No. of valuation should be less than or equal to 5.\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n props.degsem.FNOTERMS < 1 ||\r\n parseInt(props.degsem.FNOTERMS) > parseInt(props.degsem.FCMAXTERMS)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"No. of terms has to be greater than 0 and less than or equal to Max. terms to complete the course\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n props.degsem.FMAXTERMS < 1 ||\r\n parseInt(props.degsem.FMAXTERMS) > parseInt(props.degsem.FCMAXTERMS)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max. terms has to be greater than 0 and less than or equal to Max. terms to complete the course\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n props.degsem.FMAXACTIVE < 1 ||\r\n parseInt(props.degsem.FMAXACTIVE) > parseInt(props.degsem.FMAXTERMS)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max. active terms should be less than or equal to Max. terms.\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n props.saveDegSemDet();\r\n };\r\n\r\n const wheight = wHeight();\r\n\r\n let unique_deg = [];\r\n props.degSemList.forEach(function (item) {\r\n var i = unique_deg.findIndex((x) => x.fdegree == item.fdegree);\r\n if (i <= -1) {\r\n unique_deg.push({ fdegree: item.fdegree, fdescpn: item.fdescpn });\r\n }\r\n });\r\n\r\n var deg_options = unique_deg.map((el, i) => {\r\n return {\r\n key: i,\r\n value: el.fdegree,\r\n text: `${el.fdegree} - ${el.fdescpn}`,\r\n };\r\n });\r\n const graceRef = useRef(null);\r\n const subfailRef = useRef(null);\r\n const noval_ref = useRef(null);\r\n const class_ref = useRef(null);\r\n const initqp_ref = useRef(null);\r\n const faculty_ref = useRef(null);\r\n const regrefno_ref = useRef(null);\r\n\r\n const checkValidation = (e) => {\r\n if (e.target.name == \"FDEGREE\") {\r\n if (e.target.value == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Enter Degree Code.\",\r\n };\r\n props.showError(error);\r\n degree_ref.current.focus();\r\n return;\r\n }\r\n let deglist = props.degSemList.filter(\r\n (el) => el.fdegree == e.target.value\r\n );\r\n let alldeg = deglist.filter((el) => el.fnextexam == \"\");\r\n if (alldeg.length > 0) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"All exams for this degree already defined.\",\r\n };\r\n props.showError(error);\r\n degree_ref.current.focus();\r\n return;\r\n } else if (deglist.length > 0) {\r\n const getSem = async () => {\r\n await props.getDegSemDetForEdit(\r\n deglist[0].fdegree,\r\n deglist[0].fexamno\r\n );\r\n let examno = deglist[deglist.length - 1].fexamno;\r\n\r\n let data = {\r\n name: \"FEXAMNO\",\r\n value: String.fromCharCode(examno.charCodeAt(0) + 1),\r\n };\r\n let e = document.createEvent(\"MouseEvent\");\r\n handleChange(e, data);\r\n data = {\r\n name: \"FNEXTEXAM\",\r\n value: String.fromCharCode(examno.charCodeAt(0) + 2),\r\n };\r\n handleChange(e, data);\r\n };\r\n getSem();\r\n } else {\r\n setOpen(true);\r\n }\r\n }\r\n\r\n if (\r\n e.target.name == \"FNEXTEXAM\" &&\r\n e.target.value !== \"\" &&\r\n e.target.value.charCodeAt(0) <= props.degsem.FEXAMNO.charCodeAt(0)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Next exam should be greater than current exam.\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n e.target.name == \"FMINTOT\" &&\r\n parseInt(e.target.value) > parseInt(props.degsem.FTOTSUB)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Min. to pass should be less than or equal to total subjects\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n\r\n if (\r\n e.target.name == \"FTOTGRACE\" &&\r\n (e.target.value < 1 || e.target.value > 99)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Max.grace allowed has to be between 1 and 99\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FSUBGRMARK\" &&\r\n parseInt(e.target.value) > parseInt(props.degsem.FTOTGRACE)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max.grace marks per subject has to be between 1 and max.grace marks allowed\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FGRACESUB\" &&\r\n (e.target.value < 1 || e.target.value > 99)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Max.grace subjects allowed has to be between 1 and 99\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FSUBFAIL\" &&\r\n props.degsem.FNEXTEXAM == \"\" &&\r\n e.target.value > 0\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Total failed subjects should not be greater than 0 for final exam\",\r\n };\r\n props.showError(error);\r\n }\r\n if (e.target.name == \"FRANKATT\" && !(e.target.value > 0)) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Rank attempts has to be greater than 0\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FNOVAL\" &&\r\n (e.target.value < 1 || e.target.value > 5)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content: \"No. of valuation should be less than or equal to 5.\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FNOTERMS\" &&\r\n (e.target.value < 1 ||\r\n parseInt(e.target.value) > parseInt(props.degsem.FCMAXTERMS))\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"No. of terms has to be greater than 0 and less than or equal to Max. terms to complete the course\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FMAXTERMS\" &&\r\n (e.target.value < 1 || e.target.value > props.degsem.FCMAXTERMS)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max. terms has to be greater than 0 and less than or equal to Max. terms to complete the course\",\r\n };\r\n props.showError(error);\r\n }\r\n\r\n if (\r\n e.target.name == \"FMAXACTIVE\" &&\r\n (e.target.value < 1 || e.target.value > props.degsem.FMAXTERMS)\r\n ) {\r\n const error = {\r\n header: \"Error\",\r\n content:\r\n \"Max. active terms should be less than or equal to Max. terms.\",\r\n };\r\n props.showError(error);\r\n }\r\n };\r\n\r\n // const subfail_ref = useRef(null);\r\n // const noval_ref = useRef(null);\r\n // const class_ref = useRef(null);\r\n // const initqp_ref = useRef(null);\r\n // const faculty_ref = useRef(null);\r\n // const regrefno_ref = useRef(null);\r\n\r\n const shiftTab = async (tab) => {\r\n await setActiveIndex(tab);\r\n switch (tab) {\r\n case 0:\r\n totsub_ref.current.focus();\r\n break;\r\n case 1:\r\n graceRef.current.focus();\r\n break;\r\n case 2:\r\n subfailRef.current.focus();\r\n break;\r\n case 3:\r\n noval_ref.current.focus();\r\n break;\r\n case 4:\r\n class_ref.current.focus();\r\n break;\r\n case 6:\r\n faculty_ref.current.focus();\r\n break;\r\n case 7:\r\n regrefno_ref.current.focus();\r\n break;\r\n }\r\n };\r\n\r\n const panes = [\r\n {\r\n menuItem: \"Subjects\",\r\n render: () => (\r\n <Tab.Pane>\r\n <SubjectDet\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n totsub_ref={totsub_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"Gracing\",\r\n render: () => (\r\n <Tab.Pane>\r\n <GraceMarksDetails\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n graceRef={graceRef}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"General Eligibility\",\r\n render: () => (\r\n <Tab.Pane>\r\n <GeneralEligibility\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n subfailRef={subfailRef}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"Computation\",\r\n render: () => (\r\n <Tab.Pane>\r\n <Computation\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n noval_ref={noval_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"Class / Rank\",\r\n render: () => (\r\n <Tab.Pane>\r\n <ClassRankDetails\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n class_ref={class_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"Closing\",\r\n render: () => (\r\n <Tab.Pane>\r\n <ClosingDetails\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n initqp_ref={initqp_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"General\",\r\n render: () => (\r\n <Tab.Pane>\r\n <GeneralDetails\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n faculty_ref={faculty_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n {\r\n menuItem: \"Regulations\",\r\n render: () => (\r\n <Tab.Pane>\r\n <RegulationsDetails\r\n setTab={setActiveIndex}\r\n isValid={checkValidation}\r\n regrefno_ref={regrefno_ref}\r\n shiftTab={shiftTab}\r\n />\r\n </Tab.Pane>\r\n ),\r\n },\r\n ];\r\n\r\n const getnextdeg = () => {\r\n const idx = props.degSemList.findIndex(\r\n (el) =>\r\n el.fdegree == props.degsem.FDEGREE && el.fexamno == props.degsem.FEXAMNO\r\n );\r\n if (idx >= 0) {\r\n const next = props.degSemList[idx + 1];\r\n props.getDegSemDetForEdit(next.fdegree, next.fexamno);\r\n }\r\n };\r\n const handlers = {\r\n GET_NEXT_DEGREE: () => {\r\n props.getNextDegree(\"NEXT\");\r\n },\r\n GET_PREV_DEGREE: () => {\r\n props.getNextDegree(\"PREV\");\r\n },\r\n };\r\n\r\n return (\r\n <>\r\n <HotKeys\r\n keyMap={{ GET_NEXT_DEGREE: \"f3\", GET_PREV_DEGREE: \"f2\" }}\r\n handlers={handlers}\r\n >\r\n <Card fluid>\r\n <Card.Content>\r\n <Card.Header style={{ display: \"flex\" }}>\r\n <Header as=\"h3\">Edit Degree Details</Header>\r\n\r\n <div className=\"ml-auto\">\r\n <Link\r\n to={{\r\n pathname: \"/masters/degreeActionsScreen\",\r\n }}\r\n >\r\n <Button basic color=\"blue\" content=\"Back\" icon=\"arrow left\" />\r\n </Link>\r\n <Button\r\n basic\r\n color=\"green\"\r\n icon=\"save\"\r\n onClick={handleSubmit}\r\n content=\"Save\"\r\n />\r\n <Link to=\"/dashboard\">\r\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\r\n </Link>\r\n </div>\r\n </Card.Header>\r\n <Divider />\r\n <Card.Description\r\n style={{\r\n overflowY: \"auto\",\r\n height: `${wheight}px`,\r\n }}\r\n >\r\n <Modal\r\n style={{ maxHeight: \"35%\", width: \"35%\" }}\r\n open={open}\r\n onClose={() => setOpen(false)}\r\n closeOnDimmerClick={false}\r\n >\r\n <Modal.Header style={{ display: \"flex\" }}>\r\n Select Equivalent Degree\r\n </Modal.Header>\r\n\r\n <Modal.Content style={{ height: \"50vh\", overflowY: \"auto\" }}>\r\n {/* <FocusLock> */}\r\n <Form>\r\n <Form.Field>\r\n <label>Degree</label>\r\n <Dropdown\r\n size=\"mini\"\r\n className=\"modal1\"\r\n fluid\r\n search\r\n selection\r\n value={fdegree}\r\n onChange={(e, data) => {\r\n setDegree(data.value);\r\n }}\r\n placeholder=\"Select Degree Group\"\r\n openOnFocus={false}\r\n options={deg_options}\r\n selectOnBlur={false}\r\n searchInput={{ autoFocus: true }}\r\n />\r\n </Form.Field>\r\n <Form.Field>\r\n <Button\r\n style={{ float: \"right\" }}\r\n color=\"blue\"\r\n onClick={async () => {\r\n if (fdegree == \"\") {\r\n const error = {\r\n header: \"Error\",\r\n content: \"Select Degree ...!\",\r\n };\r\n props.showError(error);\r\n return;\r\n }\r\n const degree = props.degsem.FDEGREE;\r\n await props.getDegSemDetForEdit(fdegree, \"A\");\r\n setOpen(false);\r\n // degree_ref.current.focus();\r\n let data = { name: \"FDEGREE\", value: degree };\r\n let e = document.createEvent(\"MouseEvent\");\r\n handleChange(e, data);\r\n }}\r\n content=\"Submit\"\r\n />\r\n </Form.Field>\r\n </Form>\r\n {/* </FocusLock> */}\r\n </Modal.Content>\r\n </Modal>\r\n {/* <FocusLock persistentFocus={false}> */}\r\n <DegreeHeader\r\n edit={edit}\r\n open={open}\r\n setOpen={setOpen}\r\n degree_ref={degree_ref}\r\n isValid={checkValidation}\r\n />\r\n <Card\r\n fluid\r\n style={{ margin: \"5px auto\", padding: \"10px\", width: \"98%\" }}\r\n >\r\n <Tab\r\n menu={{\r\n attached: true,\r\n tabular: true,\r\n color: \"blue\",\r\n className: \"wrapped\",\r\n }}\r\n panes={panes}\r\n activeIndex={activeIndex}\r\n onTabChange={(e, { activeIndex }) =>\r\n setActiveIndex(activeIndex)\r\n }\r\n />\r\n </Card>\r\n {/* </FocusLock> */}\r\n </Card.Description>\r\n </Card.Content>\r\n </Card>\r\n </HotKeys>\r\n </>\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n user: state.user,\r\n degSemList: state.getDegSemList,\r\n degsem: state.degsem,\r\n };\r\n};\r\nexport default connect(mapStateToProps, {\r\n showError,\r\n getDegSemDetForEdit,\r\n changeDegSem,\r\n saveDegSemDet,\r\n emptyDegSem,\r\n getDegSemList,\r\n getNextDegree,\r\n})(EditDegreeDetails);\r\n"],"sourceRoot":""}
|