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.119.117.77


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/629.7d583be5.chunk.js

"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[629],{64894:(e,t,a)=>{a.d(t,{FA:()=>l,Ob:()=>x,UP:()=>m,_B:()=>o,aR:()=>p,b1:()=>i,kK:()=>u,ot:()=>E,sK:()=>d,v4:()=>h});var r=a(86213),n=a(150),s=a(15355);const l=async(e,t,a,l)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+"getdegreeNames&collcode="+t+"&fusertype="+a+"&fuserid="+l}).then((t=>{if(0!=t.data.error_code)return e({type:"CLEAR_BATCH_PREPRATION",payload:[]}),void(0,s.F)(t.data.data.msg);e({type:"BATCH_PREPRATION",payload:t.data.data})}))}catch(i){e(c(!1)),(0,s.F)(i)}},c=e=>({type:"LOADING",load:e}),i=async(e,t)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+"getExamNo&fdegree="+t}).then((t=>{if(0!=t.data.error_code)return e({type:"CLEAR_BATCH_EXAM",payload:[]}),void(0,s.F)(t.data.data.msg);e({type:"BATCH_EXAM",payload:t.data.data})}))}catch(a){e(c(!1)),(0,s.F)(a)}},o=async(e,t,a,l,i,o)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+"getSubjCodeDet&fdegree="+t+"&fexmNo="+a+"&fcollcode="+l+"&fusertype="+i+"&userID="+o}).then((t=>{if(0!=t.data.error_code)return e({type:"CLEAR_SUBJ_CODE",payload:[]}),void(0,s.F)(t.data.data.msg);e({type:"SUBJ_CODE",payload:t.data.data})}))}catch(d){e(c(!1)),(0,s.F)(d)}},d=async(e,t,a,l,i)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+"getVivaSubDetail&fdegree="+t+"&fexmNo="+a+"&fcollcode="+l+"&fsubcode="+i}).then((t=>0==t.data.error_code?void e({type:"VIVA_SUB",payload:t.data.data}):void e({type:"CLEAR_VIVA_SUB",payload:[]})))}catch(o){e(c(!1)),(0,s.F)(o)}},h=async(e,t,a,l,i,o,d,h,p,E,u,m)=>{let x="";"batch"==E?x="GetBatchWiseRegNos":"entry"==E&&(x="GetPracticalMarksRegNos"),e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+x+"&fdegree="+t+"&fexmNo="+a+"&subVal="+l+"&stdPerBt="+i+"&startBat="+o+"&fcollcode="+d+"&fusertype="+h+"&fteachcode="+p+"&batchNo="+u+"&vivaSubVal="+m}).then((t=>{if(0!=t.data.error_code)return e({type:"CLEAR_BATCH_REGNO",payload:[]}),void(0,s.F)(t.data.data.msg);e({type:"BATCH_REGNO",payload:t.data.data})}))}catch(y){e(c(!1)),(0,s.F)(y)}},p=async(e,t,a)=>{let l="";"batch"==a?l="saveBatchWiseData":"entry"==a&&(l="savePractMarks"),e(c(!0));try{await r.A.post(n.A+l,t).then((t=>{if(0!==t.data.error_code)return(0,s.F)(t.data.data.msg),void e(c(!1));(0,s.F)(t.data.data.msg),e(c(!1))}))}catch(i){e(c(!1)),(0,s.F)(i)}},E=async(e,t,a,l,i,o)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:n.A+"getPrctEntrFrzeDet&fdegree="+t+"&fexmNo="+a+"&subVal="+l+"&fcollcode="+i+"&fusertype="+o}).then((t=>{if(0!=t.data.error_code)return e({type:"CLEAR_PRCT_FRZE_DET",payload:[]}),void(0,s.F)(t.data.data.msg);e({type:"PRCT_FRZE_DET",payload:t.data.data})}))}catch(d){e(c(!1)),(0,s.F)(d)}},u=async(e,t)=>{e(c(!0));try{await r.A.post(n.A+"FreezePracticalMaks",t).then((t=>{if(0!==t.data.error_code)return(0,s.F)(t.data.data.msg),void e(c(!1));(0,s.F)(t.data.data.msg),e(c(!1))}))}catch(a){e(c(!1)),(0,s.F)(a)}},m=async(e,t,a,r,s,l,c)=>{let i="";"BatchReport"==l?i="GenerateBatchSetupDetails":"WorkSheet"==l?i="GenerateBatchWorkSheets":"InvigilatorDairy"==l&&(i="GenerateAttendanceSheets"),window.open(n.A+i+"&collcode="+c+"&frmBatch="+e+"&toBatch="+t+"&fdegree="+a+"&exmval="+r+"&subVal="+s)},x=async(e,t,a,r,s)=>{window.open(n.A+"Generatetopsheet&fcollcode="+s+"&batchTo="+r+"&batchFrm="+a+"&fdegree="+e+"&exmval="+t)}},10925:(e,t,a)=>{a.d(t,{NS:()=>i,Pe:()=>d,Yg:()=>o});var r=a(15444),n=a(6051),s=a(87021),l=a(62058),c=a(70579);const i=e=>({filterDropdown:t=>{let{setSelectedKeys:a,selectedKeys:i,confirm:o,clearFilters:d,close:h}=t;return(0,c.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,c.jsx)(r.A,{autoFocus:!0,placeholder:"Search ".concat(e),value:i,onChange:e=>a(e.target.value?[e.target.value]:[]),onPressEnter:()=>{o()},style:{marginBottom:8,display:"block"}}),(0,c.jsxs)(n.A,{children:[(0,c.jsx)(s.Ay,{type:"primary",onClick:()=>o(),icon:(0,c.jsx)(l.A,{}),size:"small",style:{width:90},children:"Search"}),(0,c.jsx)(s.Ay,{onClick:()=>{d(),o()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,c.jsx)(l.A,{style:{color:e?"#CFFF8D":"#fff"}}),onFilter:(t,a)=>a[e].toString().toLowerCase().includes(t.toLowerCase())}),o=(e,t)=>t.value.toString().toLowerCase().indexOf(e.toLowerCase())>=0||t.label.toString().toLowerCase().indexOf(e.toLowerCase())>=0,d=(e,t,a)=>e[a].localeCompare(t[a])},21010:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var r=a(65043),n=a(15444),s=a(95010),l=a(32513),c=a(5397),i=a(6051),o=a(87021),d=a(79672),h=a(14647),p=a(70170),E=a(83003),u=a(64894),m=a(10925),x=a(62918),y=a(70579);const A=e=>{let{open:t,Generate:a,cancel:l}=e;const[c,i]=(0,r.useState)(!1),[o,p]=(0,r.useState)("0"),[E,u]=(0,r.useState)("z"),[m,A]=(0,r.useState)("");return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(x.A,{title:"Report Type",centered:!0,open:t,onOk:()=>a(o,E,m),onCancel:l,okText:"Generate",children:[(0,y.jsx)(d.A,{gutter:16,children:(0,y.jsx)(h.A,{span:8,children:(0,y.jsx)(s.A,{options:[{key:"Batch Report",value:"BatchReport",text:"Batch Report"},{key:"Work Sheet",value:"WorkSheet",text:"Work Sheet"},{key:"Invigilator Dairy",value:"InvigilatorDairy",text:"Invigilator Dairy"}],style:{width:"100%"},value:m,onChange:e=>A(e)})})}),(0,y.jsxs)(d.A,{gutter:20,children:[(0,y.jsxs)(h.A,{span:8,children:[(0,y.jsx)("label",{children:"From Batch"}),(0,y.jsx)(n.A,{type:"text",value:o,onChange:e=>p(e.target.value)})]}),(0,y.jsxs)(h.A,{span:8,children:[(0,y.jsx)("label",{children:"To Batch"}),(0,y.jsx)(n.A,{type:"text",value:E,onChange:e=>u(e.target.value)})]})]})]})})};var f=a(73216),F=a(15355),g=a(150);const b=(0,E.Ng)((e=>({user:e.AuthReducer.userData,loading:e.degreeReducer.loading,degreeData:e.pradegree.degreeData,examDet:e.examDetl.examDetails,subDet:e.subjCode.subjCode,fzetimtb:e.frztmetab.batchwisetmetb.batchwsetme,teachcode:e.frztmetab.batchwisetmetb.teachcode})))((e=>{const t=(0,E.wA)();let a=(0,f.zy)();const[x,b]=(0,r.useState)(""),[C,w]=(0,r.useState)(""),[D,v]=(0,r.useState)(""),[S,j]=(0,r.useState)(""),[T,k]=(0,r.useState)(""),[R,B]=(0,r.useState)([]),[_,N]=(0,r.useState)([]),[z,M]=(0,r.useState)(!1),[P,O]=(0,r.useState)([]),[G,I]=(0,r.useState)(!1),[H,X]=(0,r.useState)(""),[U,L]=(0,r.useState)(""),[Z,V]=(0,r.useState)("");(0,r.useEffect)((()=>{M(!1);let r=a.pathname.split("/");X(r[2]),"timeTab"==r[2]?L("Batch Wise Time Table"):"prFreez"==r[2]&&L("Practical Entry Freezing"),(0,u.FA)(t,e.user.fcollcode,e.user.fusertype,e.user.fuser)}),[a]),(0,r.useEffect)((()=>{if(void 0!==e.fzetimtb){let a=e.fzetimtb,r=[];a.length>0&&a.map((t=>{let a={};a.FDEGREE=t.FDEGREE,a.FEXAMNO=t.FEXAMNO,a.FSUBCODE=t.FSUBCODE,a.FBATCH=t.FBATCH,a.bcnt=t.bcnt,a.FEXAMDATE=t.FEXAMDATE,a.FEXAMTIME=t.FEXAMTIME,a.FFREEZED=t.FFREEZED,a.PRINTFREEZED=t.PRINTFREEZED,a.froomname=t.froomname,a.fexaminer1=t.fexaminer1,a.fexaminer2=t.fexaminer2,a.fexaminer3=t.fexaminer3,a.fexaminer4=t.fexaminer4,a.fexaminer5=t.fexaminer5,a.fexaminer6=t.fexaminer6,a.marks_entered=t.marks_entered,a.printFrzDisabl=!0,"T"==t.FFREEZED?a.disadb=!0:a.disadb=!1,0==t.marks_entered?(a.entyDisable=!0,a.checked=!1,a.value="T"):"T"==t.FFREEZED?("S"==e.user.fusertype?a.entyDisable=!1:a.entyDisable=!0,a.checked=!0,"T"==t.PRINTFREEZED?(a.printFrzCheck=!0,"S"==e.user.fusertype&&(a.printFrzDisabl=!1)):a.printFrzDisabl=!1):a.checked=!1,console.log(a),r.push(a)}));var t=e.teachcode.map((e=>({label:e.fteachcode+" - "+e.fteachname,value:e.fteachcode})));M(!0),N(t),B(r)}}),[e.fzetimtb]);const W=e.degreeData.map((e=>({label:e.FDEGREE+" - "+e.FDESCPN,value:e.FDEGREE}))),K=e.examDet.map((e=>({label:e.fexamno+" - "+e.fexamname,value:e.fexamno}))),J=e.subDet.map((e=>({label:e.fcsubcode+" - "+e.fsubname,value:e.fcsubcode+" - "+e.fsmaxmarks+" - "+e.fsubname}))),q=async(e,t,a)=>{const r=R.map((r=>{if(r.FSUBCODE===t.FSUBCODE&&r.FDEGREE===t.FDEGREE&&r.FEXAMNO===t.FEXAMNO&&r.FBATCH===t.FBATCH)switch(a){case 1:r.fexaminer1=e;break;case 2:r.fexaminer2=e;break;case 3:r.fexaminer3=e;break;case 4:r.fexaminer4=e;break;case 5:r.fexaminer5=e;break;case 5:r.fexaminer6=e}return r}));B(r)},Y=async(e,t,a)=>{let r="";1==e.target.checked?r="T":0==e.target.checked&&(r="F");const n=R.map((n=>n.FBATCH===t.FBATCH?("entry"==a?(n.FFREEZED=r,n.checked=e.target.checked):"print"==a&&(n.PRINTFREEZED=r,n.printFrzCheck=e.target.checked),n):n));B(n)},Q=[...[{title:"Sl. No",render:(e,t,a)=>a+1,align:"center",width:"5%"},{title:"Batch",dataIndex:"FBATCH",...(0,m.NS)("FBATCH"),sorter:(e,t)=>(0,m.Pe)(e,t,"FBATCH"),sortDirections:["descend","ascend"],align:"center",width:"5%"},{title:"Stud. Cnt",dataIndex:"bcnt",...(0,m.NS)("bcnt"),sorter:(e,t)=>(0,m.Pe)(e,t,"bcnt"),sortDirections:["descend","ascend"],width:"5%",align:"center"},{title:"Exam Date",render:(e,t)=>(0,y.jsx)(n.A,{type:"date",value:t.FEXAMDATE,disabled:"prFreez"==H||t.disadb,style:{width:"100%"},onChange:e=>{(async(e,t)=>{const a=R.map((a=>a.FSUBCODE==t.FSUBCODE&&a.FDEGREE==t.FDEGREE&&a.FEXAMNO==t.FEXAMNO&&a.FBATCH==t.FBATCH?(a.FEXAMDATE=e.target.value,a):a));B(a)})(e,t)}}),align:"center",width:"10%"},{title:"Exam Time",render:(e,t)=>(0,y.jsx)(n.A,{type:"text",value:t.FEXAMTIME,disabled:"prFreez"==H||t.disadb,style:{width:"100%"},onChange:e=>{(async(e,t)=>{const a=R.map((a=>a.FSUBCODE==t.FSUBCODE&&a.FDEGREE==t.FDEGREE&&a.FEXAMNO==t.FEXAMNO&&a.FBATCH==t.FBATCH?(a.FEXAMTIME=e.target.value,a):a));B(a)})(e,t)}}),align:"center",width:"10%"},{title:"Room Name",render:(e,t)=>(0,y.jsx)(n.A,{type:"text",value:t.froomname,style:{width:"100%"},onChange:e=>{(async(e,t)=>{const a=R.map((a=>a.FSUBCODE==t.FSUBCODE&&a.FDEGREE==t.FDEGREE&&a.FEXAMNO==t.FEXAMNO&&a.FBATCH==t.FBATCH?(a.froomname=e.target.value,a):a));B(a)})(e,t)},disabled:"prFreez"==H}),align:"center",width:"10%"}],..."timeTab"==H?[{title:"Examiner 1",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer1,style:{width:"100%"},onChange:e=>{q(e,t,1)}}),align:"center",width:"10%"},{title:"Examiner 2",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer2,style:{width:"100%"},onChange:e=>{q(e,t,2)}}),align:"center",width:"10%"},{title:"Examiner 3",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer3,style:{width:"100%"},onChange:e=>{q(e,t,3)}}),align:"center",width:"10%"},{title:"Examiner 4",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer4,style:{width:"100%"},onChange:e=>{q(e,t,4)}}),align:"center",width:"10%"},{title:"Examiner 5",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer5,style:{width:"100%"},onChange:e=>{q(e,t,5)}}),align:"center",width:"10%"},{title:"Examiner 6",render:(e,t)=>(0,y.jsx)(s.A,{showSearch:!0,options:_,value:t.fexaminer6,style:{width:"100%"},onChange:e=>{q(e,t,5)}}),align:"center",width:"10%"}]:[{title:"Freeze Entry",render:(e,t)=>(0,y.jsxs)("div",{children:[(0,y.jsx)(l.A,{disabled:t.entyDisable,checked:t.checked,onChange:e=>Y(e,t,"entry")}),"  ","T"==t.value?(0,y.jsx)("span",{style:{color:"red"},children:"Pending"}):null]}),align:"center",width:"10%"},{title:"Freeze Print",render:(e,t)=>(0,y.jsx)(l.A,{disabled:t.printFrzDisabl,checked:t.printFrzCheck,onChange:e=>Y(e,t,"print")}),align:"center",width:"10%"},{title:"Print",render:(e,t)=>(0,y.jsx)("span",{style:{textAlign:"center",color:"blue"},onClick:e=>$(t),children:"Report"}),align:"center",width:"10%"}]],$=t=>{window.open(g.A+"GeneratePracticalMarksReports&degree="+x+"&batch_no="+t.FBATCH+"&time="+t.FEXAMTIME+"&date_value="+t.FEXAMDATE+"&sub_name="+Z+"&exam="+C+"&sub="+S+"&from_qp_code="+S+"&to_qp_code="+S+"&fcollcode="+e.user.fcollcode)};return(0,y.jsxs)("div",{children:[(0,y.jsxs)(c.A,{hoverable:!0,title:U,style:{width:"100%"},extra:(0,y.jsxs)(i.A,{direction:"horizontal",children:[(0,y.jsx)(o.Ay,{className:"save",onClick:()=>(async()=>{const a=new FormData;a.append("bathWsTTdata",JSON.stringify(R)),a.append("fdegree",x),a.append("fexamno",C),a.append("fcollcode",e.user.fcollcode),a.append("fsubcode",D),(0,u.kK)(t,a)})(),children:"Save"}),"prFreez"!=H?(0,y.jsx)(o.Ay,{className:"report",onClick:()=>{I(!0)},children:"Report"}):null,(0,y.jsx)(o.Ay,{className:"clear",onClick:()=>(async()=>{b(""),w(""),v(""),k(""),B([]),M(!1)})(),children:"Clear"})]}),children:[(0,y.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,y.jsxs)(d.A,{gutter:16,children:[(0,y.jsxs)(h.A,{span:8,children:[(0,y.jsx)("label",{children:"Degree"}),(0,y.jsx)(s.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:W,value:x,onChange:e=>{(async e=>{b(e),w(""),v(""),B([]),M(!1),await(0,u.b1)(t,e)})(e)}})]}),(0,y.jsxs)(h.A,{span:4,children:[(0,y.jsx)("label",{children:"Exam"}),(0,y.jsx)(s.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:K,value:C,onChange:a=>{(async a=>{w(a),v(""),B([]),M(!1),await(0,u._B)(t,x,a,e.user.fcollcode,e.user.fusertype,e.user.fteachcode)})(a)}})]}),(0,y.jsxs)(h.A,{span:6,children:[(0,y.jsx)("label",{children:"Subject"}),(0,y.jsx)(s.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:J,value:D,onChange:e=>{const t=e.split(" - ");v(e),k(t[1]),j(t[0]),V(t[2])}})]}),(0,y.jsxs)(h.A,{span:2,children:[(0,y.jsx)("label",{children:"Max Marks"}),(0,y.jsx)(n.A,{style:{width:"100%"},value:T,disabled:!0})]}),(0,y.jsx)(h.A,{span:3,style:{marginTop:"1.3rem"},children:(0,y.jsx)(o.Ay,{className:"view",onClick:()=>(async()=>{let a=D.split("-")[0];await(0,u.ot)(t,x,C,a,e.user.fcollcode,e.user.fusertype)})(),children:"View"})})]}),(0,y.jsx)(d.A,{gutter:16}),(0,y.jsxs)(c.A,{title:"Instructions",children:[(0,y.jsx)("p",{children:"1. Practical marks entry and freezing should be done on the day of practical examination."}),(0,y.jsx)("p",{children:"2. Marks entry / corrections are not allowed once the marks are freezed (Ensure marks entry before freezing)."}),(0,y.jsx)("p",{children:'3. Take print out of practical marks list before "FREEZE PRINT".'}),(0,y.jsx)("p",{children:"4. Marks list printing not allowed after print freezing (Ensure printing of practical marks list before print freeze)."}),(0,y.jsx)("p",{children:"5. It is mandatory to freeze marks entry and printing after the examination process is completed."})]})]}),1==z?(0,y.jsx)(p.A,{scroll:{y:400,x:800},bordered:!0,columns:Q,dataSource:R,size:"small"}):null]}),(0,y.jsx)(A,{open:G,Generate:(t,a,r)=>""==x?((0,F.F)("Please select Degree"),void I(!1)):""==C?((0,F.F)("Please select Exam"),void I(!1)):""==D?((0,F.F)("Please select Subject"),void I(!1)):void(""!=r?(async(t,a,r)=>{await(0,u.UP)(t,a,x,C,S,r,e.user.fcollcode)})(t,a,r):(0,F.F)("Please select Report type")),cancel:()=>I(!1)})]})}))}}]);
//# sourceMappingURL=629.7d583be5.chunk.js.map