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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/168.f0b4fe9e.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[168],{1167:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),l=a(68),o=a(99),c=a(100),s=a(102),u=a(101),i=a(103),m=a(1),d=a.n(m),p=a(858),h=a(1139),f=a(1106),E=a(272),b=a(1098),g=a(1101),v=a(269),k=a(266),w=a(104),O=(a(271),a(270),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).state={regnofrom:"0",regnoto:"z",rtmarkstab:a.props.stt},a.changeinregnofrom=function(e,t){a.setState({regnofrom:t.value})},a.changeinregnoto=function(e,t){a.setState({regnoto:t.value})},a.handleSubmit=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.regnofrom){e.next=4;break}return t={header:"Error",content:"Enter Reg.No from"},a.props.showError(t),e.abrupt("return");case 4:if(""!==a.state.regnoto){e.next=8;break}return n={header:"Error",content:"Enter Reg.No To"},a.props.showError(n),e.abrupt("return");case 8:return e.next=10,a.props.getstuddetforrt(a.state);case 10:console.log(a.props.stt),a.setState({rtmarkstab:a.props.stt});case 12:case"end":return e.stop()}},e)})),a.handleoldmarks=function(e,t){var n=a.state.rtmarkstab.map(function(a,n){return n===t&&(a.fomarks=e),a});a.setState({rtmarkstab:n})},a.handlenewmarks=function(e,t){var n=a.state.rtmarkstab.map(function(a,n){return n===t&&(a.fnmarks=e),a});a.setState({rtmarkstab:n})},a.handleUpdate=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.updatertmarks(a.state.rtmarkstab);case 2:case"end":return e.stop()}},e)})),a.handleCancel=function(){a.setState({regnofrom:"0",regnoto:"z"})},a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.regnofrom,n=t.regnoto;return 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,"RT Marks Entry"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(f.a,{basic:!0,color:"green",content:"Update",onClick:this.handleUpdate,icon:"save"}),d.a.createElement(f.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),d.a.createElement(p.a,{to:"/dashboard"},d.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(E.a,null),d.a.createElement(h.a.Description,{style:{overflowY:"auto",height:"70vh"}},d.a.createElement("div",{className:"col-md-7"},d.a.createElement(b.a,null,d.a.createElement("div",null,d.a.createElement(b.a.Group,null,d.a.createElement(b.a.Field,{width:8},d.a.createElement("label",null,"Reg.No Range"),d.a.createElement(b.a.Input,{placeholder:"Reg.No From",name:"regnofrom",onChange:this.changeinregnofrom,value:a})),d.a.createElement(b.a.Field,{width:8},d.a.createElement(b.a.Input,{placeholder:"Reg.No To",name:"regnoto",onChange:this.changeinregnoto,value:n,style:{marginTop:"1.7em"}}))),d.a.createElement(f.a,{primary:!0,onClick:this.handleSubmit},"Submit")))),console.log(this.state.rtmarkstab),Object.keys(this.state.rtmarkstab).length>0?d.a.createElement(g.a,{celled:!0,padded:!0},d.a.createElement(g.a.Header,null,d.a.createElement(g.a.Row,null,d.a.createElement(g.a.HeaderCell,{singleLine:!0},"Sl.No"),d.a.createElement(g.a.HeaderCell,null,"Register Number"),d.a.createElement(g.a.HeaderCell,null,"Student Name"),d.a.createElement(g.a.HeaderCell,null,"Subject"),d.a.createElement(g.a.HeaderCell,null,"Qp Code"),d.a.createElement(g.a.HeaderCell,null,"Old Marks"),d.a.createElement(g.a.HeaderCell,null,"New Marks"))),d.a.createElement(g.a.Body,null,this.state.rtmarkstab.map(function(t,a){return d.a.createElement(g.a.Row,{key:a},d.a.createElement(g.a.Cell,null,a+1),d.a.createElement(g.a.Cell,null,d.a.createElement("b",null,t.fregno)),d.a.createElement(g.a.Cell,null,d.a.createElement("b",null,t.fname)),d.a.createElement(g.a.Cell,null,d.a.createElement("b",null,t.fsubname)),d.a.createElement(g.a.Cell,null,d.a.createElement("b",null,t.fqpcode)),d.a.createElement(g.a.Cell,null,d.a.createElement(b.a.Input,{type:"text",placeholder:"Old Marks",name:"oldmarks",value:t.fomarks,onChange:function(t,n){return e.handleoldmarks(n.value,a)}})),d.a.createElement(g.a.Cell,null,d.a.createElement(b.a.Input,{type:"text",placeholder:"New Marks",name:"newmarks",value:t.fnmarks,onChange:function(t,n){return e.handlenewmarks(n.value,a)}})))}))):null)))}}]),t}(m.Component));t.default=Object(w.b)(function(e){return console.log(e),{univcode:e.univ.funivcode,stt:e.getstuddetforrt}},{showError:k.w,getstuddetforrt:function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,o,c,s;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,v.a.get("/app.php",{params:{a:"getstuddetforrt",univcode:l.univ.funivcode,regfrm:e.regnofrom,regto:e.regnoto}});case 4:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},a(Object(k.w)(c))):-1===o.data.error_code?(s={header:"Error",content:o.data.data.msg},a(Object(k.w)(s))):a({type:"RT_MARKS_ENTRY",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},updatertmarks:function(e){return function(){var t=Object(l.a)(r.a.mark(function t(a,n){var l,o,c,s,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=n(),a({type:"SET_LOADER"}),t.next=4,v.a.post("/app.php?a=updatertmarks&univcode="+l.univ.funivcode,{rtarr:e});case 4:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(c={header:"Error",content:"Something went wrong"},a(Object(k.w)(c))):-1===o.data.error_code?(s={header:"Error",content:o.data.data.msg},a(Object(k.w)(s))):(u={header:"Success",content:o.data.data.msg},a(Object(k.w)(u)));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}})(O)},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),l=a(265),o=a.n(l),c=a(1),s=a.n(c),u=a(333),i=a(551),m=a(549),d=a(267);function p(e){var t=e.children,a=e.className,n=e.clearing,l=e.content,c=e.fitted,h=e.hidden,f=e.horizontal,E=e.inverted,b=e.section,g=e.vertical,v=o()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(h,"hidden"),Object(u.a)(f,"horizontal"),Object(u.a)(E,"inverted"),Object(u.a)(b,"section"),Object(u.a)(g,"vertical"),"divider",a),k=Object(i.a)(p,e),w=Object(m.a)(p,e);return s.a.createElement(w,r()({},k,{className:v}),d.a.isNil(t)?l:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p}}]);
//# sourceMappingURL=168.f0b4fe9e.chunk.js.map