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.224.44.233
{"version":3,"sources":["pages/rt_marks_entry/index.js","actions/rt_marks_entry/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["RTMarksEntry","state","regnofrom","regnoto","rtmarkstab","_this","props","stt","changeinregnofrom","e","data","setState","value","changeinregnoto","handleSubmit","_callee","error","_error","regenerator_default","a","wrap","_context","prev","next","header","content","showError","abrupt","getstuddetforrt","console","log","stop","handleoldmarks","newarr","map","el","i","fomarks","handlenewmarks","newarr1","fnmarks","handleUpdate","_callee2","_context2","updatertmarks","handleCancel","_this2","this","_this$state","react_default","createElement","Card","fluid","Content","Header","style","display","className","Button","basic","color","onClick","icon","Link","to","Divider","Description","overflowY","height","Form","Group","Field","width","Input","placeholder","name","onChange","marginTop","primary","Object","keys","length","Table","celled","padded","Row","HeaderCell","singleLine","Body","key","Cell","fregno","fname","fsubname","fqpcode","type","Component","connect","univcode","univ","funivcode","reg","_ref","asyncToGenerator","mark","dispatch","getState","response","univadmin","get","params","regfrm","regto","sent","error_code","msg","payload","_x","_x2","apply","arguments","upd","_ref2","_error2","_error3","post","rtarr","_x3","_x4","_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","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"kRAmBMA,4NACJ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A0D,EAAA,EAAA1D,CAAUoE,EAAA,WAAsBpE,OAAA0D,EAAA,EAAA1D,CAAUqE,EAAA,sBAAA3F,GACzO6F,EAAavE,OAAA2D,EAAA,EAAA3D,CAAiBd,EAAA3D,GAC9BiJ,EAAoBxE,OAAA4D,EAAA,EAAA5D,CAAcd,EAAA3D,GAClC,OAASkI,EAAArH,EAAK+B,cAAAqG,EAA4BpB,IAAQ,GAAGmB,EAAA,CACrD7F,UAAA4F,IACMT,EAAA,EAAaY,MAAAX,GAAApH,EAAAoH,GAGnB5E,EAAAwF,aAAA,kHACAxF,EAAAyF,UAiCC,GACcC,EAAA","file":"static/js/168.f0b4fe9e.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Card,\n Button,\n Form,\n Table,\n Dropdown,\n Divider,\n Checkbox,\n Input,\n} from \"semantic-ui-react\";\nimport { getstuddetforrt, updatertmarks } from \"./../../actions/rt_marks_entry\";\n\nimport { connect } from \"react-redux\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\n\nclass RTMarksEntry extends Component {\n state = {\n regnofrom: \"0\",\n regnoto: \"z\",\n rtmarkstab: this.props.stt,\n };\n\n changeinregnofrom = (e, data) => {\n this.setState({ regnofrom: data.value });\n };\n\n changeinregnoto = (e, data) => {\n this.setState({ regnoto: data.value });\n };\n\n handleSubmit = async () => {\n if (this.state.regnofrom === \"\") {\n const error = { header: \"Error\", content: \"Enter Reg.No from\" };\n this.props.showError(error);\n return;\n }\n if (this.state.regnoto === \"\") {\n const error = { header: \"Error\", content: \"Enter Reg.No To\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.getstuddetforrt(this.state);\n console.log(this.props.stt);\n this.setState({ rtmarkstab: this.props.stt });\n };\n\n handleoldmarks = (e, data) => {\n const newarr = this.state.rtmarkstab.map((el, i) => {\n if (i === data) {\n el.fomarks = e;\n }\n return el;\n });\n this.setState({ rtmarkstab: newarr });\n };\n\n handlenewmarks = (e, data) => {\n const newarr1 = this.state.rtmarkstab.map((el, i) => {\n if (i === data) {\n el.fnmarks = e;\n }\n return el;\n });\n this.setState({ rtmarkstab: newarr1 });\n };\n\n handleUpdate = async () => {\n await this.props.updatertmarks(this.state.rtmarkstab);\n };\n\n handleCancel = () => {\n this.setState({\n regnofrom: \"0\",\n regnoto: \"z\",\n });\n };\n\n render() {\n const { regnofrom, regnoto } = this.state;\n\n return (\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>RT Marks Entry</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"green\"\n content=\"Update\"\n onClick={this.handleUpdate}\n icon=\"save\"\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 <Divider />\n <Card.Description style={{ overflowY: \"auto\", height: \"70vh\" }}>\n <div className=\"col-md-7\">\n <Form>\n <div>\n <Form.Group>\n <Form.Field width={8}>\n <label>Reg.No Range</label>\n <Form.Input\n placeholder=\"Reg.No From\"\n name=\"regnofrom\"\n onChange={this.changeinregnofrom}\n value={regnofrom}\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"Reg.No To\"\n name=\"regnoto\"\n onChange={this.changeinregnoto}\n value={regnoto}\n style={{ marginTop: \"1.7em\" }}\n />\n </Form.Field>\n </Form.Group>\n <Button primary onClick={this.handleSubmit}>\n Submit\n </Button>\n </div>\n </Form>\n </div>\n\n {console.log(this.state.rtmarkstab)}\n\n {Object.keys(this.state.rtmarkstab).length > 0 ? (\n <Table celled padded>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell singleLine>Sl.No</Table.HeaderCell>\n <Table.HeaderCell>Register Number</Table.HeaderCell>\n <Table.HeaderCell>Student Name</Table.HeaderCell>\n <Table.HeaderCell>Subject</Table.HeaderCell>\n <Table.HeaderCell>Qp Code</Table.HeaderCell>\n <Table.HeaderCell>Old Marks</Table.HeaderCell>\n <Table.HeaderCell>New Marks</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n\n <Table.Body>\n {this.state.rtmarkstab.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell>{i + 1}</Table.Cell>\n <Table.Cell>\n <b>{el.fregno}</b>\n </Table.Cell>\n <Table.Cell>\n <b>{el.fname}</b>\n </Table.Cell>\n <Table.Cell>\n <b>{el.fsubname}</b>\n </Table.Cell>\n <Table.Cell>\n <b>{el.fqpcode}</b>\n </Table.Cell>\n\n <Table.Cell>\n <Form.Input\n type=\"text\"\n placeholder=\"Old Marks\"\n name=\"oldmarks\"\n value={el.fomarks}\n onChange={(e, data) =>\n this.handleoldmarks(data.value, i)\n }\n />\n </Table.Cell>\n <Table.Cell>\n <Form.Input\n type=\"text\"\n placeholder=\"New Marks\"\n name=\"newmarks\"\n value={el.fnmarks}\n onChange={(e, data) =>\n this.handlenewmarks(data.value, i)\n }\n />\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n ) : null}\n </Card.Description>\n </Card.Content>\n </Card>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n console.log(state);\n return {\n univcode: state.univ.funivcode,\n stt: state.getstuddetforrt,\n };\n};\n\nexport default connect(mapStateToProps, {\n showError,\n getstuddetforrt,\n updatertmarks,\n})(RTMarksEntry);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getstuddetforrt = (reg) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getstuddetforrt\",\n univcode: state.univ.funivcode,\n regfrm: reg.regnofrom,\n regto: reg.regnoto,\n },\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"RT_MARKS_ENTRY\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const updatertmarks = (upd) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const response = await univadmin.post(\n \"/app.php?a=updatertmarks&univcode=\" + state.univ.funivcode,\n {\n rtarr: upd,\n }\n );\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\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":""}
|