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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/50.10b84359.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1041:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t(41),o=t.n(r),c=t(68),l=t(99),i=t(100),u=t(102),d=t(101),s=t(103),f=t(1),p=t.n(f),m=t(858),h=(t(294),t(1139)),w=t(1106),E=t(272),g=t(1098),b=t(1100),v=t(998),y=t(104),C=t(266),O=t(484),j=t(270),R=function(e){function a(){var e,t;Object(l.a)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return(t=Object(u.a)(this,(e=Object(d.a)(a)).call.apply(e,[this].concat(i)))).handleChange=function(){var e=Object(c.a)(o.a.mark(function e(a,n){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("fltfrom"!=n.name){e.next=4;break}return t.props.cancelInward(),e.next=4,t.props.loadData();case 4:"fconfi"==n.name?1==n.checked?t.props.changeInward(n.name,"T"):t.props.changeInward(n.name,"F"):t.props.changeInward(n.name,n.value),"fcollcode"!=n.name&&"fregno"!=n.name||t.props.getName(n.name,n.value);case 6:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}(),t.handleCheckbox=function(e,a,r){var o=Object(n.a)({},a,{checked:e.target.checked?"T":"F"});t.props.changeGrpData(o,a.fregno)},t.fromSubmitInward=function(){t.props.fromSubmitInward()},t.cancelInward=function(){t.props.cancelInward()},t}return Object(s.a)(a,e),Object(i.a)(a,[{key:"componentDidMount",value:function(){var e=Object(c.a)(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.loadData();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.props.cancelInward()}},{key:"render",value:function(){var e=this.props.inwardCreation,a=e.college,t=e.to,n=e.fcollcode,r=e.fltfrom,o=e.fto,c=e.fname,l=e.fsubject,i=e.fregno,u=e.fothers,d=(e.fid,e.fconfi);console.log("fltfrom : ",r),console.log("fname : ",c),console.log("fsubject : ",l);var s=Object(j.i)();return p.a.createElement("div",null,p.a.createElement(h.a,{fluid:!0},p.a.createElement(h.a.Content,null,p.a.createElement(h.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"Inward Entry"),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(m.a,{to:"/viewinwordtab"},p.a.createElement(w.a,{basic:!0,color:"green",content:"View",icon:"caret up"})),p.a.createElement(w.a,{basic:!0,onClick:this.cancelInward,color:"black",icon:"times circle",content:"Cancel"}),p.a.createElement(m.a,{to:"/dashboard"},p.a.createElement(w.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(E.a,null),p.a.createElement(h.a.Description,{style:{overflowY:"auto",height:"".concat(s,"px")}},p.a.createElement(g.a,null,p.a.createElement("div",{className:"row clearfix",style:{marginRight:"0px",marginLeft:"-5px"}},p.a.createElement("div",{className:"col-md-8"},p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,null,p.a.createElement("label",null,"Letter From"),p.a.createElement(b.a,{placeholder:"Select Later From",search:!0,selection:!0,name:"fltfrom",value:r,options:[{code:"",label:"-Select-"},{code:"CL",label:"College"},{code:"ST",label:"Student"},{code:"OT",label:"Others"}].map(function(e,a){return{key:a,value:e.code,text:e.label}}),onChange:this.handleChange}))),"CL"==r?p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement("label",null,"College "),p.a.createElement(b.a,{placeholder:"Select College Range",search:!0,selection:!0,name:"fcollcode",value:n,options:a.map(function(e,a){return{key:a,value:e.fcollcode,text:e.college_name}}),onChange:this.handleChange}))):null,"ST"==r?p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement(g.a.Input,{placeholder:"Register No.",name:"fregno",onChange:this.handleChange,maxLength:"8",label:"Register No.",value:i}))):null,"OT"==r?p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement(g.a.Input,{placeholder:"Others",name:"fothers",onChange:this.handleChange,maxLength:"100",label:"Others",value:u}))):null,p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement(g.a.Input,{placeholder:"Address / Name",name:"fname",onChange:this.handleChange,label:"Address / Name",value:c}))),p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement(g.a.Input,{placeholder:"From",name:"fsubject",onChange:this.handleChange,label:"Subject",value:l}))),p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement("label",null,"To "),p.a.createElement(b.a,{placeholder:"to",search:!0,selection:!0,name:"fto",value:o,options:t.map(function(e,a){return{key:a,value:e.fid,text:e.fdescpn}}),onChange:this.handleChange}))),p.a.createElement(g.a.Group,null,p.a.createElement(g.a.Field,{width:16},p.a.createElement(v.a,{label:"Confidencial",onChange:this.handleChange,name:"fconfi",checked:"T"==d}))),p.a.createElement("button",{class:"ui primary button",onClick:this.fromSubmitInward},"Submit")),p.a.createElement("hr",null)))))))}}]),a}(f.Component);a.default=Object(y.b)(function(e){return{inwardCreation:e.inwardCreation}},{showError:C.w,loadData:O.e,changeInward:O.b,getName:O.d,cancelInward:O.a,fromSubmitInward:O.c})(R)},272:function(e,a,t){"use strict";var n=t(268),r=t.n(n),o=t(265),c=t.n(o),l=t(1),i=t.n(l),u=t(333),d=t(551),s=t(549),f=t(267);function p(e){var a=e.children,t=e.className,n=e.clearing,o=e.content,l=e.fitted,m=e.hidden,h=e.horizontal,w=e.inverted,E=e.section,g=e.vertical,b=c()("ui",Object(u.a)(n,"clearing"),Object(u.a)(l,"fitted"),Object(u.a)(m,"hidden"),Object(u.a)(h,"horizontal"),Object(u.a)(w,"inverted"),Object(u.a)(E,"section"),Object(u.a)(g,"vertical"),"divider",t),v=Object(d.a)(p,e),y=Object(s.a)(p,e);return i.a.createElement(y,r()({},v,{className:b}),f.a.isNil(a)?o:a)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},a.a=p},294:function(e,a,t){},484:function(e,a,t){"use strict";t.d(a,"b",function(){return i}),t.d(a,"d",function(){return u}),t.d(a,"a",function(){return d}),t.d(a,"e",function(){return s}),t.d(a,"c",function(){return f}),t.d(a,"f",function(){return p});var n=t(41),r=t.n(n),o=t(68),c=t(269),l=t(266),i=function(e,a){return{type:"CHANGE_INWARD",payload:{name:e,value:a}}},u=function(e,a){return function(){var e=Object(o.a)(r.a.mark(function e(t,n){var o,l;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n(),e.next=3,c.a.get("app.php?a=getName&univcode="+o.univ.funivcode+"&value="+a+"&fltfrom="+o.inwardCreation.fltfrom);case 3:"object"!==typeof(l=e.sent).data?t({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===l.data.error_code?t({type:"INWARD_GETNAME",payload:l.data}):t({type:"SET_ERROR",payload:l});case 5:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}()},d=function(){return{type:"CANCEL_INWARD"}},s=function(e,a){return function(){var e=Object(o.a)(r.a.mark(function e(a,t){var n,o;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t(),e.next=3,c.a.get("app.php?a=loadData&univcode="+n.univ.funivcode);case 3:"object"!==typeof(o=e.sent).data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===o.data.error_code?a({type:"INWARD_LOAD",payload:o.data}):a({type:"SET_ERROR",payload:o});case 5:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}()},f=function(){return function(){var e=Object(o.a)(r.a.mark(function e(a,t){var n,o,i;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t(),console.log("state.inwardCreation.fconfi : ",n.inwardCreation.fconfi),e.next=4,c.a.post("app.php?a=fromSubmitInward&univcode="+n.univ.funivcode,{fltfrom:n.inwardCreation.fltfrom,fcollcode:n.inwardCreation.fcollcode,fto:n.inwardCreation.fto,fid:n.inwardCreation.fid,fname:n.inwardCreation.fname,fsubject:n.inwardCreation.fsubject,fregno:n.inwardCreation.fregno,fothers:n.inwardCreation.fothers,fconfi:n.inwardCreation.fconfi,ftype:"I"});case 4:"object"!==typeof(o=e.sent).data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):0===o.data.error_code?(i={header:"Success",content:o.data.data.msg},a(Object(l.w)(i)),a({type:"CANCEL_INWARD"})):a({type:"SET_ERROR",payload:o});case 6:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}()},p=function(){return function(){var e=Object(o.a)(r.a.mark(function e(a,t){var n,o,i,u;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t(),a({type:"SET_LOADER"}),e.next=4,c.a.get("/app.php",{params:{a:"viewInword",univcode:n.univ.funivcode}});case 4:o=e.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},a(Object(l.w)(i))):-1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},a(Object(l.w)(u))):a({type:"VIEW_INWARD",payload:o.data});case 7:case"end":return e.stop()}},e)}));return function(a,t){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=50.10b84359.chunk.js.map