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.189.182.195
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[326],{24868:(e,a,t)=>{t.d(a,{RB:()=>r,u3:()=>c,u6:()=>d,vB:()=>o});var s=t(86213),l=t(150),n=t(15355);const o=async(e,a,t,n,o)=>{try{await(0,s.A)({method:"GET",url:l.A+"getDegSemSubDetnew&collcode="+a+"&univcode="+t+"&teach="+n+"&cls="+o,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETSUB",payload:a.data.data.subelement}):e({type:"CLEAR_DATA",payload:[]})}))}catch(r){}},r=async(e,a,t,n,o,r)=>{try{await(0,s.A)({method:"GET",url:l.A+"getTestMaxQnnew&collcode="+a+"&univcode="+t+"&teach="+n+"&cls="+o+"&subelement="+r,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETTESTANDMARKS",payload:a.data.data.sub}):e({type:"CLEAR_DATA",payload:[]})}))}catch(c){}},c=(e,a,t,n)=>async(o,r)=>{await(0,s.A)({method:"GET",url:l.A+"viewCOMarks&teachcode="+e+"&clscode="+a+"&test="+t+"&subcode="+n,headers:{"Content-Type":"application/json"}}).then((e=>{console.log(e),0==e.data.error_code?o({type:"CO_MARKS_DETAILS",payload:e.data.data}):o({type:"CLEAR_DATA",payload:[]})})).catch((e=>console.log("Error====>",e)))},d=async(e,a)=>{try{await s.A.post(l.A+"saveCoMarksNew",a).then((e=>{e.data.error_code,(0,n.F)(e.data.data)}))}catch(t){}}},4853:(e,a,t)=>{t.d(a,{B3:()=>i,PV:()=>p,Si:()=>d,jE:()=>r,ji:()=>c,zo:()=>h});var s=t(86213),l=t(150),n=t(15355);const o=e=>({type:"LOADING",load:e}),r=async(e,a,t,n,o)=>{try{await(0,s.A)({method:"GET",url:l.A+"loaddayteachname&collcode="+a+"&univcode="+t+"&usertype="+n+"&user="+o,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETTEACHNAMES",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(r){}},c=async(e,a,t,n,o)=>{try{await(0,s.A)({method:"GET",url:l.A+"loadclassnameday&collcode="+a+"&usertype="+t+"&user="+n+"&teachcode="+o,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?(console.log("anita"),e({type:"GETCLANAME",payload:a.data.data})):e({type:"CLEAR_DATA",payload:[]})}))}catch(r){}},d=async(e,a,t,n)=>{e(o(!1));try{await s.A.post(l.A+"viewattendanceentry&collcode="+t+"&sort="+n,a).then((a=>{0==a.data.error_code?(e(o(!1)),e({type:"VIEW1DATA",payload:a.data.data})):(e(o(!1)),e({type:"CLEAR_DATA",payload:[]}))}))}catch(r){e(o(!1))}},i=async(e,a)=>{try{await s.A.post(l.A+"saveattendanceentry",a).then((e=>0==e.data.error_code?void(0,n.F)(e.data.msg):void(0,n.F)(e.data.data.msg)))}catch(t){}},p=async(e,a,t,n,o,r,c)=>{try{await(0,s.A)({method:"GET",url:l.A+"viewDeleteAddStudDet&collcode="+a+"&univcode="+t+"&usertype="+n+"&user="+o+"&fromteach="+r+"&toteach="+c,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETFORDELETE",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(d){}},h=async(e,a,t,o,r,c)=>{try{await(0,s.A)({method:"GET",url:l.A+"deleteAddstudentry&collcode="+e+"&teachcode="+a+"&clsid="+t+"&period="+o+"&noofcls="+r+"&date="+c,headers:{"Content-Type":"application/json"}}).then((e=>{e.data.error_code,(0,n.F)(e.data.data)}))}catch(d){}}},10925:(e,a,t)=>{t.d(a,{NS:()=>c,Pe:()=>i,Yg:()=>d});var s=t(15444),l=t(6051),n=t(87021),o=t(62058),r=t(70579);const c=e=>({filterDropdown:a=>{let{setSelectedKeys:t,selectedKeys:c,confirm:d,clearFilters:i,close:p}=a;return(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(s.A,{autoFocus:!0,placeholder:"Search ".concat(e),value:c,onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>{d()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(l.A,{children:[(0,r.jsx)(n.Ay,{type:"primary",onClick:()=>d(),icon:(0,r.jsx)(o.A,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(n.Ay,{onClick:()=>{i(),d()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,r.jsx)(o.A,{style:{color:e?"#CFFF8D":"#fff"}}),onFilter:(a,t)=>t[e].toString().toLowerCase().includes(a.toLowerCase())}),d=(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])},88326:(e,a,t)=>{t.r(a),t.d(a,{default:()=>b});var s=t(15444),l=t(87021),n=t(5397),o=t(6051),r=t(62918),c=t(70170),d=t(79672),i=t(14647),p=t(95010),h=t(90798),y=t(65043),x=t(4853),m=t(24868),u=t(86213),A=t(150),g=t(15355);var j=t(83003),f=t(10925),S=t(70579);const b=(0,j.Ng)((e=>(console.log(e.getNameandRegnoReducer.getNameRegData,"connect"),{user:e.AuthReducer.userData,teachData:e.getattEntryTeacherNameReducer.teachData,classData:e.getattEntryClassNameReducer.classData,subDetData:e.subDetailsReducer.subDetData,testmarksData:e.testMarksReducer.testmarksData,entryMarksData:e.marksEntryQnWiseReducer.entryMarksData,getNameRegData:e.getNameandRegnoReducer.getNameRegData})))((function(e){const[a,t]=(0,y.useState)(""),[b,k]=(0,y.useState)(""),[w,D]=(0,y.useState)(""),[v,E]=(0,y.useState)([]),[N,C]=(0,y.useState)(""),[T,R]=(0,y.useState)(""),[M,_]=(0,y.useState)("fname"),[z,G]=(0,y.useState)(!1),[L,F]=(0,y.useState)(!1),[I,B]=(0,y.useState)([]),[O,P]=(0,y.useState)([]),q=(0,y.useRef)([]),K=(0,j.wA)();(0,y.useEffect)((()=>{V()}),[]);const V=async()=>{await(0,x.jE)(K,e.user.fcollcode,e.user.funivcode,e.user.fusertype,e.user.fuser),t(e.teachData)},Q=[{value:"select",label:"---Select Teacher---"},...e.teachData],U=[{value:"select",label:"---Select Class---"},...e.classData],H=async t=>{k(t),await(0,m.vB)(K,e.user.fcollcode,e.user.funivcode,a,t),F(!1)},W=[{key:"select",value:"Select",label:"---Select Subject Element---"},...e.subDetData];let Y=[],J=e.testmarksData.value;for(let s=1;s<=J;s++){let e={key:s,value:"Test "+s,label:"Test-"+s};Y.push(e)}const X=async a=>{C(a),R(e.testmarksData.fvalmax),F(!1)},Z=async(a,t,s,l,n)=>{console.log(e.getNameRegData.marksArr,"anita"),await(async(e,a,t,s,l,n,o,r,c,d)=>{try{await(0,u.A)({method:"GET",url:A.A+"meGetStudentMarksData&collcode="+a+"®no="+t+"&name="+s+"&test="+l+"&subcode="+n+"&cls="+o+"&sem="+r+"°ree="+c+"&maxmarks="+d,headers:{"Content-Type":"application/json"}}).then((a=>{console.log(a,"hi"),0==a.data.error_code?e({type:"GETNAMEANDREG",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(i){}})(K,e.user.fcollcode,a,t,N,w,b,s,l,n),B(e.getNameRegData.marksArr),G(!0)},$=I.map(((e,a)=>({key:a,qnno:e.fqn,subqn:e.fqnno,maxmarks:e.fmarks,securemarks:(0,S.jsx)(s.A,{type:"text",value:e.marks,onChange:e=>((e,a)=>{const t=[...I];t[a].marks=e,B(t)})(e.target.value,a),onBlur:()=>(e=>{const a=[...I];console.log(a[e].marks,a[e].fmarks,"shedabale"),a[e].marks>=a[e].fmarks&&(0,g.F)("Enter Valid Marks")})(a),ref:e=>q.current[a]=e}),total:(0,S.jsx)(s.A,{value:e.marks,disabled:!0})}))),ee=async()=>{await(async(e,a,t,s,l,n,o,r)=>{try{await(0,u.A)({method:"GET",url:A.A+"meViewIaStudDet&collcode="+a+"&teachcode="+t+"&classid="+s+"&subelement="+l+"&testName="+n+"&txtmarks="+o+"&fsort="+r,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"MARKS_ENTRY",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(c){}})(K,e.user.fcollcode,a,b,w,N,T,M),F(!0)},ae=async(a,t,s,l,n,o,r)=>{await(async(e,a,t,s,l,n,o,r,c,d)=>{try{await(0,u.A)({method:"GET",url:A.A+"makeStudentIaAbsent&collcode="+a+"®no="+t+"&fname="+s+"&fexamno="+l+"&fdegree="+n+"&maxmarks="+o+"&fclassid="+r+"&fsubcode="+c+"&ftestname="+d,headers:{"Content-Type":"application/json"}}).then((e=>{console.log(e)}))}catch(i){}})(0,e.user.fcollcode,s,l,n,o,r,b,w,N);const c=e.entryMarksData;c[a].marksentry=!!t,c[a].facttotal=-2,P([...c]),console.log(O,"hi")},te=async(a,t,s,l,n,o,r)=>{await(async(e,a,t,s,l,n,o,r,c,d)=>{try{await(0,u.A)({method:"GET",url:A.A+"removeAbsentHandler&collcode="+a+"®no="+t+"&fname="+s+"&fexamno="+l+"&fdegree="+n+"&maxmarks="+o+"&fclassid="+r+"&fsubcode="+c+"&ftestname="+d,headers:{"Content-Type":"application/json"}}).then((e=>{console.log(e)}))}catch(i){}})(0,e.user.fcollcode,s,l,n,o,r,b,w,N),console.log(e.entryMarksData,"props.entryMarksData");const c=e.entryMarksData;c[a].marksentry=!t,c[a].facttotal=-1,P([...c]),console.log(O,"hi")},se=[{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Sl. No"}),dataIndex:"slno",align:"center",width:"3%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"USN"}),dataIndex:"usn",align:"center",...(0,f.NS)("usn"),sorter:(e,a)=>(0,f.Pe)(e,a,"usn"),sortDirections:["descend","ascend"],width:"5%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Student Name"}),dataIndex:"studentname",align:"left",...(0,f.NS)("studentname"),sorter:(e,a)=>(0,f.Pe)(e,a,"studentname"),sortDirections:["descend","ascend"],width:"14%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Max Marks"}),dataIndex:"maxmarks",align:"center",width:"4%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Secure Marks"}),dataIndex:"securemarks",align:"center",width:"4.5%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Action"}),dataIndex:"action",align:"center",width:"6%"},{title:(0,S.jsx)("label",{style:{fontSize:"13px"},children:"Absent?"}),dataIndex:"absent",align:"center",width:"10%"}],le=e.entryMarksData.map(((e,a)=>({key:a,slno:(0,S.jsx)("label",{style:{fontSize:"12px"},children:a+1}),usn:(0,S.jsx)("label",{style:{fontSize:"12px"},children:e.FREGNO}),studentname:(0,S.jsx)("label",{style:{fontSize:"12px"},children:e.FNAME}),maxmarks:(0,S.jsx)("label",{style:{fontSize:"12px"},children:e.fmaxmarks}),securemarks:(0,S.jsx)("label",{style:{fontSize:"12px"},children:-2==e.facttotal?"Absent":e.facttotal}),action:(0,S.jsx)("div",{children:-2==e.facttotal?" ":(0,S.jsx)(l.Ay,{className:"save",style:{fontSize:"12px"},onClick:()=>Z(e.FREGNO,e.FNAME,e.fexamno,e.fdegree,e.fmaxmarks),children:"Enter Marks"})}),absent:(0,S.jsxs)("div",{children:[(0,S.jsx)(l.Ay,{style:{fontSize:"12px"},className:"save",onClick:t=>ae(a,t,e.FREGNO,e.FNAME,e.fexamno,e.fdegree,e.fmaxmarks),children:"Absent"}),(0,S.jsx)("span",{children:" "}),(0,S.jsx)(l.Ay,{style:{fontSize:"12px"},className:"save",onClick:t=>te(a,t,e.FREGNO,e.FNAME,e.fexamno,e.fdegree,e.fmaxmarks),children:"Remove Absent"})]})}))),ne=e.getNameRegData.count,oe=[{title:(0,S.jsx)("label",{style:{fontSize:"12px"},children:"Question No."}),dataIndex:"qnno",align:"center",width:"10%",onCell:(e,a)=>({rowSpan:a%ne===0?ne:0})},{title:(0,S.jsx)("label",{style:{fontSize:"12px"},children:"Sub Qn."}),dataIndex:"subqn",align:"center",width:"10%"},{title:(0,S.jsx)("label",{style:{fontSize:"12px"},children:"Max Marks"}),dataIndex:"maxmarks",align:"center",width:"10%"},{title:(0,S.jsx)("label",{style:{fontSize:"12px"},children:"Secured Marks"}),dataIndex:"securemarks",align:"center",width:"12%"},{title:(0,S.jsx)("label",{style:{fontSize:"12px"},children:"Total"}),dataIndex:"total",align:"center",width:"9%"}],re=e.getNameRegData.name,ce=e.getNameRegData.regno,de=e.getNameRegData.degree,ie=e.getNameRegData.sem;console.log(I,"dataPopup");const pe=async(a,t,s)=>{let l=new FormData;l.append("data",JSON.stringify(I)),l.append("collcode",e.user.fcollcode),l.append("regno",a),l.append("degree",t),l.append("sem",s),l.append("test",N),l.append("subcode",w),await(async(e,a)=>{try{await u.A.post(A.A+"saveMeStudenMarks",a).then((e=>{console.log(e),0==e.data.error_code&&(0,g.F)(e.data.data.msg)}))}catch(t){}})(0,l),G(!1),ee()};return(0,S.jsx)("div",{className:"container-fluid",children:(0,S.jsxs)(n.A,{hoverable:!0,title:"IA Marks Entry",style:{width:"100%"},extra:(0,S.jsxs)(o.A,{children:[(0,S.jsx)(l.Ay,{className:"save",children:"Save"}),(0,S.jsx)(l.Ay,{className:"save",children:"Report"}),(0,S.jsx)(l.Ay,{className:"save",children:"Clear"}),(0,S.jsx)(l.Ay,{className:"exit",children:"Exit"})]}),children:[z&&(0,S.jsxs)(r.A,{title:(0,S.jsx)("label",{children:(0,S.jsx)("b",{children:"Marks Entry"})}),visible:z,onCancel:()=>G(!1),footer:null,centered:!0,children:[(0,S.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",marginTop:"10px",marginBottom:"10px"},children:[(0,S.jsx)("td",{style:{border:"1px solid black",padding:"4px",textAlign:"center"},children:(0,S.jsx)("span",{children:(0,S.jsxs)("b",{children:["USN : ",ce]})})}),(0,S.jsx)("td",{style:{border:"1px solid black",padding:"4px",textAlign:"center"},children:(0,S.jsx)("span",{children:(0,S.jsxs)("b",{children:["Name : ",re]})})}),(0,S.jsx)("td",{style:{padding:"4px",textAlign:"center"},children:(0,S.jsx)(l.Ay,{className:"save",onClick:()=>pe(ce,de,ie),children:"Save"})})]}),(0,S.jsx)(c.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:oe,dataSource:$,size:"small",style:{position:"sticky",top:0}})]}),(0,S.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,S.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,S.jsx)(i.A,{span:3,children:(0,S.jsx)("label",{children:"Teacher Name"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(p.A,{placeholder:"Select",style:{width:"100%"},value:a,options:Q,onChange:a=>(async a=>{t(a),await(0,x.ji)(K,e.user.fcollcode,e.user.fusertype,e.user.fuser,a),E(e.subDetData),F(!1),H()})(a)})}),(0,S.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,S.jsx)("label",{children:"Class Name"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(p.A,{placeholder:"Select",style:{width:"100%"},value:b,options:U,onChange:e=>H(e)})})]}),(0,S.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,S.jsx)(i.A,{span:3,children:(0,S.jsx)("label",{children:"Subject Element"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(p.A,{placeholder:"Select",style:{width:"100%"},value:w,options:W,onChange:t=>(async t=>{D(t),await(0,m.RB)(K,e.user.fcollcode,e.user.funivcode,a,b,t),F(!1),E(e.subDetData),X()})(t)})}),(0,S.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,S.jsx)("label",{children:"Test"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(p.A,{placeholder:"Select",style:{width:"100%"},value:N,options:Y,onChange:e=>X(e)})})]}),(0,S.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,S.jsx)(i.A,{span:3,children:(0,S.jsx)("label",{children:"Marks"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(s.A,{placeholder:"Select",style:{width:"100%"},value:T})}),(0,S.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,S.jsx)("label",{children:"Remarks"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(h.A,{placeholder:"Select",style:{width:"100%"}})})]}),(0,S.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,S.jsx)(i.A,{span:3,children:(0,S.jsx)("label",{children:"Sort"})}),(0,S.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,S.jsx)(p.A,{placeholder:"Select",style:{width:"100%"},value:M,options:[{value:"fname",label:"Name"},{value:"fregno",label:"USN/ADM. No./Reg. No."}],onChange:e=>(e=>{_(e),F(!1)})(e)})})]}),(0,S.jsx)(d.A,{style:{marginBottom:"10px",marginLeft:"148px"},children:(0,S.jsx)(l.Ay,{className:"save",onClick:()=>{ee()},children:"View"})})]}),L&&(0,S.jsx)(c.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:se,dataSource:le,size:"small",style:{padding:"2px",marginTop:"-10px",position:"sticky",top:0}})]})})}))}}]);
//# sourceMappingURL=326.4c6f0139.chunk.js.map
|