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.17.183.187
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{1094:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),o=a(99),l=a(100),i=a(102),s=a(101),p=a(103),u=a(1),d=a.n(u),h=a(1139),f=a(1106),g=a(272),m=a(1098),b=a(1100),E=a(270),v=a(104),w=a(378),y=a(271),O=a(266),j=a(858),D=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,l=new Array(n),p=0;p<n;p++)l[p]=arguments[p];return(a=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(l)))).state={degree:"",type:""},a.componentDidMount=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.generateDegreeDetails();case 2:case"end":return e.stop()}},e)})),a.degreeChange=function(e,t){a.setState({degree:t.value})},a.typeChange=function(e,t){a.setState({type:t.value})},a.handleCancel=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({degree:"",type:""});case 1:case"end":return e.stop()}},e)})),a.generateMpQpReport=Object(c.a)(r.a.mark(function e(){var t,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=a.state.degree){e.next=6;break}return t={header:"Error",content:"Select Degree Group Please"},a.props.showError(t),e.abrupt("return");case 6:if(""!=a.state.type){e.next=12;break}return n={header:"Error",content:"Select Type Please"},a.props.showError(n),e.abrupt("return");case 12:window.open(y.c+"generateQpAMpAreport°ree="+a.state.degree+"&type="+a.state.type+"&univcode="+a.props.user.fcuruniv);case 13:case"end":return e.stop()}},e)})),a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=Object(E.i)(),t=this.props.DegreeDetails.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});return d.a.createElement("div",null,d.a.createElement(h.a,{fluid:!0},d.a.createElement(h.a.Content,null,d.a.createElement(h.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Absent / Malpractice Report"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(f.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),d.a.createElement(j.a,{to:"/dashboard"},d.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(g.a,null),d.a.createElement(h.a.Description,{style:{height:"".concat(e,"px"),overflowY:"auto"}},d.a.createElement(m.a.Group,null,d.a.createElement(m.a.Field,null,d.a.createElement("label",null,d.a.createElement("b",null,"Select Degree Group")),d.a.createElement(b.a,{style:{width:"29.5%",marginBottom:"10px"},fluid:!0,search:!0,selection:!0,options:t,value:this.state.degree,name:"fdegree",allowAdditions:!0,placeholder:"Degree",onChange:this.degreeChange})),d.a.createElement(m.a.Field,null,d.a.createElement("label",null,d.a.createElement("b",null," Select Report Type")),d.a.createElement(b.a,{style:{width:"29.5%",marginBottom:"10px"},fluid:!0,search:!0,selection:!0,options:[{key:1,value:"QpA",text:"Absent"},{key:2,value:"QpM",text:"Malpractice"}],value:this.state.type,allowAdditions:!0,placeholder:"Type",onChange:this.typeChange}))),d.a.createElement(f.a,{positive:!0,content:"Generate Report",onClick:this.generateMpQpReport})))))}}]),t}(d.a.Component);t.default=Object(v.b)(function(e){return{DegreeDetails:e.generateDegreeDetails,user:e.user}},{generateDegreeDetails:w.a,showError:O.w})(D)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),c=a(265),o=a.n(c),l=a(1),i=a.n(l),s=a(333),p=a(551),u=a(549),d=a(267);function h(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,l=e.fitted,f=e.hidden,g=e.horizontal,m=e.inverted,b=e.section,E=e.vertical,v=o()("ui",Object(s.a)(n,"clearing"),Object(s.a)(l,"fitted"),Object(s.a)(f,"hidden"),Object(s.a)(g,"horizontal"),Object(s.a)(m,"inverted"),Object(s.a)(b,"section"),Object(s.a)(E,"vertical"),"divider",a),w=Object(p.a)(h,e),y=Object(u.a)(h,e);return i.a.createElement(y,r()({},w,{className:v}),d.a.isNil(t)?c:t)}h.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],h.propTypes={},t.a=h},327:function(e,t,a){},378:function(e,t,a){"use strict";a.d(t,"a",function(){return i});var n=a(41),r=a.n(n),c=a(68),o=a(269),l=a(266),i=(a(327),function(){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c,i,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,o.a.get("/app.php",{params:{a:"generateDegreeDetails",univcode:n.user.fcuruniv}});case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(i={header:"Error",content:"Something went wrong"},t(Object(l.w)(i))):-1===c.data.error_code?(s={header:"Error",content:c.data.data.msg},t(Object(l.w)(s))):t({type:"GENERATE_DEGREE_DETAILS",payload:c.data});case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()})}}]);
//# sourceMappingURL=37.f4c4223e.chunk.js.map
|