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.226.104.41
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1044:function(e,t,a){"use strict";a.r(t);var r=a(41),n=a.n(r),o=a(68),c=a(3),d=a(99),u=a(100),s=a(102),i=a(101),p=a(103),l=a(1),f=a.n(l),g=a(858),h=a(104),m=a(1139),b=a(1106),v=a(272),E=a(1098),y=a(1100),w=a(266),O=a(306),S=a(271),j=a(270),T=(a(316),function(e){function t(){var e,a;Object(d.a)(this,t);for(var r=arguments.length,u=new Array(r),p=0;p<r;p++)u[p]=arguments[p];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(u)))).state={fboard:"",fdeggrp:"",fdeggrpfrm:a.props.user.fdeggrp,fdeggrpto:a.props.user.fdeggrp,fboardfrm:"0",fboardto:"zzzzz",frmsubmit:!1,tcodefrom:"0",tcodeto:"zzzzz",clgfrom:"0",clgto:"zzzzz"},a.onBoardChange=function(e,t){a.setState({fboardfrm:t.value})},a.changeDeggrpfrom=function(e,t){a.setState({fdeggrpfrm:t.value})},a.changeDeggrpto=function(e,t){a.setState({fdeggrpto:t.value})},a.changeBoardfrom=function(e,t){a.setState({fboardfrm:t.value})},a.changeBoardto=function(e,t){a.setState({fboardto:t.value})},a.handleChange=function(e,t){switch(t.type){case"text":a.setState(Object(c.a)({},t.name,t.value));default:a.setState(Object(c.a)({},t.name,t.value))}},a.handleReport=function(){console.log(a.props),console.log(a.state);var e=a.props.user,t=e.fdeggrp,r=e.fcuruniv,n=a.state,o=(n.teachersList,n.fboard),c=n.fdeggrpfrm,d=n.fdeggrpto,u=n.fboardfrm,s=n.fboardto,i=n.tcodefrom,p=n.tcodeto,l=n.clgfrom,f=n.clgto;if(""!==t)window.open(S.c+"teachersList&univcode="+r+"&fboard="+o+"&fdeggrpfrm="+c+"&fdeggrpto="+d+"&fboardfrm="+u+"&fboardto="+s+"&tcodefrom="+i+"&tcodeto="+p+"&clgfrom="+l+"&clgto="+f+"&user="+JSON.stringify(a.props.user),"_blank");else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleSubmit=Object(o.a)(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.setState({frmsubmit:!1}),e.next=3,a.props.fetchQpStatistics(a.state.fboard);case 3:a.setState({frmsubmit:!0});case 4:case"end":return e.stop()}},e)})),a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.changedeggrploadboard(this.props.user.fdeggrp);case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(e){this.props.user.fdeggrp!==e.user.fdeggrp&&this.props.fetchQpBoard(this.props.user.fdeggrp)}},{key:"render",value:function(){console.log(this.state),console.log(this.props);var e=Object(j.i)(),t=this.state,a=(t.deggrp,t.frmSubmit,t.fdeggrpfrm),r=t.fdeggrpto,n=(t.fboardfrm,t.fboardto,t.reportType,t.tcodefrom),o=t.tcodeto,c=t.clgfrom,d=t.clgto,u=[{value:"All",text:"All"}];return this.props.board.map(function(e){u.push({value:e.fboardcode,text:"".concat(e.fboardcode," - ").concat(e.fboardname)})}),f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(m.a,{fluid:!0},f.a.createElement(m.a.Content,null,f.a.createElement(m.a.Header,{style:{display:"flex"}},f.a.createElement("h4",null,"Teachers List"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(b.a,{basic:!0,color:"blue",content:"Report",onClick:this.handleReport,icon:"arrow down"}),f.a.createElement(g.a,{to:"/dashboard"},f.a.createElement(b.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),f.a.createElement(v.a,null),f.a.createElement(m.a.Description,{style:{height:"".concat(e,"px"),overflowY:"auto"}},f.a.createElement(E.a,null,f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:4},f.a.createElement("label",null,"Degree Group Range"),f.a.createElement(E.a.Input,{fluid:!0,search:!0,selection:!0,value:a,onChange:this.changeDeggrpfrom,allowAdditions:!0,placeholder:"Deg. Grp. From",disabled:this.props.disabled,openOnFocus:!1,selectOnBlur:!1,searchInput:{autoFocus:!0}})),f.a.createElement(E.a.Field,{width:4},f.a.createElement(E.a.Input,{fluid:!0,search:!0,selection:!0,value:r,onChange:this.changeDeggrpto,allowAdditions:!0,placeholder:"Deg. Grp. To",disabled:this.props.disabled,openOnFocus:!1,selectOnBlur:!1,searchInput:{autoFocus:!0},style:{marginTop:"1.6em"}}))),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:8},f.a.createElement("label",null,"Board"),f.a.createElement(y.a,{fluid:!0,search:!0,selection:!0,value:this.props.fboard,onChange:this.onBoardChange,placeholder:"Select Board",options:u}))),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Input,{placeholder:"From",value:n,width:4,name:"tcodefrom",onChange:this.handleChange,maxLength:"5",label:"Teacher code Range"}),f.a.createElement(E.a.Input,{placeholder:"To",name:"tcodeto",value:o,width:4,onChange:this.handleChange,maxLength:"5",style:{marginTop:"1.6em"}})),f.a.createElement(E.a.Group,null,f.a.createElement(E.a.Field,{width:4},f.a.createElement("label",null,"College range"),f.a.createElement(E.a.Input,{type:"text",value:c,maxLength:8,placeholder:"College From",name:"clgfrom",onChange:this.handleChange})),f.a.createElement(E.a.Field,{width:4},f.a.createElement(E.a.Input,{type:"text",value:d,maxLength:8,placeholder:"College To",name:"clgto",style:{marginTop:"1.6em"},onChange:this.handleChange}))),f.a.createElement(b.a,{color:"blue",onClick:this.handleSubmit,content:"Submit",hidden:!0}))))))}}]),t}(l.Component));t.default=Object(h.b)(function(e){return console.log(e),{user:e.user,board:e.boards,deggrp:e.deggrp}},{showError:w.w,fetchTeachBoard:O.e,fetchQpStatistics:O.c,changedeggrploadboard:O.a})(T)},272:function(e,t,a){"use strict";var r=a(268),n=a.n(r),o=a(265),c=a.n(o),d=a(1),u=a.n(d),s=a(333),i=a(551),p=a(549),l=a(267);function f(e){var t=e.children,a=e.className,r=e.clearing,o=e.content,d=e.fitted,g=e.hidden,h=e.horizontal,m=e.inverted,b=e.section,v=e.vertical,E=c()("ui",Object(s.a)(r,"clearing"),Object(s.a)(d,"fitted"),Object(s.a)(g,"hidden"),Object(s.a)(h,"horizontal"),Object(s.a)(m,"inverted"),Object(s.a)(b,"section"),Object(s.a)(v,"vertical"),"divider",a),y=Object(i.a)(f,e),w=Object(p.a)(f,e);return u.a.createElement(w,n()({},y,{className:E}),l.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},305:function(e,t,a){"use strict";a.d(t,"b",function(){return u}),a.d(t,"c",function(){return s}),a.d(t,"d",function(){return i}),a.d(t,"a",function(){return p});var r=a(41),n=a.n(r),o=a(68),c=a(269),d=a(23),u=function(e,t,a){return function(){var e=Object(o.a)(n.a.mark(function e(r,o){var u,s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=o(),e.next=3,c.a.get("/app.php",{params:{a:"getDegrees",modtype:a,fboard:t,deggrp:u.user.fdeggrp,univcode:u.univ.funivcode}});case 3:"object"!==typeof(s=e.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Degrees"},status:"failure"}}):-1===s.data.error_code?r({type:"SET_ERROR",payload:s.data}):r({type:d.g,payload:s.data});case 5:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},s=function(e,t){return function(){var a=Object(o.a)(n.a.mark(function a(r,o){var d,u;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return d=o(),a.next=3,c.a.get("/app.php",{params:{a:"getPracticalSubjects",fdegree:e,fboard:t,univcode:d.univ.funivcode}});case 3:"object"!==typeof(u=a.sent).data?r({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Subjects"},status:"failure"}}):-1===u.data.error_code?r({type:"SET_ERROR",payload:u.data}):r({type:"FETCH_PRSUB",payload:u.data});case 5:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},i=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,d;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),t.next=3,c.a.get("/app.php",{params:{a:"getPracticalBoards",fdeggrp:e,univcode:o.user.fcuruniv}});case 3:"object"!==typeof(d=t.sent).data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Boards"},status:"failure"}}):-1===d.data.error_code?a({type:"SET_ERROR",payload:d.data}):a({type:"FETCH_BOARDS",payload:d.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e,t,a,r){return function(){var d=Object(o.a)(n.a.mark(function o(d,u){var s,i;return n.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return s=u(),d({type:"SET_LOADER"}),n.next=4,c.a.get("/app.php",{params:{a:"getPracticalBatchDet",fdeggrp:e,fdegree:a,fboard:t,fsubcode:r,univcode:s.univ.funivcode}});case 4:i=n.sent,d({type:"UNSET_LOADER"}),"object"!==typeof i.data?d({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong wile fetching Practical Batch Details"},status:"failure"}}):-1===i.data.error_code?d({type:"SET_ERROR",payload:i.data}):d({type:"FETCH_PRBATCHDET",payload:i.data});case 7:case"end":return n.stop()}},o)}));return function(e,t){return d.apply(this,arguments)}}()}},306:function(e,t,a){"use strict";a.d(t,"b",function(){return u}),a.d(t,"c",function(){return s}),a.d(t,"a",function(){return i}),a.d(t,"d",function(){return p}),a.d(t,"e",function(){return l});var r=a(41),n=a.n(r),o=a(68),c=a(269),d=a(266),u=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),t.next=3,c.a.get("/app.php",{params:{a:"getfboard",deggrp:e,univcode:o.user.fcuruniv}});case 3:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},a(Object(d.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},a(Object(d.w)(i))):a({type:"FETCH_BOARDS",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),a({type:"SET_LOADER"}),a({type:"DELETE_QPSTATS"}),t.next=5,c.a.get("/app.php",{params:{a:"getscript",deggrp:e.fdeggrp,univcode:o.user.fcuruniv,fboard:e.fboard,fexamno:e.Examno,status:e.valstats}});case 5:u=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof u.data?(s={header:"Error",content:"Something went wrong"},a(Object(d.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},a(Object(d.w)(i))):a({type:"FETCH_QPSTATS",payload:u.data});case 8: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,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),a({type:"DELETE_QPSTATS"}),t.next=4,c.a.get("/app.php",{params:{a:"loadboardvaluationstats",deggrp:e,univcode:o.user.fcuruniv}});case 4:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},a(Object(d.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},a(Object(d.w)(i))):a({type:"FETCH_BOARDS",payload:u.data});case 6:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),a({type:"SET_LOADER"}),a({type:"DELETE_QPSTATS_SUM"}),t.next=5,c.a.get("/app.php",{params:{a:"getscriptSummary",deggrp:e.fdeggrp,univcode:o.user.fcuruniv,fexamno:e.Examno,fboard:e.fboard,status:e.valsum}});case 5:u=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof u.data?(s={header:"Error",content:"Something went wrong"},a(Object(d.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},a(Object(d.w)(i))):a({type:"FETCH_QPSTATS_SUM",payload:u.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(o.a)(n.a.mark(function t(a,r){var o,u,s,i;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(),t.next=3,c.a.get("/app.php",{params:{a:"getTeachfboard",deggrp:e,univcode:o.user.fcuruniv}});case 3:"object"!==typeof(u=t.sent).data?(s={header:"Error",content:"Something went wrong"},a(Object(d.w)(s))):-1===u.data.error_code?(i={header:"Error",content:u.data.data.msg},a(Object(d.w)(i))):a({type:"FETCH_BOARDS",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}},316:function(e,t,a){"use strict";var r=a(99),n=a(100),o=a(102),c=a(101),d=a(103),u=a(1),s=a.n(u),i=a(104),p=a(1098),l=a(1100),f=a(305),g=function(e){function t(){return Object(r.a)(this,t),Object(o.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.board.map(function(e,t){return{key:t,value:e.fboardcode,text:"".concat(e.fboardcode," - ").concat(e.fboardname)}});return s.a.createElement(p.a.Field,null,s.a.createElement("label",null,"Board"),s.a.createElement(l.a,{fluid:!0,search:!0,selection:!0,value:this.props.fboard,onChange:this.props.onBoardChange,placeholder:"Select Board",options:e}))}}]),t}(u.Component);t.a=Object(i.b)(function(e){return{board:e.boards,user:e.user}},{fetchSubPrBoard:f.d})(g)}}]);
//# sourceMappingURL=38.26557191.chunk.js.map
|