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.15.1.23
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1017:function(e,t,a){"use strict";a.r(t);var l=a(3),n=a(99),r=a(100),o=a(102),c=a(101),d=a(103),i=a(1),m=a.n(i),s=a(858),p=a(1139),u=a(1106),g=a(272),f=a(1098),h=a(1100),C=a(104),E=a(266),v=a(465),b=a(271),y=a(270),w=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,d=new Array(r),i=0;i<r;i++)d[i]=arguments[i];return(a=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(d)))).state={frmDeggrp:"",reportType:"Active College List",fdeggrpfrm:"0000",fdeggrpto:"zzzz",fdegfrm:"0",fdegto:"ZZZZZ",fcollfrm:"0",fcollto:"ZZZZ",displayTbl:!1,fdeggrp:"",fyear:"",fexamtype:"",fexamdate:""},a.changeDeggrp=function(e,t){console.log(t.value);var l=a.props.deggrp.filter(function(e,a){return e.fdeggrp===t.value})[0];a.setState({fyear:l.fyear,fexamtype:l.fexamtype,fexamdate:l.fexamdate,fdeggrp:t.value,frmSubmit:!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.state,t=e.reportType,l=e.fdeggrpfrm,n=e.fdeggrpto,r=e.fcollfrm,o=e.fcollto,c=e.fdeggrp;e.fyear,e.fexamtype,e.fexamdate;a.props.getReport(t,"tables",c,l,n,r,o),a.setState({displayTbl:!0})},a.handleReport=function(){var e=a.state,t=e.reportType,l=e.fdeggrpfrm,n=e.fdeggrpto,r=e.fcollfrm,o=e.fcollto,c=e.fdegfrm,d=e.fdegto,i=e.fdeggrp;e.fyear,e.fexamtype,e.fexamdate;console.log(a.state),window.open(b.c+t+"&univcode="+a.props.univcode+"°grp="+i+"°grpfrm="+l+"°grpto="+n+"&collfrm="+r+"&collto="+o+"°frm="+c+"°to="+d+"&val="+t+"&format=PDF","_blank")},a.handleCancel=function(){a.setState({reportType:"",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",reportFormat:"",frmDeggrp:"",fdeggrp:"",fyear:"",fexamtype:"",fexamdate:""})},a.renderHeader=function(){return m.a.createElement(p.a.Header,{style:{display:"flex"}},m.a.createElement("h3",null,"College / Centre"),m.a.createElement("div",{className:"ml-auto"},m.a.createElement(u.a,{basic:!0,color:"blue",onClick:a.handleReport,content:"Report",icon:"file"}),m.a.createElement(u.a,{basic:!0,color:"black",icon:"ban",onClick:a.handleCancel,content:"Cancel"}),m.a.createElement(s.a,{to:"/dashboard"},m.a.createElement(u.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},a.renderForm=function(){var e=a.state,t=e.displayTbl,l=e.reportType,n=e.fdeggrpfrm,r=e.fdeggrpto,o=e.fcollfrm,c=e.fcollto,d=e.fdegfrm,i=e.fdegto,s=(e.fdeggrp,e.fyear,e.fexamtype,e.fexamdate,Object(y.i)());return console.log(l,t),m.a.createElement("div",{className:"animated fadeIn"},m.a.createElement(p.a,{fluid:!0},m.a.createElement(p.a.Content,null,a.renderHeader(),m.a.createElement(g.a,null),m.a.createElement(p.a.Description,{style:{overflowY:"auto",height:"".concat(s,"px")}},m.a.createElement("div",{className:"col-md-6"},m.a.createElement(f.a,null,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:"All College List",text:"College List (All)"},{value:"Active College List",text:"College List (Active)"},{value:"degreeWiseCollegeList",text:"Degree Wise College List"},{value:"collwisedeglist",text:"College Wise Degree List"}],onChange:a.handleChange}))),m.a.createElement(f.a.Group,null,m.a.createElement(f.a.Input,{placeholder:"From",value:n,width:8,name:"fdeggrpfrm",onChange:a.handleChange,label:"Degree Group Range"}),m.a.createElement(f.a.Input,{placeholder:"To",name:"fdeggrpto",value:r,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}})),"degreeWiseCollegeList"==l?m.a.createElement(f.a.Group,null,m.a.createElement(f.a.Input,{placeholder:"From",value:d,width:8,name:"fdegfrm",onChange:a.handleChange,label:"Degree Range"}),m.a.createElement(f.a.Input,{placeholder:"To",name:"fdegto",value:i,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:o,width:8,name:"fcollfrm",onChange:a.handleChange,label:"College Code Range"}),m.a.createElement(f.a.Input,{placeholder:"To",name:"fcollto",value:c,width:8,onChange:a.handleChange,style:{marginTop:"1.6em"}})),"Active College List"==l?m.a.createElement(u.a,{color:"blue",onClick:a.handleSubmit},"Submit"):null,m.a.createElement("br",null))),t?m.a.createElement(v.a,{reportdet:a.props.collegeReport,rtype:l}):null))))},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp()}},{key:"render",value:function(){return this.renderForm()}}]),t}(i.Component);t.default=Object(C.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user}},{fetchDegGrp:E.j,getReport:E.r,showError:E.w})(w)},272:function(e,t,a){"use strict";var l=a(268),n=a.n(l),r=a(265),o=a.n(r),c=a(1),d=a.n(c),i=a(333),m=a(551),s=a(549),p=a(267);function u(e){var t=e.children,a=e.className,l=e.clearing,r=e.content,c=e.fitted,g=e.hidden,f=e.horizontal,h=e.inverted,C=e.section,E=e.vertical,v=o()("ui",Object(i.a)(l,"clearing"),Object(i.a)(c,"fitted"),Object(i.a)(g,"hidden"),Object(i.a)(f,"horizontal"),Object(i.a)(h,"inverted"),Object(i.a)(C,"section"),Object(i.a)(E,"vertical"),"divider",a),b=Object(m.a)(u,e),y=Object(s.a)(u,e);return d.a.createElement(y,n()({},b,{className:v}),p.a.isNil(t)?r:t)}u.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],u.propTypes={},t.a=u},294:function(e,t,a){},465:function(e,t,a){"use strict";var l=a(99),n=a(100),r=a(102),o=a(101),c=a(103),d=a(1),i=a.n(d),m=a(1e3),s=a(1101),p=(a(294),a(167),function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,c=new Array(n),d=0;d<n;d++)c[d]=arguments[d];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={colgdet:[],searchVal:""},a.searchTable=function(e,t){var l=t.value,n=a.props.reportdet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(l.toLowerCase())})});a.setState({colgdet:n,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(c.a)(t,e),Object(n.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 console.log(this.props.reportdet,this.props.reportdet,this.props.rtype),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.a=p}}]);
//# sourceMappingURL=54.89460930.chunk.js.map
|