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.16.50.1
{"version":3,"sources":["pages/convocation/convoreport.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["ConvocationReports","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","fromcnv","tocnv","fromdeg","todeg","fromreg","toreg","fromcoll","tocoll","reportType","handleChange","e","data","type","setState","_defineProperty","name","value","frmSubmit","handleReport","_this$state","window","open","ReportAPI","props","univcode","handleCancel","renderHeader","React","createElement","Card","Header","style","display","className","Button","basic","color","onClick","content","icon","Link","to","_inherits","_createClass","key","_this$state2","wheight","wHeight","fluid","Content","Divider","Description","overflowY","height","Form","Group","Field","width","Dropdown","placeholder","selection","search","options","text","onChange","Input","label","marginTop","Component","connect","deggrp","collegeReport","univ","funivcode","user","menu","fetchDegGrp","getReport","showError","_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":"8QASMA,EAAkB,SAAAC,GAAA,SAAAD,IAAA,IAAAE,EAAAC,EAAAC,YAAAC,KAAAL,GAAA,QAAAM,EAAAC,UAAAC,OAAAC,EAAA,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL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,GAAGoB,EAAA,CACrDpE,UAAAkE,IACMT,EAAA,EAAac,MAAAb,GAAArD,EAAAqD,GAEnBzC,EAAAuD,aAAA,kHACAvD,EAAAwD,UAuBC,GACcC,EAAA","file":"static/js/254.b4ae8b6d.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 { ReportAPI } from \"../../apis/consts\";\r\nimport { showError } from \"../../actions\";\r\nimport { wHeight } from \"../parms\";\r\n\r\nclass ConvocationReports extends Component {\r\n state = {\r\n fromcnv: \"0\",\r\n tocnv: \"zzzz\",\r\n fromdeg: \"0\",\r\n todeg: \"zzzzz\",\r\n fromreg: \"0\",\r\n toreg: \"zzzzz\",\r\n fromcoll: \"0\",\r\n tocoll: \"zzzzz\",\r\n reportType: \"convocationSummary\",\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 handleReport = () => {\r\n const {\r\n reportType,\r\n fromcnv,\r\n tocnv,\r\n fromreg,\r\n toreg,\r\n fromdeg,\r\n todeg,\r\n fromcoll,\r\n tocoll,\r\n } = this.state;\r\n\r\n window.open(\r\n ReportAPI +\r\n reportType +\r\n \"&univcode=\" +\r\n this.props.univcode +\r\n \"&fromdeg=\" +\r\n fromdeg +\r\n \"&todeg=\" +\r\n todeg +\r\n \"&fromcnv=\" +\r\n fromcnv +\r\n \"&tocnv=\" +\r\n tocnv +\r\n \"&fromreg=\" +\r\n fromreg +\r\n \"&toreg=\" +\r\n toreg +\r\n \"&fromcoll=\" +\r\n fromcoll +\r\n \"&tocoll=\" +\r\n tocoll +\r\n \"&format=\" +\r\n \"PDF\",\r\n \"_blank\"\r\n );\r\n };\r\n\r\n handleCancel = () => {\r\n this.setState({\r\n fromcnv: \"0\",\r\n tocnv: \"zzzz\",\r\n fromdeg: \"0\",\r\n todeg: \"zzzzz\",\r\n fromreg: \"0\",\r\n toreg: \"zzzzz\",\r\n fromcoll: \"0\",\r\n tocoll: \"zzzzz\",\r\n reportType: \"convocationSummary\",\r\n });\r\n };\r\n\r\n renderHeader = () => {\r\n return (\r\n <Card.Header style={{ display: \"flex\" }}>\r\n <h3>Convocation 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 render() {\r\n const {\r\n fromreg,\r\n toreg,\r\n fromcnv,\r\n tocnv,\r\n fromdeg,\r\n todeg,\r\n fromcoll,\r\n tocoll,\r\n reportType,\r\n } = this.state;\r\n\r\n const reporttypeOptions = [\r\n {\r\n value: \"convocationSummary\",\r\n text: \"Convocation Applied List (Summary)\",\r\n },\r\n {\r\n value: \"convocationDetExl\",\r\n text: \"Convocation Applied List (Detailed)\",\r\n },\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.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 <Form.Input\r\n placeholder=\"From\"\r\n value={fromcnv}\r\n width={8}\r\n name=\"fromcnv\"\r\n onChange={this.handleChange}\r\n label=\"Convocation Range\"\r\n />\r\n <Form.Input\r\n placeholder=\"To\"\r\n name=\"tocnv\"\r\n value={tocnv}\r\n width={8}\r\n onChange={this.handleChange}\r\n style={{ marginTop: \"1.6em\" }}\r\n />\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Input\r\n placeholder=\"From\"\r\n value={fromdeg}\r\n width={8}\r\n name=\"fromdeg\"\r\n onChange={this.handleChange}\r\n label=\"Degree Range\"\r\n />\r\n <Form.Input\r\n placeholder=\"To\"\r\n name=\"todeg\"\r\n value={todeg}\r\n width={8}\r\n onChange={this.handleChange}\r\n style={{ marginTop: \"1.6em\" }}\r\n />\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Input\r\n placeholder=\"From\"\r\n value={fromreg}\r\n width={8}\r\n name=\"fromreg\"\r\n onChange={this.handleChange}\r\n label=\"Reg. No. Range\"\r\n />\r\n <Form.Input\r\n placeholder=\"To\"\r\n name=\"toreg\"\r\n value={toreg}\r\n width={8}\r\n onChange={this.handleChange}\r\n style={{ marginTop: \"1.6em\" }}\r\n />\r\n </Form.Group>\r\n <Form.Group>\r\n <Form.Input\r\n placeholder=\"From\"\r\n value={fromcoll}\r\n width={8}\r\n name=\"fromcoll\"\r\n onChange={this.handleChange}\r\n label=\"College Range\"\r\n />\r\n <Form.Input\r\n placeholder=\"To\"\r\n name=\"tocoll\"\r\n value={tocoll}\r\n width={8}\r\n onChange={this.handleChange}\r\n style={{ marginTop: \"1.6em\" }}\r\n />\r\n </Form.Group>\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})(ConvocationReports);\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":""}
|