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.144.119.149
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[900],{4853:(e,a,t)=>{t.d(a,{B3:()=>i,PV:()=>h,Si:()=>n,jE:()=>d,ji:()=>r,zo:()=>p});var l=t(86213),c=t(150),s=t(15355);const o=e=>({type:"LOADING",load:e}),d=async(e,a,t,s,o)=>{try{await(0,l.A)({method:"GET",url:c.A+"loaddayteachname&collcode="+a+"&univcode="+t+"&usertype="+s+"&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(d){}},r=async(e,a,t,s,o)=>{try{await(0,l.A)({method:"GET",url:c.A+"loadclassnameday&collcode="+a+"&usertype="+t+"&user="+s+"&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(d){}},n=async(e,a,t,s)=>{e(o(!1));try{await l.A.post(c.A+"viewattendanceentry&collcode="+t+"&sort="+s,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(d){e(o(!1))}},i=async(e,a)=>{try{await l.A.post(c.A+"saveattendanceentry",a).then((e=>0==e.data.error_code?void(0,s.F)(e.data.msg):void(0,s.F)(e.data.data.msg)))}catch(t){}},h=async(e,a,t,s,o,d,r)=>{try{await(0,l.A)({method:"GET",url:c.A+"viewDeleteAddStudDet&collcode="+a+"&univcode="+t+"&usertype="+s+"&user="+o+"&fromteach="+d+"&toteach="+r,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(n){}},p=async(e,a,t,o,d,r)=>{try{await(0,l.A)({method:"GET",url:c.A+"deleteAddstudentry&collcode="+e+"&teachcode="+a+"&clsid="+t+"&period="+o+"&noofcls="+d+"&date="+r,headers:{"Content-Type":"application/json"}}).then((e=>{e.data.error_code,(0,s.F)(e.data.data)}))}catch(n){}}},83900:(e,a,t)=>{t.r(a),t.d(a,{default:()=>A});var l=t(65043),c=t(5397),s=t(6051),o=t(87021),d=t(79672),r=t(14647),n=t(95010),i=t(15444),h=t(83003),p=t(4853),y=t(150);var u=t(70579);const A=(0,h.Ng)((e=>(console.log(e.modifysttEntryToDeleteReducer.modifyForAttEntry,"hhsdvcuh"),{user:e.AuthReducer.userData,teachData:e.getattEntryTeacherNameReducer.teachData,classData:e.getattEntryClassNameReducer.classData})))((function(e){const[a,t]=(0,l.useState)(""),[A,x]=(0,l.useState)(""),[m,j]=(0,l.useState)(""),[v,f]=(0,l.useState)(""),[g,w]=(0,l.useState)("select"),E=(0,h.wA)();(0,l.useEffect)((()=>{t(e.teachData),D()}),[]);const D=async()=>{await(0,p.jE)(E,e.user.fcollcode,e.user.funivcode,e.user.fusertype,e.user.fuser)},T=[{value:"select",label:"---Select Teacher---"},...e.teachData],C=[{value:"select",label:"---Select Class---"},...e.classData],S=async()=>{await(async(e,a,t,l,c,s,o,d)=>{"pdf"==d?window.open(y.A+"pdfAttDateWiseReport&collcode="+a+"&univcode="+t+"&teachcode="+l+"&clscode="+c+"&fromdate="+s+"&todate="+o+"&reporttype"+d):"excel"==d?window.open(y.A+"AttDateWiseReportexcel&collcode="+a+"&univcode="+t+"&teachcode="+l+"&clscode="+c+"&fromdate="+s+"&todate="+o+"&reporttype"+d):"summary"==d&&window.open(y.A+"monthwiseAttXlreport&collcode="+a+"&univcode="+t+"&teachcode="+l+"&clscode="+c+"&fromdate="+s+"&todate="+o)})(0,e.user.fcollcode,e.user.funivcode,a,A,m,v,g)};return(0,u.jsx)("div",{className:"container-fluid",children:(0,u.jsx)(c.A,{hoverable:!0,title:"Attendance Report",style:{width:"100%"},extra:(0,u.jsx)(s.A,{direction:"horizontal",children:(0,u.jsx)(o.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)(r.A,{span:2,children:(0,u.jsx)("label",{children:"Teacher Name"})}),(0,u.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(n.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:a,options:T,onChange:a=>(async a=>{t(a),await(0,p.ji)(E,e.user.fcollcode,e.user.fusertype,e.user.fuser,a)})(a)})}),(0,u.jsx)(r.A,{span:2,style:{marginLeft:"80px"},children:(0,u.jsx)("label",{children:"Class Name"})}),(0,u.jsx)(r.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:(0,u.jsx)(n.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:A,options:C,onChange:e=>(async e=>{x(e)})(e)})})]}),(0,u.jsxs)(d.A,{style:{marginBottom:"10px"},children:[(0,u.jsx)(r.A,{span:2,children:(0,u.jsx)("label",{children:"Report Type"})}),(0,u.jsx)(r.A,{xs:12,sm:12,md:6,lg:4,xl:4,children:(0,u.jsx)(n.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},value:g,options:[{value:"select",label:"---Select---"},{value:"pdf",label:"DateWise PDF"},{value:"excel",label:"DateWise Excel"},{value:"summary",label:"Summary"}],onChange:e=>(e=>{w(e),console.log(e)})(e)})}),(0,u.jsx)(r.A,{span:2,style:{marginLeft:"280px"},children:(0,u.jsx)("label",{children:"Date Range"})}),(0,u.jsx)(r.A,{children:(0,u.jsx)(i.A,{type:"date",value:m,onChange:e=>(async e=>{j(e),console.log(e)})(e.target.value)})}),"summary"==g?(0,u.jsx)(r.A,{style:{marginLeft:"50px"},children:(0,u.jsx)(i.A,{type:"date",value:v,onChange:e=>(async e=>{f(e),console.log(e)})(e.target.value)})}):""]}),(0,u.jsx)(d.A,{style:{marginLeft:"100px"},children:(0,u.jsx)(o.Ay,{className:"save",onClick:()=>S(),children:"Generate"})})]})})})}))}}]);
//# sourceMappingURL=900.f26f7fd5.chunk.js.map
|