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.107.243
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{1074:function(e,t,a){"use strict";a.r(t);var n=a(3),r=a(41),c=a.n(r),o=a(68),l=a(69),i=a(1),d=a.n(i),u=a(858),s=a(104),p=a(1139),f=a(1106),m=a(272),b=a(1098),h=a(1100),E=a(1101),g=(a(271),a(270)),v=a(489),y=a(306);t.default=Object(s.b)(function(e){return console.log(e),{board:e.boeChairmanBoard.res,boedtt:e.boeChairmanBoard,user:e.user,boeteachlist:e.boeteachlist,screen:e.boeChairmanBoard.screen}},{changedeggrploadboard:y.a,getchairmandet:v.f,boesubmit:v.a,changeteachlist:v.d,createboe:v.e,changegrpname:v.c,changeboard:v.b})(function(e){var t=Object(i.useState)(""),a=Object(l.a)(t,2),r=a[0],s=(a[1],Object(i.useState)("")),v=Object(l.a)(s,2),y=v[0],w=(v[1],Object(i.useState)(!1)),O=Object(l.a)(w,2),j=O[0],S=O[1];Object(i.useEffect)(function(){function t(){return(t=Object(o.a)(c.a.mark(function t(){var a;return c.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log(e.match.params.screen),console.log(e.match.params.fgrpname),console.log(e.match.params.fboard),a="","create"==e.match.params.screen?a=a={chaircode:e.user.fuserid,screen:"create",fboard:"",fgrpname:""}:"edit"==e.match.params.screen&&(a={chaircode:e.user.fuserid,screen:"edit",fboard:e.match.params.fboard,fgrpname:e.match.params.fgrpname}),t.next=7,e.getchairmandet(a);case 7:case"end":return t.stop()}},t)}))).apply(this,arguments)}!function(){t.apply(this,arguments)}()},[]);var C=Object(g.i)(),A=[],x=[];if("edit"==e.screen){var _=e.board[0];A.push({value:_.fboard,text:_.fboardname}),x.push({value:_.fgrpname,text:_.fgrpname})}else e.board.map(function(e){A.push({value:e.fboardcode,text:e.fboardname})}),e.board.map(function(e){var t=e.fgrpname.split("*");console.log(t),t.map(function(e){x.push({value:e,text:e})})});return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"animated fadeIn"},d.a.createElement(p.a,{fluid:!0},d.a.createElement(p.a.Content,null,d.a.createElement(p.a.Header,{style:{display:"flex"}},d.a.createElement("h4",null,"Create BOE"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(u.a,{to:{pathname:"/createboe"}},d.a.createElement(f.a,{basic:!0,color:"blue",content:"Back",icon:"angle double left"})),d.a.createElement(f.a,{basic:!0,color:"green",content:"Save",icon:"file",onClick:function(){console.log("hii"),e.createboe(r,y)}}),d.a.createElement(u.a,{to:"/dashboard"},d.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),d.a.createElement(m.a,null),d.a.createElement(p.a.Description,{style:{height:"".concat(C,"px"),overflowY:"auto"}},d.a.createElement("div",{className:"col-md-6"},d.a.createElement(b.a,null,d.a.createElement(b.a.Field,null,d.a.createElement("label",null," Select Board"),d.a.createElement(h.a,{placeholder:"Select Board",name:"fboard",value:e.boedtt.fboard,selection:!0,search:!0,options:A,onChange:function(t,a){e.changeboard(a.value)}})),d.a.createElement(b.a.Field,null,console.log(x),d.a.createElement("label",null," Group Name"),d.a.createElement(h.a,{placeholder:"Select Group Name",name:"fgrpname",value:e.boedtt.fgrpname,selection:!0,search:!0,options:x,onChange:function(t,a){e.changegrpname(a.value)}})),d.a.createElement(f.a,{color:"blue",onClick:function(){e.boesubmit(r,y,e.match.params.screen),S(!0)}},"Submit"))),1==j||"edit"==e.screen?d.a.createElement("div",{className:"ui mini form"},d.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive",style:{marginTop:"25px"}},d.a.createElement(E.a.Header,{style:{fontSize:"1.2em"}},d.a.createElement(E.a.Row,null,d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},d.a.createElement("label",null,"Sl. No.")),d.a.createElement(E.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},d.a.createElement("label",null,"College code")),d.a.createElement(E.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},d.a.createElement("label",null,"Teacher code")),d.a.createElement(E.a.HeaderCell,{style:{width:"20%"},textAlign:"center"},d.a.createElement("label",null,"Teacher Name")),d.a.createElement(E.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},d.a.createElement("label",null,"Scale")),d.a.createElement(E.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},d.a.createElement("label",null,"Mobile No.")),d.a.createElement(E.a.HeaderCell,{style:{width:"7%"},textAlign:"center"},d.a.createElement("label",null,"Select")))),d.a.createElement(E.a.Body,null,e.boeteachlist.map(function(t,a){return d.a.createElement(E.a.Row,{key:a},d.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},a+1),d.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fcollcode),d.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fteachcode),d.a.createElement(E.a.Cell,{textAlign:"left",style:{fontSize:"1.2em"}},t.fteachname),d.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fscale),d.a.createElement(E.a.Cell,{textAlign:"center",style:{fontSize:"1.2em"}},t.fmobile),d.a.createElement(E.a.Cell,Object(n.a)({textAlign:"center",style:{fontSize:"0.5em"}},"textAlign","center"),d.a.createElement(b.a.Checkbox,{value:t.fteachcode,name:"fdeleted",checked:"F"==t.fdeleted,onChange:function(t,n){return function(t,a,n){console.log(t.checked);var r=t.checked?"F":"T";e.changeteachlist(t,r,n)}(n,0,a)}})))})))):null)))))})},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),i=a.n(l),d=a(333),u=a(551),s=a(549),p=a(267);function f(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,l=e.fitted,m=e.hidden,b=e.horizontal,h=e.inverted,E=e.section,g=e.vertical,v=o()("ui",Object(d.a)(n,"clearing"),Object(d.a)(l,"fitted"),Object(d.a)(m,"hidden"),Object(d.a)(b,"horizontal"),Object(d.a)(h,"inverted"),Object(d.a)(E,"section"),Object(d.a)(g,"vertical"),"divider",a),y=Object(u.a)(f,e),w=Object(s.a)(f,e);return i.a.createElement(w,r()({},y,{className:v}),p.a.isNil(t)?c:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},306:function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"c",function(){return d}),a.d(t,"a",function(){return u}),a.d(t,"d",function(){return s}),a.d(t,"e",function(){return p});var n=a(41),r=a.n(n),c=a(68),o=a(269),l=a(266),i=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;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:"getfboard",deggrp:e,univcode:c.user.fcuruniv}});case 3:"object"!==typeof(i=t.sent).data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):a({type:"FETCH_BOARDS",payload:i.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},d=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;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"}),t.next=5,o.a.get("/app.php",{params:{a:"getscript",deggrp:e.fdeggrp,univcode:c.user.fcuruniv,fboard:e.fboard,fexamno:e.Examno,status:e.valstats}});case 5:i=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):a({type:"FETCH_QPSTATS",payload:i.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"DELETE_QPSTATS"}),t.next=4,o.a.get("/app.php",{params:{a:"loadboardvaluationstats",deggrp:e,univcode:c.user.fcuruniv}});case 4:"object"!==typeof(i=t.sent).data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):a({type:"FETCH_BOARDS",payload:i.data});case 6:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;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_SUM"}),t.next=5,o.a.get("/app.php",{params:{a:"getscriptSummary",deggrp:e.fdeggrp,univcode:c.user.fcuruniv,fexamno:e.Examno,fboard:e.fboard,status:e.valsum}});case 5:i=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):a({type:"FETCH_QPSTATS_SUM",payload:i.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;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:"getTeachfboard",deggrp:e,univcode:c.user.fcuruniv}});case 3:"object"!==typeof(i=t.sent).data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):a({type:"FETCH_BOARDS",payload:i.data});case 5:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}},489:function(e,t,a){"use strict";a.d(t,"g",function(){return d}),a.d(t,"f",function(){return u}),a.d(t,"a",function(){return s}),a.d(t,"d",function(){return p}),a.d(t,"e",function(){return f}),a.d(t,"c",function(){return m}),a.d(t,"b",function(){return b});var n=a(41),r=a.n(n),c=a(68),o=a(269),l=a(266),i=a(290),d=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"CLEAR_CREATE_BOE"}),t.next=4,o.a.get("/app.php",{params:{a:"loadcreatedoetable",univcode:c.user.fcuruniv,deggrp:e}});case 4:"object"!==typeof(i=t.sent).data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code||a({type:"GET_BOE_TABLE",payload:i.data});case 6:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},u=function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,i,d,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),a({type:"CLEAR_CREATE_BOE"}),t.next=5,o.a.get("/app.php",{params:{a:"loadchairmandetBOE",univcode:c.user.fcuruniv,chairmancode:e.chaircode,screen:e.screen,fboard:e.fboard,fgrpname:e.fgrpname}});case 5:i=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof i.data?(d={header:"Error",content:"Something went wrong"},a(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},a(Object(l.w)(u))):(console.log(i.data),"edit"==i.data.data.screen&&a({type:"BOE_TEACHERS",payload:i.data}),a({type:"CHAIRMAN_BOARD",payload:i.data}));case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},s=function(e,t,a){return function(){var e=Object(c.a)(r.a.mark(function e(t,n){var c,i,d,u;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),t({type:"CLEAR_CREATE_BOE"}),e.next=4,o.a.get("/app.php",{params:{a:"loadsubmitBOE",univcode:c.user.fcuruniv,fboard:c.boeChairmanBoard.fboard,fgrpname:c.boeChairmanBoard.fgrpname,screen:a}});case 4:"object"!==typeof(i=e.sent).data?(d={header:"Error",content:"Something went wrong"},t(Object(l.w)(d))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},t(Object(l.w)(u))):t({type:"BOE_TEACHERS",payload:i.data});case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},p=function(e,t,a){return{type:"CHANGE_TEACHLIST_BOE",payload:{e:e,data:t,i:a}}},f=function(e,t){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c,d,u,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"CLEAR_CREATE_BOE"}),e.next=4,o.a.post("/app.php?a=createBOENEW&univcode="+n.user.fcuruniv,{body:{fboard:n.boeChairmanBoard.fboard,fgrpname:n.boeChairmanBoard.fgrpname,crtboe:n.boeteachlist,user:n.user}});case 4:"object"!==typeof(c=e.sent).data?(d={header:"Error",content:"Something went wrong"},t(Object(l.w)(d))):-1===c.data.error_code?(u={header:"Error",content:c.data.data.msg},t(Object(l.w)(u))):(s={header:"Success",content:c.data.data.msg},t(Object(l.w)(s)),i.k.push("/createboe"));case 6:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},m=function(e){return{type:"CHANGE_BOE_GRPNAME",payload:{data:e}}},b=function(e){return{type:"CHANGE_BOE_BOARD",payload:{data:e}}}}}]);
//# sourceMappingURL=60.d79045b9.chunk.js.map
|