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.226.169.169
(window.webpackJsonp=window.webpackJsonp||[]).push([[270,307],{1332:function(e,t,a){"use strict";a.r(t);var l=a(3),n=a(100),r=a(101),o=a(103),c=a(102),g=a(104),i=a(2),p=a.n(i),d=a(105),u=a(941),s=a(1377),m=a(1343),h=a(272),E=a(1335),v=a(1337),f=a(1155),b=a(267),O=a(274),y=function(e){function t(){var e,a;Object(n.a)(this,t);for(var l=arguments.length,r=new Array(l),g=0;g<l;g++)r[g]=arguments[g];return(a=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).state={deggrp:"",college:"all",degree:"all",regFrom:"0",regTo:"Z",type:"detailed"},a.componentDidMount=function(){a.props.fetchDegGrp()},a.changeHandler=function(e,t){"deggrp"==t?(a.setState({deggrp:e}),a.props.getCollegeOnDeggrp(e),a.props.getDegreeOnDeggrpCollege(e,a.state.college)):"college"==t?(a.setState({college:e}),a.props.getDegreeOnDeggrpCollege(a.state.deggrp,e)):"degree"==t?a.setState({degree:e}):"regFrom"==t?a.setState({regFrom:e}):"regTo"==t?a.setState({regTo:e}):"type"==t&&a.setState({type:e})},a.getReport=function(){if(""!=a.state.deggrp)window.open(O.c+"getRVorPCreport&univcode="+a.props.univcode+"°grp="+a.state.deggrp+"&collcode="+a.state.college+"°ree="+a.state.degree+"®From="+a.state.regFrom+"®To="+a.state.regTo+"&type="+a.state.type);else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleCancel=function(){a.setState({deggrp:"",college:"all",degree:"all",regFrom:"0",regTo:"Z",type:""})},a}return Object(g.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.deggrp,n=t.college,r=t.degree,o=t.regFrom,c=t.regTo,g=t.type,i=[{key:"all",text:"All",value:"all"}],d=this.props.deggrpOpt.map(function(e,t){return{key:t,value:e.fdeggrp,text:e.fdescpn}}),b=this.props.coll.map(function(e,t){return{key:t,value:e.fcollcode,text:e.cfcollname}}),O=[].concat(i,Object(l.a)(b)),y=this.props.deg.map(function(e,t){return{key:t,value:e.value,text:e.text}}),C=[].concat(i,Object(l.a)(y));return p.a.createElement(s.a,{fluid:!0},p.a.createElement(s.a.Content,null,p.a.createElement(s.a.Header,{style:{display:"flex"}},p.a.createElement("h4",null,"RV/PC Detailed and Summary "),p.a.createElement("div",{className:"ml-auto"},p.a.createElement(m.a,{basic:!0,color:"blue",icon:"icon file pdf outline",onClick:this.getReport,content:"Report"}),p.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),p.a.createElement(u.a,{to:"/dashboard"},p.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),p.a.createElement(h.a,null),p.a.createElement(s.a.Description,null,p.a.createElement(E.a,null,p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:6},p.a.createElement("label",null,"Degree Group"),p.a.createElement(v.a,{selection:!0,search:!0,value:a,placeholder:"Degree Group",options:d,onChange:function(t,a){return e.changeHandler(a.value,"deggrp")}}))),p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:6},p.a.createElement("label",null,"College"),p.a.createElement(v.a,{selection:!0,search:!0,value:n,placeholder:"College",options:O,onChange:function(t,a){return e.changeHandler(a.value,"college")}}))),p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:6},p.a.createElement("label",null,"Degree "),p.a.createElement(v.a,{selection:!0,search:!0,value:r,placeholder:"Degree",options:C,onChange:function(t,a){return e.changeHandler(a.value,"degree")}}))),p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:3},p.a.createElement("label",null,"Regno From "),p.a.createElement(f.a,{type:"text",value:o,onChange:function(t,a){return e.changeHandler(a.value,"regFrom")}})),p.a.createElement(E.a.Field,{width:3},p.a.createElement("label",null,"Regno To "),p.a.createElement(f.a,{type:"text",value:c,onChange:function(t,a){return e.changeHandler(a.value,"regTo")}}))),p.a.createElement(E.a.Group,null,p.a.createElement(E.a.Field,{width:6},p.a.createElement("label",null,"Type"),p.a.createElement(v.a,{selection:!0,search:!0,value:g,placeholder:"Type",options:[{key:"qpsummary",value:"qpsummary",text:"QP WISE SUMMARY"},{key:"detailed",value:"detailed",text:"Detailed"}],onChange:function(t,a){return e.changeHandler(a.value,"type")}})))))))}}]),t}(i.Component);t.default=Object(d.b)(function(e){return console.log(e.getCollegeOnDeggrp,"state.getCollegeOnDeggrp"),{univcode:e.univ.funivcode,deggrpOpt:e.deggrp,coll:e.getCollegeOnDeggrp,deg:e.getDegreeOnDeggrpCollege}},{fetchDegGrp:b.j,getCollegeOnDeggrp:b.p,getDegreeOnDeggrpCollege:b.q,showError:b.A})(y)},272:function(e,t,a){"use strict";var l=a(270),n=a.n(l),r=a(268),o=a.n(r),c=a(2),g=a.n(c),i=a(349),p=a(613),d=a(611),u=a(269);function s(e){var t=e.children,a=e.className,l=e.clearing,r=e.content,c=e.fitted,m=e.hidden,h=e.horizontal,E=e.inverted,v=e.section,f=e.vertical,b=o()("ui",Object(i.a)(l,"clearing"),Object(i.a)(c,"fitted"),Object(i.a)(m,"hidden"),Object(i.a)(h,"horizontal"),Object(i.a)(E,"inverted"),Object(i.a)(v,"section"),Object(i.a)(f,"vertical"),"divider",a),O=Object(p.a)(s,e),y=Object(d.a)(s,e);return g.a.createElement(y,n()({},O,{className:b}),u.a.isNil(t)?r:t)}s.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],s.propTypes={},t.a=s}}]);
//# sourceMappingURL=270.8db92622.chunk.js.map
|