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.142.131.51
(window.webpackJsonp=window.webpackJsonp||[]).push([[87,200,307],{1172:function(e,t,a){"use strict";a.r(t);var l=a(0),r=a(100),n=a(101),c=a(103),o=a(102),d=a(104),i=a(2),m=a.n(i),s=a(941),u=a(1377),p=a(1343),g=a(272),f=a(1335),h=a(1337),E=a(105),C=a(267),b=a(650),v=a(274),y=a(273),w=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,d=new Array(n),i=0;i<n;i++)d[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(d)))).state={frmDeggrp:"",reportType:"College Wise",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",displayTbl:!1},a.getDegrees=function(e,t){a.setState({frmDeggrp:t.value})},a.handleChange=function(e,t){switch(t.type){case"text":a.setState(Object(l.a)({},t.name,t.value));default:a.setState(Object(l.a)({},t.name,t.value))}a.setState({displayTbl:!1})},a.handleSubmit=function(){var e=a.props.user.fdeggrp,t=a.state,l=t.reportType,r=t.fdeggrpfrm,n=t.fdeggrpto,c=t.fcollfrm,o=t.fcollto;if(""!==e)a.props.getReport(l,"tables",e,r,n,c,o),a.setState({displayTbl:!0});else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleReport=function(){var e=a.props.user.fdeggrp,t=a.state,l=t.reportType,r=t.fdeggrpfrm,n=t.fdeggrpto,c=t.fcollfrm,o=t.fcollto;if(""!==e)window.open(v.c+"admissioncombinationwiseintake&univcode="+a.props.univcode+"°grp="+e+"&fdeggrpfrom="+r+"&fdeggrpto="+n+"&fcollfrom="+c+"&fcollto="+o+"&val="+l+"&format=PDF","_blank");else{a.props.showError({header:"Error",content:"Select Degree Group"})}},a.handleCancel=function(){a.setState({reportType:"",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",reportFormat:"",frmDeggrp:""})},a.renderHeader=function(){return m.a.createElement(u.a.Header,{style:{display:"flex"}},m.a.createElement("h3",null,"Intake Report"),m.a.createElement("div",{className:"ml-auto"},m.a.createElement(p.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),m.a.createElement(p.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),m.a.createElement(s.a,{to:"/dashboard"},m.a.createElement(p.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a.renderForm=function(){var e=a.state,t=e.displayTbl,l=e.reportType,r=e.fdeggrpfrm,n=e.fdeggrpto,c=e.fcollfrm,o=e.fcollto,d=Object(y.i)();return m.a.createElement("div",{className:"animated fadeIn"},m.a.createElement(u.a,{fluid:!0},m.a.createElement(u.a.Content,null,a.renderHeader(),m.a.createElement(g.a,null),m.a.createElement(u.a.Description,{style:{overflowY:"auto",height:"".concat(d,"px")}},m.a.createElement("div",{className:"col-md-6"},m.a.createElement(f.a,null,"College Wise"==l?m.a.createElement("div",null,m.a.createElement(f.a.Group,null,m.a.createElement(f.a.Input,{placeholder:"From",value:c,width:8,name:"fcollfrm",onChange:a.handleChange,label:"College Code Range"}),m.a.createElement(f.a.Input,{placeholder:"To",name:"fcollto",value:o,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}}))):null,m.a.createElement(f.a.Group,null,m.a.createElement(f.a.Input,{placeholder:"From",value:r,width:8,name:"fdeggrpfrm",onChange:a.handleChange,label:"Degree Group Range"}),m.a.createElement(f.a.Input,{placeholder:"To",name:"fdeggrpto",value:n,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}})),m.a.createElement(f.a.Group,null,m.a.createElement(f.a.Field,{width:16},m.a.createElement("label",null,"Report Type"),m.a.createElement(h.a,{placeholder:"Select Report Type",name:"reportType",value:l,selection:!0,search:!0,options:[{value:"College Wise",text:"College Wise"},{value:"Degree Wise",text:"Degree Wise"}],onChange:a.handleChange}))),m.a.createElement("br",null))),t?m.a.createElement(b.default,{reportdet:a.props.collegeReport,rtype:l}):null))))},a}return Object(d.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return this.renderForm()}}]),t}(i.Component);t.default=Object(E.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user}},{fetchDegGrp:C.j,getReport:C.t,showError:C.A})(w)},272:function(e,t,a){"use strict";var l=a(270),r=a.n(l),n=a(268),c=a.n(n),o=a(2),d=a.n(o),i=a(349),m=a(613),s=a(611),u=a(269);function p(e){var t=e.children,a=e.className,l=e.clearing,n=e.content,o=e.fitted,g=e.hidden,f=e.horizontal,h=e.inverted,E=e.section,C=e.vertical,b=c()("ui",Object(i.a)(l,"clearing"),Object(i.a)(o,"fitted"),Object(i.a)(g,"hidden"),Object(i.a)(f,"horizontal"),Object(i.a)(h,"inverted"),Object(i.a)(E,"section"),Object(i.a)(C,"vertical"),"divider",a),v=Object(m.a)(p,e),y=Object(s.a)(p,e);return d.a.createElement(y,r()({},v,{className:b}),u.a.isNil(t)?n:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p},304:function(e,t,a){},650:function(e,t,a){"use strict";a.r(t);var l=a(100),r=a(101),n=a(103),c=a(102),o=a(104),d=a(2),i=a.n(d),m=a(1155),s=a(1338),u=(a(304),a(171),function(e){function t(){var e,a;Object(l.a)(this,t);for(var r=arguments.length,o=new Array(r),d=0;d<r;d++)o[d]=arguments[d];return(a=Object(n.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={colgdet:[],searchVal:""},a.searchTable=function(e,t){var l=t.value,r=a.props.reportdet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(l.toLowerCase())})});a.setState({colgdet:r,searchVal:t.value})},a.renderTable=function(){var e=a.state.colgdet;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("hr",null),i.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},i.a.createElement(m.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),i.a.createElement("div",null,i.a.createElement(s.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky"},i.a.createElement(s.a.Header,null,i.a.createElement(s.a.Row,{textAlign:"center"},i.a.createElement(s.a.HeaderCell,null,"Sl.No."),i.a.createElement(s.a.HeaderCell,null,"College Code"),i.a.createElement(s.a.HeaderCell,null,"College Name"),i.a.createElement(s.a.HeaderCell,null,"Town"),i.a.createElement(s.a.HeaderCell,null,"Principal Name"),i.a.createElement(s.a.HeaderCell,null,"Mobile"),i.a.createElement(s.a.HeaderCell,null,"Alt. Contact"),i.a.createElement(s.a.HeaderCell,null,"Email Id"))),i.a.createElement(s.a.Body,null,e.map(function(e,t){return i.a.createElement(s.a.Row,{key:t,style:{overflow:"hidden"}},i.a.createElement(s.a.Cell,{textAlign:"center"},t+1),i.a.createElement(s.a.Cell,null,e.fcollcode),i.a.createElement(s.a.Cell,null,e.fcollname),i.a.createElement(s.a.Cell,null,e.town),i.a.createElement(s.a.Cell,null,e.fprincipalname),i.a.createElement(s.a.Cell,null,e.fmobile),i.a.createElement(s.a.Cell,null,e.faltmobile),i.a.createElement(s.a.Cell,null,e.femail))})))))},a.renderTaggedTable=function(){var e=a.state.colgdet;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("hr",null),i.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},i.a.createElement(m.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:a.searchTable,value:a.state.searchVal,style:{fontSize:"1.1em"}})),i.a.createElement("div",null,i.a.createElement(s.a,{celled:!0,padded:!0,selectable:!0,structured:!0,size:"small",color:"olive"},i.a.createElement(s.a.Header,null,i.a.createElement(s.a.Row,{textAlign:"center"},i.a.createElement(s.a.HeaderCell,{rowSpan:"2"},"Sl.No."),i.a.createElement(s.a.HeaderCell,{colSpan:"3"},"Center"),i.a.createElement(s.a.HeaderCell,{colSpan:"3"},"Tagged Colleges")),i.a.createElement(s.a.Row,{textAlign:"center"},i.a.createElement(s.a.HeaderCell,null,"Code"),i.a.createElement(s.a.HeaderCell,null,"Name"),i.a.createElement(s.a.HeaderCell,null,"Contact"),i.a.createElement(s.a.HeaderCell,null,"Code"),i.a.createElement(s.a.HeaderCell,null,"Name"),i.a.createElement(s.a.HeaderCell,null,"Contact"))),i.a.createElement(s.a.Body,null,e.map(function(e,t){return i.a.createElement(s.a.Row,{key:t,style:{overflow:"hidden"}},i.a.createElement(s.a.Cell,{textAlign:"center"},t+1),i.a.createElement(s.a.Cell,null,e.cnt_code),i.a.createElement(s.a.Cell,null,e.center_name),i.a.createElement(s.a.Cell,null,e.cnt_contact),i.a.createElement(s.a.Cell,null,e.tagged_code),i.a.createElement(s.a.Cell,null,e.tagged_colg_name),i.a.createElement(s.a.Cell,null,e.tagged_contact))})))))},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.setState({colgdet:this.props.reportdet})}},{key:"componentDidUpdate",value:function(e){this.props.reportdet!==e.reportdet&&this.setState({colgdet:this.props.reportdet})}},{key:"render",value:function(){return null==this.props.reportdet?null:null!==this.props.reportdet&&"Center List With Tagged Colleges"==this.props.rtype?this.renderTaggedTable():this.renderTable()}}]),t}(d.Component));t.default=u}}]);
//# sourceMappingURL=87.fa3b7fce.chunk.js.map
|