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.144.1.100
{"version":3,"sources":["pages/before-exam/exam-application/CandidateList.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["CandidateList","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","frmDeggrp","reportType","frmSubmit","rftype","getDegrees","e","data","setState","value","handleChange","type","_defineProperty","name","handleSubmit","fdeggrp","props","user","getReport","showError","header","content","handleReport","_this$state","window","open","ReportAPI","univcode","handleCancel","reportFormat","renderHeader","React","createElement","Card","Header","style","display","className","Button","basic","color","onClick","icon","Link","to","_inherits","_createClass","key","_this$state2","wheight","wHeight","fluid","Content","Divider","Description","overflowY","height","Form","Field","Dropdown","placeholder","selection","search","options","text","onChange","Group","inline","control","Radio","label","checked","Component","connect","deggrp","collegeReport","univ","funivcode","menu","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__","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","Object","rest","ElementType","a","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"wRAgBMA,EAAa,SAAAC,GAAA,SAAAD,IAAA,IAAAE,EAAAC,EAAAC,YAAAC,KAAAL,GAAA,QAAAM,EAAAC,UAAAC,OAAAC,EAAA,IAAAC,MAAAJ,GAAAK,EAAA,EAAA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AAAb,EAAA,EAAAa,CAAUN,EAAA,UAAoBM,OAAAb,EAAA,EAAAa,CAAUL,EAAA,cAA4BK,OAAAb,EAAA,EAAAa,CAAUJ,EAAA,YAAwBI,OAAAb,EAAA,EAAAa,CAAUH,EAAA,WAAsBG,OAAAb,EAAA,EAAAa,CAAUF,EAAA,sBAAA9D,GACzOiE,EAAaD,OAAAZ,EAAA,EAAAY,CAAiBhD,EAAArC,GAC9BuF,EAAoBF,OAAAX,EAAA,EAAAW,CAAchD,EAAArC,GAClC,OAASuE,EAAAiB,EAAKxE,cAAAuE,EAA4BrB,IAAQ,GAAGoB,EAAA,CACrDjE,UAAA+D,IACMT,EAAA,EAAac,MAAAb,GAAAvE,EAAAuE,GAEnBvC,EAAAqD,aAAA,kHACArD,EAAAsD,UAuBC,GACcC,EAAA","file":"static/js/250.ffe63194.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport {\r\n Card,\r\n Button,\r\n Form,\r\n Dropdown,\r\n Divider,\r\n Radio,\r\n} from \"semantic-ui-react\";\r\nimport { connect } from \"react-redux\";\r\nimport { fetchDegGrp, getReport } from \"../../../actions\";\r\nimport { ReportAPI } from \"../../../apis/consts\";\r\nimport { showError } from \"../../../actions\";\r\nimport { wHeight } from \"../../parms\";\r\n\r\nclass CandidateList extends Component {\r\n state = {\r\n frmDeggrp: \"\",\r\n reportType: \"degreeWiseStudentCount\",\r\n frmSubmit: false,\r\n rftype: \"PDF\",\r\n };\r\n\r\n getDegrees = (e, data) => {\r\n this.setState({ frmDeggrp: data.value });\r\n };\r\n\r\n handleChange = (e, data) => {\r\n switch (data.type) {\r\n case \"text\":\r\n this.setState({ [data.name]: data.value });\r\n default:\r\n this.setState({ [data.name]: data.value });\r\n }\r\n this.setState({ frmSubmit: false });\r\n };\r\n\r\n handleSubmit = () => {\r\n const { fdeggrp } = this.props.user;\r\n const { reportType } = 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 this.props.getReport(reportType, \"tables\", fdeggrp);\r\n this.setState({ frmSubmit: true });\r\n };\r\n\r\n handleReport = () => {\r\n const { fdeggrp } = this.props.user;\r\n const { reportType, rftype } = 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 \"&format=\" +\r\n rftype,\r\n \"_blank\"\r\n );\r\n };\r\n\r\n handleCancel = () => {\r\n this.setState({\r\n reportType: \"\",\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>Canddate List</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 render() {\r\n const { frmSubmit, reportType, rftype } = this.state;\r\n\r\n const reporttypeOptions = [\r\n { value: \"degreeWiseStudentCount\", text: \"Degree Wise Student Count\" },\r\n { value: \"qpWiseSubjectList\", text: \"QP Wise Subject List\" },\r\n ];\r\n const wheight = wHeight();\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.Field>\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\r\n <Form.Group inline>\r\n <Form.Field\r\n control={Radio}\r\n name=\"rftype\"\r\n label=\"PDF\"\r\n value=\"PDF\"\r\n checked={rftype === \"PDF\"}\r\n onChange={this.handleChange}\r\n />\r\n <Form.Field\r\n control={Radio}\r\n name=\"rftype\"\r\n label=\"EXCEL\"\r\n value=\"Excel\"\r\n checked={rftype === \"Excel\"}\r\n onChange={this.handleChange}\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 </Card.Description>\r\n </Card.Content>\r\n </Card>\r\n </div>\r\n );\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 menu: state.menu,\r\n };\r\n};\r\nexport default connect(mapStateToProps, {\r\n fetchDegGrp,\r\n getReport,\r\n showError,\r\n})(CandidateList);\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}\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 /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Divider can clear the content above it. */\n clearing: PropTypes.bool,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** Divider can be fitted without any space above or below it. */\n fitted: PropTypes.bool,\n /** Divider can divide content without creating a dividing line. */\n hidden: PropTypes.bool,\n /** Divider can segment content horizontally. */\n horizontal: PropTypes.bool,\n /** Divider can have its colours inverted. */\n inverted: PropTypes.bool,\n /** Divider can provide greater margins to divide sections of content. */\n section: PropTypes.bool,\n /** Divider can segment content vertically. */\n vertical: PropTypes.bool\n} : {};\nexport default Divider;"],"sourceRoot":""}
|