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.189.143.150
{"version":3,"sources":["pages/masters/college/centre_reports.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","pages/common/SelectDeggrp.js","pages/masters/college/colg_report.js"],"names":["CentreReports","state","frmDeggrp","_this","props","user","fdeggrp","reportType","fdeggrpfrm","fdeggrpto","fcollfrm","fcollto","displayTbl","handleChange","e","data","type","setState","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","name","value","handleSubmit","_this$state","getReport","handleReport","_this$state2","console","log","window","open","ReportAPI","univcode","showError","header","content","handleCancel","reportFormat","renderHeader","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","basic","color","onClick","icon","react_router_dom__WEBPACK_IMPORTED_MODULE_7__","to","renderForm","_this$state3","wheight","wHeight","fluid","Content","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Description","overflowY","height","concat","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Group","Field","width","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","placeholder","selection","search","options","text","onChange","_common_SelectDeggrp__WEBPACK_IMPORTED_MODULE_18__","changeDeggrp","Input","label","marginTop","_colg_report__WEBPACK_IMPORTED_MODULE_15__","reportdet","collegeReport","rtype","this","Component","connect","deggrp","univ","funivcode","fetchDegGrp","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","classnames__WEBPACK_IMPORTED_MODULE_1__","classnames__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","_lib__WEBPACK_IMPORTED_MODULE_3__","_lib__WEBPACK_IMPORTED_MODULE_4__","_lib__WEBPACK_IMPORTED_MODULE_5__","_lib__WEBPACK_IMPORTED_MODULE_6__","Divider","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__","SelectDeggrp","prevProps","deggroup_options","map","el","i","key","fdescpn","react__WEBPACK_IMPORTED_MODULE_5___default","semantic_ui_react__WEBPACK_IMPORTED_MODULE_7__","size","error","dgerror","disabled","openOnFocus","selectOnBlur","ColgReportDisplay","colgdet","searchVal","searchTable","string","searchPrbatch","filter","o","keys","some","k","toLowerCase","includes","renderTable","report","marginBottom","backgroundColor","semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__","fontSize","celled","padded","selectable","Row","textAlign","HeaderCell","Body","overflow","Cell","fcollcode","fcollname","town","fprincipalname","fmobile","faltmobile","femail","renderTaggedTable","structured","rowSpan","colSpan","cnt_code","center_name","cnt_contact","tagged_code","tagged_colg_name","tagged_contact"],"mappings":"0RAWMA,6MACJC,MAAQ,CACNC,UAAWC,EAAKC,MAAMC,KAAKC,QAC3BC,WAAY,sBACZC,WAAY,IACZC,UAAW,OACXC,SAAU,IACVC,QAAS,OACTC,YAAY,KAGdC,aAAe,SAACC,EAAGC,GACjB,OAAQA,EAAKC,MACX,IAAK,OACHb,EAAKc,SAALC,OAAAC,EAAA,EAAAD,CAAA,GACGH,EAAKK,KAAOL,EAAKM,QAEtB,QACElB,EAAKc,SAALC,OAAAC,EAAA,EAAAD,CAAA,GACGH,EAAKK,KAAOL,EAAKM,QAGxBlB,EAAKc,SAAS,CAAEL,YAAY,OAG9BU,aAAe,WACb,IAAMhB,EAAUH,EAAKF,MAAMC,UADRqB,EAE8CpB,EAAKF,MAA9DM,EAFWgB,EAEXhB,WAAYC,EAFDe,EAECf,WAAYC,EAFbc,EAEad,UAAWC,EAFxBa,EAEwBb,SAAUC,EAFlCY,EAEkCZ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ACpClC,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,CAAYJ,UAAU,UAAUlC,EAAI,GACpCG,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGmD,UAChB/C,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGoD,aAChBhD,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGqD,aAChBjD,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGsD,aAChBlD,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGuD,kBAChBnD,EAAAxF,EAAAC,cAACwF,EAAA,EAAMkC,KAAP,KAAavC,EAAGwD,2GApIhC/F,KAAKpE,SAAS,CAAEwH,QAASpD,KAAKjF,MAAM8E,uDAGnBuC,GACbpC,KAAKjF,MAAM8E,YAAcuC,EAAUvC,WACrCG,KAAKpE,SAAS,CAAEwH,QAASpD,KAAKjF,MAAM8E,6CA2ItC,OADAvD,QAAQC,IAAIyD,KAAKjF,MAAM8E,UAAWG,KAAKjF,MAAM8E,UAAWG,KAAKjF,MAAMgF,OACvC,MAAxBC,KAAKjF,MAAM8E,UAA0B,KAEd,OAAzBG,KAAKjF,MAAM8E,WACS,oCAApBG,KAAKjF,MAAMgF,MAEJC,KAAKsF,oBAELtF,KAAKgE,qBA3Jc/D,cAgKjBkD","file":"static/js/32.28e87012.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { Card, Button, Form, Dropdown, Divider } from \"semantic-ui-react\";\r\nimport { connect } from \"react-redux\";\r\nimport { fetchDegGrp, getReport } from \"../../../actions\";\r\nimport ColgReportDisplay from \"./colg_report\";\r\nimport { ReportAPI } from \"../../../apis/consts\";\r\nimport { showError } from \"../../../actions\";\r\nimport { wHeight } from \"../../parms\";\r\nimport SelectDeggrp from \"../../common/SelectDeggrp\";\r\n\r\nclass CentreReports extends Component {\r\n state = {\r\n frmDeggrp: this.props.user.fdeggrp,\r\n reportType: \"Center College List\",\r\n fdeggrpfrm: \"0\",\r\n fdeggrpto: \"ZZZZ\",\r\n fcollfrm: \"0\",\r\n fcollto: \"ZZZZ\",\r\n displayTbl: false,\r\n };\r\n\r\n handleChange = (e, data) => {\r\n switch (data.type) {\r\n case \"text\":\r\n this.setState({\r\n [data.name]: data.value,\r\n });\r\n default:\r\n this.setState({\r\n [data.name]: data.value,\r\n });\r\n }\r\n this.setState({ displayTbl: false });\r\n };\r\n\r\n handleSubmit = () => {\r\n const fdeggrp = this.state.frmDeggrp;\r\n const { reportType, fdeggrpfrm, fdeggrpto, fcollfrm, fcollto } = this.state;\r\n this.props.getReport(\r\n reportType,\r\n \"tables\",\r\n fdeggrp,\r\n fdeggrpfrm,\r\n fdeggrpto,\r\n fcollfrm,\r\n fcollto\r\n );\r\n this.setState({ displayTbl: true });\r\n };\r\n\r\n handleReport = () => {\r\n const fdeggrp = this.state.frmDeggrp;\r\n const { reportType, fdeggrpfrm, fdeggrpto, fcollfrm, fcollto } = this.state;\r\n console.log(this.state);\r\n if (fdeggrp === \"\") {\r\n const error = { header: \"Error\", content: \"Select Degree Group\" };\r\n this.props.showError(error);\r\n return;\r\n }\r\n window.open(\r\n ReportAPI +\r\n reportType +\r\n \"&univcode=\" +\r\n this.props.univcode +\r\n \"°grp=\" +\r\n fdeggrp +\r\n \"°grpfrm=\" +\r\n fdeggrpfrm +\r\n \"°grpto=\" +\r\n fdeggrpto +\r\n \"&collfrm=\" +\r\n fcollfrm +\r\n \"&collto=\" +\r\n fcollto +\r\n \"&val=\" +\r\n reportType +\r\n \"&format=\" +\r\n \"PDF\",\r\n \"_blank\"\r\n );\r\n };\r\n\r\n handleCancel = () => {\r\n this.setState({\r\n reportType: \"\",\r\n fdeggrpfrm: \"0\",\r\n fdeggrpto: \"ZZZZ\",\r\n fcollfrm: \"0\",\r\n fcollto: \"ZZZZ\",\r\n reportFormat: \"\",\r\n frmDeggrp: \"\",\r\n });\r\n };\r\n\r\n renderHeader = () => {\r\n return (\r\n <Card.Header style={{ display: \"flex\" }}>\r\n <h3>Centre Reports</h3>\r\n <div className=\"ml-auto\">\r\n <Button\r\n basic\r\n color=\"blue\"\r\n onClick={this.handleReport}\r\n content=\"Report\"\r\n icon=\"file\"\r\n />\r\n <Button\r\n basic\r\n color=\"black\"\r\n icon=\"ban\"\r\n onClick={this.handleCancel}\r\n content=\"Cancel\"\r\n />\r\n <Link to=\"/dashboard\">\r\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\r\n </Link>\r\n </div>\r\n </Card.Header>\r\n );\r\n };\r\n\r\n renderForm = () => {\r\n const {\r\n displayTbl,\r\n reportType,\r\n fdeggrpfrm,\r\n fdeggrpto,\r\n fcollfrm,\r\n fcollto,\r\n } = this.state;\r\n\r\n const reporttypeOptions = [\r\n { value: \"Center College List\", text: \"Center List\" },\r\n {\r\n value: \"Center List With Tagged Colleges\",\r\n text: \"Center List (With Tagged Colleges)\",\r\n },\r\n ];\r\n const wheight = wHeight();\r\n console.log(reportType, displayTbl);\r\n return (\r\n <div className=\"animated fadeIn\">\r\n <Card fluid>\r\n <Card.Content>\r\n {this.renderHeader()}\r\n <Divider />\r\n <Card.Description\r\n style={{ overflowY: \"auto\", height: `${wheight}px` }}\r\n >\r\n <div className=\"col-md-6\">\r\n <Form>\r\n <Form.Group>\r\n <Form.Field width={16}>\r\n <label>Report Type</label>\r\n <Dropdown\r\n placeholder=\"Select Report Type\"\r\n name=\"reportType\"\r\n value={reportType}\r\n selection\r\n search\r\n options={reporttypeOptions}\r\n onChange={this.handleChange}\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Form.Group>\r\n <SelectDeggrp\r\n frmDeggrp={this.state.frmDeggrp}\r\n changeDeggrp={(e, data) =>\r\n this.setState({ frmDeggrp: data.value })\r\n }\r\n />\r\n </Form.Group>\r\n\r\n <Form.Group>\r\n <Form.Input\r\n placeholder=\"From\"\r\n value={fcollfrm}\r\n width={8}\r\n name=\"fcollfrm\"\r\n onChange={this.handleChange}\r\n label=\"College Code Range\"\r\n />\r\n <Form.Input\r\n placeholder=\"To\"\r\n name=\"fcollto\"\r\n value={fcollto}\r\n width={8}\r\n onChange={this.handleChange}\r\n style={{ marginTop: \"1.6em\" }}\r\n />\r\n </Form.Group>\r\n\r\n <Button color=\"blue\" onClick={this.handleSubmit}>\r\n Submit\r\n </Button>\r\n <br />\r\n </Form>\r\n </div>\r\n {displayTbl ? (\r\n <ColgReportDisplay\r\n reportdet={this.props.collegeReport}\r\n rtype={reportType}\r\n />\r\n ) : null}\r\n </Card.Description>\r\n </Card.Content>\r\n </Card>\r\n </div>\r\n );\r\n };\r\n render() {\r\n // console.log(\"collegeReport\",this.props.collegeReport);\r\n return this.renderForm();\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n deggrp: state.deggrp,\r\n collegeReport: state.collegeReport,\r\n univcode: state.univ.funivcode,\r\n user: state.user,\r\n };\r\n};\r\nexport default connect(mapStateToProps, {\r\n fetchDegGrp,\r\n getReport,\r\n showError,\r\n})(CentreReports);\r\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A divider visually segments content into groups.\n */\n\nfunction Divider(props) {\n var children = props.children,\n className = props.className,\n clearing = props.clearing,\n content = props.content,\n fitted = props.fitted,\n hidden = props.hidden,\n horizontal = props.horizontal,\n inverted = props.inverted,\n section = props.section,\n vertical = props.vertical;\n var classes = cx('ui', useKeyOnly(clearing, 'clearing'), useKeyOnly(fitted, 'fitted'), useKeyOnly(hidden, 'hidden'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useKeyOnly(section, 'section'), useKeyOnly(vertical, 'vertical'), 'divider', className);\n var rest = getUnhandledProps(Divider, props);\n var ElementType = getElementType(Divider, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nDivider.handledProps = [\"as\", \"children\", \"className\", \"clearing\", \"content\", \"fitted\", \"hidden\", \"horizontal\", \"inverted\", \"section\", \"vertical\"];\nDivider.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Divider can clear the content above it. */\n clearing: PropTypes.bool,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** Divider can be fitted without any space above or below it. */\n fitted: PropTypes.bool,\n\n /** Divider can divide content without creating a dividing line. */\n hidden: PropTypes.bool,\n\n /** Divider can segment content horizontally. */\n horizontal: PropTypes.bool,\n\n /** Divider can have its colours inverted. */\n inverted: PropTypes.bool,\n\n /** Divider can provide greater margins to divide sections of content. */\n section: PropTypes.bool,\n\n /** Divider can segment content vertically. */\n vertical: PropTypes.bool\n} : {};\nexport default Divider;","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Form, Dropdown } from \"semantic-ui-react\";\nimport { fetchDegGrp } from \"../../actions\";\n\nclass SelectDeggrp extends Component {\n componentDidMount() {\n this.props.fetchDegGrp();\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.user !== prevProps.user) {\n this.props.fetchDegGrp();\n }\n }\n\n render() {\n const deggroup = this.props.deggrp;\n\n var deggroup_options = deggroup.map((el, i) => {\n return {\n key: i,\n value: el.fdeggrp,\n text: `${el.fdeggrp} - ${el.fdescpn}`,\n };\n });\n\n return (\n <Form.Field width=\"16\">\n <label>Degree Group</label>\n <Dropdown\n size=\"mini\"\n error={this.props.dgerror}\n fluid\n search\n selection\n value={this.props.frmDeggrp}\n onChange={this.props.changeDeggrp}\n placeholder=\"Select Degree Group\"\n disabled={this.props.disabled}\n openOnFocus={false}\n options={deggroup_options}\n selectOnBlur={false}\n // searchInput={{ autoFocus: true }}\n />\n </Form.Field>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n deggrp: state.deggrp,\n user: state.user,\n };\n};\n\nexport default connect(mapStateToProps, { fetchDegGrp })(SelectDeggrp);\n","import React, { Component } from \"react\";\r\nimport { Table, Input } from \"semantic-ui-react\";\r\nimport \"react-table/react-table.css\";\r\nimport \"../../../index.css\";\r\n\r\nclass ColgReportDisplay extends Component {\r\n state = { colgdet: [], searchVal: \"\" };\r\n\r\n componentDidMount() {\r\n this.setState({ colgdet: this.props.reportdet });\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (this.props.reportdet !== prevProps.reportdet) {\r\n this.setState({ colgdet: this.props.reportdet });\r\n }\r\n }\r\n\r\n searchTable = (e, data) => {\r\n const string = data.value;\r\n const searchPrbatch = this.props.reportdet.filter(o =>\r\n Object.keys(o).some(k =>\r\n o[k].toLowerCase().includes(string.toLowerCase())\r\n )\r\n );\r\n this.setState({ colgdet: searchPrbatch, searchVal: data.value });\r\n };\r\n\r\n renderTable = () => {\r\n const report = this.state.colgdet;\r\n return (\r\n <div className=\"mt-3\">\r\n <hr />\r\n <div\r\n style={{\r\n marginBottom: \"1em\",\r\n backgroundColor: \"white\"\r\n }}\r\n className=\"stick\"\r\n >\r\n <Input\r\n icon=\"search\"\r\n fluid\r\n placeholder=\"Search...\"\r\n onChange={this.searchTable}\r\n value={this.state.searchVal}\r\n style={{ fontSize: \"1.1em\" }}\r\n />\r\n </div>\r\n <div>\r\n <Table\r\n celled\r\n padded\r\n selectable\r\n size=\"small\"\r\n color=\"olive\"\r\n className=\"tbl sticky\"\r\n >\r\n <Table.Header>\r\n <Table.Row textAlign=\"center\">\r\n <Table.HeaderCell>Sl.No.</Table.HeaderCell>\r\n <Table.HeaderCell>College Code</Table.HeaderCell>\r\n <Table.HeaderCell>College Name</Table.HeaderCell>\r\n <Table.HeaderCell>Town</Table.HeaderCell>\r\n <Table.HeaderCell>Principal Name</Table.HeaderCell>\r\n <Table.HeaderCell>Mobile</Table.HeaderCell>\r\n <Table.HeaderCell>Alt. Contact</Table.HeaderCell>\r\n <Table.HeaderCell>Email Id</Table.HeaderCell>\r\n </Table.Row>\r\n </Table.Header>\r\n <Table.Body>\r\n {report.map((el, i) => {\r\n return (\r\n <Table.Row key={i} style={{ overflow: \"hidden\" }}>\r\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\r\n <Table.Cell>{el.fcollcode}</Table.Cell>\r\n <Table.Cell>{el.fcollname}</Table.Cell>\r\n <Table.Cell>{el.town}</Table.Cell>\r\n <Table.Cell>{el.fprincipalname}</Table.Cell>\r\n <Table.Cell>{el.fmobile}</Table.Cell>\r\n <Table.Cell>{el.faltmobile}</Table.Cell>\r\n <Table.Cell>{el.femail}</Table.Cell>\r\n </Table.Row>\r\n );\r\n })}\r\n </Table.Body>\r\n </Table>\r\n </div>\r\n </div>\r\n );\r\n };\r\n\r\n renderTaggedTable = () => {\r\n const report = this.state.colgdet;\r\n\r\n return (\r\n <div className=\"mt-3\">\r\n <hr />\r\n <div\r\n style={{\r\n marginBottom: \"1em\",\r\n backgroundColor: \"white\"\r\n }}\r\n className=\"stick\"\r\n >\r\n <Input\r\n icon=\"search\"\r\n fluid\r\n placeholder=\"Search...\"\r\n onChange={this.searchTable}\r\n value={this.state.searchVal}\r\n style={{ fontSize: \"1.1em\" }}\r\n />\r\n </div>\r\n <div>\r\n <Table celled padded selectable structured size=\"small\" color=\"olive\">\r\n <Table.Header>\r\n <Table.Row textAlign=\"center\">\r\n <Table.HeaderCell rowSpan=\"2\">Sl.No.</Table.HeaderCell>\r\n <Table.HeaderCell colSpan=\"3\">Center</Table.HeaderCell>\r\n <Table.HeaderCell colSpan=\"3\">Tagged Colleges</Table.HeaderCell>\r\n </Table.Row>\r\n <Table.Row textAlign=\"center\">\r\n <Table.HeaderCell>Code</Table.HeaderCell>\r\n <Table.HeaderCell>Name</Table.HeaderCell>\r\n <Table.HeaderCell>Contact</Table.HeaderCell>\r\n <Table.HeaderCell>Code</Table.HeaderCell>\r\n <Table.HeaderCell>Name</Table.HeaderCell>\r\n <Table.HeaderCell>Contact</Table.HeaderCell>\r\n </Table.Row>\r\n </Table.Header>\r\n <Table.Body>\r\n {report.map((el, i) => {\r\n return (\r\n <Table.Row key={i} style={{ overflow: \"hidden\" }}>\r\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\r\n <Table.Cell>{el.cnt_code}</Table.Cell>\r\n <Table.Cell>{el.center_name}</Table.Cell>\r\n <Table.Cell>{el.cnt_contact}</Table.Cell>\r\n <Table.Cell>{el.tagged_code}</Table.Cell>\r\n <Table.Cell>{el.tagged_colg_name}</Table.Cell>\r\n <Table.Cell>{el.tagged_contact}</Table.Cell>\r\n </Table.Row>\r\n );\r\n })}\r\n </Table.Body>\r\n </Table>\r\n </div>\r\n </div>\r\n );\r\n };\r\n render() {\r\n console.log(this.props.reportdet, this.props.reportdet, this.props.rtype);\r\n if (this.props.reportdet == null) return null;\r\n else if (\r\n this.props.reportdet !== null &&\r\n this.props.rtype == \"Center List With Tagged Colleges\"\r\n ) {\r\n return this.renderTaggedTable();\r\n } else {\r\n return this.renderTable();\r\n }\r\n }\r\n}\r\n\r\nexport default ColgReportDisplay;\r\n"],"sourceRoot":""}
|