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


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

"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[718],{64894:(e,a,t)=>{t.d(a,{FA:()=>l,Ob:()=>g,UP:()=>A,_B:()=>n,aR:()=>p,b1:()=>s,kK:()=>u,ot:()=>y,sK:()=>h,v4:()=>i});var r=t(86213),d=t(150),o=t(15355);const l=async(e,a,t,l)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+"getdegreeNames&collcode="+a+"&fusertype="+t+"&fuserid="+l}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_PREPRATION",payload:[]}),void(0,o.F)(a.data.data.msg);e({type:"BATCH_PREPRATION",payload:a.data.data})}))}catch(s){e(c(!1)),(0,o.F)(s)}},c=e=>({type:"LOADING",load:e}),s=async(e,a)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+"getExamNo&fdegree="+a}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_EXAM",payload:[]}),void(0,o.F)(a.data.data.msg);e({type:"BATCH_EXAM",payload:a.data.data})}))}catch(t){e(c(!1)),(0,o.F)(t)}},n=async(e,a,t,l,s,n)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+"getSubjCodeDet&fdegree="+a+"&fexmNo="+t+"&fcollcode="+l+"&fusertype="+s+"&userID="+n}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_SUBJ_CODE",payload:[]}),void(0,o.F)(a.data.data.msg);e({type:"SUBJ_CODE",payload:a.data.data})}))}catch(h){e(c(!1)),(0,o.F)(h)}},h=async(e,a,t,l,s)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+"getVivaSubDetail&fdegree="+a+"&fexmNo="+t+"&fcollcode="+l+"&fsubcode="+s}).then((a=>0==a.data.error_code?void e({type:"VIVA_SUB",payload:a.data.data}):void e({type:"CLEAR_VIVA_SUB",payload:[]})))}catch(n){e(c(!1)),(0,o.F)(n)}},i=async(e,a,t,l,s,n,h,i,p,y,u,A)=>{let g="";"batch"==y?g="GetBatchWiseRegNos":"entry"==y&&(g="GetPracticalMarksRegNos"),e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+g+"&fdegree="+a+"&fexmNo="+t+"&subVal="+l+"&stdPerBt="+s+"&startBat="+n+"&fcollcode="+h+"&fusertype="+i+"&fteachcode="+p+"&batchNo="+u+"&vivaSubVal="+A}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_REGNO",payload:[]}),void(0,o.F)(a.data.data.msg);e({type:"BATCH_REGNO",payload:a.data.data})}))}catch(f){e(c(!1)),(0,o.F)(f)}},p=async(e,a,t)=>{let l="";"batch"==t?l="saveBatchWiseData":"entry"==t&&(l="savePractMarks"),e(c(!0));try{await r.A.post(d.A+l,a).then((a=>{if(0!==a.data.error_code)return(0,o.F)(a.data.data.msg),void e(c(!1));(0,o.F)(a.data.data.msg),e(c(!1))}))}catch(s){e(c(!1)),(0,o.F)(s)}},y=async(e,a,t,l,s,n)=>{e(c(!0));try{await(0,r.A)({method:"GET",url:d.A+"getPrctEntrFrzeDet&fdegree="+a+"&fexmNo="+t+"&subVal="+l+"&fcollcode="+s+"&fusertype="+n}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_PRCT_FRZE_DET",payload:[]}),void(0,o.F)(a.data.data.msg);e({type:"PRCT_FRZE_DET",payload:a.data.data})}))}catch(h){e(c(!1)),(0,o.F)(h)}},u=async(e,a)=>{e(c(!0));try{await r.A.post(d.A+"FreezePracticalMaks",a).then((a=>{if(0!==a.data.error_code)return(0,o.F)(a.data.data.msg),void e(c(!1));(0,o.F)(a.data.data.msg),e(c(!1))}))}catch(t){e(c(!1)),(0,o.F)(t)}},A=async(e,a,t,r,o,l,c)=>{let s="";"BatchReport"==l?s="GenerateBatchSetupDetails":"WorkSheet"==l?s="GenerateBatchWorkSheets":"InvigilatorDairy"==l&&(s="GenerateAttendanceSheets"),window.open(d.A+s+"&collcode="+c+"&frmBatch="+e+"&toBatch="+a+"&fdegree="+t+"&exmval="+r+"&subVal="+o)},g=async(e,a,t,r,o)=>{window.open(d.A+"Generatetopsheet&fcollcode="+o+"&batchTo="+r+"&batchFrm="+t+"&fdegree="+e+"&exmval="+a)}},40718:(e,a,t)=>{t.r(a),t.d(a,{default:()=>A});var r=t(65043),d=t(5397),o=t(6051),l=t(87021),c=t(79672),s=t(14647),n=t(95010),h=t(15444),i=t(83003),p=t(64894),y=t(15355),u=t(70579);const A=(0,i.Ng)((e=>({user:e.AuthReducer.userData,loading:e.degreeReducer.loading,degreeData:e.pradegree.degreeData,examDet:e.examDetl.examDetails})))((e=>{const a=(0,i.wA)(),[t,A]=(0,r.useState)(""),[g,f]=(0,r.useState)(""),[m,x]=(0,r.useState)("0"),[E,_]=(0,r.useState)("z");(0,r.useEffect)((()=>{(0,p.FA)(a,e.user.fcollcode,e.user.fusertype,e.user.fuser)}),[]);const v=e.degreeData.map((e=>({label:e.FDEGREE+" - "+e.FDESCPN,value:e.FDEGREE}))),F=e.examDet.map((e=>({label:e.fexamno+" - "+e.fexamname,value:e.fexamno})));return(0,u.jsx)("div",{children:(0,u.jsx)(d.A,{hoverable:!0,title:"Practical Daily Report",style:{width:"100%"},extra:(0,u.jsxs)(o.A,{direction:"horizontal",children:[(0,u.jsx)(l.Ay,{className:"report",onClick:()=>{(async()=>{""!=t?""!=g?(0,p.Ob)(t,g,m,E,e.user.fcollcode):(0,y.F)("Select Exam"):(0,y.F)("Select Degree")})()},children:"Report"}),(0,u.jsx)(l.Ay,{className:"clear",onClick:()=>(async()=>{A(""),f(""),x("0"),_("z")})(),children:"Clear"})]}),children:(0,u.jsx)("div",{style:{marginBottom:"20px"},children:(0,u.jsxs)(c.A,{gutter:16,children:[(0,u.jsxs)(s.A,{span:8,children:[(0,u.jsx)("label",{children:"Degree"}),(0,u.jsx)(n.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:v,value:t,onChange:e=>{(async e=>{A(e),f(""),await(0,p.b1)(a,e)})(e)}})]}),(0,u.jsxs)(s.A,{span:4,children:[(0,u.jsx)("label",{children:"Exam"}),(0,u.jsx)(n.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:F,value:g,onChange:e=>{f(e)}})]}),(0,u.jsxs)(s.A,{span:4,children:[(0,u.jsx)("label",{children:"Batch Range From"}),(0,u.jsx)("br",{}),(0,u.jsx)(h.A,{type:"text",value:m,onChange:e=>x(e.target.value)})]}),(0,u.jsxs)(s.A,{span:4,children:[(0,u.jsx)("label",{children:"To"}),(0,u.jsx)("br",{}),(0,u.jsx)(h.A,{type:"text",value:E,onChange:e=>_(e.target.value)})]})]})})})})}))}}]);
//# sourceMappingURL=718.821f7594.chunk.js.map