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.163.23
{"version":3,"sources":["pages/pget/PgetReports.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["PgetReports","state","frmDeggrp","reportType","frmSubmit","getDegrees","e","data","_this","setState","value","handleChange","type","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","name","handleSubmit","handleReport","fdeggrp","props","user","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","_this$state","this","wheight","wHeight","console","log","fluid","Content","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Description","overflowY","height","concat","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Field","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","placeholder","selection","search","options","text","onChange","Component","connect","deggrp","collegeReport","univ","funivcode","menu","fetchDegGrp","getReport","_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","handled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,qCCvKF,IAAA6E,EAAAC,EAAA,KAAAC,EAAAD,EAAAE,EAAAH,GAAAI,EAAAH,EAAA,KAAAI,EAAAJ,EAAAE,EAAAC,GAAAE,EAAAL,EAAA,GAAAM,EAAAN,EAAAE,EAAAG,GAAAE,EAAAP,EAAA,KAAAQ,EAAAR,EAAA,KAAAS,EAAAT,EAAA,KAAAU,EAAAV,EAAA,KASA,SAAAW,EAAAtE,GACA,IAAAuE,EAAAvE,EAAAuE,SACApD,EAAAnB,EAAAmB,UACAqD,EAAAxE,EAAAwE,SACAhE,EAAAR,EAAAQ,QACAiE,EAAAzE,EAAAyE,OACAC,EAAA1E,EAAA0E,OACAC,EAAA3E,EAAA2E,WACAC,EAAA5E,EAAA4E,SACAC,EAAA7E,EAAA6E,QACAC,EAAA9E,EAAA8E,SACAC,EAAgBhB,IAAE,KAAOrE,OAAAwE,EAAA,EAAAxE,CAAU8E,EAAA,YAAwB9E,OAAAwE,EAAA,EAAAxE,CAAU+E,EAAA,UAAoB/E,OAAAwE,EAAA,EAAAxE,CAAUgF,EAAA,UAAoBhF,OAAAwE,EAAA,EAAAxE,CAAUiF,EAAA,cAA4BjF,OAAAwE,EAAA,EAAAxE,CAAUkF,EAAA,YAAwBlF,OAAAwE,EAAA,EAAAxE,CAAUmF,EAAA,WAAsBnF,OAAAwE,EAAA,EAAAxE,CAAUoF,EAAA,sBAAA3D,GACzO6D,EAAatF,OAAAyE,EAAA,EAAAzE,CAAiB4E,EAAAtE,GAC9BiF,EAAoBvF,OAAA0E,EAAA,EAAA1E,CAAc4E,EAAAtE,GAClC,OAASiE,EAAApD,EAAKC,cAAAmE,EAA4BrB,IAAQ,GAAGoB,EAAA,CACrD7D,UAAA4D,IACMV,EAAA,EAAaa,MAAAX,GAAA/D,EAAA+D,GAGnBD,EAAAa,aAAA,kHACAb,EAAAc,UAiCC,GACcC,EAAA","file":"static/js/166.13bc8273.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Card, Button, Form, Dropdown, Divider } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp, getReport } from \"../../actions\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\n\nclass PgetReports extends Component {\n state = {\n frmDeggrp: \"\",\n reportType: \"pgetAppliedList\",\n frmSubmit: false\n };\n\n componentDidMount() {}\n\n getDegrees = (e, data) => {\n // console.log(data.value);\n this.setState({ frmDeggrp: data.value });\n };\n\n handleChange = (e, data) => {\n switch (data.type) {\n case \"text\":\n this.setState({ [data.name]: data.value });\n default:\n this.setState({ [data.name]: data.value });\n }\n this.setState({ frmSubmit: false });\n };\n\n handleSubmit = () => {\n // const { fdeggrp } = this.props.user;\n // const { reportType } = this.state;\n // if (fdeggrp === \"\") {\n // const error = { header: \"Error\", content: \"Select Degree Group\" };\n // this.props.showError(error);\n // return;\n // }\n // this.props.getReport(reportType, \"tables\", fdeggrp);\n // this.setState({ frmSubmit: true });\n };\n\n handleReport = () => {\n const { fdeggrp } = this.props.user;\n const { reportType } = this.state;\n if (fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n window.open(\n ReportAPI +\n reportType +\n \"&univcode=\" +\n this.props.univcode +\n \"°grp=\" +\n fdeggrp +\n \"&val=\" +\n reportType +\n \"&format=\" +\n \"PDF\",\n \"_blank\"\n );\n };\n\n handleCancel = () => {\n this.setState({\n reportType: \"\",\n reportFormat: \"\",\n frmDeggrp: \"\"\n });\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h3>PG Entrance Test Reports</h3>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"blue\"\n onClick={this.handleReport}\n content=\"Report\"\n icon=\"file\"\n />\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n onClick={this.handleCancel}\n content=\"Cancel\"\n />\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n );\n };\n\n render() {\n const { frmSubmit, reportType } = this.state;\n\n const reporttypeOptions = [\n { value: \"pgetAppliedList\", text: \"Degree Wise Applied Student List\" },\n { value: \"pgetFeedetlList\", text: \"Fee Paid Student List\" },\n { value: \"pgetAppStatus\", text: \"Application Status\" }\n ];\n const wheight = wHeight();\n console.log(reportType, frmSubmit);\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n {this.renderHeader()}\n <Divider />\n <Card.Description\n style={{ overflowY: \"auto\", height: `${wheight}px` }}\n >\n <div className=\"col-md-6\">\n <Form>\n <Form.Field>\n <label>Report Type</label>\n <Dropdown\n placeholder=\"Select Report Type\"\n name=\"reportType\"\n value={reportType}\n selection\n search\n options={reporttypeOptions}\n onChange={this.handleChange}\n />\n </Form.Field>\n\n <Button color=\"blue\" onClick={this.handleSubmit}>\n Submit\n </Button>\n <br />\n </Form>\n </div>\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n deggrp: state.deggrp,\n collegeReport: state.collegeReport,\n univcode: state.univ.funivcode,\n user: state.user,\n menu: state.menu\n };\n};\nexport default connect(\n mapStateToProps,\n {\n fetchDegGrp,\n getReport,\n showError\n }\n)(PgetReports);\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;"],"sourceRoot":""}
|