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 : 52.15.109.209
(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{1064: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),u=a(102),s=a(101),i=a(103),f=a(1),d=a.n(f),m=a(858),g=a(1139),h=a(1106),v=a(272),E=a(1098),y=a(1100),b=a(104),R=a(266),x=a(271),w=a(270),S=a(314),C=a(370),T=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(u.a)(this,(e=Object(s.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:"",fyear:"",fexamtype:"",showRadioButton:!1,showExamRange:!1,currentReportType:[{value:"examRegistrationSummary",text:"Exam Registration Summary",type:"EXAM"},{value:"examRegistrationDetail",text:"Exam Registration Detail",type:"EXAM"},{value:"exmapp_reg_rep_count",text:"Course Wise Active Student Count(Regular,Repeater)",type:"EXAM"},{value:"exam_tot_student_count_semwise",text:"Course Wise Active Student Count(Degree wise)",type:"EXAM"},{value:"generateCollegeWiseStudListReport",text:"College wise Student List",type:"EXAM"}]},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,o=a.state.fexamrange;o=o.split("").join("','"),console.log("first"),console.log(o),window.open(x.c+n+"&univcode="+a.props.univcode+"°grp="+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+"&fyear="+a.state.fyear+"&fexamtype="+a.state.fexamtype+"&fexamrange="+o,"_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 d.a.createElement(g.a.Header,{style:{display:"flex"}},d.a.createElement("h3",null,"Exam Reports"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(h.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),d.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),d.a.createElement(m.a,{to:"/dashboard"},d.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,fyear:a.props.user.fyear,fexamtype:a.props.user.fexamtype}),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),r=t.fdegto,o=t.fcolfrom,l=t.fcolto,c=t.fdeggrpfrom,p=t.fdeggrpto,u=t.fsubfrom,s=t.fsubto,i=(t.clgdrop,t.showSubRange,t.fexamrange),f=(t.moduleType,t.currentReportType),m=t.fyear,h=t.fexamtype,b=(this.state.activeItem,this.props.college.filter(function(t){return t.fcollcode==e.props.user.fcollcode})[0]),R=(parseInt(this.props.user.fcurtype)<499?this.props.degcoll.map(function(e){return{value:e.fcollcode,text:e.fcollname}}):(b.fcollcode,"".concat(b.fcollcode," ").concat(b.fcollname," ")),Object(w.i)());return d.a.createElement("div",{className:"animated fadeIn"},d.a.createElement(g.a,{fluid:!0},d.a.createElement(g.a.Content,null,this.renderHeader(),d.a.createElement(v.a,null),d.a.createElement(g.a.Description,{style:{overflowY:"auto",height:"".concat(R,"px")}},d.a.createElement("div",{className:"row",style:{margin:"0px"}},d.a.createElement("div",{className:"col-md-6"},d.a.createElement(E.a,null,d.a.createElement(E.a.Field,null,d.a.createElement("label",null,"Report Type"),d.a.createElement(y.a,{placeholder:"Select Report Type",name:"reportType",value:a,selection:!0,search:!0,options:f,onChange:this.handleChange})),d.a.createElement(E.a.Group,null,d.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"}),d.a.createElement(E.a.Input,{placeholder:"To",name:"fdeggrpto",value:p,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),"exam_tot_student_count_semwise"==a?d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Input,{placeholder:"Year",value:m,width:8,name:"fyear",onChange:this.handleChange,maxLength:"4",label:"Year"}),d.a.createElement(E.a.Input,{placeholder:"Exam Type",name:"fexamtype",value:h,width:8,onChange:this.handleChange,maxLength:"1",label:"Exam Type"})):null,d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Input,{placeholder:"From",value:n,width:8,name:"fdegfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"5",label:"Degree Range"}),d.a.createElement(E.a.Input,{placeholder:"To",name:"fdegto",value:r,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Input,{placeholder:"From",value:o,width:8,name:"fcolfrom",onChange:this.handleChange,onBlur:this.handleFromChange,maxLength:"4",label:"College Range"}),d.a.createElement(E.a.Input,{placeholder:"To",name:"fcolto",value:l,width:8,onChange:this.handleChange,maxLength:"4",style:{marginTop:"1.6em"}})),"exam_tot_student_count_semwise"!=a?d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Input,{placeholder:"From",value:u,width:8,name:"fsubfrom",onChange:this.handleChange,maxLength:"5",label:"Subject Code Range"}),d.a.createElement(E.a.Input,{placeholder:"To",name:"fsubto",value:s,width:8,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})):null,d.a.createElement(E.a.Group,null,d.a.createElement(E.a.Input,{placeholder:"To",name:"fexamrange",value:i,width:8,onChange:this.handleChange,maxLength:"10",label:"Exam Range"})),d.a.createElement("br",null))))))))}}]),t}(f.Component);t.default=Object(b.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:S.d,getReport:R.r,showError:R.w,getActiveCollegeList:C.a,getDropDownOptions:R.p})(T)},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),u=a(333),s=a(551),i=a(549),f=a(267);function d(e){var t=e.children,a=e.className,n=e.clearing,o=e.content,c=e.fitted,m=e.hidden,g=e.horizontal,h=e.inverted,v=e.section,E=e.vertical,y=l()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(m,"hidden"),Object(u.a)(g,"horizontal"),Object(u.a)(h,"inverted"),Object(u.a)(v,"section"),Object(u.a)(E,"vertical"),"divider",a),b=Object(s.a)(d,e),R=Object(i.a)(d,e);return p.a.createElement(R,r()({},b,{className:y}),f.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},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 u}),a.d(t,"c",function(){return s}),a.d(t,"e",function(){return i}),a.d(t,"b",function(){return f});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}}},u=function(e){return{type:"ADD_CNTR_DET",payload:e}},s=function(e,t,a){return function(){var n=Object(o.a)(r.a.mark(function n(o,c){var p,u;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:u=n.sent,o({type:"UNSET_LOADER"}),"object"!==typeof u.data?o({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===u.data.error_code?o({type:"FETCH_CNTR_DET",payload:u.data}):o({type:"SET_ERROR",payload:u.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(o.a)(r.a.mark(function o(c,p){var u,s;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=p(),c({type:"SET_LOADER"}),r.next=4,l.a.post("/app.php?a=saveExamCenter&univcode="+u.univ.funivcode,{data:{deggrp:a,examcntr:t,thpr:n,examcntrlist:e}});case 4:s=r.sent,c({type:"UNSET_LOADER"}),"object"!==typeof s.data?c({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):c({type:"SET_ERROR",payload:s.data});case 7:case"end":return r.stop()}},o)}));return function(e,t){return c.apply(this,arguments)}}()},f=function(e,t,a){return function(){var n=Object(o.a)(r.a.mark(function n(o,c){var p,u;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:u=n.sent,o({type:"UNSET_LOADER"}),"object"!==typeof u.data?o({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):o({type:"SET_ERROR",payload:u.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=103.cb7e52a2.chunk.js.map
|