{"version":3,"sources":["pages/registro/actividades.js","pages/registro/aprobarAdmision.js"],"names":["Auth","AuthService","tokenInfo","movil","test","navigator","userAgent","widthTable","window","screen","width","globales","tabla","marginleft","marginright","columns","name","title","columnExtensions","columnName","align","grouping","settingFilter","predicate","value","filter","row","funciones","getTime","IntegratedFiltering","defaultPredicate","RowId","ID_ACTIVIDADES_X_AREA","VirtualTable_cellComponent","props","column","_jsx","Table","Cell","children","FECHA","HORA_INICIO","HORA_FIN","withStyles","theme","closeButton","position","right","spacing","top","color","palette","grey","paper","borderRadius","border_dialog","minWidth","undefined","maxWidth","height","maxHeight","popper","zIndex","textField","marginTop","fieldset","textAlign","paddingLeft","paddingRight","paddingTop","border","legend","marginLeft","backdrop","flexDirection","paperConfirm","React","Component","constructor","super","tablaRef","createRef","dialogActionRef","horasInicioRef","minutosInicioRef","merInicioRef","horasFinRef","minutosFinRef","merFinRef","vtRef","descripcionRef","changeExpandedGroups","expandedGroups","this","setState","blockTooltip","obtenerCategorias","Request","get","ip","set","getToken","retry","timeout","response","deadline","end","err","res","toString","substr","location","reload","showToast","rows","JSON","parse","text","length","categoriasDesc","map","item","find","x","ID_CATEGORIA","push","DESCRIPCION_CATEGORIA","splitWords","DESCRIPCION_CATEGORIA_COMPLETA","PUNTAJE","optionAutocomplete","addEvent","descripcion","valueAutoComplete","checkedDate","checkedTime","defaultHorasI","defaultMinutosI","defaultMeridianoI","defaultHorasF","defaultMinutosF","defaultMeridianoF","selectedDate","Date","actionModal","openModal","editEvent","state","idRowSelected","infoRowSelected","DESCRIPCION_ACTIVIDAD","getTimeParcial","deleteEvent","openModalConfirm","handleClose","onEntering","document","getElementById","focus","onChangeAutocomplete","event","newValue","handleDateChange","date","handleCheckChange","target","checked","handleCheckTimeChange","handleCloseConfirm","handleOK","isEmpty","current","_horaInicio","getTimeSelect","_horaFin","idActividad","idCategoria","trim","fecha","getDateSelect","horaInicio","horaFin","openBackDrop","post","send","tipo_proceso","id_actividad","id_categoria","hora_inicio","hora_fin","ad_usuario","user","RESP","ID_ACTIVIDAD_X_AREA","newStructure","refreshTable","refreshGroups","refreshRows","moveScroll","scrollTo","heightTableMain","scrollToRow","changeFilters","filters","handleRowClick","idRow","onMouseEvents","obtener_actividades","loadingMain","l","e","i","isLoggin","botones","icono","toolt","nombre","escritura","onclick","display","colores","naranja","botones_agregar","botones_eliminar","componentDidMount","getProfile","plataforma","getHeightTableMain","heightTable","render","classes","Fragment","Paper","className","square","_jsxs","BarraBotones","ref","style","marginleft_movil","marginRight","marginright_movil","CustomTable","Columns","Rows","Grouping","TableColumnExtensions","columnWidths","DefaultHiddenColumnNames","ExpandedGroups","ChangeExpandedGroups","getRowId","loading","rowSelected","rowClick","enabledFilterRows","tableGroupRow_cellComponent","tableRow","TableGroupRow","Tooltip","placement","arrow","onMouseEnter","onMouseLeave","onFiltersChange","FilteringColumnExtensions","Dialog","open","TransitionProps","fullScreen","DialogTitle","Typography","component","variant","IconButton","onClick","size","CloseIcon","fontSize","DialogContent","overflowY","Autocomplete","id","options","getOptionLabel","option","renderInput","params","TextField","label","fullWidth","required","InputLabelProps","shrink","renderOption","onChange","PaperComponent","elevation","multiline","rowsMax","inputProps","maxLength","defaultValue","Box","margin","padding","FormControlLabel","control","Checkbox","MuiPickersUtilsProvider","utils","DateFnsUtils","locale","esLocale","KeyboardDatePicker","disableToolbar","inputVariant","format","InputProps","readOnly","KeyboardButtonProps","minDateMessage","disabled","autoOk","marginBottom","SelectTime","horasRef","minutosRef","merRef","defaultHoras","defaultMinutos","defaultMeridiano","formStyle","DialogActions","gutterBottom","Backdrop","CircularProgress","invisible","transitionDuration","TableGroupRow_cellComponent","movil_pequeño","timeToast","isVisibleRowSelected","colorRowSelected","selection","alternateColorRow1","alternateColorRow2","TableRowsIndexer","PureComponent","Plugin","Template","_ref","restParams","TemplateConnector","_ref2","type","rowIndex","ID_ADMISION","indexOf","TemplatePlaceholder","getRowIdAcademico","INSTITUTO","getRowIdPlanes","ID_PLAN","getRowIdFamilia","TIPO_PARENTESCO","currentprimerApellido","currentsegundoApellido","currentnombres","currentnombreCompleto","currentidentidad","currentdireccion","currenttelefono1","currenttelefono2","currentcorreoPersonal","currentobservaciones","currentcompania","currentcompaniaDirecion","currentcompaniaTelefono","currentcompaniaCorreo","currentcompaniaPuesto","currentcompaniaDepartamento","currentcompaniaNivel","currentcompaniaComentarios","currentfechaNac","currentfechaVencimiento","currentfechaIngreso","BodyComponent","TableBody","styles","cajaTabs","select","paperTabla","paperInfo","form","columnsPlanes","columnsAcademico","columnsFamiliar","tableColumnExtensions","wordWrapEnabled","tableColumnExtensionsPlanes","tableColumnExtensionsAcademico","tablaPlanesRef","tablaInstitutoRef","tablaFamiliaRef","primerApellidoRef","segundoApellidoRef","nombresRef","nombreCompletoRef","identidadRef","direccionRef","telefono1Ref","telefono2Ref","correoPersonalRef","observacionesRef","companiaRef","companiaDirecionRef","companiaTelefonoRef","companiaCorreoRef","companiaPuestoRef","companiaDepartamentoRef","companiaNivelRef","companiaComentariosRef","fechaNacRef","fechaVencimientoRef","fechaIngresoRef","guardar","authorization","ex","changeSelection","cerrarmodal","modalEliminarSolicitud","modalAprobarSolicitud","preventDefault","eventoSplat","abrirmodal_eliminar","abrirModalCrear","cambiaCampoEstudio","campusEstudioSelected","cambiaSelectPaisNac","paisNacSelection","deptoNacSelection","municipioNacSelection","rowsDepartamentoNac","rowsMunicipioNac","llenarCombosconFiltro","cambiaSelectDeptoNac","cambiaSelectMunicipioNac","cambiaIdentificacionTipo","identificacionTipoSelection","cambiaEstadoCivilTipo","estadoCivilTipoSelection","cambiaPaisAct","paisActSelection","deptoActSelection","municipioActSelection","coloniaActSelection","rowsDepartamentoAct","rowsMunicipioAct","rowsColoniaAct","cambiaDeptoAct","cambiaMunicipioAct","cambiaColoniaAct","cambiaSucursal","sucursalSelection","cambiaEstatusAlumno","estatusAlumnoSelection","cambiaPromocion","promocionSelection","cambiaDescuento","descuentoSelection","cambiaGenero","genero","cambiaPrimerApellido","toUpperCase","cambiaSegundoApellido","cambiaNombres","cambiaNombreCompleto","cambiaIdentidad","cambiaDireccion","cambiaTelefono1","cambiaTelefono2","cambiaCorreoPersonal","cambiaObservaciones","cambiaCompania","cambiaCompaniaDireccion","cambiaCompaniaTelefono","cambiaCompaniaCorreo","cambiaCompaniaPuesto","cambiaCompaniaDepto","cambiaCompaniaNivel","cambiaCompaniaComentarios","eliminarSolicitud","tipoConsulta","idAdmision","_this","actualizarbarra","loggedIn","then","b","TIPO_SELECT","USUARIO2","USUARIO","tmp","ERROR","valueTab","rowsPlan","rowsInstituto","rowsFamilia","disableBtnCrearCuenta","disableBtnEliminar","recargarSolicitantes","validarIdentidad","accionesBotones","usuario","cuenta","actualizarcircular","heightTablePlan","heightTableFamilia","heightTableInstituto","filteringColumnExtensions","expandedRowIds","cuentaCreada","defaultHiddenColumnNames","defaultHiddenColumnNamesPlanes","index","idPlan","idControlMatricula","idUsuario","rowsCampusEstudio","rowsPaisAct","rowsPaisNac","rowsIdentificacionTipo","rowsEstadoCivilTipo","rowsSucursal","rowsEstatusAlumno","rowsPromocion","rowsDescuento","primerApellido","segundoApellido","nombres","nombreCompleto","fechaNac","identidad","telefono1","telefono2","correoInstitucional","correoPersonal","cuentaAlumno","fechaVencimiento","observaciones","compania","companiaTelefono","companiaCorreo","companiaPuesto","companiaDepartamento","companiaFechaIngreso","companiaComentarios","direccion","companiaDirecion","companiaNivel","trow","TableRow","_ref4","highlighted","selectByRowClick","odd","r","Row","llenarInfo","clickselection","cursor","backgroundColor","trowInstituto","_ref6","trowPlanes","_ref5","trowFamilia","_ref7","columnHeader_rowComponent","_ref3","encabezado","timeOut","toastr","newestOnTop","debug","showDuration","toLowerCase","info","success","warning","error","ID_SELECT","Datos","datos","MenuItem","dense","ID_SUCURSAL_AM","DESCRIPCION_SUCURSAL","ID_PAIS","NOMBRE_PAIS","ID_TIPO_IDENTIFICACION","TIPO_IDENTIFICACION","ID_ESTADO","DESCRIPCION","ID_SUCURSAL","ID_ESTATUS","ID_PROMOCION","ID_BECA_DESC","tipo","idTipo","tipoSelect","idSelectSiguiente","TIPO","ID_FILTRO","ID","NOMBRE","datosSolicitante","replace","llenarGrids","CUENTA_NUEVA","dominioCorreo","ID_CONTROL_MATRICULA","ID_USUARIO","insertarCliente","CUENTA_ALUMNO","APELLIDO1","APELLIDO2","NOMBRES","NOMBRE_COMPLETO","ID_MUNICIPIO_NAC","FECHA_NACIMIENTO","SEXO","IDENTIDAD","DIRECCION","ID_MUNICIPIO","TELEFONO1","TELEFONO2","EMAIL1","EMAIL2","ID_ESTATUS_ALUMNO","OBSERVACIONES","COMPANIA","TELEFONO_COMPANIA","PUESTO","COMENTARIOS","ID_COLONIA","FECHA_VENCIMIENTO","cambioTab","innerHeight","getBoundingClientRect","propiedadesTab","TabPanel","other","role","hidden","p","botones_crear","onClose","disableEnforceFocus","disableAutoFocus","FormLabel","background","paddingBottom","Divider","open_eliminar","open_guardar","open_modificar","Grid","xs","container","Selection","ChangeSelection","RowComponent","standarPlugin","showSelectionColumn","AppBar","Tabs","scrollButtons","Tab","textTransform","Select","Label","Selected","Multiple","Style","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","Outlined","labelWidth","RadioGroup","Radio","onKeyDown","onlyNumbers","inputMode","companiaDireccionRef","cambiaCompaniaFechaIngreso","Button","startIcon","DeleteOutlineIcon","BorderColorIcon","logout"],"mappings":"qHAAA,gRA+BA,IAAIA,EAAO,IAAIC,IACXC,EAAY,GAEhB,IAAIC,EAAM,iEAAiEC,KAAKC,UAAUC,WAE1F,MAiDMC,EAAcJ,EAAyF,KAAjFK,OAAOC,OAAOC,OAASC,IAASC,MAAMC,WAAaF,IAASC,MAAME,aACxFC,EAAW,CACf,CAAEC,KAAM,wBAAyBC,MAAO,gBACxC,CAAED,KAAM,wBAAyBC,MAAO,+BACxC,CAAED,KAAM,QAASC,MAAO,SACxB,CAAED,KAAM,cAAeC,MAAO,SAC9B,CAAED,KAAM,WAAYC,MAAO,SAC3B,CAAED,KAAM,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ciF,GACdxF,SAAU1M,KAAK8Y,0BACf/L,WAAY,CACV/D,IAAKhJ,KAAKyU,iCAOpB3L,eAACib,IAAI,CAACE,WAAS,EAAC9mB,QAAS,EAAET,SAAA,CACzBH,cAACwnB,IAAI,CAACniB,MAAI,EAACoiB,GAAI,EAAEtnB,SACfH,cAACupB,IAAM,CACL7c,MAAO,CAAE0b,cAAe,QACxBvZ,QAAQ,WACR/N,MAAM,UACNkO,KAAK,SAELwa,UAAWxpB,cAACypB,IAAiB,IAC7B1a,QAAStL,KAAKsV,oBACdzJ,GAAG,cACHwC,SAAUrO,KAAKsD,MAAM2W,mBAAmBvd,SACzC,wBAIHH,cAACwnB,IAAI,CAACniB,MAAI,EAACoiB,GAAI,EAAG/a,MAAO,CAAEnB,QAAS,QAASpL,SAa3CH,cAACupB,IAAM,CACL7c,MAAO,CAAE0b,cAAe,OAAOhmB,WAAY,QAC3CyM,QAAQ,WACR/N,MAAM,UACNkO,KAAK,SAELwa,UAAWxpB,cAAC0pB,IAAe,IAC3B3a,QAAStL,KAAKuV,gBACd1J,GAAG,iBACHwC,SAAUrO,KAAKsD,MAAM0W,sBAAsBtd,SAC5C,iCAYpB,EAhhCA,OAmhC4B,IAAxBsD,KAAKsD,MAAMiE,UACpBpN,EAAK+rB,cACLvrB,OAAOuG,SAASC,UAIX,IACT,G","file":"static/js/main~8ae3a0ba.625e70ec.chunk.js","sourcesContent":["import React from 'react';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {globales, colores, 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 BarraBotones from '../../components/Barra_menu';\r\nimport {Table, TableGroupRow} from '@devexpress/dx-react-grid-material-ui';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport DialogActions from '@material-ui/core/DialogActions';\r\nimport DialogContent from '@material-ui/core/DialogContent';\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 IconButton from '@material-ui/core/IconButton';\r\nimport Autocomplete from '@material-ui/lab/Autocomplete';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport { KeyboardDatePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport DateFnsUtils from \"@date-io/date-fns\";\r\nimport esLocale from \"date-fns/locale/es\";\r\nimport 'date-fns';\r\nimport Box from '@material-ui/core/Box';\r\nimport SelectTime from '../../components/SelectTime';\r\nimport Backdrop from '@material-ui/core/Backdrop';\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\n\r\nconst styles = theme => ({\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\npaper: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '460px' : undefined, \r\n maxWidth: !movil ? '460px' : undefined,\r\n height: !movil ? '580px' : undefined, \r\n maxHeight: !movil ? '98%' : undefined\r\n},\r\npopper: {\r\n zIndex: 400500\r\n},\r\ntextField: {\r\n maxWidth: '100%',\r\n marginTop: theme.spacing(2), \r\n},\r\nfieldset: {\r\n textAlign: 'left', \r\n paddingLeft: 15, \r\n paddingRight: 15, \r\n paddingTop: 5,\r\n marginTop: 10,\r\n borderRadius:4,\r\n border: '#C9C9C9 solid 1px', \r\n height: 'auto',\r\n},\r\nlegend: { \r\n marginLeft: -8, \r\n paddingLeft: 5,\r\n paddingRight: 5, \r\n},\r\nbackdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n},\r\npaperConfirm: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '320px', \r\n maxWidth: '320px', \r\n},\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_ACTIVIDADES_X_AREA', title: 'ID_ACTIVIDAD' },\r\n { name: 'DESCRIPCION_ACTIVIDAD', title: 'Descripción de actividad' },\r\n { name: 'FECHA', title: 'Fecha' },\r\n { name: 'HORA_INICIO', title: 'Desde' }, \r\n { name: 'HORA_FIN', title: 'Hasta' },\r\n { name: 'DESCRIPCION_CATEGORIA', title: 'Categoría' },\r\n];\r\nconst columnExtensions = [\r\n { columnName: 'DESCRIPCION_ACTIVIDAD', width: widthTable * 0.58 },\r\n { columnName: 'FECHA', width: widthTable * 0.10, align: 'center'}, \r\n { columnName: 'HORA_INICIO', width: widthTable * 0.10, align: 'center'},\r\n { columnName: 'HORA_FIN', width: widthTable * 0.10, align: 'center'},\r\n { columnName: 'ID_ACTIVIDADES_X_AREA', width: 0}, \r\n { columnName: 'DESCRIPCION_CATEGORIA', width: 0}, \r\n];\r\nconst grouping = [{ columnName: 'DESCRIPCION_CATEGORIA' }];\r\n\r\nconst settingFilter = [ \r\n { columnName: 'FECHA',\r\n predicate: (value, filter, row) => {\r\n value = value !== null ? funciones.getTime(value, 0) : value; \r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n\r\n },\r\n { columnName: 'HORA_INICIO',\r\n predicate: (value, filter, row) => {\r\n value = value !== null ? funciones.getTime(value, 1) : value; \r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n\r\n },\r\n { columnName: 'HORA_FIN',\r\n predicate: (value, filter, row) => {\r\n value = value !== null ? funciones.getTime(value, 1) : value; \r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n\r\n },\r\n\r\n];\r\n\r\nconst RowId = row => row.ID_ACTIVIDADES_X_AREA;\r\nconst TableGroupRow_cellComponent = (categoriasDesc, blockTooltip, onMouseEvents)=> (props) =>{\r\n \r\n let descripcion = categoriasDesc.find(x => x.DESCRIPCION_CATEGORIA === props.tableRow.row.value);\r\n \r\n return (\r\n \r\n \r\n {props.tableRow.row.value}\r\n \r\n \r\n );\r\n \r\n}\r\nconst VirtualTable_cellComponent = (props) => { \r\n \r\n if (props.column.name === 'FECHA')\r\n {\r\n return ( \r\n { props.row.FECHA !== null ? funciones.getTime(props.row.FECHA, 0) : props.row.FECHA }\r\n );\r\n }\r\n \r\n if (props.column.name === 'HORA_INICIO')\r\n {\r\n return ( \r\n { props.row.HORA_INICIO !== null ? funciones.getTime(props.row.HORA_INICIO, 1) : props.row.HORA_INICIO }\r\n );\r\n }\r\n \r\n if (props.column.name === 'HORA_FIN')\r\n {\r\n return ( \r\n { props.row.HORA_FIN !== null ? funciones.getTime(props.row.HORA_FIN, 1) : props.row.HORA_FIN }\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\ndialogActionRef = React.createRef();\r\nhorasInicioRef = React.createRef();\r\nminutosInicioRef = React.createRef();\r\nmerInicioRef = React.createRef();\r\nhorasFinRef = React.createRef();\r\nminutosFinRef = React.createRef();\r\nmerFinRef = React.createRef();\r\nvtRef = React.createRef();\r\ndescripcionRef = 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 rows: [],\r\n loadingMain: true, \r\n expandedGroups: [],\r\n idRowSelected: null, \r\n openModal: false,\r\n actionModal: 0,\r\n valueAutoComplete: null,\r\n optionAutocomplete: [],\r\n selectedDate: new Date(),\r\n checkedDate: true,\r\n checkedTime: true,\r\n openBackDrop: false,\r\n openModalConfirm: false,\r\n categoriasDesc: [],\r\n blockTooltip: false,\r\n defaultHorasI: \"08\",\r\n defaultMinutosI: \"00\",\r\n defaultMeridianoI: 0,\r\n defaultHorasF: \"10\",\r\n defaultMinutosF: \"00\",\r\n defaultMeridianoF: 0,\r\n };\r\n this.descripcion= null;\r\n this.DESCRIPCION_CATEGORIA = null;\r\n this.botones = [\r\n {icono: 'Add', toolt: 'Agregar actividad', nombre: 'Agregar' ,escritura:true, onclick: this.addEvent, display: 'auto'},\r\n {icono: 'Edit', toolt: 'Modificar actividad', nombre: 'Modificar' ,escritura:true, onclick: this.editEvent, display:'auto'},\r\n {icono: 'Delete', toolt: 'Eliminar actividad', nombre: 'Eliminar' ,escritura:true, onclick: this.deleteEvent, color: colores.naranja, display: 'auto'}, \r\n ];\r\n this.botones_agregar =[\r\n {icono: 'Save', toolt: '', nombre: 'Guardar', onclick: this.handleOK, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleClose, display:'auto', color: 'red'},\r\n ];\r\n this.botones_eliminar =[\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar', onclick: this.handleOK , display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' ,onclick: this.handleCloseConfirm, display:'auto', color: 'red'},\r\n ];\r\n}\r\n\r\nchangeExpandedGroups = expandedGroups =>\r\n{\r\nthis.setState({ blockTooltip: true, expandedGroups });\r\n}\r\n\r\nobtenerCategorias = ()=> {\r\n\r\nnew Request\r\n.get(`${globales.ip}/actividades_coprogramaticas_grl/categorias`)\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 funciones.showToast('e', 'No hay conexión');\r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n\r\n if (rows.length > 0) \r\n { \r\n \r\n let categoriasDesc = [];\r\n\r\n rows.map((item)=>{\r\n \r\n if (!categoriasDesc.find(x => x.ID_CATEGORIA === item.ID_CATEGORIA))\r\n {\r\n categoriasDesc.push({ ID_CATEGORIA: item.ID_CATEGORIA, DESCRIPCION_CATEGORIA: funciones.splitWords(6,6, item.DESCRIPCION_CATEGORIA), DESCRIPCION_CATEGORIA_COMPLETA: item.DESCRIPCION_CATEGORIA + ' (' + item.PUNTAJE + ' pts)' });\r\n }\r\n return item;\r\n });\r\n \r\n this.setState({ categoriasDesc: categoriasDesc, optionAutocomplete: rows }); \r\n \r\n }\r\n else \r\n {\r\n this.setState({ categoriasDesc: [], optionAutocomplete: [] }); \r\n } \r\n \r\n });\r\n\r\n}\r\n\r\naddEvent = ()=>{\r\n\r\nthis.descripcion = null;\r\nthis.DESCRIPCION_CATEGORIA = null;\r\nthis.setState({ valueAutoComplete: null, \r\n checkedDate: true, \r\n checkedTime: true, \r\n defaultHorasI: \"08\",\r\n defaultMinutosI: \"00\",\r\n defaultMeridianoI: 0,\r\n defaultHorasF: \"10\",\r\n defaultMinutosF: \"00\",\r\n defaultMeridianoF: 0,\r\n selectedDate: new Date(),\r\n actionModal: 1, \r\n openModal: true });\r\n\r\n}\r\n\r\neditEvent = ()=>{\r\n\r\nif (this.state.idRowSelected === null)\r\n return;\r\n \r\n const infoRowSelected = this.state.rows.find(x => x.ID_ACTIVIDADES_X_AREA === this.state.idRowSelected); \r\n \r\n this.descripcion = infoRowSelected.DESCRIPCION_ACTIVIDAD;\r\n this.DESCRIPCION_CATEGORIA = infoRowSelected.DESCRIPCION_CATEGORIA;\r\n \r\n this.setState({ valueAutoComplete: this.state.optionAutocomplete.find(x => x.ID_CATEGORIA === infoRowSelected.ID_CATEGORIA),\r\n checkedDate: infoRowSelected.FECHA === null ? false : true,\r\n checkedTime: infoRowSelected.HORA_INICIO === null ? false : true,\r\n selectedDate: infoRowSelected.FECHA === null ? new Date() : new Date (infoRowSelected.FECHA.substr(0,19)),\r\n defaultHorasI: funciones.getTimeParcial(infoRowSelected.HORA_INICIO,\"H\", \"08\"),\r\n defaultMinutosI: funciones.getTimeParcial(infoRowSelected.HORA_INICIO,\"M\", \"00\"),\r\n defaultMeridianoI: funciones.getTimeParcial(infoRowSelected.HORA_INICIO,\"T\", 0),\r\n defaultHorasF: funciones.getTimeParcial(infoRowSelected.HORA_FIN,\"H\", \"10\"),\r\n defaultMinutosF: funciones.getTimeParcial(infoRowSelected.HORA_FIN,\"M\", \"00\"),\r\n defaultMeridianoF: funciones.getTimeParcial(infoRowSelected.HORA_FIN,\"T\", 0),\r\n actionModal: 2, \r\n openModal: true\r\n });\r\n\r\n}\r\n\r\ndeleteEvent = ()=>{\r\n\r\nif (this.state.idRowSelected === null)\r\n return;\r\n \r\n this.setState({ actionModal: 3, \r\n openModalConfirm: true\r\n });\r\n\r\n}\r\n\r\nhandleClose= ()=>{\r\nthis.setState({ openModal: false });\r\n}\r\n\r\nonEntering = ()=>{\r\nif (!movil)\r\ndocument.getElementById('ac_cat').focus();\r\n}\r\n\r\nonChangeAutocomplete = (event, newValue)=>{\r\nthis.setState({ valueAutoComplete: newValue });\r\n}\r\n\r\nhandleDateChange = (date) =>{\r\nthis.setState({ selectedDate: date });\r\n \r\n}\r\n\r\nhandleCheckChange = (event) => {\r\n this.setState({ checkedDate: event.target.checked });\r\n}\r\n\r\nhandleCheckTimeChange = (event) => {\r\n this.setState({ checkedTime: event.target.checked });\r\n}\r\n\r\nhandleCloseConfirm = ()=>{\r\nthis.setState({ openModalConfirm: false });\r\n\r\n}\r\n\r\nhandleOK =()=>{\r\n\r\nif (this.state.actionModal === 1 || this.state.actionModal === 2)\r\n{\r\n if (funciones.isEmpty(this.state.valueAutoComplete))\r\n { \r\n document.getElementById('ac_cat').focus();\r\n funciones.showToast('w', 'Debe seleccionar una categoría');\r\n return;\r\n }\r\n\r\n if (funciones.isEmpty(this.descripcionRef.current.value))\r\n {\r\n this.descripcionRef.current.focus();\r\n funciones.showToast('w', 'Ingrese la descripción');\r\n return;\r\n }\r\n\r\n}\r\n\r\nif (this.state.checkedDate && this.state.checkedTime && (this.state.actionModal === 1 || this.state.actionModal === 2))\r\n{\r\n \r\n const _horaInicio = funciones.getTimeSelect(this.horasInicioRef.current.value, this.minutosInicioRef.current.value, this.merInicioRef.current.value, '2020-01-01'); \r\n const _horaFin = funciones.getTimeSelect(this.horasFinRef.current.value, this.minutosFinRef.current.value, this.merFinRef.current.value, '2020-01-01'); \r\n\r\n if (new Date(_horaInicio) >= new Date(_horaFin))\r\n {\r\n this.horasFinRef.current.focus();\r\n funciones.showToast('w', 'La hora final debe ser mayor a la hora inicial');\r\n return;\r\n }\r\n \r\n}\r\n\r\nlet idActividad = this.state.actionModal === 1 ? 0 : this.state.idRowSelected;\r\nlet idCategoria = this.state.actionModal === 3 ? 0 : this.state.valueAutoComplete.ID_CATEGORIA;\r\nlet descripcion = this.state.actionModal === 3 ? '-' : this.descripcionRef.current.value.trim();\r\nlet fecha = this.state.actionModal === 3 ? '2020-01-01' : funciones.getDateSelect(this.state.selectedDate);\r\nlet horaInicio = this.state.actionModal === 3 ? '2020-01-01T00.00.00.000' : funciones.getTimeSelect(this.horasInicioRef.current.value, this.minutosInicioRef.current.value, this.merInicioRef.current.value, fecha);\r\nlet horaFin = this.state.actionModal === 3 ? '2020-01-01T00.00.00.000' : funciones.getTimeSelect(this.horasFinRef.current.value, this.minutosFinRef.current.value, this.merFinRef.current.value, fecha);\r\n\r\nthis.setState({ openBackDrop: true, openModalConfirm: false }, ()=>{ \r\n\r\nnew Request\r\n.post(`${globales.ip}/actividades_coprogramaticas_grl/operaciones`)\r\n.set({'authorization': 'Bearer ' + Auth.getToken() })\r\n.set('Content-Type', 'application/json')\r\n.send({ tipo_proceso: this.state.actionModal, \r\n id_actividad: idActividad, \r\n id_categoria: idCategoria, \r\n descripcion: descripcion, \r\n fecha: this.state.checkedDate ? fecha : '-',\r\n hora_inicio: this.state.checkedDate && this.state.checkedTime ? horaInicio : '-', \r\n hora_fin: this.state.checkedDate && this.state.checkedTime ? horaFin : '-', \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({ openBackDrop: 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 if (rows.length > 0)\r\n { \r\n if (rows[0].RESP === 'OK')\r\n { \r\n\r\n let row = this.state.actionModal === 3 ? [{ ID_ACTIVIDADES_X_AREA: rows[0].ID_ACTIVIDAD_X_AREA}] :\r\n [{ ID_ACTIVIDADES_X_AREA: rows[0].ID_ACTIVIDAD_X_AREA, \r\n DESCRIPCION_ACTIVIDAD: descripcion,\r\n FECHA: this.state.checkedDate ? fecha + 'T00:00:00' : null,\r\n HORA_INICIO: this.state.checkedDate && this.state.checkedTime ? horaInicio : null,\r\n HORA_FIN: this.state.checkedDate && this.state.checkedTime ? horaFin : null,\r\n ID_CATEGORIA: idCategoria,\r\n DESCRIPCION_CATEGORIA: funciones.splitWords(6,6, this.state.valueAutoComplete.DESCRIPCION_CATEGORIA),\r\n PUNTAJE: this.state.valueAutoComplete.PUNTAJE\r\n }];\r\n const newStructure = funciones.refreshTable(this.state.actionModal,\r\n this.state.rows,\r\n this.state.expandedGroups,\r\n row,\r\n 'ID_ACTIVIDADES_X_AREA',\r\n 'DESCRIPCION_CATEGORIA',\r\n this.DESCRIPCION_CATEGORIA\r\n );\r\n\r\n this.setState({ expandedGroups: newStructure.refreshGroups,\r\n rows: newStructure.refreshRows,\r\n idRowSelected: this.state.actionModal === 3 ? null : rows[0].ID_ACTIVIDAD_X_AREA,\r\n openBackDrop: false}, ()=>{\r\n\r\n if (this.state.actionModal === 3)\r\n {\r\n return funciones.showToast('s', 'Se ha eliminado la actividad'); \r\n }\r\n\r\n if (movil && newStructure.moveScroll){ window.scrollTo(0, this.state.heightTableMain); }\r\n if (newStructure.moveScroll){ this.vtRef.current.scrollToRow(rows[0].ID_ACTIVIDAD_X_AREA); }\r\n\r\n funciones.showToast('s', this.state.actionModal === 1 ? 'Se ha registrado la actividad' : 'Se han registrado los cambios');\r\n this.handleClose();\r\n });\r\n \r\n }\r\n else\r\n {\r\n this.setState({ openBackDrop: false }, ()=>{ \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\n});\r\n\r\n}\r\n\r\nchangeFilters = filters => { \r\n \r\nif (this.state.idRowSelected !== null)\r\n this.setState({ idRowSelected: null });\r\n \r\n} \r\n\r\nhandleRowClick = (idRow) => event => {\r\n \r\n this.setState({ idRowSelected: idRow });\r\n \r\n}\r\n\r\nonMouseEvents = ()=>{\r\nif (this.state.blockTooltip)\r\n this.setState({ blockTooltip: false });\r\n}\r\n\r\nobtener_actividades = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/actividades_coprogramaticas_grl/${0}/${'-'}/${'-'}`)\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 \r\n let rows = JSON.parse(res.text);\r\n \r\n if (rows.length > 0)\r\n { \r\n rows = rows.map((item)=>{\r\n item.DESCRIPCION_CATEGORIA = funciones.splitWords(6,6, item.DESCRIPCION_CATEGORIA);\r\n return item;\r\n });\r\n\r\n this.setState({ rows: rows, loadingMain: false }) \r\n }\r\n else \r\n this.setState({ rows: [], loadingMain: false }); \r\n \r\n});\r\n\r\n}\r\n\r\ncomponentDidMount() { \r\n \r\ntokenInfo = Auth.getProfile(); //Token decodificado \r\n \r\nthis.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{ \r\n\r\n if (tokenInfo.plataforma === 1) // Usuario Admin\r\n {\r\n this.obtener_actividades(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n this.obtenerCategorias();\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 === 1) //Si es Usuario Admin\r\n {\r\n \r\n return (\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n Actividad\r\n \r\n \r\n \r\n \r\n \r\n option.DESCRIPCION_CATEGORIA}\r\n renderInput={(params) => }\r\n renderOption={(option) => (\r\n \r\n {option.DESCRIPCION_CATEGORIA + ' (' + option.PUNTAJE + ' pts)'} \r\n \r\n )} \r\n onChange={this.onChangeAutocomplete}\r\n value={this.state.valueAutoComplete} \r\n classes = {{ popper: classes.popper }} \r\n PaperComponent={(props)=>()} \r\n />\r\n \r\n
\r\n Detalle\r\n \r\n \r\n \r\n }\r\n label=\"Definir horario del evento\"\r\n style={{ marginLeft: 0}}\r\n className=\"disableTouchOptions\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label=\"\"\r\n style={{ marginLeft: 0, marginRight: 5, marginTop: '5px' }}\r\n disabled={!this.state.checkedDate}\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 Actividad\r\n \r\n \r\n \r\n \r\n \r\n \r\n ¿Desea eliminar la actividad?\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {this.state.actionModal === 3 ? 'Eliminando...' : 'Guardando...'}\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 { 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 {\r\n Plugin,\r\n Template,\r\n TemplateConnector,\r\n TemplatePlaceholder,\r\n} from \"@devexpress/dx-react-core\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\nimport Backdrop from \"@material-ui/core/Backdrop\";\r\nimport toastr from \"toastr\";\r\nimport Paper from \"@material-ui/core/Paper\";\r\n\r\n/*Para Aprobar Admisiones*/\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Tabs from \"@material-ui/core/Tabs\";\r\nimport Tab from \"@material-ui/core/Tab\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Select from \"../../components/Select\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport { Divider } from \"@material-ui/core\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Radio from \"@material-ui/core/Radio\";\r\nimport RadioGroup from \"@material-ui/core/RadioGroup\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport BorderColorIcon from \"@material-ui/icons/BorderColor\";\r\nimport DeleteOutlineIcon from \"@material-ui/icons/DeleteOutline\";\r\n\r\n/*Fin Para Aprobar Admisiones*/\r\n\r\nlet Auth = new AuthService();\r\nvar ip = globales.ip;\r\nvar border_dialog = globales.border_dialog;\r\nvar movil_pequeño = /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(\r\n navigator.userAgent\r\n);\r\nlet timeToast = 18000;\r\n\r\nlet isVisibleRowSelected = false;\r\nconst colorRowSelected = \"rgb(\" + colores.tabla.selection + \")\";\r\nlet alternateColorRow1 = colores.tabla.alternateColorRow1;\r\nlet alternateColorRow2 = colores.tabla.alternateColorRow2;\r\n//var _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\r\nvar tokenInfo;\r\n\r\nconst VirtualTable_cellComponent = (props) => {\r\n //const { column } = props;\r\n //const { row } = props;\r\n return ;\r\n};\r\n\r\nclass TableRowsIndexer extends React.PureComponent {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst getRowId = (row) => row.ID_ADMISION;\r\nconst getRowIdAcademico = (row) => row.INSTITUTO;\r\nconst getRowIdPlanes = (row) => row.ID_PLAN;\r\nconst getRowIdFamilia = (row) => row.TIPO_PARENTESCO;\r\n\r\nlet currentprimerApellido = null;\r\nlet currentsegundoApellido = null;\r\nlet currentnombres = null;\r\nlet currentnombreCompleto = null;\r\nlet currentidentidad = null;\r\nlet currentdireccion = null;\r\nlet currenttelefono1 = null;\r\nlet currenttelefono2 = null;\r\nlet currentcorreoPersonal = null;\r\nlet currentobservaciones = null;\r\nlet currentcompania = null;\r\nlet currentcompaniaDirecion = null;\r\nlet currentcompaniaTelefono = null;\r\nlet currentcompaniaCorreo = null;\r\nlet currentcompaniaPuesto = null;\r\nlet currentcompaniaDepartamento = null;\r\nlet currentcompaniaNivel = null;\r\nlet currentcompaniaComentarios = null;\r\nlet currentfechaNac = null;\r\nlet currentfechaVencimiento = null;\r\nlet currentfechaIngreso = null;\r\n\r\nconst BodyComponent = (props) => {\r\n return ;\r\n};\r\n\r\n/* CLASES DE ESTILO */\r\n\r\nvar styles = (theme) => ({\r\n cajaTabs: {\r\n padding:\"10px !important\",\r\n },\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: {\r\n //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%\" : \"100%\",\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%\" : \"100%\",\r\n width: \"100%\",\r\n },\r\n paperTabla: {\r\n height: \"100%\",\r\n width: \"100%\",\r\n },\r\n paperInfo: {\r\n height: \"100%\",\r\n width: \"100%\",\r\n },\r\n form: {\r\n \"& > *\": {\r\n margin: theme.spacing(1),\r\n },\r\n },\r\n});\r\n\r\nconst columns = [\r\n { name: \"ID_ADMISION\", title: \"ID_ADMISION\" },\r\n { name: \"NOMBRE\", title: \"Nombre\" },\r\n { name: \"APELLIDO\", title: \"Apellido\" },\r\n { name: \"CORREO_PERSONAL\", title: \"Correo Personal\" },\r\n];\r\n\r\nconst columnsPlanes = [\r\n { name: \"ID_PLAN\", title: \"ID_PLAN\" },\r\n { name: \"PLAN\", title: \"Plan\" },\r\n { name: \"FECHAPROCESO\", title: \"Fecha de Proceso\" },\r\n { name: \"ESTATUS\", title: \"Estado\" },\r\n];\r\n\r\nconst columnsAcademico = [\r\n { name: \"ID_ADMISION\", title: \"Id Admisión\" },\r\n { name: \"INSTITUTO\", title: \"Instituto\" },\r\n { name: \"ANIO\", title: \"Año\" },\r\n];\r\n\r\nconst columnsFamiliar = [\r\n { name: \"TIPO_PARENTESCO\", title: \"Tipo Parentesco\" },\r\n { name: \"NOMBRE_COMPLETO\", title: \"Nombre Completo\" },\r\n { name: \"TELEFONO_CASA\", title: \"Telefono de Casa\" },\r\n { name: \"LUGAR_TRABAJO\", title: \"Lugar de Trabajo\" },\r\n { name: \"TELEFONO_OFICINA\", title: \"Telefono Oficina\" },\r\n { name: \"CELULAR\", title: \"Celular\" },\r\n];\r\n\r\nconst tableColumnExtensions = [\r\n { columnName: \"ID_ADMISION\", wordWrapEnabled: false, align: \"center\" },\r\n];\r\n\r\nconst tableColumnExtensionsPlanes = [\r\n { columnName: \"ID_PLAN\", wordWrapEnabled: false, align: \"center\" },\r\n];\r\n\r\nconst tableColumnExtensionsAcademico = [\r\n { columnName: \"ID_ADMISION\", wordWrapEnabled: false, align: \"center\" },\r\n];\r\n\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class AprobarAdmision extends React.Component {\r\n tablaRef = React.createRef();\r\n tablaPlanesRef = React.createRef();\r\n tablaInstitutoRef = React.createRef();\r\n tablaFamiliaRef = React.createRef();\r\n primerApellidoRef = React.createRef();\r\n segundoApellidoRef = React.createRef();\r\n nombresRef = React.createRef();\r\n nombreCompletoRef = React.createRef();\r\n identidadRef = React.createRef();\r\n direccionRef = React.createRef();\r\n telefono1Ref = React.createRef();\r\n telefono2Ref = React.createRef();\r\n correoPersonalRef = React.createRef();\r\n observacionesRef = React.createRef();\r\n companiaRef = React.createRef();\r\n companiaDirecionRef = React.createRef();\r\n companiaTelefonoRef = React.createRef();\r\n companiaCorreoRef = React.createRef();\r\n companiaPuestoRef = React.createRef();\r\n companiaDepartamentoRef = React.createRef();\r\n companiaNivelRef = React.createRef();\r\n companiaComentariosRef = React.createRef();\r\n fechaNacRef = React.createRef();\r\n fechaVencimientoRef = React.createRef();\r\n fechaIngresoRef = React.createRef();\r\n\r\n //paperRef = React.createRef();\r\n\r\n constructor(props) {\r\n super(props);\r\n this.Auth = new AuthService();\r\n this.usuario = props.cuenta;\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 heightTablePlan: 0,\r\n heightTableFamilia: 0,\r\n heightTableInstituto: 0,\r\n rows: [],\r\n grouping: [],\r\n expandedGroups: [],\r\n filteringColumnExtensions: [],\r\n filters: [],\r\n expandedRowIds: [],\r\n enabledFilterRows: true,\r\n selection: [], //se usa para la tabla de solicitantes\r\n cuentaCreada: 0, //identifica si ya esta la cuenta nueva creada antes de procesar a guardar\r\n defaultHiddenColumnNames: [\"ID_ADMISION\"],\r\n defaultHiddenColumnNamesPlanes: [\"ID_PLAN\"],\r\n valueTab: 0,\r\n disableBtnCrearCuenta: true,\r\n disableBtnEliminar: true,\r\n index: 0,\r\n idAdmision: 0,\r\n idPlan: 0,\r\n idControlMatricula: 0,\r\n idUsuario: 0,\r\n rowsCampusEstudio: [],\r\n rowsPaisAct: [],\r\n rowsPaisNac: [],\r\n rowsIdentificacionTipo: [],\r\n rowsEstadoCivilTipo: [],\r\n rowsSucursal: [],\r\n rowsEstatusAlumno: [],\r\n rowsPromocion: [],\r\n rowsDescuento: [],\r\n genero: \"\",\r\n modalEliminarSolicitud: false,\r\n modalAprobarSolicitud: false,\r\n //selections de los selects\r\n paisNacSelection: \"\",\r\n deptoNacSelection: \"\",\r\n municipioNacSelection: \"\",\r\n identificacionTipoSelection: \"\",\r\n estadoCivilTipoSelection: \"\",\r\n paisActSelection: \"\",\r\n deptoActSelection: \"\",\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n sucursalSelection: \"\",\r\n estatusAlumnoSelection: \"\",\r\n promocionSelection: \"\",\r\n descuentoSelection: \"\",\r\n campusEstudioSelected: \"\",\r\n //rows para los select dependiente\r\n rowsDepartamentoAct: [],\r\n rowsDepartamentoNac: [],\r\n rowsMunicipioNac: [],\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n\r\n //rows para los gridview\r\n rowsPlan: [],\r\n rowsFamilia: [],\r\n rowsInstituto: [],\r\n\r\n //Datos del formulario\r\n primerApellido: \"\",\r\n segundoApellido: \"\",\r\n nombres: \"\",\r\n nombreCompleto: \"\",\r\n fechaNac: \"\",\r\n identidad: \"\",\r\n telefono1: \"\",\r\n telefono2: \"\",\r\n correoInstitucional: \"\",\r\n correoPersonal: \"\",\r\n cuentaAlumno: \"\",\r\n fechaVencimiento: \"\",\r\n observaciones: \"\",\r\n compania: \"\",\r\n companiaTelefono: \"\",\r\n companiaCorreo: \"\",\r\n companiaPuesto: \"\",\r\n companiaDepartamento: \"\",\r\n companiaFechaIngreso: \"\",\r\n companiaComentarios: \"\",\r\n direccion: \"\",\r\n companiaDirecion: \"\",\r\n companiaNivel: \"\",\r\n };\r\n\r\n const columnHeader_rowComponent = ({ style, ...props }) => {\r\n return (\r\n \r\n );\r\n };\r\n\r\n const trow = (TableRow) =>\r\n withStyles(styles, { name: \"Row\" })(\r\n ({\r\n classes,\r\n highlighted,\r\n rowIndex,\r\n row,\r\n selectByRowClick,\r\n ...props\r\n }) => {\r\n const odd = !!(rowIndex % 2);\r\n const r = props.tableRow;\r\n\r\n const clickselection = (ID_ADMISION) => (event) => {\r\n if(ID_ADMISION!==this.state.idAdmision)\r\n {\r\n this.setState(\r\n {\r\n selection: [ID_ADMISION],\r\n rowsPlan: [],\r\n rowsInstituto: [],\r\n rowsFamilia: [],\r\n\r\n //selections de los selects\r\n paisNacSelection: \"\",\r\n deptoNacSelection: \"\",\r\n municipioNacSelection: \"\",\r\n identificacionTipoSelection: \"\",\r\n estadoCivilTipoSelection: \"\",\r\n paisActSelection: \"\",\r\n deptoActSelection: \"\",\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n sucursalSelection: \"\",\r\n estatusAlumnoSelection: \"\",\r\n promocionSelection: \"\",\r\n descuentoSelection: \"\",\r\n campusEstudioSelected: \"\",\r\n //rows para los select dependiente\r\n rowsDepartamentoAct: [],\r\n rowsDepartamentoNac: [],\r\n rowsMunicipioNac: [],\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n },\r\n () => {\r\n /* AQUI VA EL LLAMADO PARA LLENAR LA INFO DEL SOLICITANTE */\r\n this.setState({\r\n idAdmision: ID_ADMISION,\r\n valueTab: 0,\r\n disableBtnCrearCuenta: false,\r\n disableBtnEliminar: false,\r\n });\r\n this.llenarInfo(ID_ADMISION);\r\n }\r\n );\r\n }\r\n /*console.log(ID_ADMISION);\r\n console.log(\"-------------------\");*/\r\n };\r\n\r\n if (\r\n this.state.selection[0] === undefined\r\n ? this.state.selection[0]\r\n : props.tableRow.row.ID_ADMISION\r\n ) {\r\n isVisibleRowSelected = true;\r\n }\r\n return (\r\n \r\n );\r\n }\r\n );\r\n\r\n const trowPlanes = (TableRow) =>\r\n withStyles(styles, { name: \"Row\" })(\r\n ({\r\n classes,\r\n highlighted,\r\n rowIndex,\r\n row,\r\n selectByRowClick,\r\n ...props\r\n }) => {\r\n const odd = !!(rowIndex % 2);\r\n //const r = props.tableRow;\r\n\r\n return (\r\n \r\n );\r\n }\r\n );\r\n\r\n const trowInstituto = (TableRow) =>\r\n withStyles(styles, { name: \"Row\" })(\r\n ({\r\n classes,\r\n highlighted,\r\n rowIndex,\r\n row,\r\n selectByRowClick,\r\n ...props\r\n }) => {\r\n const odd = !!(rowIndex % 2);\r\n //const r = props.tableRow;\r\n\r\n return (\r\n \r\n );\r\n }\r\n );\r\n\r\n const trowFamilia = (TableRow) =>\r\n withStyles(styles, { name: \"Row\" })(\r\n ({\r\n classes,\r\n highlighted,\r\n rowIndex,\r\n row,\r\n selectByRowClick,\r\n ...props\r\n }) => {\r\n const odd = !!(rowIndex % 2);\r\n //const r = props.tableRow;\r\n\r\n return (\r\n \r\n );\r\n }\r\n );\r\n\r\n this.trow = trow(Table.Row);\r\n this.trowInstituto = trowInstituto(Table.Row);\r\n this.trowPlanes = trowPlanes(Table.Row);\r\n this.trowFamilia = trowFamilia(Table.Row);\r\n this.columnHeader_rowComponent = columnHeader_rowComponent;\r\n } //FIN CONSTRUCTORS\r\n\r\n showToast(type, text, timeOut) {\r\n toastr.options = {\r\n closeButton: true,\r\n newestOnTop: false,\r\n debug: false,\r\n //positionClass: \"toast-top-full-width\",\r\n onclick: null,\r\n timeOut: timeOut,\r\n showDuration: 20,\r\n };\r\n\r\n if (type.toLowerCase() === \"i\") {\r\n toastr.info(text);\r\n } else if (type.toLowerCase() === \"s\") {\r\n toastr.success(text);\r\n } else if (type.toLowerCase() === \"w\") {\r\n toastr.warning(text);\r\n } else if (type.toLowerCase() === \"e\") {\r\n toastr.error(text);\r\n }\r\n }\r\n\r\n guardar = () => {\r\n this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${ip}/--------`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n //.send({ parametros: parametros,TIPO: 1 })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n }\r\n this.setState({ openBackDrop: false }, () => {\r\n this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const rows = JSON.parse(res.text);\r\n if (rows.length > 0) {\r\n if (rows[0].RESP === \"OK\") {\r\n this.setState({ openBackDrop: false }, () => {\r\n this.showToast(\r\n \"s\",\r\n \"Información ingresada correctamente.\",\r\n timeToast\r\n );\r\n });\r\n } else {\r\n this.setState({ openBackDrop: false }, () => {\r\n this.showToast(\"w\", rows[0].RESP, timeToast);\r\n });\r\n }\r\n }\r\n });\r\n } catch (ex) {\r\n this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n }\r\n });\r\n };\r\n\r\n /** CAMBIA EL SELECTION PARA QUE TOME EN CUENTA TODAS LAS COLUMNAS */\r\n\r\n changeSelection = (selection) => {\r\n if (selection[selection.length - 1] === undefined) {\r\n this.setState({ selection: this.state.selection });\r\n } else {\r\n this.setState({ selection: [selection[selection.length - 1]] });\r\n }\r\n };\r\n\r\n componentDidMount() {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n /*Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)*/\r\n let tokenInfo=Auth.getProfile();\r\n _this.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{\r\n _this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: 1,//--1:SOLICITANTES --2:INFORMACION SOLICITANTE TB_ADM_CLIE\r\n ID_ADMISION: null,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n /*_this.setState({\r\n showError: true,\r\n });*/\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n _this.setState({\r\n rows: tmp,\r\n heightTableMain: funciones.getHeightTableMain(\r\n movil_pequeño,\r\n _this\r\n ).heightTable,\r\n });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rows: [],\r\n heightTableMain: funciones.getHeightTableMain(\r\n movil_pequeño,\r\n _this\r\n ).heightTable,\r\n });\r\n });\r\n }\r\n });\r\n\r\n //REQUEST PARA LOS COMBOBOX\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 1, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION_SUCURSAL}\r\n \r\n ));\r\n _this.setState({ rowsCampusEstudio: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsCampusEstudio: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //select para llenar PAIS la primera vez\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 2, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.NOMBRE_PAIS}\r\n \r\n ));\r\n _this.setState({ rowsPaisAct: Datos });\r\n _this.setState({ rowsPaisNac: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsPaisAct: [],\r\n rowsPaisNac: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //LLENADO DE TIPO DE IDENTIFICACION\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 3, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.TIPO_IDENTIFICACION}\r\n \r\n ));\r\n _this.setState({ rowsIdentificacionTipo: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsIdentificacionTipo: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //LLENADO DE ESTADO CIVIL\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 4, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION}\r\n \r\n ));\r\n _this.setState({ rowsEstadoCivilTipo: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsEstadoCivilTipo: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //LLENADO DE SUCURSALES\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 5, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION_SUCURSAL}\r\n \r\n ));\r\n _this.setState({ rowsSucursal: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsSucursal: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //LLENADO DE ESTATUS\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 6, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION}\r\n \r\n ));\r\n _this.setState({ rowsEstatusAlumno: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsEstatusAlumno: [],\r\n });\r\n });\r\n }\r\n\r\n if (_this.state.rowsEstatusAlumno !== []) {\r\n _this.setState({ estatusAlumnoSelection: 1 });\r\n }\r\n });\r\n\r\n //LLENADO DE PROMOCION\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 7, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION}\r\n \r\n ));\r\n _this.setState({ rowsPromocion: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsPromocion: [],\r\n });\r\n });\r\n }\r\n });\r\n\r\n //LLENADO DE DESCUENTO\r\n new Request.post(`${globales.ip}/aprobarAdmision/llenar_combos_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n ID_SELECT: 8, // --1:UNIVERSIDAD DE ESTUDIO --2:PAIS --3:IDENTIFICACION--4:ESTADO CIVIL--5:SUCURSAL--6:ESTATUS--7:PROMOCION--8:DESCUENTO\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.DESCRIPCION}\r\n \r\n ));\r\n _this.setState({ rowsDescuento: Datos });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rowsDescuento: [],\r\n });\r\n });\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n }\r\n });\r\n _this.actualizarbarra(true);\r\n });\r\n }\r\n\r\n //RECARGAR EL GRID\r\n recargarSolicitantes() {\r\n let _this = this;\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: 1, // --1:SOLICITANTES --2:INFORMACION SOLICITANTE TB_ADM_CLIE\r\n ID_ADMISION: null,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() === \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n /*_this.setState({\r\n showError: true,\r\n });*/\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n //console.log(tmp);\r\n _this.setState({\r\n rows: tmp,\r\n heightTableMain: funciones.getHeightTableMain(\r\n movil_pequeño,\r\n _this\r\n ).heightTable,\r\n });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.setState({\r\n rows: [],\r\n heightTableMain: funciones.getHeightTableMain(\r\n movil_pequeño,\r\n _this\r\n ).heightTable,\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n /** CERRAR MODALES */\r\n cerrarmodal = () => (event) => {\r\n this.setState({\r\n modalEliminarSolicitud: false,\r\n modalAprobarSolicitud: false,\r\n });\r\n event.preventDefault();\r\n };\r\n\r\n /** EVENTOS DE LOS BOTONES ONCLICK */\r\n eventoSplat = () => (event) => {\r\n event.preventDefault();\r\n };\r\n\r\n /** MODAL PARA ELIMINACION */\r\n abrirmodal_eliminar = () => {\r\n this.setState({\r\n modalEliminarSolicitud: true,\r\n });\r\n };\r\n /** MODAL PARA CREACION */\r\n abrirModalCrear = () => {\r\n this.setState({\r\n modalAprobarSolicitud: true,\r\n });\r\n };\r\n\r\n /*** EVENTOs ONCHANGE DE LOS SELECTS*/\r\n cambiaCampoEstudio = (event) => {\r\n this.setState({ campusEstudioSelected: event.target.value });\r\n };\r\n cambiaSelectPaisNac = (event) => {\r\n this.setState(\r\n {\r\n paisNacSelection: event.target.value,\r\n deptoNacSelection: \"\",\r\n municipioNacSelection: \"\",\r\n rowsDepartamentoNac: [],\r\n rowsMunicipioNac: [],\r\n },\r\n () => {\r\n this.llenarCombosconFiltro(1, event.target.value, 1);\r\n }\r\n );\r\n };\r\n cambiaSelectDeptoNac = (event) => {\r\n this.setState(\r\n {\r\n deptoNacSelection: event.target.value,\r\n municipioNacSelection: \"\",\r\n rowsMunicipioNac: [],\r\n },\r\n () => {\r\n this.llenarCombosconFiltro(2, event.target.value, 1);\r\n }\r\n );\r\n //alert(event.target.value);\r\n };\r\n cambiaSelectMunicipioNac = (event) => {\r\n this.setState({ municipioNacSelection: event.target.value });\r\n };\r\n cambiaIdentificacionTipo = (event) => {\r\n this.setState({ identificacionTipoSelection: event.target.value });\r\n };\r\n cambiaEstadoCivilTipo = (event) => {\r\n this.setState({ estadoCivilTipoSelection: event.target.value });\r\n };\r\n cambiaPaisAct = (event) => {\r\n this.setState(\r\n {\r\n paisActSelection: event.target.value,\r\n deptoActSelection: \"\",\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n rowsDepartamentoAct: [],\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n },\r\n () => {\r\n this.llenarCombosconFiltro(1, event.target.value, 2);\r\n }\r\n );\r\n };\r\n cambiaDeptoAct = (event) => {\r\n this.setState(\r\n {\r\n deptoActSelection: event.target.value,\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n },\r\n () => {\r\n this.llenarCombosconFiltro(2, event.target.value, 2);\r\n }\r\n );\r\n };\r\n cambiaMunicipioAct = (event) => {\r\n this.setState(\r\n {\r\n municipioActSelection: event.target.value,\r\n coloniaActSelection: \"\",\r\n rowsColoniaAct: [],\r\n },\r\n () => {\r\n this.llenarCombosconFiltro(3, event.target.value, 2);\r\n }\r\n );\r\n };\r\n cambiaColoniaAct = (event) => {\r\n this.setState({ coloniaActSelection: event.target.value });\r\n };\r\n cambiaSucursal = (event) => {\r\n this.setState({ sucursalSelection: event.target.value });\r\n };\r\n cambiaEstatusAlumno = (event) => {\r\n this.setState({ estatusAlumnoSelection: event.target.value });\r\n };\r\n cambiaPromocion = (event) => {\r\n this.setState({ promocionSelection: event.target.value });\r\n };\r\n cambiaDescuento = (event) => {\r\n this.setState({ descuentoSelection: event.target.value });\r\n };\r\n cambiaGenero = (event) => {\r\n this.setState({ genero: event.target.value });\r\n };\r\n\r\n /** ONCHANGE de los campos de texto */\r\n cambiaPrimerApellido = (event) => {\r\n currentprimerApellido = event.target.value.toUpperCase();\r\n currentnombreCompleto =\r\n currentnombres +\r\n \" \" +\r\n event.target.value.toUpperCase() +\r\n \" \" +\r\n currentsegundoApellido;\r\n document.getElementById(\"txtNombreCompleto\").value =\r\n currentnombres +\r\n \" \" +\r\n event.target.value.toUpperCase() +\r\n \" \" +\r\n currentsegundoApellido;\r\n };\r\n\r\n cambiaSegundoApellido = (event) => {\r\n currentsegundoApellido = event.target.value;\r\n currentnombreCompleto =\r\n currentnombres + \" \" + currentprimerApellido + \" \" + event.target.value;\r\n document.getElementById(\"txtNombreCompleto\").value =\r\n currentnombres + \" \" + currentprimerApellido + \" \" + event.target.value;\r\n };\r\n cambiaNombres = (event) => {\r\n currentnombres = event.target.value;\r\n currentnombreCompleto =\r\n event.target.value +\r\n \" \" +\r\n currentprimerApellido +\r\n \" \" +\r\n currentsegundoApellido;\r\n document.getElementById(\"txtNombreCompleto\").value =\r\n event.target.value +\r\n \" \" +\r\n currentprimerApellido +\r\n \" \" +\r\n currentsegundoApellido;\r\n };\r\n cambiaNombreCompleto = (event) => {\r\n currentnombreCompleto = event.target.value;\r\n };\r\n cambiaIdentidad = (event) => {\r\n currentidentidad = event.target.value;\r\n };\r\n cambiaDireccion = (event) => {\r\n currentdireccion = event.target.value;\r\n };\r\n cambiaTelefono1 = (event) => {\r\n currenttelefono1 = event.target.value;\r\n };\r\n cambiaTelefono2 = (event) => {\r\n currenttelefono2 = event.target.value;\r\n };\r\n cambiaCorreoPersonal = (event) => {\r\n currentcorreoPersonal = event.target.value;\r\n };\r\n cambiaObservaciones = (event) => {\r\n currentobservaciones = event.target.value;\r\n };\r\n cambiaCompania = (event) => {\r\n currentcompania = event.target.value;\r\n };\r\n cambiaCompaniaDireccion = (event) => {\r\n currentcompaniaDirecion = event.target.value;\r\n };\r\n cambiaCompaniaTelefono = (event) => {\r\n currentcompaniaTelefono = event.target.value;\r\n };\r\n cambiaCompaniaCorreo = (event) => {\r\n currentcompaniaCorreo = event.target.value;\r\n };\r\n cambiaCompaniaPuesto = (event) => {\r\n currentcompaniaPuesto = event.target.value;\r\n };\r\n cambiaCompaniaDepto = (event) => {\r\n currentcompaniaDepartamento = event.target.value;\r\n };\r\n cambiaCompaniaNivel = (event) => {\r\n currentcompaniaNivel = event.target.value;\r\n };\r\n cambiaCompaniaComentarios = (event) => {\r\n currentcompaniaComentarios = event.target.value;\r\n };\r\n\r\n llenarCombosconFiltro(tipo, idTipo, tipoSelect, idSelectSiguiente) {\r\n //tipo es identificador para saber si es pais, depto, ciudad o colonia\r\n //idTipo es el id para filtrar el combo que siga\r\n //tipoSelect es para identificar si es un combo de Nacimiento(Nac)(1) o Actual(Act)(2)\r\n //idSelectSiguiente es el id para setear en el combo que siga\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n _this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(\r\n `${globales.ip}/aprobarAdmision/llenar_combos_admisiones_con_filtro`\r\n )\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO: tipo, // --1:PAIS\r\n ID_FILTRO: idTipo,\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n const Datos = tmp.map((datos, i) => (\r\n \r\n {datos.NOMBRE}\r\n \r\n ));\r\n if (tipo === 1 && tipoSelect === 1) {\r\n _this.setState({ rowsDepartamentoNac: Datos });\r\n } else if (tipo === 2 && tipoSelect === 1) {\r\n _this.setState({ rowsMunicipioNac: Datos });\r\n }\r\n if (tipo === 1 && tipoSelect === 2) {\r\n _this.setState({ rowsDepartamentoAct: Datos });\r\n } else if (tipo === 2 && tipoSelect === 2) {\r\n _this.setState({ rowsMunicipioAct: Datos });\r\n } else if (tipo === 3 && tipoSelect === 2) {\r\n _this.setState({ rowsColoniaAct: Datos });\r\n }\r\n });\r\n\r\n /** Prosigue el valor seteado para elegir el combo siguiente */\r\n if (idSelectSiguiente !== undefined) {\r\n if (tipo === 1 && tipoSelect === 1) {\r\n _this.setState({\r\n deptoNacSelection: idSelectSiguiente,\r\n });\r\n } else if (tipo === 1 && tipoSelect === 2) {\r\n _this.setState({\r\n deptoActSelection: idSelectSiguiente,\r\n });\r\n }\r\n if (tipo === 2 && tipoSelect === 1) {\r\n _this.setState({\r\n municipioNacSelection: idSelectSiguiente,\r\n });\r\n } else if (tipo === 2 && tipoSelect === 2) {\r\n _this.setState({\r\n municipioActSelection: idSelectSiguiente,\r\n });\r\n }\r\n if (tipo === 3 && tipoSelect === 2) {\r\n _this.setState({\r\n coloniaActSelection: idSelectSiguiente,\r\n });\r\n }\r\n }\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\r\n \"e\",\r\n \"Problema con la obtencion de la información\",\r\n timeToast\r\n );\r\n });\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n //_this.setState({ validado: true });\r\n }\r\n });\r\n _this.actualizarbarra(true);\r\n //_this.actualizarcircular(true)\r\n });\r\n }\r\n\r\n /** Funcion para llenar la informacion del solicitante */\r\n llenarInfo(idAdmision) {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n _this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: 2, // --1:SOLICITANTES --2:INFORMACION SOLICITANTE TB_ADM_CLIE\r\n ID_ADMISION: idAdmision, //_this.state.ID_ADMISION,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n //console.log(res.text);\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n //let asd;\r\n _this.setState({ openBackDrop: false }, () => {\r\n const datosSolicitante = tmp[0];\r\n\r\n currentprimerApellido = datosSolicitante[\r\n \"PRIMER_APELLIDO\"\r\n ].toUpperCase();\r\n currentsegundoApellido = datosSolicitante[\r\n \"SEGUNDO_APELLIDO\"\r\n ].toUpperCase();\r\n currentnombres =\r\n datosSolicitante[\"PRIMER_NOMBRE\"].toUpperCase() +\r\n \" \" +\r\n datosSolicitante[\"SEGUNDO_NOMBRE\"].toUpperCase();\r\n currentnombreCompleto =\r\n datosSolicitante[\"PRIMER_NOMBRE\"].toUpperCase() +\r\n \" \" +\r\n datosSolicitante[\"SEGUNDO_NOMBRE\"].toUpperCase() +\r\n \" \" +\r\n datosSolicitante[\"PRIMER_APELLIDO\"].toUpperCase() +\r\n \" \" +\r\n datosSolicitante[\"SEGUNDO_APELLIDO\"].toUpperCase();\r\n currentidentidad = datosSolicitante[\"IDENTIFICACION\"]\r\n .toString()\r\n .toUpperCase()\r\n .replace(\"-\", \"\");\r\n currentdireccion = datosSolicitante[\r\n \"DIRECCCION\"\r\n ].toUpperCase();\r\n currenttelefono1 = datosSolicitante[\"TELEFONO_CASA\"];\r\n currenttelefono2 = datosSolicitante[\"CELULAR\"];\r\n currentcorreoPersonal =\r\n datosSolicitante[\"EMAIL_PERSONAL\"];\r\n currentcompania = datosSolicitante[\r\n \"NOMBRE_EMPRESA\"\r\n ].toUpperCase();\r\n currentcompaniaTelefono =\r\n datosSolicitante[\"TELEFONO_EMPRESA\"];\r\n currentcompaniaPuesto = datosSolicitante[\r\n \"PUESTO\"\r\n ].toUpperCase();\r\n currentfechaNac = datosSolicitante[\"FECHA_NACIMIENTO\"];\r\n\r\n _this.setState({\r\n idPlan: datosSolicitante[\"ID_PLAN\"],\r\n genero: datosSolicitante[\"GENERO\"].replace(\" \", \"\"),\r\n\r\n paisActSelection: datosSolicitante[\"ID_PAIS\"],\r\n paisNacSelection:\r\n datosSolicitante[\"ID_PAIS_NACIMIENTO\"],\r\n campusEstudioSelected:\r\n datosSolicitante[\"ID_SUCURSAL_AM\"],\r\n identificacionTipoSelection:\r\n datosSolicitante[\"ID_TIPO_IDENTIFICACION\"],\r\n estadoCivilTipoSelection: datosSolicitante[\"ID_ESTADO\"],\r\n sucursalSelection: datosSolicitante[\"ID_SUCURSAL_AM\"],\r\n estatusAlumnoSelection: 1,\r\n });\r\n _this.llenarCombosconFiltro(\r\n 1,\r\n datosSolicitante[\"ID_PAIS\"],\r\n 2,\r\n datosSolicitante[\"ID_DEPARTAMENTO\"]\r\n ); //paisActual\r\n _this.llenarCombosconFiltro(\r\n 1,\r\n datosSolicitante[\"ID_PAIS_NACIMIENTO\"],\r\n 1,\r\n datosSolicitante[\"ID_DEPARTAMENTO_NACIMIENTO\"]\r\n ); //paisNacimiento\r\n _this.llenarCombosconFiltro(\r\n 2,\r\n datosSolicitante[\"ID_DEPARTAMENTO\"],\r\n 2,\r\n datosSolicitante[\"ID_MUNICIPIO\"]\r\n ); //deptoActual\r\n _this.llenarCombosconFiltro(\r\n 2,\r\n datosSolicitante[\"ID_DEPARTAMENTO_NACIMIENTO\"],\r\n 1,\r\n datosSolicitante[\"ID_MUNICIPIO_NACIMIENTO\"]\r\n ); //deptoNacimiento\r\n _this.llenarCombosconFiltro(\r\n 3,\r\n datosSolicitante[\"ID_MUNICIPIO\"],\r\n 2,\r\n datosSolicitante[\"ID_COLONIA\"]\r\n ); //muniActual\r\n\r\n _this.llenarGrids(3, idAdmision); //plan estudio\r\n _this.llenarGrids(4, idAdmision); //familiares\r\n _this.llenarGrids(5, idAdmision); //instituto\r\n });\r\n //alert(asd);\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\r\n \"e\",\r\n \"Problema con la obtencion de la información\",\r\n timeToast\r\n );\r\n });\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n }\r\n });\r\n _this.actualizarbarra(true);\r\n });\r\n }\r\n\r\n //FUNCION PARA LLENAR LOS GRID VIEWS DE FAMILIARES Y PLAN ESTUDION\r\n llenarGrids(tipoConsulta, idAdmision) {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: tipoConsulta, // --3:PLAN ESTUDIO --4:DATOS FAMILIARES --5:INSTITUTO\r\n ID_ADMISION: idAdmision, //_this.state.ID_ADMISION,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n //console.log(tmp);\r\n if (tmp.length > 0) {\r\n if (tipoConsulta === 3) {\r\n _this.setState({\r\n rowsPlan: tmp,\r\n });\r\n } else if (tipoConsulta === 4) {\r\n _this.setState({\r\n rowsFamilia: tmp,\r\n });\r\n } else if (tipoConsulta === 5) {\r\n _this.setState({\r\n rowsInstituto: tmp,\r\n });\r\n }\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n if (tipoConsulta === 3) {\r\n _this.setState({\r\n rowsPlan: [],\r\n });\r\n } else if (tipoConsulta === 4) {\r\n _this.setState({\r\n rowsFamilia: [],\r\n });\r\n } else if (tipoConsulta === 5) {\r\n _this.setState({\r\n rowsInstituto: [],\r\n });\r\n }\r\n });\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n //_this.setState({ validado: true });\r\n }\r\n //});\r\n _this.actualizarbarra(true);\r\n //_this.actualizarcircular(true)\r\n });\r\n }\r\n\r\n //FUNCION PARA ELIMINAR\r\n eliminarSolicitud = (tipoConsulta, idAdmision) => (event) => {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: tipoConsulta, // --7:ELIMINAR SOLICITUD\r\n ID_ADMISION: idAdmision, //_this.state.ID_ADMISION,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n //console.log(tmp);\r\n if (tmp.length > 0) {\r\n if (tipoConsulta === 7) {\r\n if (tmp[0].ERROR === 0) {\r\n _this.setState(\r\n {\r\n selection: \"\",\r\n valueTab: 0,\r\n rowsPlan: [],\r\n rowsInstituto: [],\r\n rowsFamilia: [],\r\n\r\n //selections de los selects\r\n paisNacSelection: \"\",\r\n deptoNacSelection: \"\",\r\n municipioNacSelection: \"\",\r\n identificacionTipoSelection: \"\",\r\n estadoCivilTipoSelection: \"\",\r\n paisActSelection: \"\",\r\n deptoActSelection: \"\",\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n sucursalSelection: \"\",\r\n estatusAlumnoSelection: \"\",\r\n promocionSelection: \"\",\r\n descuentoSelection: \"\",\r\n campusEstudioSelected: \"\",\r\n //rows para los select dependiente\r\n rowsDepartamentoAct: [],\r\n rowsDepartamentoNac: [],\r\n rowsMunicipioNac: [],\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n modalEliminarSolicitud: false,\r\n modalAprobarSolicitud: false,\r\n disableBtnCrearCuenta: true,\r\n disableBtnEliminar: true,\r\n },\r\n () => {\r\n currentprimerApellido = null;\r\n currentsegundoApellido = null;\r\n currentnombres = null;\r\n currentnombreCompleto = null;\r\n currentidentidad = null;\r\n currentdireccion = null;\r\n currenttelefono1 = null;\r\n currenttelefono2 = null;\r\n currentcorreoPersonal = null;\r\n currentobservaciones = null;\r\n currentcompania = null;\r\n currentcompaniaDirecion = null;\r\n currentcompaniaTelefono = null;\r\n currentcompaniaCorreo = null;\r\n currentcompaniaPuesto = null;\r\n currentcompaniaDepartamento = null;\r\n currentcompaniaNivel = null;\r\n currentcompaniaComentarios = null;\r\n currentfechaNac = null;\r\n currentfechaVencimiento = null;\r\n currentfechaIngreso = null;\r\n _this.recargarSolicitantes();\r\n }\r\n );\r\n } else if (tmp[0].ERROR === 1) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error: No se pudo suspender la solicitud\",\r\n timeToast\r\n );\r\n }\r\n }\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {});\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n //_this.setState({ validado: true });\r\n }\r\n //});\r\n _this.actualizarbarra(true);\r\n //_this.actualizarcircular(true)\r\n });\r\n event.preventDefault();\r\n };\r\n\r\n validarIdentidad = () => (event) => {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n _this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: 8, // --8:VALIDAR IDENTIDAD\r\n ID_ADMISION: null,\r\n USUARIO2: currentidentidad, //Se envia en usuario para no crear otro store de forma innecesaria\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n\r\n //console.log(res.text);\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n //let asd;\r\n if (tmp[0].ERROR === 0) {\r\n _this.accionesBotones();\r\n } else if (tmp[0].ERROR === 2) {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\r\n \"e\",\r\n \"Error: La identidad que ingresó, ya está registrada.\",\r\n timeToast\r\n );\r\n });\r\n }\r\n //alert(asd);\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\r\n \"e\",\r\n \"Problema con la verificación de la identidad\",\r\n timeToast\r\n );\r\n });\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n }\r\n });\r\n _this.actualizarbarra(true);\r\n });\r\n\r\n event.preventDefault();\r\n };\r\n\r\n accionesBotones() {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n //_this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/selects_admisiones`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n TIPO_SELECT: 6, // --6:CREAR CUENTA\r\n ID_ADMISION: null, //_this.state.ID_ADMISION,\r\n USUARIO2: '',\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState(\r\n {\r\n cuentaAlumno: tmp[0].CUENTA_NUEVA,\r\n correoInstitucional:\r\n tmp[0].CUENTA_NUEVA + globales.dominioCorreo,\r\n idControlMatricula: tmp[0].ID_CONTROL_MATRICULA,\r\n idUsuario: tmp[0].ID_USUARIO,\r\n },\r\n () => {\r\n _this.insertarCliente();\r\n }\r\n );\r\n } else {\r\n _this.setState({ openBackDrop: false }, () => {});\r\n }\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n }\r\n //});\r\n _this.actualizarbarra(true);\r\n });\r\n }\r\n\r\n //FUNCION PARA INSERTAR EL CLIENTE CON SU NUEVA CUENTA\r\n insertarCliente() {\r\n let _this = this;\r\n _this.actualizarbarra(false);\r\n\r\n Auth.loggedIn().then(function (b) {\r\n _this.setState({ isLoggin: b });\r\n if (b)\r\n //_this.setState({ openBackDrop: true }, () => {\r\n try {\r\n new Request.post(`${globales.ip}/aprobarAdmision/inserta_admision`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n .send({\r\n CUENTA_ALUMNO: _this.state.cuentaAlumno,\r\n APELLIDO1: currentprimerApellido,\r\n APELLIDO2: currentsegundoApellido,\r\n NOMBRES: currentnombres,\r\n NOMBRE_COMPLETO: currentnombreCompleto,\r\n ID_MUNICIPIO_NAC:\r\n _this.state.municipioNacSelection === \"\"\r\n ? undefined\r\n : _this.state.municipioNacSelection,\r\n FECHA_NACIMIENTO: currentfechaNac,\r\n SEXO: _this.state.genero,\r\n TIPO_IDENTIFICACION:\r\n _this.state.identificacionTipoSelection === \"\"\r\n ? undefined\r\n : _this.state.identificacionTipoSelection,\r\n IDENTIDAD: currentidentidad,\r\n ID_ESTADO:\r\n _this.state.estatusAlumnoSelection === \"\"\r\n ? undefined\r\n : _this.state.estatusAlumnoSelection,\r\n DIRECCION: currentdireccion,\r\n ID_MUNICIPIO:\r\n _this.state.municipioActSelection === \"\"\r\n ? undefined\r\n : _this.state.municipioActSelection,\r\n TELEFONO1: currenttelefono1,\r\n TELEFONO2: currenttelefono2,\r\n EMAIL1:\r\n _this.state.correoInstitucional === \"\"\r\n ? undefined\r\n : _this.state.correoInstitucional,\r\n EMAIL2: currentcorreoPersonal,\r\n ID_SUCURSAL: _this.campusEstudioSelected,\r\n ID_ESTATUS_ALUMNO:\r\n _this.state.estatusAlumnoSelection === \"\"\r\n ? undefined\r\n : _this.state.estatusAlumnoSelection,\r\n ID_PROMOCION:\r\n _this.state.promocionSelection === \"\"\r\n ? undefined\r\n : _this.state.promocionSelection,\r\n OBSERVACIONES: currentobservaciones,\r\n COMPANIA: currentcompania,\r\n TELEFONO_COMPANIA: currentcompaniaTelefono,\r\n PUESTO: currentcompaniaPuesto,\r\n COMENTARIOS: currentcompaniaComentarios,\r\n ID_USUARIO: _this.state.idUsuario,\r\n ID_COLONIA:\r\n _this.state.coloniaActSelection === \"\"\r\n ? undefined\r\n : _this.state.coloniaActSelection,\r\n ID_PLAN: _this.state.idPlan,\r\n ID_ADMISION: _this.state.idAdmision,\r\n ID_BECA_DESC:\r\n _this.state.descuentoSelection === \"\"\r\n ? undefined\r\n : _this.state.descuentoSelection,\r\n FECHA_VENCIMIENTO: currentfechaVencimiento,\r\n ID_CONTROL_MATRICULA: _this.state.idControlMatricula,\r\n USUARIO: Auth.getProfile().user,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n } else if (\r\n err.toString() ===\r\n \"Error: Response timeout of 15000ms exceeded\"\r\n ) {\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la comunicacion con el servidor\",\r\n timeToast\r\n );\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n _this.showToast(\"e\", \"Error de conexión\", timeToast);\r\n });\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n if (tmp[0].ERROR === \"NO\") {\r\n //console.log(Auth.getProfile().user);\r\n _this.setState(\r\n {\r\n rows: [],\r\n selection: \"\",\r\n valueTab: 0,\r\n rowsPlan: [],\r\n rowsInstituto: [],\r\n rowsFamilia: [],\r\n\r\n //selections de los selects\r\n paisNacSelection: \"\",\r\n deptoNacSelection: \"\",\r\n municipioNacSelection: \"\",\r\n identificacionTipoSelection: \"\",\r\n estadoCivilTipoSelection: \"\",\r\n paisActSelection: \"\",\r\n deptoActSelection: \"\",\r\n municipioActSelection: \"\",\r\n coloniaActSelection: \"\",\r\n sucursalSelection: \"\",\r\n estatusAlumnoSelection: \"\",\r\n promocionSelection: \"\",\r\n descuentoSelection: \"\",\r\n campusEstudioSelected: \"\",\r\n //rows para los select dependiente\r\n rowsDepartamentoAct: [],\r\n rowsDepartamentoNac: [],\r\n rowsMunicipioNac: [],\r\n rowsMunicipioAct: [],\r\n rowsColoniaAct: [],\r\n modalEliminarSolicitud: false,\r\n modalAprobarSolicitud: false,\r\n disableBtnCrearCuenta: true,\r\n disableBtnEliminar: true,\r\n correoInstitucional:\"\",\r\n cuentaAlumno:\"\",\r\n },\r\n () => {\r\n currentprimerApellido = null;\r\n currentsegundoApellido = null;\r\n currentnombres = null;\r\n currentnombreCompleto = null;\r\n currentidentidad = null;\r\n currentdireccion = null;\r\n currenttelefono1 = null;\r\n currenttelefono2 = null;\r\n currentcorreoPersonal = null;\r\n currentobservaciones = null;\r\n currentcompania = null;\r\n currentcompaniaDirecion = null;\r\n currentcompaniaTelefono = null;\r\n currentcompaniaCorreo = null;\r\n currentcompaniaPuesto = null;\r\n currentcompaniaDepartamento = null;\r\n currentcompaniaNivel = null;\r\n currentcompaniaComentarios = null;\r\n currentfechaNac = null;\r\n currentfechaVencimiento = null;\r\n currentfechaIngreso = null;\r\n _this.recargarSolicitantes();\r\n _this.showToast(\r\n \"s\",\r\n \"El registro se ha creado exitosamente, la cuenta es: \" +\r\n _this.state.cuentaAlumno,\r\n timeToast\r\n );\r\n }\r\n );\r\n } else if (tmp[0].ERROR === \"SI\") {\r\n _this.setState(\r\n {\r\n rows: [],\r\n modalEliminarSolicitud: false,\r\n modalAprobarSolicitud: false,\r\n },\r\n () => {\r\n _this.recargarSolicitantes();\r\n _this.showToast(\r\n \"e\",\r\n \"Error en la aprobación de la solitud\",\r\n timeToast\r\n );\r\n }\r\n );\r\n }\r\n } /*else {\r\n _this.setState({ openBackDrop: false }, () => {\r\n if(tipoConsulta==6)\r\n {\r\n /*_this.setState({\r\n rowsPlan: [],\r\n });*\r\n\r\n }\r\n });\r\n }*/\r\n });\r\n } catch (ex) {\r\n _this.showToast(\"e\", \"Error de conexión \" + ex, timeToast);\r\n }\r\n //});\r\n _this.actualizarbarra(true);\r\n });\r\n }\r\n\r\n /* RENDER */\r\n render() {\r\n const { classes } = this.props;\r\n\r\n //Funcion para realizar el cambio de tab\r\n const cambioTab = (event, newValue) => {\r\n let _this = this;\r\n _this.setState({ valueTab: newValue }, () => {\r\n if (newValue === 1) {\r\n _this.setState({\r\n heightTablePlan:\r\n window.innerHeight -\r\n _this.tablaPlanesRef.current.getBoundingClientRect().top -\r\n 5,\r\n });\r\n } else if (newValue === 2) {\r\n _this.setState({\r\n heightTableInstituto:\r\n window.innerHeight -\r\n _this.tablaInstitutoRef.current.getBoundingClientRect().top -\r\n 5,\r\n });\r\n } else if (newValue === 3) {\r\n _this.setState({\r\n heightTableFamilia:\r\n window.innerHeight -\r\n _this.tablaFamiliaRef.current.getBoundingClientRect().top -\r\n 5,\r\n });\r\n }\r\n });\r\n //setValue(newValue);\r\n };\r\n\r\n //Funcion que obtiene las propiedades de las TABS\r\n function propiedadesTab(index) {\r\n return {\r\n id: `scrollable-auto-tab-${index}`,\r\n \"aria-controls\": `scrollable-auto-tabpanel-${index}`,\r\n };\r\n }\r\n\r\n /** FUNCION QUE DEVUELVE EL TAB SELECCIONADO */\r\n function TabPanel(props) {\r\n const { children, value, index, ...other } = props;\r\n\r\n return (\r\n