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.219.23.150


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/107.6a564301.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{1091:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),l=a(99),s=a(100),o=a(102),i=a(101),u=a(103),d=a(1),p=a.n(d),m=a(858),h=a(104),E=a(1139),f=a(1106),y=a(272),b=a(1098),v=a(1100),g=a(1101),k=a(266),w=a(494),x=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,s=new Array(n),u=0;u<n;u++)s[u]=arguments[u];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(s)))).state={type:"",frmsubmit:!1,status:"Pending",smarks:[],smsg:""},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.loadmarksentry(a.state);case 2:return e.abrupt("return");case 3:case"end":return e.stop()}},e)})),a.handleChangeType=function(e,t){a.setState({type:t.value})},a.handleChangeStatus=function(e,t){a.setState({status:t.value})},a.handleSubmitMarksEntry=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.type){e.next=4;break}return t={header:"Error",content:"Select Type"},a.props.showError(t),e.abrupt("return");case 4:return e.next=6,a.props.loadmarksentry(a.state);case 6:if("-1"!=a.props.marksentry.error_code){e.next=13;break}return a.setState({frmsubmit:!1,smsg:""}),n={header:"Error",content:a.props.marksentry.msg},a.props.showError(n),e.abrupt("return");case 13:a.setState({frmsubmit:!0});case 14:case"end":return e.stop()}},e)})),a.handleCancel=function(){a.setState({type:"",frmsubmit:!1,status:"Pending"})},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.type,n=t.status,r=t.smsg;return p.a.createElement("div",{className:"animated fadeIn"},p.a.createElement(E.a,{fluid:!0},p.a.createElement(E.a.Content,{style:{height:"700px"}},p.a.createElement(E.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Marks Entry"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(f.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),p.a.createElement(m.a,{to:"/dashboard"},p.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(y.a,null),p.a.createElement(E.a.Description,{style:{overflowY:"auto",height:"700px"}},p.a.createElement("div",{className:"col-md-8 col-lg-8 col-sm-12"},p.a.createElement(b.a,null,p.a.createElement(b.a.Group,null,p.a.createElement(b.a.Field,{width:16},p.a.createElement("label",null,"Type"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangeType,value:a,name:"type",placeholder:"Type",options:[{key:1,value:"MM",text:"Marks Modification"},{key:2,value:"Withheld Result",text:"Withheld Result"},{key:3,value:"Other",text:"Other"}]}))),p.a.createElement(b.a.Field,{width:16},p.a.createElement("label",null,"Status"),p.a.createElement(v.a,{fluid:!0,search:!0,selection:!0,onChange:this.handleChangeStatus,value:n,name:"status",placeholder:"Status",options:[{key:1,value:"Pending",text:"Pending"},{key:2,value:"Updated",text:"Updated"},{key:3,value:"All",text:"All"}]})),p.a.createElement(b.a.Field,null,p.a.createElement(f.a,{content:"Submit",color:"blue",onClick:this.handleSubmitMarksEntry}))),this.state.frmsubmit?p.a.createElement(g.a,{celled:!0,padded:!0,style:{width:"1100px"}},p.a.createElement(g.a.Header,null,p.a.createElement(g.a.Row,null,p.a.createElement(g.a.HeaderCell,{singleLine:!0,style:{textAlign:"center"}},"Sl. No."),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"University Name"),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"Document No."),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"Remarks"),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"Count"),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"Uploaded Date"),p.a.createElement(g.a.HeaderCell,{style:{textAlign:"center"}},"Action"))),p.a.createElement(g.a.Body,null,this.props.marksentry.data.map(function(t,a){return p.a.createElement(g.a.Row,null,p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},a+1),p.a.createElement(g.a.Cell,null,e.props.univ.funivname),p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},p.a.createElement("a",{href:"https://correction-document.s3.ap-south-1.amazonaws.com/"+t.fdocpath,target:"_blank"},t.fdocno)),p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},t.fremarks),p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},t.cnt),p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},t.fdate),p.a.createElement(g.a.Cell,{style:{textAlign:"center"}},p.a.createElement(m.a,{to:{pathname:"/modifymarksentry/".concat(t.fdocno,"/").concat(e.state.status,"/"),query:{fdocno:t.fdocno,status:e.state.status}}},p.a.createElement(f.a,{content:"View",basic:!0,size:"small",color:"blue",icon:"print"}))))}))):p.a.createElement("h1",null,r))))))}}]),t}(d.Component);t.default=Object(h.b)(function(e){return{univ:e.univ,user:e.user,marksentry:e.getmarksentrydet}},{showError:k.w,loadmarksentry:w.b})(x)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),c=a(265),l=a.n(c),s=a(1),o=a.n(s),i=a(333),u=a(551),d=a(549),p=a(267);function m(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,s=e.fitted,h=e.hidden,E=e.horizontal,f=e.inverted,y=e.section,b=e.vertical,v=l()("ui",Object(i.a)(n,"clearing"),Object(i.a)(s,"fitted"),Object(i.a)(h,"hidden"),Object(i.a)(E,"horizontal"),Object(i.a)(f,"inverted"),Object(i.a)(y,"section"),Object(i.a)(b,"vertical"),"divider",a),g=Object(u.a)(m,e),k=Object(d.a)(m,e);return o.a.createElement(k,r()({},g,{className:v}),p.a.isNil(t)?c:t)}m.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],m.propTypes={},t.a=m},494:function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"c",function(){return u}),a.d(t,"d",function(){return d}),a.d(t,"a",function(){return p});var n=a(41),r=a.n(n),c=a(68),l=a(269),s=a(266),o=a(290),i=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,o,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),a({type:"DELETE_QPSTATS"}),a({type:"CLEAR_TEACHER_ID"}),t.next=6,l.a.get("/app.php",{params:{a:"getMarksEntryDet",type:e.type,status:e.status,univcode:c.user.fcuruniv}});case 6:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},a(Object(s.w)(i))):a({type:"MARKS_ENTRY",payload:o.data});case 9:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},u=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){var o,i,u,d;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=c(),n({type:"SET_LOADER"}),a.next=4,l.a.get("/app.php",{params:{a:"updatemarksentry",docno:e,univcode:o.user.fcuruniv,status:t}});case 4:i=a.sent,n({type:"UNSET_LOADER"}),"object"!==typeof i.data?(u={header:"Error",content:"Something went wrong"},n(Object(s.w)(u))):-1===i.data.error_code?(d={header:"Error",content:i.data.data.msg},n(Object(s.w)(d))):n({type:"UPDATE_MARKS_ENTRY",payload:i.data});case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},d=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){var i,u,d,p,m;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=c(),n({type:"SET_LOADER"}),a.next=4,l.a.post("/app.php?a=savemarksentry&univcode="+i.univ.funivcode+"&mobileno="+i.user.fmobileno+"&docno="+t,{tabarr:e});case 4:u=a.sent,n({type:"UNSET_LOADER"}),"object"!==typeof u.data?(d={header:"Error",content:"Something went wrong"},n(Object(s.w)(d))):-1===u.data.error_code?(p={header:"Error",content:u.data.data.msg},n(Object(s.w)(p))):(m={header:"Success",content:u.data.data.msg},n(Object(s.w)(m)),o.k.push("/marksentry"));case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},p=function(e,t){return function(){var a=Object(c.a)(r.a.mark(function a(n,c){var o,i,u;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=c(),n({type:"SET_LOADER"}),n({type:"DELETE_QPSTATS"}),n({type:"CLEAR_TEACHER_ID"}),a.next=6,l.a.post("/app.php?a=checkfmarks&univcode="+o.univ.funivcode+"&fmarks="+e,{regno:t});case 6:if(i=a.sent,n({type:"UNSET_LOADER"}),-1!==i.data.error_code){a.next=12;break}return u={header:"Error",content:i.data.data.msg},n(Object(s.w)(u)),a.abrupt("return");case 12:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=107.6a564301.chunk.js.map