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.25.212
(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[495],{18989:(e,a,t)=>{"use strict";t.d(a,{Hu:()=>u,MX:()=>h,XD:()=>y,dF:()=>p,gq:()=>o,r8:()=>d,rZ:()=>i,vA:()=>r,xs:()=>A,zH:()=>n});var s=t(86213),l=t(150),c=(t(60211),t(15355));const d=async(e,a,t,c,d)=>{try{await(0,s.A)({mathod:"GET",url:l.A+"loadteachname&collcode="+a+"&usertype="+t+"&user="+c+"&suser="+d,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETTEACHNAME",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(o){}},o=async(e,a,t)=>{try{await(0,s.A)({mathod:"GET",url:l.A+"loadclassname&collcode="+a+"&teachcode="+t,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETCLASS",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(c){}},r=async(e,a)=>{try{await(0,s.A)({mathod:"GET",url:l.A+"loaddegreecreateclass&collcode="+a,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code&&(0==a.data.error_code?e({type:"GETDEGREE",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]}))}))}catch(t){}},n=async(e,a,t)=>{try{await(0,s.A)({method:"GET",url:l.A+"loadsemcreateclass°reecode="+a+"&mode="+t,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETSEM",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(c){}},i=async(e,a,t,c,d)=>{try{await(0,s.A)({method:"GET",url:l.A+"loadssubcreateclass&univcode="+a+"&collcode="+t+"°ree="+c+"&sem="+d,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?(e({type:"GETSEC",payload:a.data.data.sec}),e({type:"GETSUB",payload:a.data.data.sub})):e({type:"CLEAR_DATA",payload:[]})}))}catch(o){}},p=async(e,a,t,d,o,r,n,i,p,h)=>{if(console.log(d,o,r,n,i,p,h,"checking"),"select"!=p&&""!=p&&void 0!=p)if("select"!=i&&""!=i&&void 0!=i)if("select"!=d&&""!=d&&void 0!=d)if("select"!=o&&""!=o&&void 0!=o)if(""!=h&&void 0!=h)if("select"!=r&&""!=r&&void 0!=r)try{await(0,s.A)({method:"GET",url:l.A+"viewcreateclass&collcode="+a+"&univcode="+t+"°ree="+d+"&sem="+o+"&subject="+r+"&mode="+n+"&clsid="+i+"&teacher="+p+"§ion="+h,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETDETAILS",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(y){}else(0,c.F)("Select Subject");else(0,c.F)("Select Section");else(0,c.F)("Select Semester");else(0,c.F)("Select Degree");else(0,c.F)("Select Class Name");else(0,c.F)("Select Teacher Name")},h=async(e,a)=>{try{await s.A.post(l.A+"savecreateclass",a).then((e=>{0==e.data.error_code&&(0,c.F)(e.data.data.msg)}))}catch(t){}},y=async(e,a,t,c,d)=>{try{await(0,s.A)({method:"GET",url:l.A+"viewStuds&collcode="+a+"&fusertype="+t+"&fuser="+c+"&suser"+d,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"GETTEACHDET",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(o){}},A=async(e,a,t,c,d,o,r)=>{try{await(0,s.A)({method:"GET",url:l.A+"viewAddClassstuds&collcode="+a+"&suser="+t+"&usertype="+c+"&usr="+d+"&fclassid="+o+"&teachcode="+r,headers:{"Content-Type":"application/json"}}).then((a=>{0==a.data.error_code?e({type:"SHOWADDEDSTUD",payload:a.data.data}):e({type:"CLEAR_DATA",payload:[]})}))}catch(n){}},u=async(e,a,t,s,c,d,o,r,n)=>{window.open(l.A+"getReportClassStud&collcode="+a+"&suser="+t+"&fusertype="+s+"&user="+c+"&clsid="+d+"&teachcode="+o+"&clsname="+r+"&type="+n)}},11202:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>x});var s=t(5397),l=t(6051),c=t(87021),d=t(79672),o=t(14647),r=t(95010),n=t(15444),i=t(65043),p=t(18989),h=t(83003),y=t(15355),A=t(150);var u=t(70579);const x=(0,h.Ng)((e=>(console.log(e.studdegreeReducer.degreeData,"state"),{user:e.AuthReducer.userData,degreeData:e.studdegreeReducer.degreeData,semData:e.studSemesterReducer.semData,subData:e.studSubjectReducer.subData,secData:e.studSectionReducer.secData})))((function(e){const[a,t]=(0,i.useState)(""),[x,m]=(0,i.useState)(""),[g,j]=(0,i.useState)(""),[S,T]=(0,i.useState)(""),[E,v]=(0,i.useState)(""),[w,D]=(0,i.useState)(""),C=(0,h.wA)();(0,i.useEffect)((()=>{b(),G()}),[]);const f=[{value:"select",label:"---Select Degree---"},...e.degreeData],R=[{value:"All",label:"---All---"},...e.semData],_=[{value:"All",label:"---All---"},...e.secData],b=async()=>{await(0,p.vA)(C,e.user.fcollcode)},G=async e=>{await(0,p.zH)(C,e),t(e),L()},L=async t=>{m(t),await(0,p.rZ)(C,e.user.funivcode,e.user.fcollcode,a,t),F()},F=async e=>{j(e),N()},N=async e=>{T(e)},k=async()=>{await(async(e,a,t,s,l,c,d,o,r)=>{"attendance"==r?window.open(A.A+"attDegwiseReport&collcode="+a+"&univcode="+t+"°ree="+s+"&sem="+l+"&fromdate="+c+"&todate="+d+"&sec="+o):"progress"==r?window.open(A.A+"progDegwiseReport&collcode="+a+"&univcode="+t+"°ree="+s+"&sem="+l+"&fromdate="+c+"&todate="+d+"&sec="+o):(0,y.F)("Select Report ")})(0,e.user.fcollcode,e.user.funivcode,a,x,E,w,g,S)};return(0,u.jsx)("div",{className:"container-fluid",children:(0,u.jsx)(s.A,{hoverable:!0,title:"Attendance Report DegreeWise",style:{width:"100%"},extra:(0,u.jsx)(l.A,{direction:"horizontal",children:(0,u.jsx)(c.Ay,{className:"exit",children:"Exit"})}),children:(0,u.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,u.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,u.jsx)(o.A,{span:2,children:(0,u.jsx)("label",{children:"Degree"})}),(0,u.jsx)(o.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(r.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:a,options:f,onChange:e=>G(e)})}),(0,u.jsx)(o.A,{span:2,style:{marginLeft:"80px"},children:(0,u.jsx)("label",{children:"Exam No"})}),(0,u.jsx)(o.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(r.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:x,options:R,onChange:e=>L(e)})})]}),(0,u.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,u.jsx)(o.A,{span:2,children:(0,u.jsx)("label",{children:"Date Range"})}),(0,u.jsx)(o.A,{children:(0,u.jsx)(n.A,{type:"date",onChange:e=>(e=>{v(e)})(e.target.value)})}),(0,u.jsx)(o.A,{style:{marginLeft:"20px"},children:(0,u.jsx)(n.A,{type:"date",onChange:e=>(e=>{D(e)})(e.target.value)})}),(0,u.jsx)(o.A,{span:2,style:{marginLeft:"170px"},children:(0,u.jsx)("label",{children:"Section"})}),(0,u.jsx)(o.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(r.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:g,options:_,onChange:e=>F(e)})})]}),(0,u.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,u.jsx)(o.A,{span:2,children:(0,u.jsx)("label",{children:"Report Type"})}),(0,u.jsx)(o.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(r.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:S,options:[{value:"select",label:"---Select---"},{value:"attendance",label:"Attendance Report"},{value:"progress",label:"Progress Report"}],onChange:e=>N(e)})})]}),(0,u.jsx)(d.A,{style:{marginBottom:"10px"},children:(0,u.jsx)(o.A,{style:{marginLeft:"100px"},children:(0,u.jsx)(c.Ay,{className:"save",onClick:()=>k(),children:"Generate"})})})]})})})}))},42634:()=>{}}]);
//# sourceMappingURL=495.6c81ea1a.chunk.js.map
|