{"version":3,"sources":["pages/calificador/discusionCatedratico.js","pages/horarios/horariosalumno.js","pages/financiero/historico_pagos_alumnos.js","pages/financiero/estado_cuenta_alumno.js","pages/calificador/calificador.js","pages/financiero/extraordinario.js","pages/financiero/detallePagar.js","pages/financiero/tramites_alumno.js","pages/calificador/ponderacionCatedratico.js"],"names":["Auth","AuthService","ip","globales","border_dialog","movil_pequeño","test","navigator","userAgent","getRowId","row","ID_SECCION","columns","name","title","defaultHiddenColumnNames","tableColumnExtensions","columnName","wordWrapEnabled","align","width","withStyles","theme","Dialog","borderRadius","margin","padding","backdrop","zIndex","color","flexDirection","select","spacing","minWidth","textField","React","Component","constructor","props","super","tablaRef","createRef","changeSelection","selection","undefined","length","this","setState","state","rows","forEach","element","funciones","getIdRowChecking","selection_row","ANIO","PERIODO","CODIGO_CURSO","ChangeSelect_ponderacion","event","selection_ponderacion","target","value","generarreporte","document","getElementById","click","l","e","i","isVisibleRowSelected","actualizarbarra","actualizarcircular","openBackDrop","isLoggin","heightTableMain","datos_ponderaciones","grouping","expandedGroups","filteringColumnExtensions","filters","expandedRowIds","enabledFilterRows","VirtualTable_cellComponent","getTime","column","_jsx","Table","Cell","style","height","children","INICIO","FIN","componentDidMount","_this","getProfile","plataforma","Request","get","user","set","getToken","retry","timeout","response","deadline","end","err","res","toString","substr","window","location","reload","showToast","tmp","JSON","parse","text","getHeightTableMain","heightTable","Datos","map","datos","MenuItem","dense","ID_PONDERACION","DESCRIPCION_PONDERACION","render","classes","botones","icono","toolt","nombre","escritura","disabled","onclick","display","_jsxs","Fragment","Reporte","id","parametros","nom_boton","nom_bar","label_reporte","backcolor","colores","azul","fill","fullScreen","boton","color_bar","opciones","marginLeft","marginBottom","marginTop","Typography","Select","Label","Selected","onChange","Multiple","SelectClass","Style","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","Outlined","ref","background","tabla","marginleft_movil","marginleft","marginRight","marginright_movil","marginright","CustomTable","Columns","Rows","TableColumnExtensions","DefaultHiddenColumnNames","Selection","ChangeSelection","standarPlugin","TableRowsIndexer","showSelectionColumn","BarraBotones","logout","ID_SECCION_CLIENTE","getRowId_dias","DIA","columns_dias","defaultHiddenColumnNames_dias","tableColumnExtensions_dias","onExpandedRowDetailIdsChange","expandedRowIds2","rows_principal","rows_dias","ESTATUS","ESTATUS_FINANCIERO","ESTATUS_ACADEMICO","fontWeight","URL","Tooltip","Button","onClick","open","variant","Icono","fontSize","RowDetail","_ref","filter","grupo","position","loggedIn","then","b","item","index","find","push","Backdrop","className","CircularProgress","open_seleccion","open_borrar","ExpandedRowDetailIds","SIMBOLO","MONTO","VirtualTable_cellComponent_detalle","ID_FACTURA","getRowId_detalle","ID_DETALLE","columns_detalle","defaultHiddenColumnNames_detalle","innerWidth","tableColumnExtensions_detalle","rowHeaderRowComponent","Row","backgroundColor","encabezado","handleDateChange_desde","date","fechahasta","fechadesde","llenar_tabla","handleDateChange_hasta","cargando","fecha_ini","getDateSelect","Date","fecha_fin","rows_detalle","_ref2","MuiPickersUtilsProvider","utils","DateFnsUtils","locale","esLocale","KeyboardDatePicker","inputVariant","format","label","InputProps","paddingRight","readOnly","ToolbarComponent","CustomToolbar","autoOk","VirtualTable_cellComponent_favor","MONTO_TOTAL","getRowId_favor","columns_favor","defaultHiddenColumnNames_favor","tableColumnExtensions_favor","root","paddig","minHeight","maxHeight","selected","handleChangeCheckbox","open_mover","Mover","post","send","cuenta_alumno","RESP","filas_facturas","filas_favor","TIPO","rows_facturas","rows_favor","ex","handleChange","newValue","cerrarmodal","Checkbox","checked","CHECKED","disableEnforceFocus","disableAutoFocus","maxWidth","fullWidth","paper","DialogTitle","component","DialogContent","TabContext","TabList","centered","orientation","borderBottom","Tab","textTransform","TabPanel","tokenInfo","movil","widthTable","screen","columnExtensions","RowId","CUENTA_ALUMNO","RenderOption","option","lineHeight","NUMERO_SECCION","textAlign","color_disabled","fontStyle","JORNADA","DESCRIPCION","GroupCellContent","cellsEditingCellComponent","_ref3","onValueChange","TableInlineCellEditing","Input","defaultValue","inputProps","maxLength","inputMode","onKeyPress","ev","key","isNaN","parseInt","preventDefault","TableRow","_ref4","highlighted","rowIndex","selectByRowClick","odd","alternateColorRow1","alternateColorRow2","ColumnFixed_cellComponent","_ref5","showRightDivider","showLeftDivider","tableRow","TableFixedColumns","container","justifyContent","alignItems","paddingTop","paddingBottom","paddingLeft","obtener_secciones","loadingSecciones","optionsSecciones","obtener_listado","id_seccion","loadingMain","setTitulos","x","MODALIDAD","LAB","setColumnaLab","onChangeAutocomplete","valueSeccion","visibleLab","changeExpandedGroups","POND_1","POND_2","POND_3","POND_4","POND_5","POND_6","commitChanges","_ref6","changed","tmpValue","Object","values","cuenta","keys","colName","isEmpty","maxPond","old_rows","changedRows","id_calificacion","I","II","III","IV","EXTRA","actualizar_nota","calExt","total","minNota","extNota","parcialExt","Boolean","PERMITE_EXTRA_I","VALOR_I","VALOR_EXTRA","PERMITE_EXTRA_II","VALOR_II","PERMITE_EXTRA_III","VALOR_III","PERMITE_EXTRA_IV","VALOR_IV","valor","ad_usuario","settingFilter","predicate","VALOR_LAB","IntegratedFiltering","defaultPredicate","componentWillUnmount","Paper","square","Autocomplete","options","getOptionLabel","DESCRIPCION_CURSO","renderInput","params","TextField","endAdornment","size","renderOption","loading","PaperComponent","elevation","Grouping","ExpandedGroups","ChangeExpandedGroups","groupContentComponent","color_inactivo","color_ext","color_ext_inactivo","calExtCol","cursor","String","styleNota","ACTIVA_I","TIENE_MORA","APLICADA","ACTIVA_II","ACTIVA_III","ACTIVA_IV","ACTIVA_EXTRA","RowComponent","FilteringColumnExtensions","cellsEditing","selectTextOnEditStart","leftColumnsFixed","columnFixedCellComponent","invisible","transitionDuration","checkId","formatCurrency","TableSelectionCellComponent","estado","MODIFICABLE","TableSelection","paperTitle","verticalAlign","obtener_cursos","DESCRIPCION_NIVEL","tipo_proceso","accion","loadingCheck","id_seccion_cliente","columnWidths","tableSelectionCellComponent","COLUMN_TYPE","totalSummaryItems","type","columnsDetalle","columnExtensionsDetalle","columnsCuotas","columnExtensionsCuotas","detalleCuotas","FECHA_PROCESO","ID_TIPO_TRANSACCION","simbolo","closeButton","right","top","palette","grey","formControlSelect","tablaDialogRef","dialogActionRef","obtener_mod_pagos","loadingModPago","modalidades","VISIBLE_WEB","ID_MODALIDAD_CLIENTE","selectedModPago","itemsModPago","MOD_PAGO_ID","MOD_PAGO_DESCRIPCION","handleChangeModPago","obtener_facturas","id_mod_pago_nueva","id_mod_pago","obtener_detalle","id_factura","facturaDetalle","slice","loadingDetail","rowsDetail","DETALLE_FACTURA","obtener_detalle_cuotas","loadingCuotas","rowsCuotas","DESCRIPCIÓN","toLowerCase","includes","id_modalidad_pago","detalle_cuotas","openModal","handleClose","onEntering","heightTableDialog","getHeightTableDialog","monedas","calcular_totales","rowsMoneda","monto","resultado","moneda","pagar","cargar","reporte","pagina","descripcion","manual","desplegados","styleDiv","left","overflow","ItemComponent","parseFloat","TableSummaryRow","Item","Divider","flexItem","startIcon","CheckIcon","totalItems","summaryRowMessages","sum","totalItemComponent","TransitionProps","IconButton","CloseIcon","DialogActions","onChangeAutocompletetransaccion","setSelectedtransaccion","open_agregar","open_eliminar","FACTURA_ELIMINAR","guardar","ID_GESTION","transacciones","isloadingtransaccion","CLICK","ELIMINAR","botones_agregar","botones_eliminar","MONTO_ARANCEL","getOptionSelected","button","iconSizeSmall","columnsInfo","columnExtensionsInfo","VirtualTable_cellComponentInfo","EXTRAORDINARIO","paperConfirmation","divSecondary","vtRef","tablaInfoRef","handleRowClick","idRow","idRowSelected","handleClick","infoRowSelected","loadingInfo","rowsInfo","titleModal","heightTableInfo","addEventListener","onResize","current","tooltipText","TITULO","rowSelected","rowClick","StubCell","ListAltIcon","Box","m"],"mappings":"qHAAA,+HAcA,IAAIA,EAAO,IAAIC,IACf,IAAIC,EAAGC,IAASD,GACZE,EAAcD,IAASC,cAEvBC,EAAc,4DAA4DC,KAAKC,UAAUC,WAU7F,MAAMC,EAAWC,GAAOA,EAAIC,WA8BxB,MA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,YAAWvH,SAACL,cAACqhB,IAAG,CAACnS,WAAY,EAAGoS,EAAG,EAAEjhB,SAAE7C,KAAKE,MAAMgjB,eACnG1gB,cAACue,IAAU,CAAC3V,UAAWhG,EAAQqX,YAAavS,QAASlK,KAAK8e,YAAa/F,KAAK,QAAOlW,SAClFL,cAACwe,IAAS,CAAC1W,SAAS,eAGtB9H,cAACgO,IAAa,CAAC7N,MAAS,CAAEwR,cAAgBjD,EAAgB,MAAR,OAAgBrO,SACjEL,cAAA,OAAKqF,IAAK7H,KAAK0iB,aAActX,UAAU,sBAAqBvI,SAC1DL,cAAC6F,IAAW,CACVC,QAAS6Z,EACT5Z,KAAMvI,KAAKE,MAAM+iB,SACjBza,sBAAuB4Z,EACvB3Z,yBAA0B,CAAC,uBAC3BpG,2BAA4BggB,EAC5Bzf,OAAQ5C,KAAKE,MAAMijB,gBACnBlK,QAASjZ,KAAKE,MAAM8iB,kBAIxBxgB,cAACye,IAAa,CAACpZ,IAAK7H,KAAKgd,qBAG3Bxa,cAAC2I,IAAQ,CAAChB,KAAMnK,KAAKE,MAAMwU,aAAe1U,KAAKE,MAAM8iB,YAC3C5X,UAAWhG,EAAQvG,SACnB+b,WAAS,EACTC,mBAAoB,OA7PVG,IAAC6H,EAAeC,CAoQvC,EAtED,QA4EqB,IAAxB9iB,KAAKE,MAAM0B,SAMb,UAHLsC,OAAOC,SAASC,QAKlB,G","file":"static/js/main~b98765b7.1ceefb30.chunk.js","sourcesContent":["import React from 'react';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport {colores, globales,funciones} from '../../global';\r\nimport BarraBotones from '../../components/Barra_menu';\r\nimport AuthService from '../../AuthService';\r\nimport Request from 'superagent';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {Table} from '@devexpress/dx-react-grid-material-ui';\r\nimport TableRowsIndexer from '../../components/tableRowsIndexer'\r\nimport Select from '../../components/Select';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport { Typography } from '@material-ui/core';\r\nimport Reporte from '../../components/Modalreporte';\r\n\r\nlet Auth = new AuthService();\r\nvar ip=globales.ip\r\nvar border_dialog=globales.border_dialog\r\n//var movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\nvar movil_pequeño=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\nlet isVisibleRowSelected = false;\r\n//const colorRowSelected = 'rgb('+ colores.tabla.selection +')';\r\n//let alternateColorRow1 = colores.tabla.alternateColorRow1; \r\n//let alternateColorRow2 = colores.tabla.alternateColorRow2;\r\n\r\n//const ListboxComponent = virtual.ListboxComponent;\r\n\r\n\r\nconst getRowId = row => row.ID_SECCION;\r\n\r\n\r\n\r\n/* CLASES DE ESTILO */\r\n\r\nvar styles = theme =>({\r\n Dialog:{\r\n borderRadius: border_dialog,\r\n margin:0,\r\n padding:0\r\n },\r\n backdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n },\r\n select: { //CONFIGURA EL SELECT \r\n margin: theme.spacing(movil_pequeño?2:1, 1,0,0),\r\n padding: 0,\r\n minWidth: movil_pequeño?'100%':'20%',\r\n },\r\n textField: {\r\n margin: theme.spacing(movil_pequeño?2:1, 1,0,0),\r\n padding: 0,\r\n minWidth: movil_pequeño?'100%':'20%',\r\n width: '20%' \r\n },\r\n })\r\n\r\n const columns= [\r\n {name:'ID_SECCION',title: 'ID_SECCION'}\r\n ,{name:'CODIGO_CURSO',title: 'Código'}\r\n ,{name:'DESCRIPCION_CURSO',title: 'Descripción'}\r\n ,{name:'INICIO',title: 'Inicio'}\r\n ,{name:'FIN',title: 'Fin'}\r\n ,{name:'SECCION',title: 'Sección'}\r\n ,{name:'CODIGO',title: 'Aula'}\r\n ,{name:'ANIO',title: 'ANIO'}\r\n ,{name:'PERIODO',title: 'PERIODO'}\r\n ];\r\n\r\n const defaultHiddenColumnNames= ['ANIO','PERIODO','ID_SECCION'];\r\n\r\n const tableColumnExtensions= [\r\n { columnName: 'CODIGO_CURSO', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'DESCRIPCION_CURSO', wordWrapEnabled: false, align: 'center'},\r\n { columnName: 'INICIO', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'FIN', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'SECCION', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'CODIGO', wordWrapEnabled: false, align: 'center',width: 150},\r\n ];\r\n\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Discusion_Catedratico extends React.Component {\r\n tablaRef = React.createRef();\r\n\r\n constructor(props) {\r\n super(props);\r\n this.l= props.l\r\n this.e= props.e\r\n this.i= props.i\r\n this.isVisibleRowSelected=isVisibleRowSelected\r\n this.actualizarbarra=props.actualizarbarra\r\n this.actualizarcircular=props.actualizarcircular\r\n\r\n this.state = {\r\n openBackDrop: false, \r\n isLoggin: undefined,\r\n heightTableMain: 0,\r\n rows: [],\r\n selection: [],\r\n selection_ponderacion: '',\r\n datos_ponderaciones: [],\r\n grouping: [],\r\n expandedGroups: [],\r\n filteringColumnExtensions: [],\r\n filters: [],\r\n expandedRowIds: [],\r\n enabledFilterRows: false,\r\n selection_row: []\r\n }\r\n\r\n const VirtualTable_cellComponent = (getTime) => (props) => {\r\n const { column } = props;\r\n const {row} = props;\r\n \r\n if (column.name === 'INICIO')\r\n {\r\n return ( \r\n { row.INICIO !== null ? getTime(row.INICIO, 1) : row.INICIO }\r\n );\r\n }\r\n \r\n if (column.name === 'FIN')\r\n {\r\n return ( \r\n { row.FIN !== null ? getTime(row.FIN, 1) : row.FIN }\r\n );\r\n }\r\n \r\n return(\r\n \r\n );\r\n }\r\n\r\n this.VirtualTable_cellComponent = VirtualTable_cellComponent;\r\n \r\n }; //FIN CONSTRUCTORS\r\n\r\n\r\ncomponentDidMount()\r\n{\r\n let _this = this;\r\n _this.actualizarbarra(false)\r\n\r\n //Auth.loggedIn().then( function(b){ Auth.getProfile()\r\n // _this.setState({ isLoggin: b})\r\n // if(b)\r\n // {\r\n this.setState({ isLoggin: Auth.getProfile().plataforma !== undefined ? true : false }, ()=>{\r\n Request.get(`${ip}/discusionCatedratico/obtener_cursos_catedratico/${Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 20000, deadline: 50000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n _this.setState({ rows: tmp, heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable})\r\n }\r\n else\r\n {\r\n _this.setState({rows: [], heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable })\r\n }\r\n _this.actualizarbarra(true)\r\n })\r\n\r\n Request.get(`${ip}/discusionCatedratico/obtener_ponderaciones/${Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 20000, deadline: 50000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n const Datos = tmp.map((datos, i) =>\r\n \r\n {datos.DESCRIPCION_PONDERACION}\r\n \r\n );\r\n _this.setState({ datos_ponderaciones: Datos})\r\n }\r\n \r\n _this.actualizarbarra(true)\r\n })\r\n\r\n //}/// fin if(b)\r\n })\r\n}\r\n\r\nchangeSelection = (selection) =>{\r\n if(selection[selection.length-1]===undefined)\r\n {\r\n this.setState({ selection: this.state.selection});\r\n }\r\n else{\r\n this.state.rows.forEach(element => {\r\n if(element.ID_SECCION===funciones.getIdRowChecking(selection,this.state.selection))\r\n {\r\n this.setState({selection: [selection[selection.length-1]],selection_row:[{ANIO:element.ANIO,PERIODO: element.PERIODO\r\n ,CODIGO_CURSO: element.CODIGO_CURSO,ID_SECCION: element.ID_SECCION}]})\r\n return;\r\n }\r\n });\r\n \r\n }\r\n}\r\n\r\nChangeSelect_ponderacion = event => {\r\n this.setState({ selection_ponderacion: event.target.value });\r\n}\r\n\r\ngenerarreporte=event=>{\r\n if(this.state.selection.length!==0 && this.state.selection_ponderacion!=='')\r\n document.getElementById(\"BT-discusion\").click();\r\n}\r\n\r\n/* RENDER */\r\nrender() {\r\n const { classes } = this.props;\r\n\r\n const botones = [\r\n {icono: 'Add', toolt: 'Generar Reporte', nombre: 'Generar' ,escritura:true, disabled: this.state.selection.length===0 || this.state.selection_ponderacion==='' , onclick: this.generarreporte\r\n , display: 'auto'},\r\n ]\r\n\r\n if (this.state.isLoggin === true )\r\n {\r\n return ( \r\n \r\n \r\n
\r\n \r\n Descripción columna en reporte:\r\n \r\n \r\n );\r\n\r\n}\r\nconst TableRow = ({ highlighted, rowIndex, row, selectByRowClick, ...props}) => {\r\n \r\n const odd = !!(rowIndex % 2); \r\n \r\n return (\r\n \r\n );\r\n\r\n}\r\nconst ColumnFixed_cellComponent = ({showRightDivider, showLeftDivider, ...props}) => { \r\n \r\n if (props.tableRow.key === \"Symbol(filter)\"){\r\n return (\r\n
\r\n );\r\n }\r\n\r\n return ();\r\n} \r\n\r\nexport default withStyles(styles) ( \r\nclass App extends React.Component {\r\n\r\ntablaRef = React.createRef();\r\n\r\n constructor (props) {\r\n super(props);\r\n this.l=props.l\r\n this.e=props.e\r\n this.i=props.i\r\n this.state = {\r\n isLoggin : undefined,\r\n heightTableMain: 0,\r\n loadingMain: false,\r\n rows: [],\r\n optionsSecciones: [],\r\n valueSeccion: null,\r\n loadingSecciones: true,\r\n columns,\r\n columnExtensions,\r\n expandedGroups: [],\r\n };\r\n this.settingFilter = [\r\n { columnName: 'TOTAL',\r\n predicate: (value, filter, row) => {\r\n let total = parseInt(row.VALOR_I) + parseInt(row.VALOR_II) + parseInt(row.VALOR_III) + parseInt(row.VALOR_IV) + (row.VALOR_LAB !== null ? parseInt(row.VALOR_LAB) : 0);\r\n value = parseInt(row.VALOR_EXTRA) > 0 ? this.calExt(total, row) : total;\r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n },\r\n ];\r\n}\r\n\r\nobtener_secciones = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/calificador/secciones/${tokenInfo.user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ loadingSecciones: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n \r\n this.setState({ optionsSecciones: rows, \r\n loadingSecciones: false }); \r\n \r\n});\r\n\r\n}\r\n\r\nobtener_listado = (id_seccion)=>{\r\n \r\n new Request\r\n .get(`${globales.ip}/calificador/listado/${id_seccion}/${tokenInfo.user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ loadingMain: false }, ()=>{ \r\n this.setTitulos(null);\r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n\r\n let expandedGroups = [];\r\n rows.map((item)=>{\r\n if (!expandedGroups.find(x => x === item.MODALIDAD))\r\n expandedGroups.push(item.MODALIDAD);\r\n\r\n return item;\r\n });\r\n\r\n if (rows.length > 0){\r\n const {columnExtensions} = this.state;\r\n if (rows[0].LAB === null && columnExtensions.find(x => x.columnName === \"VALOR_LAB\").width !== 0)\r\n this.setColumnaLab(false);\r\n else if (rows[0].LAB !== null && columnExtensions.find(x => x.columnName === \"VALOR_LAB\").width === 0)\r\n this.setColumnaLab(true);\r\n\r\n this.setTitulos(rows[0]);\r\n }\r\n\r\n this.setState({ rows, \r\n expandedGroups,\r\n loadingMain: false }); \r\n \r\n});\r\n\r\n}\r\n\r\nonChangeAutocomplete = (event, newValue)=>{\r\n\r\nthis.setState({ rows: [],\r\n expandedGroups: [],\r\n valueSeccion: newValue }, ()=>{\r\n\r\n if (newValue === null)\r\n return;\r\n\r\n this.setState({ loadingMain: true }, ()=>{\r\n this.obtener_listado(newValue.ID_SECCION);\r\n }); \r\n \r\n});\r\n \r\n}\r\n\r\nsetColumnaLab = (visibleLab)=>{ \r\n\r\n const columnExtensions = this.state.columnExtensions.map((item)=> {\r\n if (item.columnName === \"VALOR_LAB\")\r\n item.width = visibleLab ? widthTable * 0.08 : 0;\r\n\r\n return item;\r\n });\r\n\r\n this.setState({ columnExtensions });\r\n\r\n}\r\n\r\nchangeExpandedGroups = expandedGroups =>{\r\n this.setState({ expandedGroups });\r\n}\r\n\r\nsetTitulos = (row)=>{\r\n\r\nconst columns = this.state.columns.map((item)=> {\r\n if (item.name === \"VALOR_I\")\r\n item.title = row !== null ? \"I (\" + row.POND_1 + \")\" : \"I\";\r\n\r\n if (item.name === \"VALOR_II\")\r\n item.title = row !== null ? \"II (\" + row.POND_2 + \")\" : \"II\";\r\n\r\n if (item.name === \"VALOR_III\")\r\n item.title = row !== null ? \"III (\" + row.POND_3 + \")\" : \"III\";\r\n\r\n if (item.name === \"VALOR_IV\")\r\n item.title = row !== null ? \"IV (\" + row.POND_4 + \")\" : \"IV\";\r\n\r\n if (item.name === \"VALOR_EXTRA\")\r\n item.title = row !== null ? \"Extra (\" + row.POND_5 + \")\" : \"Extra\";\r\n\r\n if (item.name === \"VALOR_LAB\")\r\n item.title = row !== null ? \"Lab (\" + row.POND_6 + \")\" : \"Lab\";\r\n\r\n return item;\r\n });\r\n\r\n this.setState({ columns });\r\n\r\n}\r\n\r\ncommitChanges = ({ changed }) => { \r\n \r\n const tmpValue = Object.values(changed);\r\n const cuenta = Object.keys(changed)[0];\r\n \r\n if (tmpValue[0] === undefined)\r\n return;\r\n\r\n const colName = Object.keys(tmpValue[0])[0]; \r\n const newValue = Object.values(tmpValue[0])[0]; \r\n \r\n if (isNaN(newValue) || funciones.isEmpty(newValue)){\r\n funciones.showToast(\"w\", \"El valor es incorrecto\");\r\n return;\r\n }\r\n \r\n const row = this.state.rows.find(x => x.CUENTA_ALUMNO === cuenta); \r\n const maxPond = colName === \"VALOR_I\" ? row.POND_1 : \r\n colName === \"VALOR_II\" ? row.POND_2 :\r\n colName === \"VALOR_III\" ? row.POND_3 :\r\n colName === \"VALOR_IV\" ? row.POND_4 : row.POND_5;\r\n \r\n if (parseInt(newValue) > parseInt(maxPond) || parseInt(newValue) < 0){\r\n funciones.showToast(\"w\", \"El valor debe estar entre 0 y \" + maxPond);\r\n return;\r\n }\r\n\r\n const old_rows = this.state.rows;\r\n\r\n changed[cuenta][colName] = parseInt(newValue);\r\n const changedRows = this.state.rows.map(row => (changed[row.CUENTA_ALUMNO] ? { ...row, ...changed[row.CUENTA_ALUMNO] } : row));\r\n this.setState({ rows: changedRows }, ()=>{\r\n\r\n this.setState({ loadingSecciones: true }, ()=>{\r\n\r\n const id_calificacion = colName === \"VALOR_I\" ? row.I : \r\n colName === \"VALOR_II\" ? row.II :\r\n colName === \"VALOR_III\" ? row.III :\r\n colName === \"VALOR_IV\" ? row.IV : row.EXTRA;\r\n\r\n this.actualizar_nota(id_calificacion, newValue, old_rows);\r\n });\r\n\r\n });\r\n\r\n}\r\n\r\ncalExt = (total, row)=>{\r\n console.log('estoy en calext')\r\n let minNota = 100;\r\n let extNota = 0;\r\n let parcialExt = null;\r\n \r\n if (Boolean(row.PERMITE_EXTRA_I) && parseInt(row.VALOR_I) < minNota ){\r\n minNota = row.VALOR_I;\r\n parcialExt = \"VALOR_I\";\r\n extNota = parseInt(row.VALOR_EXTRA);\r\n //&& parseInt(row.VALOR_EXTRA) > parseInt(row.VALOR_I)\r\n } \r\n \r\n if (Boolean(row.PERMITE_EXTRA_II) && parseInt(row.VALOR_II) < minNota){\r\n minNota = parseInt(row.VALOR_II);\r\n parcialExt = \"VALOR_II\";\r\n extNota = parseInt(row.VALOR_EXTRA); \r\n // && parseInt(row.VALOR_EXTRA) > parseInt(row.VALOR_II)\r\n } \r\n \r\n if (Boolean(row.PERMITE_EXTRA_III) && parseInt(row.VALOR_III) < minNota ){\r\n minNota = parseInt(row.VALOR_III);\r\n parcialExt = \"VALOR_III\";\r\n extNota = parseInt(row.VALOR_EXTRA);\r\n //&& parseInt(row.VALOR_EXTRA) > parseInt(row.VALOR_III)\r\n } \r\n \r\n if (Boolean(row.PERMITE_EXTRA_IV) && parseInt(row.VALOR_IV) < minNota ){\r\n minNota = parseInt(row.VALOR_IV);\r\n parcialExt = \"VALOR_IV\";\r\n extNota = parseInt(row.VALOR_EXTRA);\r\n //&& parseInt(row.VALOR_EXTRA) > parseInt(row.VALOR_IV)\r\n }\r\n \r\n if (total === null)\r\n return parcialExt;\r\n \r\n return total - (minNota !== 100 ? minNota : 0) + extNota ;\r\n \r\n }\r\n\r\nactualizar_nota=(id_calificacion, valor, old_rows)=>{\r\n \r\n new Request\r\n .post(`${globales.ip}/calificador`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ id_calificacion, \r\n valor, \r\n ad_usuario: tokenInfo.user })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ rows: old_rows, loadingSecciones: false }, ()=> { \r\n funciones.showToast('e', 'No hay conexión'); \r\n });\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n\r\n this.setState({ loadingSecciones: false }, ()=>{\r\n\r\n if (rows[0].RESP !== 'OK')\r\n this.setState({ rows: old_rows }, ()=>{\r\n funciones.showToast(\"w\", rows[0].RESP);\r\n });\r\n\r\n }); \r\n\r\n});\r\n\r\n}\r\n\r\ncomponentDidMount() { //Load\r\n\r\n tokenInfo = Auth.getProfile(); //Token decodificado\r\n\r\n this.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{\r\n\r\n if (tokenInfo.plataforma === 3)\r\n {\r\n this.obtener_secciones();\r\n this.setColumnaLab(false); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n\r\n }); \r\n \r\n}\r\n\r\ncomponentWillUnmount() { //Cerrar Subcripciones\r\n\r\n}\r\n\r\nrender() {\r\nconst { classes } = this.props;\r\n\r\n if (this.state.isLoggin === true)\r\n {\r\n return (\r\n \r\n \r\n \r\n {\r\n (() => {\r\n \r\n if (tokenInfo.plataforma === 3)\r\n {\r\n \r\n return (\r\n \r\n
\r\n option.DESCRIPCION_CURSO + ' (' + option.NUMERO_SECCION + ')'}\r\n style={{ width: !movil ? '430px' : '100%' }}\r\n renderInput={(params) => \r\n {this.state.loadingSecciones ? : null}\r\n {params.InputProps.endAdornment}\r\n \r\n ),\r\n }}\r\n fullWidth\r\n />}\r\n renderOption={RenderOption} \r\n onChange={this.onChangeAutocomplete} \r\n loading={this.state.loadingSecciones}\r\n value={this.state.valueSeccion}\r\n PaperComponent={(props)=>()} \r\n />\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n\r\n
\r\n );\r\n\r\n } \r\n \r\n })()\r\n\r\n }\r\n\r\n
\r\n
\r\n );\r\n }\r\nelse if (this.state.isLoggin === false)\r\n{\r\n //Auth.logout();\r\n window.location.reload();\r\n return; //(())\r\n}\r\nreturn null;\r\n\r\n}//FIN RENDER\r\n}\r\n\r\n)","import React from 'react';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {globales, funciones } from '../../global';\r\nimport AuthService from '../../AuthService';\r\nimport Request from 'superagent';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport {withStyles} from '@material-ui/core/styles';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport {Table, TableSelection, TableFixedColumns} from '@devexpress/dx-react-grid-material-ui';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport {IntegratedFiltering} from '@devexpress/dx-react-grid';\r\n\r\nlet Auth = new AuthService();\r\nlet tokenInfo = [];\r\n\r\nvar movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\nlet checkId = undefined;\r\n\r\nconst styles = theme => ({\r\n\r\nbackdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n},\r\npaperTitle: { \r\n height: '40px', \r\n textAlign: 'center',\r\n verticalAlign: 'middle',\r\n lineHeight: '40px',\r\n margin: \"1px \" + globales.tabla.marginright + \"px 0px \" + globales.tabla.marginleft + \"px\", \r\n marginBottom: '10px'\r\n},\r\n});\r\nconst widthTable = !movil ? window.screen.width - (globales.tabla.marginleft + globales.tabla.marginright) : 1336;\r\nconst columns = [ \r\n {name: 'ID_SECCION_CLIENTE', title: 'ID_SECCION_CLIENTE'},\r\n {name: 'CODIGO_CURSO', title: 'Código'},\r\n {name: 'DESCRIPCION_CURSO', title: 'Descripción'},\r\n {name: 'MODALIDAD', title: 'Modalidad'},\r\n {name: 'CREDITOS', title: 'Créditos'},\r\n {name: 'MONTO', title: 'Monto'},\r\n {name: 'DESCRIPCION_NIVEL', title: 'DESCRIPCION_NIVEL'},\r\n];\r\nconst columnExtensions = [\r\n { columnName: 'CODIGO_CURSO', width: widthTable * 0.12 },\r\n { columnName: 'DESCRIPCION_CURSO', width: widthTable * 0.33 }, \r\n { columnName: 'MODALIDAD', width: widthTable * 0.13, align: 'center'},\r\n { columnName: 'CREDITOS', width: widthTable * 0.09, align: 'center'}, \r\n { columnName: 'MONTO', width: widthTable * 0.10, align: 'center'}, \r\n { columnName: 'DESCRIPCION_NIVEL', width: 0}, \r\n];\r\n\r\nconst settingFilter = [\r\n { columnName: 'MONTO',\r\n predicate: (value, filter, row) => {\r\n value = funciones.formatCurrency(value); \r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n\r\n },\r\n];\r\n\r\nconst GroupCellContent = ({ column, row }) => { \r\n return({row.value});\r\n}\r\nconst TableSelectionCellComponent = (estado, checkId) => ({style, ...props}) =>{\r\n \r\n if (estado && props.row.ID_SECCION_CLIENTE === checkId)\r\n {\r\n return (\r\n \r\n );\r\n } \r\n \r\n if (!Boolean(props.row.MODIFICABLE))\r\n { \r\n return (\r\n \r\n );\r\n }\r\n \r\n return ();\r\n}\r\nconst VirtualTable_cellComponent = (props) => { \r\n \r\n if (props.column.name === 'MONTO')\r\n {\r\n return (\r\n {funciones.formatCurrency(props.row.MONTO)} \r\n );\r\n }\r\n \r\n \r\n return ();\r\n \r\n}\r\nconst ColumnFixed_cellComponent = ({ showRightDivider, showLeftDivider, ...props}) => { \r\n \r\n if (props.tableRow.key === \"Symbol(filter)\"){\r\n return (\r\n
\r\n );\r\n }\r\n\r\n return ();\r\n}\r\n\r\nexport default withStyles(styles) ( \r\nclass App extends React.Component {\r\n\r\ntablaRef = React.createRef();\r\n\r\n constructor (props) {\r\n super(props);\r\n this.l=props.l\r\n this.e=props.e\r\n this.i=props.i\r\n this.state = {\r\n isLoggin : undefined,\r\n heightTableMain: 0,\r\n loadingMain: true,\r\n rows: [],\r\n openBackDrop: false,\r\n expandedGroups: [],\r\n selection: [],\r\n loadingCheck: false,\r\n };\r\n}\r\n\r\nobtener_cursos = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/extraordinario/cursos/${tokenInfo.user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ loadingMain: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n let expandedGroups = [];\r\n let selection = [];\r\n rows.map((item)=>{\r\n if (!expandedGroups.find(x => x === item.DESCRIPCION_NIVEL))\r\n expandedGroups.push(item.DESCRIPCION_NIVEL); \r\n\r\n if (Boolean(item.CHECKED) && !selection.find(x => x.ID_SECCION_CLIENTE === item.ID_SECCION_CLIENTE))\r\n selection.push(item.ID_SECCION_CLIENTE);\r\n\r\n return item;\r\n })\r\n\r\n this.setState({ rows, \r\n selection,\r\n expandedGroups, \r\n loadingMain: false }); \r\n \r\n });\r\n\r\n}\r\n\r\nchangeExpandedGroups = expandedGroups =>{\r\n this.setState({ expandedGroups });\r\n}\r\n\r\nchangeSelection = selection =>{ \r\n \r\n checkId = funciones.getIdRowChecking(selection, this.state.selection); \r\n const tipo_proceso = selection.length > this.state.selection.length ? 1 : 2;\r\n const accion = tipo_proceso === 1 ? \"marcado\" : \"desmarcado\";\r\n\r\n this.setState({ loadingCheck: true }, ()=>{\r\n \r\n new Request\r\n .post(`${globales.ip}/extraordinario`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ id_seccion_cliente: checkId,\r\n tipo_proceso, \r\n cuenta_alumno: tokenInfo.user, \r\n ad_usuario: tokenInfo.user })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ loadingCheck: false }, ()=> { \r\n funciones.showToast('e', 'No hay conexión'); \r\n });\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n \r\n this.setState({ loadingCheck: false }, ()=>{\r\n if (rows[0].RESP === 'OK')\r\n this.setState({ selection }, ()=>{\r\n funciones.showToast(\"s\", \"Ha \" + accion + \" el examen extraordinario\");\r\n });\r\n else\r\n funciones.showToast(\"w\", rows[0].RESP);\r\n }); \r\n\r\n });\r\n\r\n});\r\n\r\n //console.log(checkId);\r\n \r\n //this.setState({ selection });\r\n}\r\n\r\ncomponentDidMount() { //Load\r\n \r\n tokenInfo = Auth.getProfile(); //Token decodificado\r\n\r\n this.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{ \r\n \r\n if (tokenInfo.plataforma === 2) //Usuario estudiante\r\n {\r\n this.obtener_cursos(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n\r\n }); \r\n \r\n}\r\n\r\ncomponentWillUnmount() { //Cerrar Subcripciones\r\n\r\n}\r\n\r\nrender() {\r\nconst { classes } = this.props;\r\n\r\n if (this.state.isLoggin === true)\r\n {\r\n return (\r\n \r\n \r\n \r\n {\r\n (() => {\r\n \r\n if (tokenInfo.plataforma === 2) //Si es Usuario Admin\r\n {\r\n \r\n return (\r\n \r\n \r\n \r\n Cursos registrados para Examen Extraordinario\r\n \r\n \r\n
\r\n row.ID_SECCION_CLIENTE}\r\n VirtualTable_cellComponent={VirtualTable_cellComponent}\r\n height={this.state.heightTableMain} \r\n loading={this.state.loadingMain}\r\n enabledFilterRows \r\n showSelectionColumn \r\n groupContentComponent={GroupCellContent}\r\n tableSelectionCellComponent={TableSelectionCellComponent(this.state.loadingCheck, checkId)}\r\n Selection={this.state.selection}\r\n ChangeSelection={this.changeSelection}\r\n leftColumnsFixed={[TableSelection.COLUMN_TYPE]}\r\n columnFixedCellComponent={ColumnFixed_cellComponent} \r\n FilteringColumnExtensions={settingFilter} \r\n /> \r\n
\r\n \r\n \r\n\r\n
\r\n );\r\n\r\n } \r\n \r\n })()\r\n\r\n }\r\n\r\n
\r\n
\r\n );\r\n }\r\nelse if (this.state.isLoggin === false)\r\n{\r\n //Auth.logout();\r\n window.location.reload();\r\n return; //(())\r\n}\r\nreturn null;\r\n\r\n}//FIN RENDER\r\n}\r\n\r\n)\r\n","import React from 'react';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {globales, funciones} from '../../global';\r\nimport AuthService from '../../AuthService';\r\nimport Request from 'superagent';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport {withStyles} from '@material-ui/core/styles';\r\nimport DialogTitle from '@material-ui/core/DialogTitle';\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport CloseIcon from '@material-ui/icons/Close';\r\nimport DialogActions from '@material-ui/core/DialogActions';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport {Table, TableSummaryRow} from '@devexpress/dx-react-grid-material-ui';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport Select from '../../components/Select';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport Button from '@material-ui/core/Button';\r\nimport Divider from '@material-ui/core/Divider';\r\nimport CheckIcon from '@material-ui/icons/Check';\r\n\r\nlet Auth = new AuthService();\r\nlet tokenInfo = [];\r\n\r\nvar movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\nconst styles = theme => ({\r\n\r\npaper: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '700px' : undefined, \r\n maxWidth: !movil ? '700px' : undefined,\r\n minHeight: !movil ? '420px' : undefined, \r\n maxHeight: !movil ? '420px' : undefined\r\n}, \r\ncloseButton: {\r\n position: 'absolute',\r\n right: theme.spacing(1),\r\n top: theme.spacing(1),\r\n color: theme.palette.grey[500],\r\n},\r\nbackdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n},\r\ncontainer: {\r\n display: 'flex',\r\n justifyContent: !movil ? 'center' : undefined, \r\n alignItems: !movil ? \"center\" : \"start\",\r\n flexDirection: !movil ? \"row\" : \"column\",\r\n paddingTop: \"2px\",\r\n paddingBottom: \"5px\", \r\n paddingLeft: !movil ? theme.spacing(4) : theme.spacing(1),\r\n paddingRight: !movil ? theme.spacing(4) : theme.spacing(1), \r\n},\r\nformControlSelect: {\r\n width: movil ? '100%' : '430px', \r\n marginLeft: !movil ? theme.spacing(1) : undefined, \r\n textAlign: 'left',\r\n}\r\n});\r\nconst widthTable = !movil ? window.screen.width - (globales.tabla.marginleft + globales.tabla.marginright) : 1336;\r\nconst columns = [ \r\n { name: 'ID_FACTURA', title: 'N° Factura'},\r\n { name: 'FECHA_PROCESO', title: 'Fecha proceso'},\r\n { name: 'DESCRIPCION', title: 'Descripción'},\r\n { name: 'MONTO', title: 'Monto'},\r\n { name: 'DETALLE_CUOTAS', title: 'Detalle de cuotas'},\r\n];\r\nconst columnExtensions = [ \r\n { columnName: 'ID_FACTURA', width: widthTable * 0.11 }, \r\n { columnName: 'FECHA_PROCESO', width: widthTable * 0.12, align: \"center\"}, \r\n { columnName: 'DESCRIPCION', width: widthTable * 0.30 },\r\n { columnName: 'MONTO', width: widthTable * 0.11, align: \"center\" },\r\n { columnName: 'DETALLE_CUOTAS', width: widthTable * 0.15, align: \"center\" }, \r\n];\r\nconst totalSummaryItems = [\r\n { columnName: \"MONTO\", type: \"sum\" },\r\n];\r\n\r\nconst columnsDetalle = [ \r\n { name: 'DESCRIPCION', title: 'Descripción'},\r\n { name: 'MONTO', title: 'Monto'},\r\n { name: 'MORA', title: 'Mora'},\r\n { name: 'BECA', title: 'Beca/Desc.'},\r\n { name: 'CREDITO', title: 'Crédito'},\r\n { name: 'PAGAR', title: 'Pagar'},\r\n { name: 'FINAN', title: 'Finan.'},\r\n];\r\nconst columnExtensionsDetalle = [\r\n { columnName: 'DESCRIPCION', width: widthTable * 0.9 * (!movil ? 0.30 : 0.28) },\r\n { columnName: 'MONTO', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" }, \r\n { columnName: 'MORA', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" }, \r\n { columnName: 'BECA', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" }, \r\n { columnName: 'CREDITO', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" },\r\n { columnName: 'PAGAR', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" }, \r\n { columnName: 'FINAN', width: widthTable * 0.9 * (!movil ? 0.10 : 0.09), align: \"center\" },\r\n];\r\n\r\nconst columnsCuotas=[\r\n { name: 'DESCRIPCIÓN', title: 'Descripción' },\r\n { name: 'FECHA DE PAGO', title: 'Fecha de pago' },\r\n { name: 'MONTO', title: 'Monto' },\r\n];\r\nconst columnExtensionsCuotas = [\r\n { columnName: 'DESCRIPCIÓN', width: 400 },\r\n { columnName: 'FECHA DE PAGO', width: 110, align: 'center' },\r\n { columnName: 'MONTO', width: 110, align: 'right' },\r\n];\r\n\r\nconst RowId = row => row.ID_FACTURA;\r\nconst VirtualTable_cellComponent = (detalleCuotas) => (props) => { \r\n \r\n if (props.column.name === 'FECHA_PROCESO'){\r\n return (\r\n {funciones.getTime(props.row.FECHA_PROCESO, 0)}\r\n \r\n );\r\n }\r\n\r\n if (props.column.name === \"DETALLE_CUOTAS\" && props.row.ID_TIPO_TRANSACCION === 5){\r\n return (\r\n \r\n );\r\n } \r\n\r\n if (props.column.name === \"MONTO\" || props.column.name === \"MORA\" || props.column.name === \"BECA\" || props.column.name === \"CREDITO\" || props.column.name === \"PAGAR\" || props.column.name === \"FINAN\"){\r\n \r\n const simbolo = funciones.isEmpty(props.row.SIMBOLO) ? \"\" : props.row.SIMBOLO + \" \"; \r\n\r\n return (\r\n {simbolo + funciones.formatCurrency(props.row[props.column.name])}\r\n );\r\n }\r\n\r\n return ();\r\n \r\n}\r\n\r\nexport default withStyles(styles) ( \r\nclass App extends React.Component {\r\n\r\ntablaRef = React.createRef();\r\ntablaDialogRef = React.createRef();\r\ndialogActionRef = React.createRef();\r\n\r\n constructor (props) { \r\n super(props); \r\n this.cargar=props.cargar\r\n this.state = {\r\n isLoggin : undefined,\r\n heightTableMain: 0,\r\n loadingMain: false,\r\n rows: [],\r\n itemsModPago: null,\r\n selectedModPago: '',\r\n loadingModPago: true,\r\n expandedRowIds: [],\r\n loadingDetail: false,\r\n openModal: false,\r\n heightTableDialog: 0,\r\n loadingCuotas: false,\r\n rowsCuotas: [],\r\n };\r\n this.RowDetail = ({ row }) => {\r\n \r\n const desplegados = this.facturaDetalle.length;\r\n const id_factura = this.facturaDetalle[desplegados-1];\r\n const styleDiv = { minWidth: 40, marginLeft: 5, marginTop: 5, position: \"absolute\", left: 0 }\r\n \r\n return(
\r\n {this.state.loadingDetail && id_factura === row.ID_FACTURA ?
:
}\r\n
\r\n \r\n
\r\n
);\r\n }\r\n this.ItemComponent = ({children, ...props})=>{\r\n const monedas = this.monedas(); \r\n\r\n if (monedas.length === 0)\r\n children = funciones.formatCurrency(parseFloat(children));\r\n else if (monedas.length === 1)\r\n children = monedas[0] + \" \" + funciones.formatCurrency(parseFloat(children));\r\n else\r\n children = this.calcular_totales(monedas);\r\n \r\n return ();\r\n }\r\n this.facturaDetalle = [];\r\n}\r\n\r\nobtener_mod_pagos = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/detallePago/modalidades_pago/${tokenInfo.user}/${tokenInfo.user}/${tokenInfo.plataforma}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n { \r\n window.location.reload();\r\n return; \r\n }\r\n \r\n this.setState({ loadingModPago: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n\r\n }\r\n \r\n let modalidades = JSON.parse(res.text);\r\n modalidades = modalidades.filter(x => x.VISIBLE_WEB || x.ID_MODALIDAD_CLIENTE);\r\n if (modalidades.find(x => x.ID_MODALIDAD_CLIENTE && !x.VISIBLE_WEB))\r\n modalidades = modalidades.filter(x => x.ID_MODALIDAD_CLIENTE && !x.VISIBLE_WEB);\r\n\r\n let selectedModPago = '';\r\n const itemsModPago = modalidades.map((item, i) =>{\r\n if (item.ID_MODALIDAD_CLIENTE) selectedModPago = item.MOD_PAGO_ID;\r\n return {item.MOD_PAGO_DESCRIPCION} \r\n });\r\n\r\n this.setState({ itemsModPago, \r\n loadingModPago: false }, ()=>{\r\n this.handleChangeModPago({ target: { value: selectedModPago }});\r\n }); \r\n \r\n});\r\n\r\n}\r\n\r\nobtener_facturas = (id_mod_pago_nueva, id_mod_pago)=>{\r\n\r\nif (id_mod_pago === \"\") id_mod_pago = id_mod_pago_nueva;\r\n\r\nnew Request\r\n .post(`${globales.ip}/detallePago/modalidad`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ cuenta_alumno: tokenInfo.user, \r\n id_mod_pago_nueva })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ rows: [], expandedRowIds: [], selectedModPago: id_mod_pago, loadingMain: false }, ()=> { \r\n funciones.showToast('e', 'No hay conexión'); \r\n });\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n this.setState({ loadingMain: false }, ()=>{\r\n if (rows.length > 0 && rows[0].RESP === undefined)\r\n this.setState({ expandedRowIds: [], rows });\r\n else if (rows.length > 0)\r\n this.setState({ selectedModPago: id_mod_pago }, ()=>{\r\n funciones.showToast('w', rows[0].RESP);\r\n });\r\n else\r\n this.setState({ expandedRowIds: [], rows }); \r\n }); \r\n\r\n});\r\n\r\n}\r\n\r\nobtener_detalle= (id_factura)=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/detallePago/detalle/${id_factura}/${tokenInfo.user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.facturaDetalle = this.facturaDetalle.filter(x => x !== id_factura);\r\n const expandedRowIds = this.state.expandedRowIds.slice().filter(x => x !== id_factura);\r\n this.setState({ expandedRowIds, loadingDetail: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rowsDetail = JSON.parse(res.text); \r\n const rows = this.state.rows.slice().map((item)=>{\r\n if (item.ID_FACTURA === id_factura)\r\n item.DETALLE_FACTURA=rowsDetail; \r\n\r\n return item;\r\n });\r\n \r\n this.setState({ rows, loadingDetail: false }); \r\n \r\n });\r\n\r\n}\r\n\r\nobtener_detalle_cuotas= ()=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/detallePago/cuotas/${tokenInfo.user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 15000, deadline: 30000, }) \r\n .end((err, res) => {\r\n \r\n if (err) { \r\n \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n \r\n window.location.reload();\r\n return;\r\n \r\n }\r\n \r\n this.setState({ loadingCuotas: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rowsCuotas = JSON.parse(res.text).filter(x => !x.DESCRIPCIÓN.toLowerCase().includes(\"matr\")); \r\n this.setState({ rowsCuotas, loadingCuotas: false }); \r\n \r\n });\r\n\r\n}\r\n\r\nhandleChangeModPago = (event)=>{ \r\n const id_modalidad_pago = this.state.selectedModPago; \r\n this.setState({ selectedModPago: event.target.value,\r\n loadingMain: true }, ()=>{\r\n this.facturaDetalle = [];\r\n this.obtener_facturas(event.target.value, id_modalidad_pago);\r\n });\r\n}\r\n\r\nonExpandedRowDetailIdsChange=(expandedRowIds)=>{ \r\n const id_factura = funciones.getIdRowChecking(expandedRowIds, this.state.expandedRowIds);\r\n\r\n if (expandedRowIds.length > this.state.expandedRowIds.length && !this.facturaDetalle.find(x => x === id_factura)){\r\n this.facturaDetalle.push(id_factura);\r\n this.setState({ loadingDetail: true, expandedRowIds }, ()=>{\r\n this.obtener_detalle(id_factura);\r\n });\r\n }\r\n else\r\n this.setState({ expandedRowIds });\r\n}\r\n\r\ndetalle_cuotas = ()=>{\r\nthis.setState({ rowsCuotas: [], openModal: true });\r\n}\r\n\r\nhandleClose = ()=>{\r\n this.setState({ openModal: false });\r\n}\r\n\r\nonEntering = ()=>{\r\n\r\nthis.setState({ loadingCuotas: true, \r\n heightTableDialog: funciones.getHeightTableDialog(movil, this.tablaDialogRef, this.dialogActionRef, 3) }, ()=>{\r\n this.obtener_detalle_cuotas();\r\n});\r\n\r\n}\r\n\r\nmonedas = ()=>{\r\n\r\nlet monedas = [];\r\n\r\nthis.state.rows.map((item)=>{ \r\n if (!monedas.find(x => x === item.SIMBOLO))\r\n monedas.push(item.SIMBOLO);\r\n \r\n return item;\r\n});\r\n\r\nreturn monedas;\r\n\r\n}\r\n\r\ncalcular_totales = (monedas)=>{\r\n\r\nlet rowsMoneda = [];\r\nlet monto = 0;\r\nlet resultado = \"\";\r\n\r\nmonedas.map((moneda, index)=>{\r\n \r\n monto = 0;\r\n rowsMoneda = this.state.rows.filter(x => x.SIMBOLO === moneda);\r\n rowsMoneda.map((item) => {\r\n monto += item.MONTO;\r\n return item;\r\n }); \r\n \r\n resultado += moneda + \" \" + funciones.formatCurrency(monto) + (monedas.length === index + 1 ? \"\" : \" | \");\r\n\r\n return moneda;\r\n});\r\n\r\nreturn resultado;\r\n\r\n}\r\n\r\npagar = ()=>{ \r\n this.cargar({reporte: false, i:true, e:true, l:true, pagina: 'Pago_Linea', nombre: 'Pago en Línea', descripcion:'Pago en Línea', icono: 'PaymentIcon', manual: false})();\r\n}\r\n\r\ncomponentDidMount() {\r\n \r\n tokenInfo = Auth.getProfile(); //Token decodificado\r\n\r\n this.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{ \r\n \r\n if (tokenInfo.plataforma === 2) //Usuario estudiante\r\n {\r\n this.obtener_mod_pagos(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n\r\n }); \r\n \r\n}\r\n\r\nrender() {\r\nconst { classes } = this.props;\r\n\r\n if (this.state.isLoggin === true)\r\n {\r\n return (\r\n \r\n \r\n \r\n {\r\n (() => {\r\n \r\n if (tokenInfo.plataforma === 2) \r\n {\r\n \r\n return (\r\n \r\n
\r\n