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.117.91.170
(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{1063:function(e,t,a){"use strict";a.r(t);var n=a(41),o=a.n(n),r=a(3),l=a(68),c=a(99),p=a(100),s=a(102),u=a(101),i=a(103),d=a(1),f=a.n(d),m=a(858),g=a(1139),h=a(1106),v=a(272),E=a(1098),b=a(1100),y=a(104),R=a(266),w=a(271),S=a(270),C=a(314),D=a(370),O=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,p=new Array(n),i=0;i<n;i++)p[i]=arguments[i];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:"getCombwiseStudCunt",text:"Combinationwise student count",type:"ADM"},{value:"admissionSummary",text:"Admission Summary",type:"ADM"},{value:"admissionDetail",text:"Admission Detail",type:"ADM"},{value:"admissioncombinationwiseintake",text:"Combination Wise Intake",type:"ADM"}]},a.getDegrees=function(e,t){a.setState({frmDeggrp:t.value})},a.handleChange=function(){var e=Object(l.a)(o.a.mark(function e(t,n){var l;return o.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(r.a)({},n.name,n.value));case 9:a.setState(Object(r.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,o=t.rftype,r=a.state.fexamrange;r=r.split("").join("','"),console.log("first"),console.log(r),window.open(w.c+n+"&univcode="+a.props.univcode+"°grp="+e+"&format="+o+"&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="+r,"_blank")},a.handleCancel=function(){a.setState({reportType:"",reportFormat:"",frmDeggrp:"",studentType:""})},a.handleFromChange=function(e,t){var n=e.target.name,o=e.target.value;"fdegfrom"!=n&&"fcolfrom"!=n&&"fsubfrom"!=n||("fdegfrom"==n&&("0"==o?a.setState({fdegto:"ZZZZ"}):a.setState({fdegto:o})),"fcolfrom"==n&&("0"==o?a.setState({fcolto:"ZZZZ"}):a.setState({fcolto:o})),"fsubfrom"==n&&("0"==o?a.setState({fsubto:"ZZZZ"}):a.setState({fsubto:o})),"fdeggrpfrom"==n&&("0"==o?a.setState({fdeggrpto:"ZZZZ"}):a.setState({fdeggrpto:o})))},a.renderHeader=function(){return f.a.createElement(g.a.Header,{style:{display:"flex"}},f.a.createElement("h3",null,"Admission Reports"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(h.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),f.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),f.a.createElement(m.a,{to:"/dashboard"},f.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(i.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,t.fcollcode,t.fdegfrom),o=t.fdegto,r=t.fcolfrom,l=t.fcolto,c=t.fdeggrpfrom,p=t.fdeggrpto,s=t.fsubfrom,u=t.fsubto,i=(t.clgdrop,t.showSubRange,t.fexamrange,t.moduleType,t.currentReportType),d=(this.state.activeItem,this.props.college.filter(function(t){return t.fcollcode==e.props.user.fcollcode})[0]),m=(parseInt(this.props.user.fcurtype)<499?this.props.degcoll.map(function(e){return{value:e.fcollcode,text:e.fcollname}}):(d.fcollcode,"".concat(d.fcollcode," ").concat(d.fcollname," ")),Object(S.i)());return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(g.a,{fluid:!0},f.a.createElement(g.a.Content,null,this.renderHeader(),f.a.createElement(v.a,null),f.a.createElement(g.a.Description,{style:{overflowY:"auto",height:"".concat(m,"px")}},f.a.createElement("div",{className:"row",style:{margin:"0px"}},f.a.createElement("div",{className:"col-md-6"},f.a.createElement(E.a,null,f.a.createElement(E.a.Field,null,f.a.createElement("label",null,"Report Type"),f.a.createElement(b.a,{placeholder:"Select Report Type",name:"reportType",value:a,selection:!0,search:!0,options:i,onChange:this.handleChange})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Input,{placeholder:"From",value:c,width:8,name:"fdeggrpfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"5",label:"Degree Group Range"}),f.a.createElement(E.a.Input,{placeholder:"To",name:"fdeggrpto",value:p,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Input,{placeholder:"From",value:n,width:8,name:"fdegfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"5",label:"Degree Range"}),f.a.createElement(E.a.Input,{placeholder:"To",name:"fdegto",value:o,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Input,{placeholder:"From",value:r,width:8,name:"fcolfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"4",label:"College Range"}),f.a.createElement(E.a.Input,{placeholder:"To",name:"fcolto",value:l,width:8,onChange:this.handleChange,maxLength:"4",style:{marginTop:"1.6em"}})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Input,{placeholder:"From",value:s,width:8,name:"fsubfrom",onChange:this.handleChange,maxLength:"5",label:"Subject Code Range"}),f.a.createElement(E.a.Input,{placeholder:"To",name:"fsubto",value:u,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement("br",null))))))))}}]),t}(d.Component);t.default=Object(y.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:R.j,fetchDegColl:C.d,getReport:R.r,showError:R.w,getActiveCollegeList:D.a,getDropDownOptions:R.p})(O)},272:function(e,t,a){"use strict";var n=a(268),o=a.n(n),r=a(265),l=a.n(r),c=a(1),p=a.n(c),s=a(333),u=a(551),i=a(549),d=a(267);function f(e){var t=e.children,a=e.className,n=e.clearing,r=e.content,c=e.fitted,m=e.hidden,g=e.horizontal,h=e.inverted,v=e.section,E=e.vertical,b=l()("ui",Object(s.a)(n,"clearing"),Object(s.a)(c,"fitted"),Object(s.a)(m,"hidden"),Object(s.a)(g,"horizontal"),Object(s.a)(h,"inverted"),Object(s.a)(v,"section"),Object(s.a)(E,"vertical"),"divider",a),y=Object(u.a)(f,e),R=Object(i.a)(f,e);return p.a.createElement(R,o()({},y,{className:b}),d.a.isNil(t)?r:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},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 i}),a.d(t,"b",function(){return d});var n=a(41),o=a.n(n),r=a(68),l=a(269),c=function(e){return function(){var t=Object(r.a)(o.a.mark(function t(a,n){var r,c;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=n(),t.next=3,l.a.get("/app.php",{params:{a:"fetchDegColl",univcode:r.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(r.a)(o.a.mark(function n(r,c){var p,s;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=c(),r({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,r({type:"UNSET_LOADER"}),"object"!==typeof s.data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===s.data.error_code?r({type:"FETCH_CNTR_DET",payload:s.data}):r({type:"SET_ERROR",payload:s.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},i=function(e,t,a,n){return function(){var c=Object(r.a)(o.a.mark(function r(c,p){var s,u;return o.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=p(),c({type:"SET_LOADER"}),o.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=o.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 o.stop()}},r)}));return function(e,t){return c.apply(this,arguments)}}()},d=function(e,t,a){return function(){var n=Object(r.a)(o.a.mark(function n(r,c){var p,s;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return p=c(),r({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,r({type:"UNSET_LOADER"}),"object"!==typeof s.data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):r({type:"SET_ERROR",payload:s.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=102.ff1ca737.chunk.js.map
|