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 : 18.189.182.15


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/105.b76c1e7b.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{1069:function(e,t,a){"use strict";a.r(t);var n=a(3),r=a(0),o=a(41),c=a.n(o),l=a(68),s=a(99),i=a(100),u=a(102),d=a(101),p=a(103),g=a(1),f=a.n(g),m=a(858),h=a(1139),v=a(1106),E=a(272),b=a(1098),w=a(1100),C=a(1101),x=a(104),y=a(266),S=a(271),O=a(270),j=a(382),D=function(e){function t(){var e,a;Object(s.a)(this,t);for(var o=arguments.length,i=new Array(o),p=0;p<o;p++)i[p]=arguments[p];return(a=Object(u.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={college:"",examno:"",degfrom:"0",degto:"ZZZZZ",regfrom:"0",regto:"ZZZZZ",table:!1,activeIndex:0,issuetoclg:""},a.changeTabIndex=function(e,t){var n=t.activeIndex;a.setState({activeIndex:n})},a.handleChangedegfrom=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({subfrom:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleCancel=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({examno:"",degfrom:"0",degto:"ZZZZ",regfrom:"0",regto:"ZZZZZ",college:"",table:!1,issuetoclg:""});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeexamno=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({examno:n.value.toUpperCase()});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeCollege=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({college:n.value,examno:"",degfrom:"0",degto:"ZZZZ",regfrom:"0",regto:"ZZZZZ",issuetoclg:""});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangedegfrom=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({degfrom:n.value.toUpperCase()});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangedegto=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({degto:n.value.toUpperCase()});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeregfrom=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({regfrom:n.value.toUpperCase()});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleChangeregto=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({regto:n.value.toUpperCase()});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.changeCell=function(e,t,o){var c={};if("checkbox"==e.type){var l=e.checked?"T":"F";c=Object(r.a)({},t,Object(n.a)({},e.name,l)),a.props.changeDispClg(c,o)}},a.selectallsentclg=function(e){console.log(e.target.checked),a.props.selectallchkbxsentclg(e.target.checked)},a.handleSubmit=Object(l.a)(c.a.mark(function e(){var t,n,r,o,l,s,i,u,d;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.state,n=t.college,r=t.examno,o=t.degfrom,l=t.degto,s=t.table,i=t.regfrom,u=t.regto,""!=a.state.college){e.next=5;break}return d={header:"Error",content:"Select College"},a.props.showError(d),e.abrupt("return");case 5:return e.next=7,a.props.getDispatchmksdatasearch(n,r,o,l,s,i,u);case 7:a.setState({table:!0});case 8:case"end":return e.stop()}},e)})),a.changecenter=function(e,t,o){var c;console.log(e,t,o),c=Object(r.a)({},t,Object(n.a)({},e.name,e.value)),a.props.changecenterpractical(c,o)},a.handleChangeissueto=function(){var e=Object(l.a)(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a.setState({issuetoclg:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleSave=Object(l.a)(c.a.mark(function e(){var t,n,r;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1==a.state.table){e.next=4;break}return t={header:"Error",content:"No changes to save "},a.props.showError(t),e.abrupt("return");case 4:if(""!=a.state.issuetoclg){e.next=8;break}return n={header:"Error",content:"Enter Issue to "},a.props.showError(n),e.abrupt("return");case 8:return r=a.props.dispatchMarkscardTable,e.next=11,a.props.updatemarkscarddispclg(r,a.state.examno,a.state.college,a.state.degfrom,a.state.degto,a.state.issuetoclg,a.state.regfrom,a.state.regto);case 11:a.props.getDispDetailsclg(),a.handleCancel(),a.setState({activeIndex:1});case 14:case"end":return e.stop()}},e)})),a.handleReportsearch=function(e){console.log(e);var t=a.props.user,n=t.fdeggrp,r=t.fcuruniv;window.open(S.c+"DispMarksReportSearch&college="+e.fcollcode+"&univcode="+r+"&deggrp="+n+"&examno="+e.fexamno+"&degfrom="+e.fdegree+"&degto="+e.fdegree+"&fmcfirst="+e.first+"&fmclast="+e.end+"&format=PDF","_blank")},a.renderHeader=function(){return f.a.createElement(h.a.Header,{style:{display:"flex"}},f.a.createElement("h3",null,"Dispatch Marks Card (Search)"),f.a.createElement("div",{className:"ml-auto"},f.a.createElement(v.a,{basic:!0,color:"black",icon:"ban",content:"Cancel",onClick:a.handleCancel}),f.a.createElement(m.a,{to:"/dashboard"},f.a.createElement(v.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.getDispCollegelist(),this.props.getDispDetailsclg()}},{key:"render",value:function(){var e=this,t=this.state,a=t.college,n=t.examno,r=t.degfrom,o=t.degto,c=(t.reporttype,t.Examno,t.degree,t.clgfrom,t.table),l=(t.issuetoclg,t.regfrom),s=t.regto,i=Object(O.i)(),u=this.props.collegelist.map(function(e){return{value:e.fcollcode,text:"".concat(e.fcollcode,"- ").concat(e.fcollname)}});return f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement(h.a,{fluid:!0},f.a.createElement(h.a.Content,null,this.renderHeader(),f.a.createElement(E.a,null),f.a.createElement(h.a.Description,{style:{overflowY:"auto",overflowX:"hidden",height:"".concat(i,"px")}},f.a.createElement("div",{className:"col-md-8"},f.a.createElement(b.a,null,f.a.createElement("div",null,f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Field,{width:12},f.a.createElement("label",null,"College"),f.a.createElement(w.a,{placeholder:"College range",name:"college",value:a,selection:!0,search:!0,options:u,onChange:this.handleChangeCollege}))),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Field,{width:6},f.a.createElement("label",null,"Degree range"),f.a.createElement(b.a.Input,{type:"text",value:r,maxLength:8,placeholder:"Degree ",name:"degfrom",onChange:this.handleChangedegfrom})),f.a.createElement(b.a.Field,{width:6},f.a.createElement(b.a.Input,{type:"text",value:o,maxLength:8,placeholder:"Degree ",name:"degto",style:{marginTop:"1.6em"},onChange:this.handleChangedegto}))),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Field,{width:6},f.a.createElement("label",null,"Regno. range"),f.a.createElement(b.a.Input,{type:"text",value:l,maxLength:8,placeholder:"Regno. ",name:"regfrom",onChange:this.handleChangeregfrom})),f.a.createElement(b.a.Field,{width:6},f.a.createElement(b.a.Input,{type:"text",value:s,maxLength:8,placeholder:"Regno.",name:"regto",style:{marginTop:"1.6em"},onChange:this.handleChangeregto}))),f.a.createElement(b.a.Group,null,f.a.createElement(b.a.Field,{width:6},f.a.createElement("label",null,"Exam No. range"),f.a.createElement(b.a.Input,{type:"text",value:n,maxLength:8,placeholder:"Exam No.",name:"examno",onChange:this.handleChangeexamno})))),f.a.createElement(v.a,{color:"blue",onClick:this.handleSubmit},"Submit"),f.a.createElement("br",null))),1==c?f.a.createElement("div",{className:"animated fadeIn"},f.a.createElement("div",{className:"ui mini form"},f.a.createElement(C.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{marginTop:"25px"}},f.a.createElement(C.a.Header,{style:{fontSize:"1.2em"}},f.a.createElement(C.a.Row,null,f.a.createElement(C.a.HeaderCell,{style:{width:"3%"},singleLine:!0,textAlign:"center"},f.a.createElement("label",null,"Sl. No.")),f.a.createElement(C.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},f.a.createElement("label",null,"Degree")),f.a.createElement(C.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},f.a.createElement("label",null,"Exam No.")),f.a.createElement(C.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},f.a.createElement("label",null,"St. MC. No.")),f.a.createElement(C.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},f.a.createElement("label",null,"Ending MC Number")),f.a.createElement(C.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},f.a.createElement("label",null,"Number of Markscard")),f.a.createElement(C.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},f.a.createElement("label",null,"Download")))),f.a.createElement(C.a.Body,null,this.props.dispatchMarkscardTable.map(function(t,a){return f.a.createElement(C.a.Row,{key:a},f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},a+1),f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fdegree),f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fexamno),f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.first),f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.end),f.a.createElement(C.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.count),f.a.createElement(C.a.Cell,{style:{padding:"0px 0px"},textAlign:"center"},f.a.createElement(v.a,{basic:!0,color:"blue",icon:"print",content:"Report",onClick:function(){return e.handleReportsearch(t)}})))}))))):null))))}}]),t}(g.Component);t.default=Object(x.b)(function(e){return console.log(e),{collegelist:e.dispCollegeList,user:e.user,dispatchMarkscardTable:e.dispatchMarkscardClg,dispatchdetailsclg:e.dispatchDetailsCLG}},{showError:y.w,getDispCollegelist:j.c,getDispatchmksdatasearch:j.h,changeDispClg:j.b,updatemarkscarddispclg:j.l,getDispDetailsclg:j.e,selectallchkbxsentclg:j.j})(D)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),o=a(265),c=a.n(o),l=a(1),s=a.n(l),i=a(333),u=a(551),d=a(549),p=a(267);function g(e){var t=e.children,a=e.className,n=e.clearing,o=e.content,l=e.fitted,f=e.hidden,m=e.horizontal,h=e.inverted,v=e.section,E=e.vertical,b=c()("ui",Object(i.a)(n,"clearing"),Object(i.a)(l,"fitted"),Object(i.a)(f,"hidden"),Object(i.a)(m,"horizontal"),Object(i.a)(h,"inverted"),Object(i.a)(v,"section"),Object(i.a)(E,"vertical"),"divider",a),w=Object(u.a)(g,e),C=Object(d.a)(g,e);return s.a.createElement(C,r()({},w,{className:b}),p.a.isNil(t)?o:t)}g.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],g.propTypes={},t.a=g},382:function(e,t,a){"use strict";a.d(t,"f",function(){return s}),a.d(t,"a",function(){return i}),a.d(t,"k",function(){return u}),a.d(t,"c",function(){return d}),a.d(t,"g",function(){return p}),a.d(t,"b",function(){return g}),a.d(t,"l",function(){return f}),a.d(t,"d",function(){return m}),a.d(t,"i",function(){return h}),a.d(t,"j",function(){return v}),a.d(t,"e",function(){return E}),a.d(t,"h",function(){return b});var n=a(41),r=a.n(n),o=a(68),c=a(269),l=a(266),s=function(e,t,a,n,s,i){return function(){var i=Object(o.a)(r.a.mark(function o(i,u){var d,p,g,f;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return d=u(),console.log(d),i({type:"CLEAR_DISPATCH_MARKSCARD"}),r.next=5,c.a.get("app.php?a=getDispatchmksdata&univcode="+d.univ.funivcode+"&fcollcode="+d.user.fcollcode+"&degfrom="+n+"&degto="+s+"&examno="+e+"&clgfrom="+t+"&clgto="+a);case 5:"object"!==typeof(p=r.sent).data?(g={header:"Error",content:"Something went wrong"},i(Object(l.w)(g))):-1===p.data.error_code?(f={header:"Error",content:p.data.data.msg},i(Object(l.w)(f))):(console.log(p.data),i({type:"DISPATCH_MARKSCARD",payload:p.data}));case 7:case"end":return r.stop()}},o)}));return function(e,t){return i.apply(this,arguments)}}()},i=function(e,t){return console.log(e,t),{type:"DISPATCH_MARKSCARD_CHANGE",payload:{el:e,i:t}}},u=function(e,t,a,n,s,i,u,d){return function(){var p=Object(o.a)(r.a.mark(function o(p,g){var f,m,h,v,E;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return f=g(),console.log(e,a,s),p({type:"SET_LOADER"}),r.next=5,c.a.post("/app.php?a=updatemarkscarddisp&univcode="+f.univ.funivcode,{data:{fdeggrp:f.univ.fdeggrp,univcode:f.univ.funivcode,user:f.user.fname,updmcdisp:e,examno:t,clgfrom:a,clgto:n,degfrom:s,degto:i,degree:u,issueto:d}});case 5:m=r.sent,p({type:"UNSET_LOADER"}),"object"!==typeof m.data?p({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):-1===m.data.error_code?(console.log(m.data),h={header:"Error",content:m.data.data.msg},p(Object(l.w)(h))):0===m.data.error_code?(v={header:"Success",content:m.data.data.msg},p(Object(l.w)(v))):(E={header:"Error",content:"Something went wrong"},p(Object(l.w)(E)));case 8:case"end":return r.stop()}},o)}));return function(e,t){return p.apply(this,arguments)}}()},d=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,a){var n,o,s,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),console.log(n),e.next=4,c.a.get("app.php?a=getDispCollegelist&univcode="+n.univ.funivcode+"&fcollcode="+n.user.fcollcode+"&fdeggrp="+n.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?(i={header:"Error",content:o.data.data.msg},t(Object(l.w)(i))):(console.log(o.data),t({type:"DISP_COLLEGE_LIST",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},p=function(e,t,a,n,s){return function(){var s=Object(o.a)(r.a.mark(function o(s,i){var u,d,p,g;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=i(),console.log(u),s({type:"CLEAR_DISPATCH_MARKSCARD_CLG"}),r.next=5,c.a.get("app.php?a=getDispatchmksdataclg&univcode="+u.univ.funivcode+"&fcollcode="+u.user.fcollcode+"&degfrom="+a+"&degto="+n+"&examno="+t+"&college="+e);case 5:"object"!==typeof(d=r.sent).data?(p={header:"Error",content:"Something went wrong"},s(Object(l.w)(p))):-1===d.data.error_code?(g={header:"Error",content:d.data.data.msg},s(Object(l.w)(g))):(console.log(d.data),s({type:"DISPATCH_MARKSCARD_CLG",payload:d.data}));case 7:case"end":return r.stop()}},o)}));return function(e,t){return s.apply(this,arguments)}}()},g=function(e,t){return console.log(e,t),{type:"DISPATCH_MARKSCARD_CLG_CHANGE",payload:{el:e,i:t}}},f=function(e,t,a,n,s,i){return function(){var u=Object(o.a)(r.a.mark(function o(u,d){var p,g,f,m,h;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return p=d(),console.log(e,a,n),u({type:"SET_LOADER"}),r.next=5,c.a.post("/app.php?a=updatemarkscarddispclg&univcode="+p.univ.funivcode,{data:{fdeggrp:p.univ.fdeggrp,univcode:p.univ.funivcode,user:p.user.fname,updmcdispclg:e,examno:t,college:a,degfrom:n,degto:s,issueto:i}});case 5:g=r.sent,u({type:"UNSET_LOADER"}),"object"!==typeof g.data?u({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):-1===g.data.error_code?(console.log(g.data),f={header:"Error",content:g.data.data.msg},u(Object(l.w)(f))):0===g.data.error_code?(m={header:"Success",content:g.data.data.msg},u(Object(l.w)(m))):(h={header:"Error",content:"Something went wrong"},u(Object(l.w)(h)));case 8:case"end":return r.stop()}},o)}));return function(e,t){return u.apply(this,arguments)}}()},m=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,a){var n,o,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),console.log(n),e.next=4,c.a.get("app.php?a=getDispDetails&univcode="+n.univ.funivcode+"&fcollcode="+n.user.fcollcode);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||(console.log(o.data),t({type:"DISPATCH_DETAILS",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},h=function(e){return{type:"DISP_EXAMSECTION_SELECT_ALL_CHECKBOX",payload:e}},v=function(e){return{type:"DISP_COLL_SELECT_ALL_CHECKBOX",payload:e}},E=function(){return function(){var e=Object(o.a)(r.a.mark(function e(t,a){var n,o,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),console.log(n),e.next=4,c.a.get("app.php?a=getDispDetailsclg&univcode="+n.univ.funivcode+"&fcollcode="+n.user.fcollcode);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||(console.log(o.data),t({type:"DISPATCH_DETAILS_CLG",payload:o.data}));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},b=function(e,t,a,n,s,i,u){return function(){var s=Object(o.a)(r.a.mark(function o(s,d){var p,g,f,m;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return p=d(),console.log(p),s({type:"CLEAR_DISPATCH_MARKSCARD_CLG"}),r.next=5,c.a.get("app.php?a=getDispatchmksdatasearch&univcode="+p.univ.funivcode+"&fcollcode="+p.user.fcollcode+"&degfrom="+a+"&degto="+n+"&regfrom="+i+"&regto="+u+"&examno="+t+"&college="+e);case 5:"object"!==typeof(g=r.sent).data?(f={header:"Error",content:"Something went wrong"},s(Object(l.w)(f))):-1===g.data.error_code?(m={header:"Error",content:g.data.data.msg},s(Object(l.w)(m))):(console.log(g.data),s({type:"DISPATCH_MARKSCARD_CLG",payload:g.data}));case 7:case"end":return r.stop()}},o)}));return function(e,t){return s.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=105.b76c1e7b.chunk.js.map