0xV3NOMx
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.149.29.192


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/69.f62db3da.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{1151:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(3),o=a(0),l=a(68),s=a(99),p=a(100),i=a(102),u=a(101),d=a(103),f=a(1),g=a.n(f),m=a(269),h=a(266),E=a(104),b=a(858),v=a(1139),x=a(1106),y=a(272),w=a(1098),O=a(1101),j=a(1100),D=a(270),C=a(288),S=a(352),k=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,p=new Array(n),d=0;d<n;d++)p[d]=arguments[d];return(a=Object(i.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(p)))).state={fdeggrp:"",fyear:"",fexamtype:"",fexamdate:"",fexamrange:""},a.changeDeggrp=function(e,t){console.log(t.value);var n=a.props.deggrp.filter(function(e,a){return e.fdeggrp===t.value})[0];a.setState({fyear:n.fyear,fexamtype:n.fexamtype,fexamdate:n.fexamdate,fdeggrp:t.value,frmSubmit:!1})},a.changeCell=function(){var e=Object(l.a)(r.a.mark(function e(t,n,l){var s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return{},"CHANGE_MASQP",s=Object(o.a)({},n,Object(c.a)({},t.name,t.value)),e.next=5,a.props.changeDet(s,l,"CHANGE_MASQP");case 5:case"end":return e.stop()}},e)}));return function(t,a,n){return e.apply(this,arguments)}}(),a.examRange=function(e,t){a.setState({fexamrange:t.value})},a.updateMasQP=Object(l.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.fdeggrp){e.next=4;break}return t={header:"Error",content:"Select Degree Group"},a.props.showError(t),e.abrupt("return");case 4:if(""!==a.state.fexamrange){e.next=8;break}return n={header:"Error",content:"Enter Exam Range"},a.props.showError(n),e.abrupt("return");case 8:return e.next=10,a.props.getmasQPDet(a.state);case 10:case"end":return e.stop()}},e)})),a.handleSave=Object(l.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.savemasQPDet();case 2:return e.next=4,a.props.getmasQPDet();case 4:case"end":return e.stop()}},e)})),a}return Object(d.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){console.log("componentDidMount"),this.props.fetchDegGrp(),this.props.fetchBoards()}},{key:"render",value:function(){var e=this,t=this.state,a=t.fdeggrp,n=t.fyear,r=t.fexamtype,c=t.fexamdate,o=t.fexamrange,l=Object(D.i)(),s=""==this.props.masQPDet?[]:this.props.masQPDet,p=this.props.board.map(function(e,t){return{key:t,value:e.fboardcode,text:"".concat(e.fboardcode,"- ").concat(e.fboardname)}});return g.a.createElement(g.a.Fragment,null,g.a.createElement(v.a,{fluid:!0},g.a.createElement(v.a.Content,null,g.a.createElement(v.a.Header,{style:{display:"flex"}},g.a.createElement("h3",null,"QP Master"),g.a.createElement("div",{className:"ml-auto"},g.a.createElement(x.a,{basic:!0,color:"blue",icon:"save",onClick:this.handleSave,content:"Save"}),g.a.createElement(b.a,{to:"/dashboard"},g.a.createElement(x.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),g.a.createElement(y.a,null),g.a.createElement(v.a.Description,{style:{height:"".concat(l,"px"),overflowY:"auto"}},g.a.createElement("div",null,g.a.createElement(w.a,{width:8},g.a.createElement(C.a,{pdeggrp:{fdeggrp:a,fyear:n,fexamtype:r,fexamdate:c},changeDeggrp:this.changeDeggrp}),g.a.createElement(w.a.Field,{width:6},g.a.createElement("label",null,"Exam No Range"),g.a.createElement(w.a.Input,{placeholder:"Exam No Range",name:"fexamrange",value:o,onChange:this.examRange,maxLength:"10"})),g.a.createElement(x.a,{color:"blue",onClick:this.updateMasQP,content:"Submit"}))),Object.keys(s).length>0?g.a.createElement(O.a,{celled:!0,compact:!0,style:{padding:"0%"}},g.a.createElement(O.a.Header,null,g.a.createElement(O.a.Row,{textAlign:"center"},g.a.createElement(O.a.HeaderCell,{width:"1"},"Sl. No."),g.a.createElement(O.a.HeaderCell,{width:"1"},"QP Code"),g.a.createElement(O.a.HeaderCell,{width:"3"},"Subject"),g.a.createElement(O.a.HeaderCell,{width:"1"},"Exam Name"),g.a.createElement(O.a.HeaderCell,{width:"3"},"Board Name"),g.a.createElement(O.a.HeaderCell,null,"Deg. Group"),g.a.createElement(O.a.HeaderCell,null,"Deg. Range"))),g.a.createElement(O.a.Body,null,s.map(function(t,a){return g.a.createElement(O.a.Row,{key:a},g.a.createElement(O.a.Cell,{textAlign:"center"},a+1),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"},textAlign:"center"},t.fqpcode),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"}},t.fsubname),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"},textAlign:"center"},t.fexamno),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"}},g.a.createElement(j.a,{fluid:!0,search:!0,selection:!0,name:"fboard",value:t.fboard,onChange:function(n,r){console.log("i hit"),e.changeCell(r,t,a)},style:{height:"auto"},placeholder:"Board",options:p})),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"},textAlign:"center"},t.fdeggrp),g.a.createElement(O.a.Cell,{style:{padding:"0px 0px"}},t.fdegreerange))}))):null))))}}]),t}(f.Component);t.default=Object(E.b)(function(e){return{masQPDet:e.masQPDet,board:e.board,degdet:e.user,deggrp:e.deggrp}},{getmasQPDet:function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var c,o,l,s;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),t.next=4,m.a.get("/app.php",{params:{a:"getmasQPDet",univcode:c.univ.funivcode,fdeggrp:e.fdeggrp,fexamrange:e.fexamrange}});case 4:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(l={header:"Error",content:"Something went wrong"},a(Object(h.w)(l))):-1===o.data.error_code?(s={header:"Error",content:o.data.data.msg},a(Object(h.w)(s))):a({type:"GET_MASQP",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},showError:h.w,fetchBoards:h.g,fetchDegGrp:h.j,changeDet:S.a,savemasQPDet:function(){return function(){var e=Object(l.a)(r.a.mark(function e(t,a){var n,c,o,l,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,m.a.post("app.php?a=saveMasQP&univcode="+n.univ.funivcode,{data:n.masQPDet});case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(o={header:"Error",content:"Something went wrong"},t(Object(h.w)(o))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},t(Object(h.w)(l))):(s={header:"Success",content:c.data.data.msg},t(Object(h.w)(s)));case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()}})(k)},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),s=a.n(l),p=a(333),i=a(551),u=a(549),d=a(267);function f(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,l=e.fitted,g=e.hidden,m=e.horizontal,h=e.inverted,E=e.section,b=e.vertical,v=o()("ui",Object(p.a)(n,"clearing"),Object(p.a)(l,"fitted"),Object(p.a)(g,"hidden"),Object(p.a)(m,"horizontal"),Object(p.a)(h,"inverted"),Object(p.a)(E,"section"),Object(p.a)(b,"vertical"),"divider",a),x=Object(i.a)(f,e),y=Object(u.a)(f,e);return s.a.createElement(y,r()({},x,{className:v}),d.a.isNil(t)?c:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},288:function(e,t,a){"use strict";var n=a(41),r=a.n(n),c=a(68),o=a(99),l=a(100),s=a(102),p=a(101),i=a(103),u=a(1),d=a.n(u),f=a(104),g=a(1098),m=a(1100),h=a(266),E=function(e){function t(){return Object(o.a)(this,t),Object(s.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});console.log(this.props.pdeggrp);var t=this.props.pdeggrp,a=t.fdeggrp,n=t.fyear,r=t.fexamtype,c=t.fexamdate;return d.a.createElement("div",null,d.a.createElement(g.a.Field,null,d.a.createElement("label",null,"Degree Group"),d.a.createElement(m.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:a,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1})),d.a.createElement(g.a.Group,null,d.a.createElement(g.a.Input,{placeholder:"Year",value:n,width:4,label:"Year",readOnly:!0}),d.a.createElement(g.a.Input,{placeholder:"Type",value:r,width:3,label:"Type",readOnly:!0}),d.a.createElement(g.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:c,readOnly:!0})))}}]),t}(u.Component);t.a=Object(f.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:h.j})(E)},352:function(e,t,a){"use strict";a.d(t,"b",function(){return s}),a.d(t,"a",function(){return p}),a.d(t,"c",function(){return i});var n=a(41),r=a.n(n),c=a(68),o=a(269),l=a(266),s=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,s,p,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),t.next=3,o.a.get("/app.php",{params:{a:"getreasoncd",univcode:c.univ.funivcode,reasonID:e}});case 3:s=t.sent,console.log(s),"object"!==typeof s.data?(p={header:"Error",content:"Something went wrong"},a(Object(l.w)(p))):-1===s.data.error_code?(i={header:"Error",content:s.data.data.msg},a(Object(l.w)(i))):a({type:"GET_REASONSID",payload:s.data});case 6:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e,t,a){return{type:a,payload:{el:e,i:t}}},i=function(){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c,s,p,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),e.next=3,o.a.post("app.php?a=saveReasonMaster&univcode="+n.univ.funivcode,{data:n.getReasonsIDs});case 3:c=e.sent,console.log("REs",c),"object"!==typeof c.data?(s={header:"Error",content:"Something went wrong"},t(Object(l.w)(s))):-1===c.data.error_code?(p={header:"Error",content:c.data.data.msg},t(Object(l.w)(p))):(i={header:"Success",content:c.data.data.msg},t(Object(l.w)(i)));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=69.f62db3da.chunk.js.map