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.190.253.224
{"version":3,"sources":["pages/rvpc/RVPC.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["RVPC","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","deggrp","college","degree","regFrom","regTo","type","componentDidMount","props","fetchDegGrp","changeHandler","data","setState","getCollegeOnDeggrp","getDegreeOnDeggrpCollege","getReport","window","open","ReportAPI","univcode","showError","header","content","handleCancel","_inherits","_createClass","key","value","_this2","_this$state","all","text","deggrpOptions","deggrpOpt","map","el","i","fdeggrp","fdescpn","collegeOption","coll","fcollcode","cfcollname","collegeOptions","_toConsumableArray","degreeOption","deg","degreeOptions","React","createElement","Card","fluid","Content","Header","style","display","className","Button","basic","color","icon","onClick","Link","to","Divider","Description","Form","Group","Field","width","Dropdown","selection","search","placeholder","options","onChange","e","Input","Component","connect","console","log","univ","funivcode","_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":"+QAmBMA,EAAI,SAAAC,GAAA,SAAAD,IAAA,IAAAE,EAAAC,EAAAC,YAAAC,KAAAL,GAAA,QAAAM,EAAAC,UAAAC,OAAAC,EA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,EAAA1F,EAAA0F,OACAC,EAAA3F,EAAA2F,OACAC,EAAA5F,EAAA4F,WACAC,EAAA7F,EAAA6F,SACAC,EAAA9F,EAAA8F,QACAC,EAAA/F,EAAA+F,SACAC,EAAgBf,IAAE,KAAOgB,OAAAb,EAAA,EAAAa,CAAUR,EAAA,YAAwBQ,OAAAb,EAAA,EAAAa,CAAUP,EAAA,UAAoBO,OAAAb,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,sBAAA/C,GACzOkD,EAAaD,OAAAZ,EAAA,EAAAY,CAAiBzC,EAAAxD,GAC9BmG,EAAoBF,OAAAX,EAAA,EAAAW,CAAczC,EAAAxD,GAClC,OAASmF,EAAAiB,EAAK3D,cAAA0D,EAA4BrB,IAAQ,GAAGoB,EAAA,CACrDlD,UAAAgD,IACMT,EAAA,EAAac,MAAAb,GAAA1E,EAAA0E,GAEnBhC,EAAA8C,aAAA,kHACA9C,EAAA+C,UAuBC,GACcC,EAAA","file":"static/js/270.8db92622.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport {\r\n Card,\r\n Button,\r\n Divider,\r\n Form,\r\n Dropdown,\r\n Input,\r\n} from \"semantic-ui-react\";\r\nimport {\r\n fetchDegGrp,\r\n getCollegeOnDeggrp,\r\n getDegreeOnDeggrpCollege,\r\n showError,\r\n} from \"../../actions\";\r\nimport { ReportAPI } from \"../../apis/consts\";\r\n\r\nclass RVPC extends Component {\r\n state = {\r\n deggrp: \"\",\r\n college: \"all\",\r\n degree: \"all\",\r\n regFrom: \"0\",\r\n regTo: \"Z\",\r\n type: \"detailed\",\r\n };\r\n componentDidMount = () => {\r\n this.props.fetchDegGrp();\r\n };\r\n\r\n changeHandler = (data, state) => {\r\n if (state == \"deggrp\") {\r\n this.setState({ deggrp: data });\r\n this.props.getCollegeOnDeggrp(data);\r\n this.props.getDegreeOnDeggrpCollege(data, this.state.college);\r\n } else if (state == \"college\") {\r\n this.setState({ college: data });\r\n this.props.getDegreeOnDeggrpCollege(this.state.deggrp, data);\r\n } else if (state == \"degree\") {\r\n this.setState({ degree: data });\r\n } else if (state == \"regFrom\") {\r\n this.setState({ regFrom: data });\r\n } else if (state == \"regTo\") {\r\n this.setState({ regTo: data });\r\n } else if (state == \"type\") {\r\n this.setState({ type: data });\r\n }\r\n };\r\n\r\n getReport = () => {\r\n if (this.state.deggrp == \"\") {\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 \"getRVorPCreport&univcode=\" +\r\n this.props.univcode +\r\n \"°grp=\" +\r\n this.state.deggrp +\r\n \"&collcode=\" +\r\n this.state.college +\r\n \"°ree=\" +\r\n this.state.degree +\r\n \"®From=\" +\r\n this.state.regFrom +\r\n \"®To=\" +\r\n this.state.regTo +\r\n \"&type=\" +\r\n this.state.type\r\n );\r\n };\r\n\r\n handleCancel = () => {\r\n this.setState({\r\n deggrp: \"\",\r\n college: \"all\",\r\n degree: \"all\",\r\n regFrom: \"0\",\r\n regTo: \"Z\",\r\n type: \"\",\r\n });\r\n };\r\n\r\n render() {\r\n const { deggrp, college, degree, regFrom, regTo, type } = this.state;\r\n const all = [{ key: \"all\", text: \"All\", value: \"all\" }];\r\n const deggrpOptions = this.props.deggrpOpt.map((el, i) => {\r\n return {\r\n key: i,\r\n value: el.fdeggrp,\r\n text: el.fdescpn,\r\n };\r\n });\r\n\r\n const collegeOption = this.props.coll.map((el, i) => {\r\n return {\r\n key: i,\r\n value: el.fcollcode,\r\n text: el.cfcollname,\r\n };\r\n });\r\n const collegeOptions = [...all, ...collegeOption];\r\n\r\n const degreeOption = this.props.deg.map((el, i) => {\r\n return {\r\n key: i,\r\n value: el.value,\r\n text: el.text,\r\n };\r\n });\r\n const degreeOptions = [...all, ...degreeOption];\r\n\r\n const typeOptions = [\r\n {\r\n key: \"qpsummary\",\r\n value: \"qpsummary\",\r\n text: \"QP WISE SUMMARY\",\r\n },\r\n {\r\n key: \"detailed\",\r\n value: \"detailed\",\r\n text: \"Detailed\",\r\n },\r\n ];\r\n\r\n return (\r\n <Card fluid>\r\n <Card.Content>\r\n <Card.Header style={{ display: \"flex\" }}>\r\n <h4>RV/PC Detailed and Summary </h4>\r\n <div className=\"ml-auto\">\r\n <Button\r\n basic\r\n color=\"blue\"\r\n icon=\"icon file pdf outline\"\r\n onClick={this.getReport}\r\n content=\"Report\"\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 <Divider />\r\n <Card.Description>\r\n <Form>\r\n <Form.Group>\r\n <Form.Field width={6}>\r\n <label>Degree Group</label>\r\n <Dropdown\r\n selection\r\n search\r\n value={deggrp}\r\n placeholder=\"Degree Group\"\r\n options={deggrpOptions}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"deggrp\")\r\n }\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Field width={6}>\r\n <label>College</label>\r\n <Dropdown\r\n selection\r\n search\r\n value={college}\r\n placeholder=\"College\"\r\n options={collegeOptions}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"college\")\r\n }\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Field width={6}>\r\n <label>Degree </label>\r\n <Dropdown\r\n selection\r\n search\r\n value={degree}\r\n placeholder=\"Degree\"\r\n options={degreeOptions}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"degree\")\r\n }\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Field width={3}>\r\n <label>Regno From </label>\r\n <Input\r\n type=\"text\"\r\n value={regFrom}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"regFrom\")\r\n }\r\n />\r\n </Form.Field>\r\n <Form.Field width={3}>\r\n <label>Regno To </label>\r\n <Input\r\n type=\"text\"\r\n value={regTo}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"regTo\")\r\n }\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Field width={6}>\r\n <label>Type</label>\r\n <Dropdown\r\n selection\r\n search\r\n value={type}\r\n placeholder=\"Type\"\r\n options={typeOptions}\r\n onChange={(e, data) =>\r\n this.changeHandler(data.value, \"type\")\r\n }\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n </Form>\r\n </Card.Description>\r\n </Card.Content>\r\n </Card>\r\n );\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => {\r\n console.log(state.getCollegeOnDeggrp, \"state.getCollegeOnDeggrp\");\r\n return {\r\n univcode: state.univ.funivcode,\r\n deggrpOpt: state.deggrp,\r\n coll: state.getCollegeOnDeggrp,\r\n deg: state.getDegreeOnDeggrpCollege,\r\n };\r\n};\r\n\r\nexport default connect(mapStateToProps, {\r\n fetchDegGrp,\r\n getCollegeOnDeggrp,\r\n getDegreeOnDeggrpCollege,\r\n showError,\r\n})(RVPC);\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":""}
|