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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/78.b8549827.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1123:function(e,t,a){"use strict";a.r(t);var r=a(3),n=a(41),l=a.n(n),o=a(68),c=a(99),p=a(100),i=a(102),s=a(101),d=a(103),m=a(1),f=a.n(m),g=a(104),u=a(1139),h=a(1106),E=a(272),b=a(1098),y=a(858),v=a(266),x=a(269),C=a(271),D=a(273),w=a.n(D),T=a(270),O=a(328),k=a(288),j=a(1e3),S=a(1101),G=(a(167),function(e){function t(){var e,a;Object(c.a)(this,t);for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(n)))).state={tdata:!1,timetabledet:[],searchVal:""},a.searchTable=function(e,t){var r=t.value,n=a.props.tblData.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(r.toLowerCase())})});a.setState({timetabledet:n,searchVal:t.value})},a}return Object(d.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){this.setState({timetabledet:this.props.tblData}),console.log("this.props.tblData",this.props)}},{key:"componentDidUpdate",value:function(e){this.props.tblData!==e.tblData&&(this.setState({timetabledet:this.props.tblData}),console.log("this.props.tblData",this.props.tblData))}},{key:"render",value:function(){var e=this.state.timetabledet;return console.log("tblData",e),f.a.createElement("div",null,f.a.createElement(E.a,null),f.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},f.a.createElement(j.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:this.searchTable,value:this.state.searchVal,style:{fontSize:"1.1em"}})),f.a.createElement("div",null,f.a.createElement(S.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"sticky"},f.a.createElement(S.a.Header,null,f.a.createElement(S.a.Row,{textAlign:"center"},f.a.createElement(S.a.HeaderCell,null,"Sl.No."),f.a.createElement(S.a.HeaderCell,null,"Date of Exam"),f.a.createElement(S.a.HeaderCell,null,"Timming"),f.a.createElement(S.a.HeaderCell,null,"Degree"),f.a.createElement(S.a.HeaderCell,null,"Semester "),f.a.createElement(S.a.HeaderCell,null,"Q.P.Code"),f.a.createElement(S.a.HeaderCell,null,"Subject"))),f.a.createElement(S.a.Body,null,e.map(function(e,t){return f.a.createElement(S.a.Row,{key:t,style:{overflow:"hidden"}},f.a.createElement(S.a.Cell,{textAlign:"center"},t+1),f.a.createElement(S.a.Cell,{textAlign:"center"},e.fdate),f.a.createElement(S.a.Cell,{textAlign:"center"},e.ftime),f.a.createElement(S.a.Cell,{textAlign:"center"},e.fdegree),f.a.createElement(S.a.Cell,{textAlign:"center"},e.fexamno),f.a.createElement(S.a.Cell,{textAlign:"center"},e.fqpcode),f.a.createElement(S.a.Cell,{textAlign:"left"},e.fsubname))})))))}}]),t}(m.Component)),R=a(284),F=a.n(R),z=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,p=new Array(n),d=0;d<n;d++)p[d]=arguments[d];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(p)))).state={timetabledata:!1,fdegfrm:"0",fdegto:"zzzzz",fqpfrm:"0",fqpto:"zzzzz",fdatefrom:F()().format("DD/MM/YYYY"),fdateto:F()().format("DD/MM/YYYY"),rtype:"QPCode wise",stype:"b",fdeggrp:"",fyear:"",fexamtype:"",fexamdate:""},a.handleCancel=function(){a.setState({timetabledata:!1,fdatefrom:F()().format("DD/MM/YYYY"),fdateto:F()().format("DD/MM/YYYY"),fdegfrm:"",fdegto:"",fqpfrm:"0",fqpto:"zzzzz",fdate:"",rtype:"QPCode wise",stype:"b"})},a.changeDeggrp=function(){var e=Object(o.a)(l.a.mark(function e(t,r){var n,o;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(r.value),n=a.props.deggrp.filter(function(e,t){return e.fdeggrp===r.value}),o=n[0],e.next=5,a.setState({fyear:o.fyear,fexamtype:o.fexamtype,fexamdate:o.fexamdate,fdeggrp:o.fdeggrp,frmsubmit:!1});case 5:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangedate=function(e){a.setState(Object(r.a)({},e.target.name,e.target.value))},a.handleChange=function(e,t){a.setState(Object(r.a)({},t.name,t.value))},a.handleReport=function(){var e=a.state,t=e.fqpfrm,r=e.fqpto,n=e.fdatefrom,l=e.fdateto,o=e.fdegfrm,c=e.fdegto,p=a.props.user.fdeggrp;if(""!==p)window.open(C.c+"viewTimeTable&univcode="+a.props.univcode+"&dgp="+p+"&degfrm="+o+"&degto="+c+"&qpfrm="+t+"&qpto="+r+"&fdatefrom="+n+"&fdateto="+l,"_blank");else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleTable=function(){var e=a.state,t=e.fqpfrm,r=e.fqpto,n=e.fdatefrom,l=e.fdateto,o=(e.stype,e.fdegfrm),c=e.fdegto,p=e.fdeggrp;if(""!==p)a.props.getTimeTables(t,r,n,l,o,c,p),a.setState({timetabledata:!0});else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.show=function(e){return function(){return a.setState({dimmer:e,open:!0})}},a.close=function(e,t){"keydown"!=e.type&&a.setState({open:!1})},a}return Object(d.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.props.fetchDegGrp();case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.state,t=e.fqpto,a=e.fqpfrm,r=e.fdatefrom,n=e.fdateto,l=(e.stype,e.fdegfrm),o=e.fdegto,c=e.dimmer,p=e.open,i=e.fdeggrp,s=e.fyear,d=e.fexamtype,m=e.fexamdate;console.log("Time Table",this.props.timeTable);var g={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},v=Object(T.i)();return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(u.a,{fluid:!0},f.a.createElement(u.a.Content,null,f.a.createElement(u.a.Header,{style:{display:"flex"}},f.a.createElement("h4",null,"Exam Time Table Report"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(h.a,{basic:!0,color:"blue",content:"Report",icon:"file",onClick:this.show("blurring")}),f.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),f.a.createElement(y.a,{to:"/dashboard"},f.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),f.a.createElement(E.a,null),f.a.createElement(u.a.Description,{style:{height:"".concat(v,"px"),overflowY:"auto"}},f.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},f.a.createElement(b.a,null,f.a.createElement(k.a,{pdeggrp:{fdeggrp:i,fyear:s,fexamtype:d,fexamdate:m},changeDeggrp:this.changeDeggrp}),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Input,{placeholder:"From",value:l,width:6,name:"fdegfrm",onChange:this.handleChange,maxLength:"5",label:"Degree Range"}),f.a.createElement(b.a.Input,{placeholder:"To",name:"fdegto",value:o,width:6,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Field,{width:6},f.a.createElement("label",null," Date Range "),f.a.createElement(w.a,{formatChars:g,type:"text",value:r,mask:"ed/nm/zyyy",placeholder:"From",name:"fdatefrom",onChange:this.handleChangedate})),f.a.createElement(b.a.Field,{width:6},f.a.createElement(w.a,{formatChars:g,type:"text",value:n,mask:"ed/nm/zyyy",placeholder:"To",name:"fdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Input,{placeholder:"From",value:a,width:6,name:"fqpfrm",onChange:this.handleChange,maxLength:"5",label:"QPCode Range"}),f.a.createElement(b.a.Input,{placeholder:"To",name:"fqpto",value:t,width:6,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement(h.a,{color:"blue",onClick:this.handleTable,content:"Submit"}))),f.a.createElement(O.a,{open:p,dim:c,close:this.close}),this.state.timetabledata?f.a.createElement(G,{tblData:this.props.timeTable}):null))))}}]),t}(m.Component);t.default=Object(g.b)(function(e){return{deggrp:e.deggrp,univcode:e.univ.funivcode,timeTable:e.viewTimeTable,user:e.user}},{showError:v.w,getTimeTables:function(e,t,a,r,n,c,p){return function(){var i=Object(o.a)(l.a.mark(function o(i,s){var d,m,f;return l.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return d=s(),i({type:"SET_LOADER"}),l.next=4,x.a.get("/app.php",{params:{a:"getTimeTables",univcode:d.univ.funivcode,dgp:p,fqpfrm:e,fqpto:t,fdatefrom:a,fdateto:r,fdegfrm:n,fdegto:c}});case 4:m=l.sent,i({type:"UNSET_LOADER"}),console.log("viewTimeTable",m.data,typeof m.data),"object"!==typeof m.data?i({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===m.data.error_code?i({type:"GET_VIEW_TIME_TABLE",payload:m.data}):(i({type:"DEL_VIEW_TIME_TABLE"}),f={header:"Error",content:m.data.data.msg},i(Object(v.w)(f)));case 8:case"end":return l.stop()}},o)}));return function(e,t){return i.apply(this,arguments)}}()},fetchDegGrp:v.j})(z)},288:function(e,t,a){"use strict";var r=a(41),n=a.n(r),l=a(68),o=a(99),c=a(100),p=a(102),i=a(101),s=a(103),d=a(1),m=a.n(d),f=a(104),g=a(1098),u=a(1100),h=a(266),E=function(e){function t(){return Object(o.a)(this,t),Object(p.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=Object(l.a)(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});console.log(this.props.pdeggrp);var t=this.props.pdeggrp,a=t.fdeggrp,r=t.fyear,n=t.fexamtype,l=t.fexamdate;return m.a.createElement("div",null,m.a.createElement(g.a.Field,null,m.a.createElement("label",null,"Degree Group"),m.a.createElement(u.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:a,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1})),m.a.createElement(g.a.Group,null,m.a.createElement(g.a.Input,{placeholder:"Year",value:r,width:4,label:"Year",readOnly:!0}),m.a.createElement(g.a.Input,{placeholder:"Type",value:n,width:3,label:"Type",readOnly:!0}),m.a.createElement(g.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:l,readOnly:!0})))}}]),t}(d.Component);t.a=Object(f.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:h.j})(E)},298:function(e,t,a){"use strict";var r=a(99),n=a(100),l=a(102),o=a(101),c=a(103),p=a(1),i=a.n(p),s=a(104),d=a(1098),m=a(1100),f=a(266),g=function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp()}},{key:"componentDidUpdate",value:function(e){this.props.user!==e.user&&this.props.fetchDegGrp()}},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});return i.a.createElement(d.a.Field,{width:"16"},i.a.createElement("label",null,"Degree Group"),i.a.createElement(m.a,{size:"mini",error:this.props.dgerror,fluid:!0,search:!0,selection:!0,value:this.props.frmDeggrp,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1}))}}]),t}(p.Component);t.a=Object(s.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:f.j})(g)},328:function(e,t,a){"use strict";var r=a(2),n=a(3),l=a(99),o=a(100),c=a(102),p=a(101),i=a(103),s=a(1),d=a.n(s),m=a(1096),f=a(1106),g=a(1098),u=a(309),h=a(1100),E=a(998),b=a(999),y=a(104),v=a(298),x=a(271),C=function(e){function t(){var e,a;Object(l.a)(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(p.a)(t)).call.apply(e,[this].concat(o)))).state={deggrp:[],fdeggrp:"",fyear:"",fexamtype:"",fexamdate:"",fexamrange:"ABCDEF",deggrpError:!1,frtype:"QP Code Wise",frtypes:["Error Report","QP Code Wise","Degree Wise"],fexamrangeError:!1,frtypeError:!1,ferror:!1,ferrorm:"",rftype:"PDF Format",emptydates:!1,fdegfrom:"0",fdegto:"ZZZZ"},a.changeDeggrp=function(e,t){var r=a.state.deggrp.filter(function(e,a){return e.fdeggrp===t.value})[0];a.setState({fyear:r.fyear,fexamtype:r.fexamtype,fexamdate:r.fexamdate,fdeggrp:r.fdeggrp})},a.handleChange=function(e,t){a.setState(Object(n.a)({},t.name,t.value))},a.generateReport=function(){var e=a.state,t=e.fdeggrp,r=e.fexamrange,n=e.frtype,l=e.rftype,o=e.emptydates,c=e.fdegfrom,p=e.fdegto;if(""!=t)if(a.setState({deggrpError:!1,ferror:!1,ferrorm:""}),""!=r)if(a.setState({fexamrangeError:!1,ferror:!1,ferrorm:""}),""!=n)if(a.setState({frtypeError:!1,ferror:!1,ferrorm:""}),console.log(l),"Error Report"===n)window.open(x.c+"GenerateExamTimetableError&deggrp="+a.state.fdeggrp+"&univcode="+a.props.univ.funivcode+"&examrange="+a.state.fexamrange,"_blank");else if("Degree Wise"===n){console.log(n,l);var i=o?"T":"F";console.log(n,l,i),"Excel Format"==l?window.open(x.c+"examTimeTableDegreeWiseExcel&deggrp="+a.state.fdeggrp+"&univcode="+a.props.univ.funivcode+"&ignorett="+i+"&fdegfrom="+c+"&fdegto="+p+"&examrange="+a.state.fexamrange,"_blank"):window.open(x.c+"GenerateDGExamTimetable&deggrp="+a.state.fdeggrp+"&univcode="+a.props.univ.funivcode+"&ignorett="+i+"&fdegfrom="+c+"&fdegto="+p+"&examrange="+a.state.fexamrange,"_blank")}else"QP Code Wise"===n&&("Excel Format"==l?window.open(x.c+"examTimeTableQPWiseReportExcel&deggrp="+a.state.fdeggrp+"&univcode="+a.props.univ.funivcode+"&examrange="+a.state.fexamrange,"_blank"):window.open(x.c+"GenerateQPExamTimetable&deggrp="+a.state.fdeggrp+"&univcode="+a.props.univ.funivcode+"&examrange="+a.state.fexamrange,"_blank"));else a.setState({frtypeError:!0,ferror:!0,ferrorm:"Report Type required."});else a.setState({fexamrangeError:!0,ferror:!0,ferrorm:"Exam Range required."});else a.setState({deggrpError:!0,ferror:!0,ferrorm:"Degree Group required."})},a.changecheckempty=function(e,t){console.log(t.checked),a.setState({emptydates:t.checked})},a}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.setState({deggrp:this.props.deggrp})}},{key:"componentDidUpdate",value:function(e){this.props.deggrp!==e.deggrp&&this.setState({deggrp:Object(r.a)(this.props.deggrp)})}},{key:"render",value:function(){var e=this,t=this.state,a=t.fdeggrp,r=t.fyear,l=t.fexamtype,o=t.fexamdate,c=t.fexamrange,p=t.frtype,i=t.frtypes,s=t.deggrpError,y=t.fexamrangeError,x=t.frtypeError,C=t.ferror,D=t.ferrorm,w=t.rftype,T=t.emptydates,O=t.fdegfrom,k=t.fdegto,j=i.map(function(e,t){return{key:t,value:e,text:e}});return d.a.createElement("div",null,d.a.createElement(m.a,{style:{maxHeight:"60%",width:"50%"},dimmer:this.props.dim,open:this.props.open,onClose:this.props.close,closeOnDimmerClick:!1},d.a.createElement(m.a.Header,{style:{display:"flex"}},"Time Table Report",d.a.createElement("div",{className:"ml-auto"},d.a.createElement(f.a,{basic:!0,color:"blue",content:"Generate",onClick:this.generateReport,icon:"file pdf outline"}),d.a.createElement(f.a,{basic:!0,color:"black",icon:"ban",onClick:this.props.close,content:"Cancel"}))),d.a.createElement(m.a.Content,{style:{height:"50vh",overflowY:"auto"}},d.a.createElement(g.a,{error:!0},C?d.a.createElement(u.a,{error:!0,content:D}):null,d.a.createElement(v.a,{changeDeggrp:this.changeDeggrp,frmDeggrp:a,dgerror:s}),d.a.createElement(g.a.Group,null,d.a.createElement(g.a.Input,{placeholder:"Exam Year",value:r,width:4,label:"Exam Year",readOnly:!0}),d.a.createElement(g.a.Input,{placeholder:"Exam Type",value:l,width:3,label:"Exam Type",readOnly:!0}),d.a.createElement(g.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:o,readOnly:!0})),d.a.createElement("label",null,d.a.createElement("b",null,"Report Type")),d.a.createElement(h.a,{size:"mini",fluid:!0,search:!0,selection:!0,name:"frtype",value:p,onChange:this.handleChange,placeholder:"Report Type",label:"Report Type",error:x,options:j}),"Degree Wise"==p?d.a.createElement(g.a.Group,{style:{marginTop:"10px"}},d.a.createElement(g.a.Input,Object(n.a)({placeholder:"From",error:!1,width:5,onChange:this.handleChange,value:O,name:"fdegfrom",label:"Degree Range"},"error",y)),d.a.createElement(g.a.Input,Object(n.a)({placeholder:"To",error:!1,width:5,onChange:this.handleChange,value:k,name:"fdegto",style:{marginTop:"22px"}},"error",y))):null,d.a.createElement(g.a.Group,null,d.a.createElement(g.a.Input,Object(n.a)({placeholder:"Exam Range",error:!1,width:5,onChange:this.handleChange,value:c,name:"fexamrange",label:"Exam Range"},"error",y))),"Degree Wise"==p?d.a.createElement(E.a,{onChange:function(t,a){return e.changecheckempty(t,a)},value:T,checked:T,label:"Ignore empty Dates"}):null,d.a.createElement(g.a.Group,{inline:!0},d.a.createElement(g.a.Field,{control:b.a,name:"rftype",label:"PDF",value:"PDF Format",checked:"PDF Format"===w,onChange:this.handleChange}),d.a.createElement(g.a.Field,{control:b.a,name:"rftype",label:"EXCEL",value:"Excel Format",checked:"Excel Format"===w,onChange:this.handleChange}))))))}}]),t}(s.Component);t.a=Object(y.b)(function(e){return{deggrp:e.deggrp,univ:e.univ}},{})(C)}}]);
//# sourceMappingURL=78.b8549827.chunk.js.map