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.104.132
(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{1058:function(e,t,a){"use strict";a.r(t);var r=a(2),n=a(41),o=a.n(n),c=a(68),l=a(99),s=a(100),u=a(102),i=a(101),d=a(103),p=a(1),g=a.n(p),h=a(104),f=a(1139),m=a(1106),E=a(272),y=a(1098),v=a(1100),b=a(858),w=a(266),x=a(487),S=a(271),O=function(e){function t(){var e,a;Object(l.a)(this,t);for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(n)))).state={deggrp:"",type:"",year:"",degree:[],college:[],examno:"",rtype:""},a.componentDidMount=Object(c.a)(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.loaddegreegroup();case 2:case"end":return e.stop()}},e)})),a.handleChangedeggrp=function(){var e=Object(c.a)(o.a.mark(function e(t,r){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.setState({deggrp:r.value});case 2:return a.setState({degree:["all"],college:["all"]}),e.next=5,a.props.loaddegres(a.state.deggrp);case 5:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeDegree=function(){var e=Object(c.a)(o.a.mark(function e(t,r){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.setState({degree:r.value});case 2:return e.next=4,a.props.loadcollresstae(a.state.degree);case 4:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeCollege=function(e,t){a.setState({college:t.value})},a.handleChangeRType=function(e,t){a.setState({rtype:t.value})},a.handleChangeType=function(e,t){a.setState({type:t.value})},a.handleChangeYear=function(e,t){a.setState({year:t.value})},a.handleChangeExamno=function(e,t){a.setState({examno:t.value})},a.handleSubmitReport=Object(c.a)(o.a.mark(function e(){var t,r,n,c,l,s,u,i,d,p,g,h,f,m,E;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.state,r=t.deggrp,n=t.degree,c=t.college,l=t.examno,s=t.year,u=t.type,""!==a.state.deggrp){e.next=5;break}return i={header:"Error",content:"Select Degree Group"},a.props.showError(i),e.abrupt("return");case 5:if(""!==a.state.degree){e.next=9;break}return d={header:"Error",content:"Select Degree"},a.props.showError(d),e.abrupt("return");case 9:if(""!==a.state.college){e.next=13;break}return p={header:"Error",content:"Select college"},a.props.showError(p),e.abrupt("return");case 13:if(""!==a.state.rtype){e.next=17;break}return g={header:"Error",content:"Select Report Type"},a.props.showError(g),e.abrupt("return");case 17:if(""!==a.state.examno){e.next=21;break}return h={header:"Error",content:"Enter Exam No."},a.props.showError(h),e.abrupt("return");case 21:if(""!==a.state.year){e.next=25;break}return f={header:"Error",content:"Enter Year"},a.props.showError(f),e.abrupt("return");case 25:if(""!==a.state.type){e.next=29;break}return m={header:"Error",content:"Enter Type"},a.props.showError(m),e.abrupt("return");case 29:if(E=l.split(""),"ResultStatsGenderWise"!=a.state.rtype){e.next=33;break}return e.next=33,window.open(S.c+"ResultStatsGenderWise°grp="+r+"&sem="+E+"&year="+s+"&examtype="+u+"&univcode="+a.props.univcode+"&college="+JSON.stringify(c)+"°ree="+JSON.stringify(n),"_blank");case 33:if("ResultStatsCategoryWise"!=a.state.rtype){e.next=36;break}return e.next=36,window.open(S.c+"ResultStatsCategoryWise°grp="+r+"&sem="+E+"&year="+s+"&examtype="+u+"&univcode="+a.props.univcode+"&college="+JSON.stringify(c)+"°ree="+JSON.stringify(n),"_blank");case 36:if("ResultStatsDegreeWise"!=a.state.rtype){e.next=39;break}return e.next=39,window.open(S.c+"ResultStatsDegreeWise°grp="+r+"&sem="+E+"&year="+s+"&examtype="+u+"&univcode="+a.props.univcode+"&college="+JSON.stringify(c)+"°ree="+JSON.stringify(n),"_blank");case 39:if("ResultStatsCollegeWise"!=a.state.rtype){e.next=42;break}return e.next=42,window.open(S.c+"ResultStatsCollegeWise°grp="+r+"&sem="+E+"&year="+s+"&examtype="+u+"&univcode="+a.props.univcode+"&college="+JSON.stringify(c)+"°ree="+JSON.stringify(n),"_blank");case 42:case"end":return e.stop()}},e)})),a}return Object(d.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state,t=e.deggrp,a=e.degree,n=e.college,o=e.rtype,c=e.year,l=e.type,s=e.examno,u=[{key:1,value:"all",text:"All"}],i=this.props.degcentre.map(function(e){return{key:e.fdeggrp,value:e.fdeggrp,text:e.fdescpn}}),d=this.props.degree.map(function(e){return{key:e.fdegree,value:e.fdegree,text:e.fdegree+"-"+e.fdescpn}}),p=[].concat(u,Object(r.a)(d)),h=this.props.college.map(function(e){return{key:e.fcollcode,value:e.fcollcode,text:e.fcollcode+"-"+e.fcollname}}),w=[].concat(u,Object(r.a)(h));return g.a.createElement("div",{className:"animated fadeIn"},g.a.createElement(f.a,{fluid:!0},g.a.createElement(f.a.Content,null,g.a.createElement(f.a.Header,{style:{display:"flex"}},g.a.createElement("h4",null,"Result Statistics"),g.a.createElement("div",{className:"ml-auto"},g.a.createElement(m.a,{basic:!0,color:"blue",onClick:this.handleSubmitReport,content:"Report",icon:"file"}),g.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),g.a.createElement(b.a,{to:"/dashboard"},g.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),g.a.createElement(E.a,null),g.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"600px"}},g.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},g.a.createElement(y.a,null,g.a.createElement(y.a.Group,null,g.a.createElement(y.a.Field,{width:16},g.a.createElement("label",null,"Degree Group"),g.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangedeggrp,value:t,name:"deggrp",placeholder:"Degree Group",options:i}))),g.a.createElement(y.a.Group,null,g.a.createElement(y.a.Field,{width:8},g.a.createElement("label",null,"Year"),g.a.createElement(y.a.Input,{placeholder:"Year",name:"year",onChange:this.handleChangeYear,value:c})),g.a.createElement(y.a.Field,{width:8},g.a.createElement("label",null,"Type"),g.a.createElement(y.a.Input,{placeholder:"Type",name:"type",onChange:this.handleChangeType,value:l}))),g.a.createElement(y.a.Field,{width:16},g.a.createElement("label",null,"Degree"),g.a.createElement(v.a,{multiple:!0,fluid:!0,search:!0,selection:!0,onChange:this.handleChangeDegree,value:a,name:"degree",placeholder:"Degree",options:p})),g.a.createElement(y.a.Field,{width:16},g.a.createElement("label",null,"College"),g.a.createElement(v.a,{multiple:!0,fluid:!0,search:!0,selection:!0,onChange:this.handleChangeCollege,value:n,name:"college",placeholder:"College",options:w})),g.a.createElement(y.a.Group,null,g.a.createElement(y.a.Field,{width:8},g.a.createElement("label",null,"Exam No."),g.a.createElement(y.a.Input,{placeholder:"Exam No.",name:"examno",onChange:this.handleChangeExamno,value:s})),g.a.createElement(y.a.Field,{width:8},g.a.createElement("label",null,"Report Type"),g.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangeRType,value:o,name:"rtype",placeholder:"Report Type",options:[{value:"ResultStatsGenderWise",text:"Gender Wise"},{value:"ResultStatsDegreeWise",text:"Degree Wise"},{value:"ResultStatsCollegeWise",text:"College Wise"},{value:"ResultStatsCategoryWise",text:"Category Wise"}]})))))))))}}]),t}(p.Component);t.default=Object(h.b)(function(e){return{univcode:e.univ.funivcode,degcentre:e.deggrpexamcentre,degree:e.restatloaddeg,college:e.restatloadcoll}},{showError:w.w,loaddegreegroup:x.d,loaddegres:x.e,loadcollresstae:x.c})(O)},272:function(e,t,a){"use strict";var r=a(268),n=a.n(r),o=a(265),c=a.n(o),l=a(1),s=a.n(l),u=a(333),i=a(551),d=a(549),p=a(267);function g(e){var t=e.children,a=e.className,r=e.clearing,o=e.content,l=e.fitted,h=e.hidden,f=e.horizontal,m=e.inverted,E=e.section,y=e.vertical,v=c()("ui",Object(u.a)(r,"clearing"),Object(u.a)(l,"fitted"),Object(u.a)(h,"hidden"),Object(u.a)(f,"horizontal"),Object(u.a)(m,"inverted"),Object(u.a)(E,"section"),Object(u.a)(y,"vertical"),"divider",a),b=Object(i.a)(g,e),w=Object(d.a)(g,e);return s.a.createElement(w,n()({},b,{className:v}),p.a.isNil(t)?o:t)}g.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],g.propTypes={},t.a=g},487:function(e,t,a){"use strict";a.d(t,"d",function(){return s}),a.d(t,"e",function(){return u}),a.d(t,"c",function(){return i}),a.d(t,"b",function(){return d}),a.d(t,"a",function(){return p});var r=a(41),n=a.n(r),o=a(68),c=a(269),l=a(266),s=function(){return function(){var e=Object(o.a)(n.a.mark(function e(t,a){var r,o,s,u;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a(),t({type:"SET_LOADER"}),e.next=4,c.a.get("/app.php",{params:{a:"loaddeggrpexamcentre",univcode:r.user.fcuruniv}});case 4:o=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof o.data?(s={header:"Error",content:"Something went wrong"},t(Object(l.w)(s))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(l.w)(u))):t({type:"LOAD_DEGGRP_EXAMCENTRE",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,s,u,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),a({type:"SET_LOADER"}),t.next=4,c.a.get("/app.php",{params:{a:"loaddegres",univcode:o.user.fcuruniv,deggrp:e}});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(l.w)(u))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(l.w)(i))):a({type:"LOAD_DEGREE_RES",payload:s.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},i=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,s,u,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),a({type:"SET_LOADER"}),t.next=4,c.a.get("/app.php",{params:{a:"loadcollres",univcode:o.user.fcuruniv,deg:e}});case 4:s=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof s.data?(u={header:"Error",content:"Something went wrong"},a(Object(l.w)(u))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(l.w)(i))):a({type:"LOAD_COLLEGE_RES",payload:s.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},d=function(){return function(){var e=Object(o.a)(n.a.mark(function e(t,a){var r,o,s,u;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a(),console.log(r),e.next=4,c.a.get("app.php?a=getstatsdeglist&univcode="+r.univ.funivcode+"&fcollcode="+r.user.fcollcode+"&fdeggrp="+r.user.fdeggrp);case 4:"object"!==typeof(o=e.sent).data?(s={header:"Error",content:"Something went wrong"},t(Object(l.w)(s))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(l.w)(u))):(console.log(o.data),t({type:"RESULT_STATS_DEGREE_LIST",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},p=function(){return function(){var e=Object(o.a)(n.a.mark(function e(t,a){var r,o,s,u;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a(),console.log(r),e.next=4,c.a.get("app.php?a=getstatsclglist&univcode="+r.univ.funivcode+"&fcollcode="+r.user.fcollcode+"&fdeggrp="+r.user.fdeggrp);case 4:"object"!==typeof(o=e.sent).data?(s={header:"Error",content:"Something went wrong"},t(Object(l.w)(s))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},t(Object(l.w)(u))):(console.log(o.data),t({type:"RESULT_STATS_COLLEGE_LIST",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=113.3f4566a1.chunk.js.map
|