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.116.118.214
(window.webpackJsonp=window.webpackJsonp||[]).push([[250,307],{1189:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(100),c=a(101),l=a(103),o=a(102),i=a(104),s=a(2),u=a.n(s),d=a(941),p=a(1377),m=a(1343),h=a(272),b=a(1335),f=a(1337),g=a(1154),v=a(105),E=a(267),j=a(274),y=a(273),S=function(e){function t(){var e,a;Object(r.a)(this,t);for(var c=arguments.length,i=new Array(c),s=0;s<c;s++)i[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={frmDeggrp:"",reportType:"degreeWiseStudentCount",frmSubmit:!1,rftype:"PDF"},a.getDegrees=function(e,t){a.setState({frmDeggrp:t.value})},a.handleChange=function(e,t){switch(t.type){case"text":a.setState(Object(n.a)({},t.name,t.value));default:a.setState(Object(n.a)({},t.name,t.value))}a.setState({frmSubmit:!1})},a.handleSubmit=function(){var e=a.props.user.fdeggrp,t=a.state.reportType;if(""!==e)a.props.getReport(t,"tables",e),a.setState({frmSubmit:!0});else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleReport=function(){var e=a.props.user.fdeggrp,t=a.state,n=t.reportType,r=t.rftype;if(""!==e)window.open(j.c+n+"&univcode="+a.props.univcode+"°grp="+e+"&format="+r,"_blank");else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleCancel=function(){a.setState({reportType:"",reportFormat:"",frmDeggrp:""})},a.renderHeader=function(){return u.a.createElement(p.a.Header,{style:{display:"flex"}},u.a.createElement("h3",null,"Canddate List"),u.a.createElement("div",{className:"ml-auto"},u.a.createElement(m.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),u.a.createElement(m.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),u.a.createElement(d.a,{to:"/dashboard"},u.a.createElement(m.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state,t=(e.frmSubmit,e.reportType),a=e.rftype,n=Object(y.i)();return u.a.createElement("div",{className:"animated fadeIn"},u.a.createElement(p.a,{fluid:!0},u.a.createElement(p.a.Content,null,this.renderHeader(),u.a.createElement(h.a,null),u.a.createElement(p.a.Description,{style:{overflowY:"auto",height:"".concat(n,"px")}},u.a.createElement("div",{className:"col-md-6"},u.a.createElement(b.a,null,u.a.createElement(b.a.Field,null,u.a.createElement("label",null,"Report Type"),u.a.createElement(f.a,{placeholder:"Select Report Type",name:"reportType",value:t,selection:!0,search:!0,options:[{value:"degreeWiseStudentCount",text:"Degree Wise Student Count"},{value:"qpWiseSubjectList",text:"QP Wise Subject List"}],onChange:this.handleChange})),u.a.createElement(b.a.Group,{inline:!0},u.a.createElement(b.a.Field,{control:g.a,name:"rftype",label:"PDF",value:"PDF",checked:"PDF"===a,onChange:this.handleChange}),u.a.createElement(b.a.Field,{control:g.a,name:"rftype",label:"EXCEL",value:"Excel",checked:"Excel"===a,onChange:this.handleChange})),u.a.createElement(m.a,{color:"blue",onClick:this.handleSubmit},"Submit"),u.a.createElement("br",null)))))))}}]),t}(s.Component);t.default=Object(v.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,menu:e.menu}},{fetchDegGrp:E.j,getReport:E.t,showError:E.A})(S)},272:function(e,t,a){"use strict";var n=a(270),r=a.n(n),c=a(268),l=a.n(c),o=a(2),i=a.n(o),s=a(349),u=a(613),d=a(611),p=a(269);function m(e){var t=e.children,a=e.className,n=e.clearing,c=e.content,o=e.fitted,h=e.hidden,b=e.horizontal,f=e.inverted,g=e.section,v=e.vertical,E=l()("ui",Object(s.a)(n,"clearing"),Object(s.a)(o,"fitted"),Object(s.a)(h,"hidden"),Object(s.a)(b,"horizontal"),Object(s.a)(f,"inverted"),Object(s.a)(g,"section"),Object(s.a)(v,"vertical"),"divider",a),j=Object(u.a)(m,e),y=Object(d.a)(m,e);return i.a.createElement(y,r()({},j,{className:E}),p.a.isNil(t)?c:t)}m.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],m.propTypes={},t.a=m}}]);
//# sourceMappingURL=250.ffe63194.chunk.js.map
|