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.17.165.235
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[853],{64894:(e,a,t)=>{t.d(a,{FA:()=>n,Ob:()=>y,UP:()=>p,_B:()=>c,aR:()=>u,b1:()=>o,kK:()=>f,ot:()=>g,sK:()=>i,v4:()=>h});var s=t(86213),r=t(150),l=t(15355);const n=async(e,a,t,n)=>{e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+"getdegreeNames&collcode="+a+"&fusertype="+t+"&fuserid="+n}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_PREPRATION",payload:[]}),void(0,l.F)(a.data.data.msg);e({type:"BATCH_PREPRATION",payload:a.data.data})}))}catch(o){e(d(!1)),(0,l.F)(o)}},d=e=>({type:"LOADING",load:e}),o=async(e,a)=>{e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+"getExamNo&fdegree="+a}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_EXAM",payload:[]}),void(0,l.F)(a.data.data.msg);e({type:"BATCH_EXAM",payload:a.data.data})}))}catch(t){e(d(!1)),(0,l.F)(t)}},c=async(e,a,t,n,o,c)=>{e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+"getSubjCodeDet&fdegree="+a+"&fexmNo="+t+"&fcollcode="+n+"&fusertype="+o+"&userID="+c}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_SUBJ_CODE",payload:[]}),void(0,l.F)(a.data.data.msg);e({type:"SUBJ_CODE",payload:a.data.data})}))}catch(i){e(d(!1)),(0,l.F)(i)}},i=async(e,a,t,n,o)=>{e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+"getVivaSubDetail&fdegree="+a+"&fexmNo="+t+"&fcollcode="+n+"&fsubcode="+o}).then((a=>0==a.data.error_code?void e({type:"VIVA_SUB",payload:a.data.data}):void e({type:"CLEAR_VIVA_SUB",payload:[]})))}catch(c){e(d(!1)),(0,l.F)(c)}},h=async(e,a,t,n,o,c,i,h,u,g,f,p)=>{let y="";"batch"==g?y="GetBatchWiseRegNos":"entry"==g&&(y="GetPracticalMarksRegNos"),e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+y+"&fdegree="+a+"&fexmNo="+t+"&subVal="+n+"&stdPerBt="+o+"&startBat="+c+"&fcollcode="+i+"&fusertype="+h+"&fteachcode="+u+"&batchNo="+f+"&vivaSubVal="+p}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_BATCH_REGNO",payload:[]}),void(0,l.F)(a.data.data.msg);e({type:"BATCH_REGNO",payload:a.data.data})}))}catch(x){e(d(!1)),(0,l.F)(x)}},u=async(e,a,t)=>{let n="";"batch"==t?n="saveBatchWiseData":"entry"==t&&(n="savePractMarks"),e(d(!0));try{await s.A.post(r.A+n,a).then((a=>{if(0!==a.data.error_code)return(0,l.F)(a.data.data.msg),void e(d(!1));(0,l.F)(a.data.data.msg),e(d(!1))}))}catch(o){e(d(!1)),(0,l.F)(o)}},g=async(e,a,t,n,o,c)=>{e(d(!0));try{await(0,s.A)({method:"GET",url:r.A+"getPrctEntrFrzeDet&fdegree="+a+"&fexmNo="+t+"&subVal="+n+"&fcollcode="+o+"&fusertype="+c}).then((a=>{if(0!=a.data.error_code)return e({type:"CLEAR_PRCT_FRZE_DET",payload:[]}),void(0,l.F)(a.data.data.msg);e({type:"PRCT_FRZE_DET",payload:a.data.data})}))}catch(i){e(d(!1)),(0,l.F)(i)}},f=async(e,a)=>{e(d(!0));try{await s.A.post(r.A+"FreezePracticalMaks",a).then((a=>{if(0!==a.data.error_code)return(0,l.F)(a.data.data.msg),void e(d(!1));(0,l.F)(a.data.data.msg),e(d(!1))}))}catch(t){e(d(!1)),(0,l.F)(t)}},p=async(e,a,t,s,l,n,d)=>{let o="";"BatchReport"==n?o="GenerateBatchSetupDetails":"WorkSheet"==n?o="GenerateBatchWorkSheets":"InvigilatorDairy"==n&&(o="GenerateAttendanceSheets"),window.open(r.A+o+"&collcode="+d+"&frmBatch="+e+"&toBatch="+a+"&fdegree="+t+"&exmval="+s+"&subVal="+l)},y=async(e,a,t,s,l)=>{window.open(r.A+"Generatetopsheet&fcollcode="+l+"&batchTo="+s+"&batchFrm="+t+"&fdegree="+e+"&exmval="+a)}},10925:(e,a,t)=>{t.d(a,{NS:()=>o,Pe:()=>i,Yg:()=>c});var s=t(15444),r=t(6051),l=t(87021),n=t(62058),d=t(70579);const o=e=>({filterDropdown:a=>{let{setSelectedKeys:t,selectedKeys:o,confirm:c,clearFilters:i,close:h}=a;return(0,d.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,d.jsx)(s.A,{autoFocus:!0,placeholder:"Search ".concat(e),value:o,onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>{c()},style:{marginBottom:8,display:"block"}}),(0,d.jsxs)(r.A,{children:[(0,d.jsx)(l.Ay,{type:"primary",onClick:()=>c(),icon:(0,d.jsx)(n.A,{}),size:"small",style:{width:90},children:"Search"}),(0,d.jsx)(l.Ay,{onClick:()=>{i(),c()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,d.jsx)(n.A,{style:{color:e?"#CFFF8D":"#fff"}}),onFilter:(a,t)=>t[e].toString().toLowerCase().includes(a.toLowerCase())}),c=(e,a)=>a.value.toString().toLowerCase().indexOf(e.toLowerCase())>=0||a.label.toString().toLowerCase().indexOf(e.toLowerCase())>=0,i=(e,a,t)=>e[t].localeCompare(a[t])},1234:(e,a,t)=>{t.r(a),t.d(a,{default:()=>m});var s=t(65043),r=t(15444),l=t(5397),n=t(6051),d=t(87021),o=t(79672),c=t(14647),i=t(95010),h=t(70170),u=t(83003),g=t(64894),f=t(10925),p=t(73216),y=t(15355),x=t(70579);const m=(0,u.Ng)((e=>({user:e.AuthReducer.userData,loading:e.degreeReducer.loading,degreeData:e.pradegree.degreeData,examDet:e.examDetl.examDetails,subDet:e.subjCode.subjCode,regNoTab:e.batchRegno.batchWiseReg,vivaSub:e.vivSub.vivaSub})))((e=>{const a=(0,u.wA)();let t=(0,p.zy)();const[m,A]=(0,s.useState)([]),[v,b]=(0,s.useState)([]),[S,j]=(0,s.useState)(""),[N,w]=(0,s.useState)(""),[F,C]=(0,s.useState)(""),[E,R]=(0,s.useState)(""),[D,T]=(0,s.useState)(""),[B,_]=(0,s.useState)(""),[k,P]=(0,s.useState)(""),[G,L]=(0,s.useState)(""),[I,M]=(0,s.useState)("01"),[O,V]=(0,s.useState)(""),[H,K]=(0,s.useState)([]),[z,U]=(0,s.useState)(!1),[W,J]=(0,s.useState)(""),[X,Z]=(0,s.useState)(""),[Y,q]=(0,s.useState)(""),[Q,$]=(0,s.useState)("");(0,s.useEffect)((()=>{U(!1);let s=t.pathname.split("/");J(s[2]),j(""),w(""),C(""),R(""),_(""),P(""),L(""),M("01"),V(""),K([]),"batch"==s[2]?$("Batch Preparation"):"entry"==s[2]&&$("Marks Entry / Printing");(async()=>{await(0,g.FA)(a,e.user.fcollcode,e.user.fusertype,e.user.fuser)})()}),[t]);const ee=e.degreeData.map((e=>({label:e.FDEGREE+" - "+e.FDESCPN,value:e.FDEGREE}))),ae=e.examDet.map((e=>({label:e.fexamno+" - "+e.fexamname,value:e.fexamno}))),te=e.subDet.map((e=>({label:e.fcsubcode+" - "+e.fsubname,value:e.fcsubcode+" - "+e.fsmaxmarks}))),se=async()=>{let t=F.split("-")[0];if(""!=S)if(""!=N)if(""!=t)if("entry"!=W||""!=X)await(0,g.v4)(a,S,N,t,G,I,e.user.fcollcode,e.user.fusertype,e.user.fuser,W,X.toString().padStart(2,"0"),D);else{let e="Enter Batch No";(0,y.F)(e)}else{let e="Select Subject";(0,y.F)(e)}else{let e="Select Exam";(0,y.F)(e)}else{let e="Select Degree";(0,y.F)(e)}};(0,s.useEffect)((()=>{let a=[];if(void 0!=e.regNoTab){if("batch"==W){let s=e.regNoTab.batchNo;V(e.regNoTab.totcut);let r=e.regNoTab.data;let l=I-1,n=0;var t="";if(void 0!=e.regNoTab){r.length>0&&r.map((e=>{let r=e.FBATCH,d=e.FMARKS,o={};o.fregNo=e.FREGNO,o.fname=e.FNAME,o.fbatch=t,o.disadb="-1"!=d,""!=e.FBATCH?o.fbatch=e.FBATCH:""==e.FBATCH&&("00"!=r&&""!=r||"0"==s&&""!=G&&n%G==0&&(t=String(++l).padStart(2,"0"),n=0),o.fbatch=t),n++,a.push(o)}))}U(!0)}else if("entry"==W){let t=e.regNoTab.batchNo,s=e.regNoTab.vivaRecd;q(s);t.length>0&&t.map((e=>{let t={};t.fregNo=e.FREGNO,t.fname=e.FNAME,t.fbatch=e.FBATCH,t.fmarks=e.FMARKS,s.map((a=>{e.FREGNO==a.FREGNO&&(t.fvivamarks=a.FMARKS)})),a.push(t)}));U(!0)}K([...a])}}),[e.regNoTab]);const re=[{title:"Sl. No",dataIndex:"slno",align:"center",width:"10%"},{title:"Reg No.",dataIndex:"fregno",...(0,f.NS)("fregno"),sorter:(e,a)=>(0,f.Pe)(e,a,"fregno"),sortDirections:["descend","ascend"],align:"center",width:"30%"},{title:(0,x.jsx)("div",{style:{textAlign:"center"},children:"Student Name"}),dataIndex:"fstdname",...(0,f.NS)("fstdname"),sorter:(e,a)=>(0,f.Pe)(e,a,"fstdname"),sortDirections:["descend","ascend"],width:"50%"},{title:"Batch",dataIndex:"select",align:"center",width:"10%"}],le=[...[{title:"Sl. No",dataIndex:"slno",align:"center",width:"10%"},{title:"Reg No.",dataIndex:"fregno",...(0,f.NS)("fregno"),sorter:(e,a)=>(0,f.Pe)(e,a,"fregno"),sortDirections:["descend","ascend"],align:"center",width:"30%"},{title:(0,x.jsx)("div",{style:{textAlign:"center"},children:"Student Name"}),dataIndex:"fstdname",...(0,f.NS)("fstdname"),sorter:(e,a)=>(0,f.Pe)(e,a,"fstdname"),sortDirections:["descend","ascend"],width:"40%"},{title:(0,x.jsxs)("div",{style:{textAlign:"center"},children:["Practical",(0,x.jsx)("br",{}),F]}),dataIndex:"entry",align:"center",width:"10%"}],...[{title:(0,x.jsxs)("div",{style:{textAlign:"center"},children:["Viva",(0,x.jsx)("br",{}),B]}),dataIndex:"vivaEntry",...(0,f.NS)("fvivamarks"),sorter:(e,a)=>(0,f.Pe)(e,a,"fvivamarks"),sortDirections:["descend","ascend"],align:"center",width:"10%"}]],ne=H.map(((e,a)=>({key:a,slno:a+1,fregno:e.fregNo,fstdname:e.fname,select:(0,x.jsx)(r.A,{type:"text",value:e.fbatch,disabled:e.disadb,maxLength:3,onChange:a=>{de(a,e.fregNo)}})}))),de=async(e,a)=>{const t=H.map(((t,s)=>(a==t.fregNo&&(t.fbatch=e.target.value),t)));K(t)},oe=[...H.map(((e,a)=>({key:a,slno:a+1,fregno:e.fregNo,fstdname:e.fname,entry:(0,x.jsx)(r.A,{type:"text",value:e.fmarks,maxLength:3,onChange:a=>{ce(a,e.fregNo)}})}))),...H.map(((e,a)=>({key:a,slno:a+1,fregno:e.fregNo,fstdname:e.fname,vivaEntry:(0,x.jsx)(r.A,{type:"text",maxLength:3,onChange:a=>{ie(a,e.fregNo)}})})))],ce=async(e,a)=>{const t=H.map(((t,s)=>(a==t.fregNo&&(t.fmarks=e.target.value),t)));K(t)},ie=(e,a)=>{console.log(e,a)};let he=F.split("-")[0];return(0,x.jsx)("div",{children:(0,x.jsxs)(l.A,{hoverable:!0,title:Q,style:{width:"100%"},extra:(0,x.jsxs)(n.A,{direction:"horizontal",children:[(0,x.jsx)(d.Ay,{className:"save",onClick:()=>(async()=>{const t=new FormData;t.append("predata",JSON.stringify(H)),t.append("fdegree",S),t.append("fexamno",N),t.append("fcollcode",e.user.fcollcode),t.append("fsubcode",he),t.append("viveSub",k),t.append("fbatch_no",G.toString().padStart(2,"0")),await(0,g.aR)(a,t,W)})(),children:"Save"}),(0,x.jsx)(d.Ay,{className:"clear",onClick:()=>(async()=>{j(""),w(""),C(""),R(""),_(""),P(""),L(""),M("01"),V(""),K([]),U(!1)})(),children:"Clear"})]}),children:[(0,x.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,x.jsxs)(o.A,{gutter:16,children:[(0,x.jsxs)(c.A,{span:10,children:[(0,x.jsx)("label",{children:"Degree"}),(0,x.jsx)(i.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:ee,value:S,onChange:e=>{(async e=>{j(e),w(""),C(""),R(""),_(""),P(""),L(""),M("01"),V(""),K([]),U(!1),await(0,g.b1)(a,e)})(e)}})]}),(0,x.jsxs)(c.A,{span:6,children:[(0,x.jsx)("label",{children:"Exam"}),(0,x.jsx)(i.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:ae,value:N,onChange:t=>{(async t=>{w(t),C(""),R(""),_(""),P(""),L(""),M("01"),V(""),K([]),U(!1),await(0,g._B)(a,S,t,e.user.fcollcode,e.user.fusertype,e.user.fuser)})(t)}})]})]}),(0,x.jsxs)(o.A,{gutter:16,children:[(0,x.jsxs)(c.A,{span:8,children:[(0,x.jsx)("label",{children:"Subject"}),(0,x.jsx)(i.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:te,value:F,onChange:t=>{(async t=>{const s=t.split(" - ");C(t),R(s[1]),await(0,g.sK)(a,S,N,e.user.fcollcode,s[1]),T(e.vivaSub.FSUBNAME),P(e.vivaSub.FVVCODE),_(e.vivaSub.fsmaxmarks),L(""),M("01"),V(""),K([]),U(!1)})(t)}})]}),(0,x.jsxs)(c.A,{span:2,children:[(0,x.jsx)("label",{children:"Max Marks"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:E,disabled:!0})]}),(0,x.jsxs)(c.A,{span:6,children:[(0,x.jsx)("label",{children:"Viva Subject"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:D,disabled:!0})]}),(0,x.jsxs)(c.A,{span:2,children:[(0,x.jsx)("label",{children:"Max Marks"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:B,disabled:!0})]})]}),"batch"==W?(0,x.jsxs)(o.A,{gutter:16,children:[(0,x.jsxs)(c.A,{span:3,children:[(0,x.jsx)("label",{children:"Student per Batch"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:G,onChange:(e,a)=>L(e.target.value),minLength:2,maxLength:2})]}),(0,x.jsxs)(c.A,{span:3,children:[(0,x.jsx)("label",{children:"Starting Batch"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:I,onChange:e=>M(e.target.value)})]}),(0,x.jsxs)(c.A,{span:2,children:[(0,x.jsx)("label",{children:"Total Student"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:O,disabled:!0})]}),(0,x.jsx)(c.A,{span:3,style:{marginTop:"1.3rem"},children:(0,x.jsx)(d.Ay,{className:"view",onClick:()=>se(),children:"View"})})]}):(0,x.jsxs)(o.A,{gutter:16,children:[(0,x.jsxs)(c.A,{span:3,children:[(0,x.jsx)("label",{children:"Batch No"}),(0,x.jsx)(r.A,{style:{width:"100%"},value:X,onChange:e=>Z(e.target.value)})]}),(0,x.jsx)(c.A,{span:3,style:{marginTop:"1.3rem"},children:(0,x.jsx)(d.Ay,{className:"view",onClick:()=>se(),children:"View"})})]})]}),z?(0,x.jsx)(h.A,{scroll:{y:400},bordered:!0,columns:"batch"==W?re:le,dataSource:"batch"==W?ne:oe,size:"small"}):null]})})}))}}]);
//# sourceMappingURL=853.4a0a9680.chunk.js.map
|