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


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

(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[155],{18989:(e,a,t)=>{"use strict";t.d(a,{Hu:()=>A,MX:()=>h,XD:()=>u,dF:()=>p,gq:()=>r,r8:()=>o,rZ:()=>i,vA:()=>d,xs:()=>y,zH:()=>n});var l=t(86213),s=t(150),c=(t(60211),t(15355));const o=async(e,a,t,c,o)=>{try{await(0,l.A)({mathod:"GET",url:s.A+"loadteachname&collcode="+a+"&usertype="+t+"&user="+c+"&suser="+o,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(r){}},r=async(e,a,t)=>{try{await(0,l.A)({mathod:"GET",url:s.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){}},d=async(e,a)=>{try{await(0,l.A)({mathod:"GET",url:s.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,l.A)({method:"GET",url:s.A+"loadsemcreateclass&degreecode="+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,o)=>{try{await(0,l.A)({method:"GET",url:s.A+"loadssubcreateclass&univcode="+a+"&collcode="+t+"&degree="+c+"&sem="+o,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(r){}},p=async(e,a,t,o,r,d,n,i,p,h)=>{if(console.log(o,r,d,n,i,p,h,"checking"),"select"!=p&&""!=p&&void 0!=p)if("select"!=i&&""!=i&&void 0!=i)if("select"!=o&&""!=o&&void 0!=o)if("select"!=r&&""!=r&&void 0!=r)if(""!=h&&void 0!=h)if("select"!=d&&""!=d&&void 0!=d)try{await(0,l.A)({method:"GET",url:s.A+"viewcreateclass&collcode="+a+"&univcode="+t+"&degree="+o+"&sem="+r+"&subject="+d+"&mode="+n+"&clsid="+i+"&teacher="+p+"&section="+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(u){}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 l.A.post(s.A+"savecreateclass",a).then((e=>{0==e.data.error_code&&(0,c.F)(e.data.data.msg)}))}catch(t){}},u=async(e,a,t,c,o)=>{try{await(0,l.A)({method:"GET",url:s.A+"viewStuds&collcode="+a+"&fusertype="+t+"&fuser="+c+"&suser"+o,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(r){}},y=async(e,a,t,c,o,r,d)=>{try{await(0,l.A)({method:"GET",url:s.A+"viewAddClassstuds&collcode="+a+"&suser="+t+"&usertype="+c+"&usr="+o+"&fclassid="+r+"&teachcode="+d,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){}},A=async(e,a,t,l,c,o,r,d,n)=>{window.open(s.A+"getReportClassStud&collcode="+a+"&suser="+t+"&fusertype="+l+"&user="+c+"&clsid="+o+"&teachcode="+r+"&clsname="+d+"&type="+n)}},40966:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>A});var l=t(5397),s=t(6051),c=t(87021),o=t(79672),r=t(14647),d=t(95010),n=t(15444),i=t(65043),p=t(83003),h=t(18989),u=t(150);var y=t(70579);const A=(0,p.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)(""),[A,x]=(0,i.useState)(""),[g,m]=(0,i.useState)(""),[j,S]=(0,i.useState)(""),[v,T]=(0,i.useState)(""),[E,C]=(0,i.useState)(""),[D,w]=(0,i.useState)(""),[f,b]=(0,i.useState)(""),_=(0,p.wA)();(0,i.useEffect)((()=>{R(),B()}),[]);const R=async()=>{await(0,h.vA)(_,e.user.fcollcode)},G=[{value:"select",label:"---Select Degree---"},...e.degreeData],L=[{value:"select",label:"---Select Semester---"},...e.semData],F=[{value:"select",label:"---Select Subject---"},{value:"All",label:"All"},...e.subData],N=[{value:"select",label:"---Select Section---"},{value:"All",label:"All"},...e.secData],B=async e=>{t(e),await(0,h.zH)(_,e),k()},k=async t=>{x(t),H(),await(0,h.rZ)(_,e.user.funivcode,e.user.fcollcode,a,t)},H=e=>{m(e),z()},z=e=>{S(e)},M=async()=>{await((e,a,t,l,s,c,o,r,d,n,i)=>{window.open(u.A+"attendancereportformab&collcode="+a+"&univcode="+t+"&degree="+l+"&sem="+s+"&sub="+c+"&sec="+o+"&fromreg="+r+"&toreg="+d+"&fromper="+n+"&toper="+i)})(0,e.user.fcollcode,e.user.funivcode,a,A,g,j,v,E,D,f)};return(0,y.jsx)("div",{className:"container-fluid",children:(0,y.jsx)(l.A,{hoverable:!0,title:"Attendance From A & B",style:{width:"100%"},extra:(0,y.jsx)(s.A,{direction:"horizontal",children:(0,y.jsx)(c.Ay,{className:"exit",children:"Exit"})}),children:(0,y.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,y.jsxs)(o.A,{style:{marginBottom:"10px"},children:[(0,y.jsx)(r.A,{span:2,children:(0,y.jsx)("label",{children:"Degree"})}),(0,y.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,y.jsx)(d.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:a,options:G,onChange:e=>B(e)})}),(0,y.jsx)(r.A,{span:2,style:{marginLeft:"80px"},children:(0,y.jsx)("label",{children:"Semester"})}),(0,y.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,y.jsx)(d.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:A,options:L,onChange:e=>k(e)})})]}),(0,y.jsxs)(o.A,{style:{marginBottom:"10px"},children:[(0,y.jsx)(r.A,{span:2,children:(0,y.jsx)("label",{children:"Subject"})}),(0,y.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,y.jsx)(d.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:g,options:F,onChange:e=>H(e)})}),(0,y.jsx)(r.A,{span:2,style:{marginLeft:"80px"},children:(0,y.jsx)("label",{children:"Section"})}),(0,y.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,y.jsx)(d.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:j,options:N,onChange:e=>z(e)})})]}),(0,y.jsxs)(o.A,{style:{marginBottom:"10px"},children:[(0,y.jsx)(r.A,{span:2,children:(0,y.jsx)("label",{children:"Register No. Range"})}),(0,y.jsx)(r.A,{children:(0,y.jsx)(n.A,{type:"text",placeholder:"Reg.No From",value:v,onChange:e=>(e=>{T(e),console.log(e)})(e.target.value)})}),(0,y.jsx)(r.A,{style:{marginLeft:"25px"},children:(0,y.jsx)(n.A,{type:"text",placeholder:"Reg.No To",value:E,onChange:e=>(e=>{C(e),console.log(e)})(e.target.value)})}),(0,y.jsx)(r.A,{span:2,style:{marginLeft:"80px"},children:(0,y.jsx)("label",{children:"Percentage Range"})}),(0,y.jsx)(r.A,{children:(0,y.jsx)(n.A,{type:"text",placeholder:"Percentage From",value:D,onChange:e=>(e=>{w(e),console.log(e)})(e.target.value)})}),(0,y.jsx)(r.A,{style:{marginLeft:"25px"},children:(0,y.jsx)(n.A,{type:"text",placeholder:"Percentage To",value:f,onChange:e=>(e=>{b(e),console.log(e)})(e.target.value)})})]}),(0,y.jsx)(o.A,{style:{marginBottom:"10px"},children:(0,y.jsx)(r.A,{span:2,style:{marginLeft:"100px"},children:(0,y.jsx)(c.Ay,{className:"report",onClick:()=>M(),children:"Generate"})})})]})})})}))},42634:()=>{}}]);
//# sourceMappingURL=155.9ecc65cb.chunk.js.map