{"version":3,"sources":["pages/matricula/Oferta.js"],"names":["Auth","AuthService","tokenInfo","movil","test","navigator","userAgent","widthTable","window","screen","width","globales","tabla","marginleft","marginright","widthTableDetail","columns","name","title","columnExtensions","columnName","align","columnsDays","columnExtensionsDays","columns_exp","settingFilter","predicate","value","filter","row","funciones","getTime","IntegratedFiltering","defaultPredicate","columnsDetail","columnExtensionsDetail","filterOptions","createFilterOptions","stringify","option","CUENTA_CATEDRATICO","NOMBRE_COMPLETO","filterOptionsNivel","CODIGO_NIVEL","DESCRIPCION_NIVEL","filterOptionsCurso","CODIGO_CURSO","DESCRIPCION_CURSO","getRowId","ID_SECCION","FilterCellComponent","_ref","style","className","props","column","_jsx","Table","StubCell","children","background","height","TableFilterRow","Cell","VirtualTable_cellComponent","classTooltip","_ref2","paddingTop","paddingBottom","styleCell","color","ESTATUS_SECCION","ESTATUS","undefined","INICIO","FIN","isEmpty","DIAS_DETALLE","_jsxs","position","Tooltip","whiteSpace","getDetailTime","placement","arrow","MoreHorizIcon","fontSize","top","right","colores","color_disabled","cursor","onClick","e","stopPropagation","DIAS","_styleCell","styleIco","styleDiv","display","alignItems","justifyContent","marginBottom","maxHeight","infoMat","MATRICULADOS","PREMATRICULADOS","LISTA_ESPERA","Boolean","ACEPTA_LE","infoMatMod","MATRICULADOS_MODALIDAD","PREMATRICULADOS_MODALIDAD","LISTA_ESPERA_MODALIDAD","tableRow","ID_ESTADO_MODALIDAD","AUTONOMA","CUPO_MODALIDAD","CUPO","classes","tooltip","PopperProps","zIndex","PersonIcon","VideocamIcon","GRUPO","SECCION","VirtualTableDays_cellComponent","inicio","fin","ColumnFixed_cellComponent","_ref3","showLeftDivider","showRightDivider","key","TableFixedColumns","backgroundColor","ControlCheck","index","checked","descripcion","horasInicioRef","minutosInicioRef","merInicioRef","horasFinRef","minutosFinRef","merFinRef","controlHora","horarioTmp","setHorarioTmp","catedratico","aula","styleButton","textTransform","anchorEl","setAnchorEl","React","useState","arrowRef","setArrowRef","horaInicio","horaFin","handleOk","current","getTimeSelect","Date","showToast","CODIGO","handleMenuClose","horario","split","FormControlLabel","marginLeft","label","control","Fragment","Checkbox","id","event","currentTarget","Dialog","open","hideBackdrop","Popper","modifiers","enabled","element","preventOverflow","boundariesElement","popper","Fade","in","timeout","Paper","elevation","ClickAwayListener","onClickAway","mouseEvent","touchEvent","padding","SelectTime","horasRef","minutosRef","merRef","defaultHoras","getTimeParcial","defaultMinutos","defaultMeridiano","formStyle","Button","variant","ref","CupoIcon","modPeriodo","modalidad","cantModalidad","styleIcon","styleAdornament","InputAdornment","withStyles","theme","paper","borderRadius","border_dialog","maxWidth","paperConfirm","minWidth","paperPond","minHeight","paperCopy","paperDetail","paperFiltro","closeButton","spacing","palette","grey","backdrop","flexDirection","container","paddingLeft","paddingRight","formControlSelect","marginRight","textAlign","formControlSelectFrm","formControlSelectFrms","formControlSelectCopy","formControlSelectIntCopy","marginTop","textFieldCopy","fieldset","border","fieldsetPond","legend","textField","left","borderWidth","borderColor","bottom","content","margin","borderStyle","divLoading","boxMain","boxLabel","boxInput","boxCheck","divProgress","divIntCopy","icoInt","divOpciones","Component","constructor","super","periodosRef","createRef","intensivoRef","tablaRef","sucursalRef","jornadaRef","modalidadRef","cupoRef","jornadaSecRef","cupoSecRef","vtRef","grupoRef","nota1Ref","nota2Ref","nota3Ref","nota4Ref","labRef","dialogActionsRef","tableDialogRef","buttonMenuRef","handleChangeCheckFilter","this","state","filterCheck","target","filters","x","setState","operation","obtener_periodos","Request","get","ip","set","getToken","retry","response","deadline","end","err","res","toString","substr","location","reload","openBackDropInvisible","periodos","JSON","parse","text","items","ID_CONTROL_MATRICULA_PADRE","map","item","i","fontWeight","azul","id_cm_activo","ID_CONTROL_MATRICULA","MenuItem","DESCRIPCION","datosSelectPeriodo","handleChangePeriodo","async","periodoAutonoma","find","periodoDependiente","DEPENDIENTE","Promise","resolve","datosSelectIntensivo","datosSelectModalidad","datosSelectJornada","datosSelectJornadaSec","selectedPeriodo","obtener_oferta","obtener_modalidades","filtrar_jornadas","id_cm_activo_pi","handleChangeIntensivo","selectedIntensivo","id_cm","id_cm_pi","loadingMain","user","rows","length","obtener_sucursales","ID_SUCURSAL","disabled","DESCRIPCION_SUCURSAL","datosSelectSucursal","obtener_aulas","aulas","obtener_jornadas","jornadas","obtener_catedraticos","optionsCate","obtener_niveles","optionsNivel","obtener_cursos","cursos","optionsCurso","handleRowClick","idRow","idRowSelected","handleClickNew","resetHorario","numero_seccion","actionModal","modalTitle","valueAutoCompleteAula","capacidad","selectedJornada","selectedJornadaSec","valueAutoCompleteCate","valueAutoCompleteNivel","valueAutoCompleteCurso","defaultValueCupo","defaultValueCupoS","defaultValueGrupo","checkLE","checkEstatus","checkedControlHora","backdropText","openModal","handleChangeSucursal","handleChangeModalidad","handleClickCopy","toggleCheckedPI","disabledTimeout","handleChangePerOrigen","regCopy","selectedPerDestino","checkedCan","checkedHib","checkedDed","openModalCopy","handleClickPrint","parametros","valueAutoCompleteFiltroNivel","ID_NIVEL","document","getElementById","click","handleClickModify","infoRowSelected","dias","daysWeek","CATEDRATICO","ID_AULA","curso","ID_CURSO","onChangeAutocompleteAula","onChangeAutocompleteCurso","substring","hh","dd","replaceAll","replace","AULA","ID_JORNADA","ID_JORNADA_MODALIDAD","horario_tmp","guarda_horario","handleClickDelete","modalConfTitle","modalConfText","openModalConfirm","handleClickPond","openModalPond","handleClose","handleCloseFiltro","openModalFiltro","handleOpenFiltro","handleOKFiltro","changeFilters","handleCloseConfirmation","handleClosePond","toggleChecked","selectedSucursal","optionsAula","newValue","onChangeAutocompleteCate","onChangeAutocompleteNivel","onChangeAutocompleteFiltroNivel","valueNivel","selectedModalidad","optionMod","intensivo","MOD_PERIODO_INTENSIVO","ESTADO","handleChangeJornada","handleChangeJornadaSec","onChangeLE","onChangeEstatus","typeProcess","actionModalStatus","toLowerCase","handleOK","focus","openBackDrop","daysDetail","id_seccion","cuenta_catedratico","id_curso","id_aula","strDays","cupo","id_jornada","grupo","lista_espera","cupo_mod","id_jornada_mod","id_estado_mod","id_sucursal","gestion_oferta","then","RESP","newStructure","refreshTable","refreshRows","moveScroll","scrollTo","heightTableMain","scrollToRow","CURSO","handleOKDelete","handleOKStatus","r","String","tipo","post","send","ad_usuario","handleChangeCheckPond","setStatusExt","haveCheck","valorExt","checkedN1Status","parseInt","checkedN2Status","checkedN3Status","checkedN4Status","onEnteringPond","isCo","loadingPond","ES_CORREQUISITO","labStatus","TIENE_CORREQUISITO","checkedEditPond","PO_MODIFICABLE_CATEDRATICO","checkedEditExt","PO_MODIFICA_EXTRAORDINARIO_CATEDRATICO","PO_PERMITE_EXTRAORDINARIO","PO_PORCENTAJE","PO_ID_PONDERACION","checkedN1","checkedN2","checkedN3","checkedN4","onChangePond","val1","val2","val3","val4","valLab","isNaN","totalValuePond","handleOkPond","savingPond","strPond","valExt","maxPond","str_ponderaciones","handleCloseCopy","selectedIntOrigen","selectedIntDestino","checkedPI","selectedPerOrigen","setTimeout","handleChangeCheckCopy","itemsDestino","datosSelectPerDestino","setItemsSelectInt","handleChangePerDestino","handleChangeIntOrigen","handleChangeIntDestino","sel","selControl","itemsInt","datosSelectIntDestino","datosSelectIntOrigen","handleOKCopy","rowsDetail","openModalDetail","handleCloseDetail","onEnteringDetail","heightTableDetail","getHeightTableDialog","loadingDetail","id_nivel","id_cm_origen","id_cm_pi_origen","id_cm_destino","id_cm_pi_destino","hibridas","dedicadas","canceladas","handleOKDetail","copying","onEntering","heightTableDialog","moodle","ENABLE_MOODLE","url_moodle","URL_MOODLE","handleOpenMenuTable","rowSelected","disabledOptionMenuDel","openMenu","handleCloseMenuTable","l","isLoggin","checkExt4Status","isCopying","botones_seccion","icono","toolt","nombre","escritura","onclick","botones_estado","botones_filtro","botones_eliminar","botones_pond","botones_copy","botones_detail","componentDidMount","getProfile","plataforma","getHeightTableMain","heightTable","render","square","Select","Label","Datos","Selected","onChange","Style","Outlined","Ref","ShowItemNone","ValueItemNone","LabelItemNone","Divider","orientation","flexItem","startIcon","AddIcon","FileCopyIcon","PrintIcon","marginleft_movil","marginright_movil","CustomTable","Columns","Rows","TableColumnExtensions","DefaultHiddenColumnNames","columnWidths","loading","showSelectionColumn","enabledFilterRows","showSorting","FilteringColumnExtensions","Filters","onFiltersChange","filterCellComponent","enabledExports","columns_export","rows_export","name_export","label_Toolbarexport","leftColumnsFixed","TableSelection","COLUMN_TYPE","columnFixedCellComponent","tableSelectionCellComponent","handleClickOpciones","IconButton","disableRipple","size","MoreVertIcon","rowClick","rowHeaderCellComponent","handleClick","_ref4","TableHeaderRow","resizingEnabled","color_iconos","borderRight","endIcon","Icono","TransitionProps","fullScreen","DialogTitle","Typography","component","CloseIcon","DialogContent","shrink","Autocomplete","options","getOptionLabel","renderInput","params","TextField","fullWidth","required","InputLabelProps","getOptionDisabled","PaperComponent","inputProps","readOnly","defaultValue","placeholder","maxLength","inputMode","onKeyDown","onlyNumbers","InputProps","endAdornment","MODIFICAR_JORNADA_HIBRIDA","Switch","HABILITA_LE","ComputerIcon","renderOption","lineHeight","ListboxProps","DialogActions","BarraBotones","botones","gutterBottom","CircularProgress","Box","disableUnderline","LinearProgress","Accordion","expanded","AccordionSummary","AccordionDetails","SubdirectoryArrowRightIcon","Reporte","nom_bar","label_reporte","opciones","backcolor","fill","boton","color_bar","Popover","anchorReference","anchorPosition","getBoundingClientRect","MenuList","ListItemIcon","CropPortraitIcon","EditIcon","DeleteIcon","Backdrop","invisible","transitionDuration"],"mappings":"qHAAA,soBA2DA,IAAIA,GAAO,IAAIC,IACXC,GAAY,GAEhB,IAAIC,GAAM,iEAAiEC,KAAKC,UAAUC,WAE1F,MA2OMC,GAAcJ,GAAyF,KAAjFK,OAAOC,OAAOC,OAASC,IAASC,MAAMC,WAAaF,IAASC,MAAME,aACxFC,GAAoBZ,GAAuC,OAAR,GAAtBK,OAAOC,OAAOC,MAC3CM,GAAW,CACf,CAAEC,KAAM,SAAUC,MAAO,KACzB,CAAED,KAAM,aAAcC,MAAO,cAC7B,CAAED,KAAM,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,KAAK4S,qBAAqB,GAAGxhB,SAAA,CAC/CH,eAAC4qB,KAAY,CAAAzqB,SACXH,eAAC8qB,IAAQ,CAAChpB,SAAS,QAAQlC,MAAO,CAAEkB,MAAOmB,IAAQiP,UACtC,eAGhB5P,gBAAC+P,IAAQ,CAACjP,QAAS2M,KAAK4S,qBAAqB,GAAIxO,SAAUpE,KAAKC,MAAMyS,sBAAsBthB,SAAA,CAC3FH,eAAC4qB,KAAY,CAAAzqB,SACZH,eAAC+qB,IAAU,CAACjpB,SAAS,QAAQlC,MAAO,CAAEkB,MAAO,WAC/B,qBAOpBQ,gBAAC0pB,IAAQ,CAACnrB,UAAWkE,EAAQqH,SAAUvD,KAAMkH,KAAKC,MAAMmL,aAAaha,SAAA,CACpEH,eAACspB,IAAgB,CAACxoB,MAAM,YACxBd,eAAA,QAAMJ,MAAO,CAAEoM,UAAW,QAAS7L,SAAE4O,KAAKC,MAAMsG,kBAEjDtV,eAACgrB,IAAQ,CAACnjB,KAAMkH,KAAKC,MAAMuB,uBAAyBxB,KAAKC,MAAM6D,aAAe9D,KAAKC,MAAMgO,aAAejO,KAAKC,MAAMwP,YAAczP,KAAKC,MAAMsR,eAAiBvR,KAAKC,MAAMgS,QAC9JnhB,UAAWkE,EAAQqH,SACnB6f,WAAS,EACTC,mBAAoB,OAloFd5E,MA1LKnS,EAAe4R,EAAqBlX,CAm0F5D,EA3wBD,QAoxBqB,IAAxBE,KAAKC,MAAM6S,SAMb,UAHL7kB,OAAOqT,SAASC,QAKlB,G","file":"static/js/main~cf3998a9.d341e82f.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 BarraBotones from '../../components/Barra_menu';\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 TextField from '@material-ui/core/TextField';\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 AddIcon from '@material-ui/icons/Add';\r\nimport FileCopyIcon from '@material-ui/icons/FileCopy';\r\nimport PrintIcon from '@material-ui/icons/Print';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport {IntegratedFiltering} from '@devexpress/dx-react-grid';\r\nimport {Table, TableFilterRow, TableFixedColumns, TableSelection} from '@devexpress/dx-react-grid-material-ui';\r\nimport EditIcon from '@material-ui/icons/Edit';\r\nimport DeleteIcon from '@material-ui/icons/Delete';\r\nimport Autocomplete, {createFilterOptions} from '@material-ui/lab/Autocomplete';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport Popper from '@material-ui/core/Popper';\r\nimport Fade from '@material-ui/core/Fade';\r\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\r\nimport Button from '@material-ui/core/Button';\r\nimport SelectTime from '../../components/SelectTime';\r\nimport Divider from '@material-ui/core/Divider';\r\nimport Switch from '@material-ui/core/Switch';\r\nimport MoreHorizIcon from '@material-ui/icons/MoreHoriz'; \r\nimport InputAdornment from '@material-ui/core/InputAdornment';\r\nimport PersonIcon from '@material-ui/icons/Person';\r\nimport VideocamIcon from '@material-ui/icons/Videocam';\r\nimport LinearProgress from '@material-ui/core/LinearProgress';\r\nimport Box from '@material-ui/core/Box';\r\nimport SubdirectoryArrowRightIcon from '@material-ui/icons/SubdirectoryArrowRight';\r\nimport Accordion from '@material-ui/core/Accordion';\r\nimport AccordionSummary from '@material-ui/core/AccordionSummary';\r\nimport AccordionDetails from '@material-ui/core/AccordionDetails';\r\nimport Reporte from '../../components/Modalreporte'; \r\nimport ComputerIcon from '@material-ui/icons/Computer';\r\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\r\nimport Popover from '@material-ui/core/Popover';\r\nimport MenuList from '@material-ui/core/MenuList';\r\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\r\nimport CropPortraitIcon from '@material-ui/icons/CropPortrait';\r\nimport {TableHeaderRow} from '@devexpress/dx-react-grid-material-ui';\r\nimport Icono from '../../components/Icono';\r\n\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 width: !movil ? '950px' : undefined, \r\n maxWidth: !movil ? '950px' : undefined,\r\n height: !movil ? '640px' : undefined, \r\n maxHeight: !movil ? '98%' : undefined\r\n}, \r\npaperConfirm: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '320px', \r\n maxWidth: '320px', \r\n},\r\npaperPond: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '350px', \r\n maxWidth: '350px',\r\n minHeight: !movil ? '500px' : undefined, \r\n maxHeight: !movil ? '500px' : undefined\r\n},\r\npaperCopy: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '400px' : \"95%\", \r\n maxWidth: !movil ? '400px' : \"95%\", \r\n},\r\npaperDetail: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '80%' : undefined, \r\n maxWidth: !movil ? '80%' : undefined, \r\n minHeight: !movil ? 'calc(100% - 50px)' : undefined, \r\n maxHeight: !movil ? 'calc(100% - 50px)' : undefined,\r\n},\r\npaperFiltro: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '350px', \r\n maxWidth: '350px',\r\n minHeight: !movil ? '180px' : undefined, \r\n maxHeight: !movil ? '180px' : 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\" : \"flex-start\",\r\n flexDirection: !movil ? \"row\" : \"column\",\r\n paddingTop: \"2px\",\r\n paddingBottom: \"5px\", \r\n paddingLeft: theme.spacing(1),\r\n paddingRight: theme.spacing(1), \r\n},\r\nformControlSelect: {\r\n width: movil ? '100%' : '300px', \r\n marginLeft: !movil ? theme.spacing(1) : undefined, \r\n marginRight: !movil ? theme.spacing(1) : undefined,\r\n textAlign: 'left',\r\n},\r\nformControlSelectFrm: {\r\n width: movil ? '100%' : '280px',\r\n textAlign: 'left',\r\n},\r\nformControlSelectFrms: {\r\n width: movil ? '100%' : '280px',\r\n textAlign: 'left',\r\n marginLeft: !movil ? theme.spacing(2) : undefined, \r\n},\r\nformControlSelectCopy: {\r\n width: '100%', \r\n textAlign: 'left',\r\n marginBottom: theme.spacing(2),\r\n},\r\nformControlSelectIntCopy: {\r\n width: '100%', \r\n textAlign: 'left',\r\n marginTop: 0,\r\n marginBottom: theme.spacing(1),\r\n},\r\ntextFieldCopy: {\r\n width: '100%', \r\n marginTop: theme.spacing(1), \r\n},\r\nfieldset: {\r\n textAlign: 'left', \r\n paddingLeft: 12, \r\n paddingRight: 12, \r\n paddingTop: 0,\r\n paddingBottom: 10,\r\n border: \"none\",\r\n height: 'auto', \r\n},\r\nfieldsetPond: {\r\n textAlign: 'left', \r\n paddingLeft: 12, \r\n paddingRight: 12, \r\n paddingTop: 0,\r\n paddingBottom: 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\ntextField: {\r\n width: movil ? '100%' : '280px', \r\n marginLeft: !movil ? theme.spacing(2) : undefined, \r\n},\r\npopper: {\r\n zIndex: 1,\r\n '&[x-placement*=\"bottom\"] $arrow': {\r\n top: 0,\r\n left: 0,\r\n marginTop: '-0.9em',\r\n width: '3em',\r\n height: '1em',\r\n '&::before': {\r\n borderWidth: '0 1em 1em 1em',\r\n borderColor: `transparent transparent ${theme.palette.background.paper} transparent`,\r\n },\r\n },\r\n '&[x-placement*=\"top\"] $arrow': {\r\n bottom: 0,\r\n left: 0,\r\n marginBottom: '-0.9em',\r\n width: '3em',\r\n height: '1em',\r\n '&::before': {\r\n borderWidth: '1em 1em 0 1em',\r\n borderColor: `${theme.palette.background.paper} transparent transparent transparent`,\r\n },\r\n },\r\n '&[x-placement*=\"right\"] $arrow': {\r\n left: 0,\r\n marginLeft: '-0.9em',\r\n height: '3em',\r\n width: '1em',\r\n '&::before': {\r\n borderWidth: '1em 1em 1em 0',\r\n borderColor: `transparent ${theme.palette.background.paper} transparent transparent`,\r\n },\r\n },\r\n '&[x-placement*=\"left\"] $arrow': {\r\n right: 0,\r\n marginRight: '-0.9em',\r\n height: '3em',\r\n width: '1em',\r\n '&::before': {\r\n borderWidth: '1em 0 1em 1em',\r\n borderColor: `transparent transparent transparent ${theme.palette.background.paper}`,\r\n },\r\n },\r\n},\r\narrow: {\r\n position: 'absolute',\r\n fontSize: 7,\r\n width: '3em',\r\n height: '3em',\r\n '&::before': {\r\n content: '\"\"',\r\n margin: 'auto',\r\n display: 'block',\r\n width: 0,\r\n height: 0,\r\n borderStyle: 'solid',\r\n },\r\n},\r\ntooltip: {\r\n maxWidth: !movil ? 'none' : undefined,\r\n},\r\ndivLoading: {\r\n width: '100%', \r\n height: '100%', \r\n display: 'flex', \r\n alignItems: 'center', \r\n justifyContent: 'center'\r\n},\r\nboxMain: {\r\n display: \"flex\", \r\n flexDirection: \"row\", \r\n textAlign: \"center\", \r\n alignItems:\"center\", \r\n marginLeft: 5,\r\n marginRight: 25,\r\n},\r\nboxLabel: {\r\n paddingTop: 5, \r\n paddingBottom: 5, \r\n width: \"70%\", \r\n},\r\nboxInput: { \r\n width: \"30%\", \r\n},\r\nboxCheck:{\r\n textAlign: \"center\", \r\n paddingTop: 5, \r\n paddingBottom: 5, \r\n},\r\ndivProgress:{\r\n height: '48px',\r\n width: \"100%\",\r\n paddingTop: '20px', \r\n},\r\ndivIntCopy: { \r\n paddingLeft: 10, \r\n marginBottom: 5,\r\n display: \"flex\", \r\n flexDirection: \"row\", \r\n alignItems: \"center\", \r\n width: \"100%\"\r\n},\r\nicoInt: { \r\n marginRight: 10, \r\n marginBottom: 10,\r\n color: colores.color_disabled \r\n},\r\ndivOpciones: {\r\n display: \"flex\", \r\n flexDirection: \"column\", \r\n marginTop: !movil ? -45 : 10, \r\n marginLeft: !movil ? 20 : 0, \r\n paddingLeft: !movil ? 10 : undefined,\r\n}\r\n});\r\nconst widthTable = !movil ? window.screen.width - (globales.tabla.marginleft + globales.tabla.marginright) : 1336;\r\nconst widthTableDetail = !movil ? (window.screen.width * 0.8) : (1336 * 0.8);\r\nconst columns = [\r\n { name: 'FILTRO', title: ' '}, \r\n { name: 'ID_SECCION', title: 'ID_SECCION'},\r\n { name: 'CODIGO', title: 'Código'},\r\n { name: 'CURSO', title: 'Curso'},\r\n { name: 'SECCION', title: 'Sección'},\r\n { name: 'ESTATUS_SECCION', title: 'Estado'},\r\n { name: 'AULA', title: 'Aula'},\r\n { name: 'DIAS', title: 'Días'},\r\n { name: 'INICIO', title: 'Desde'},\r\n { name: 'FIN', title: 'Hasta'},\r\n { name: 'MODALIDAD', title: 'Grupo'},\r\n { name: 'CUPO', title: 'Cupo'},\r\n { name: 'JORNADA', title: 'Jornada'},\r\n { name: 'MATRICULADOS_TOT', title: 'Mat'},\r\n { name: 'PREMATRICULADOS_TOT', title: 'PreMat'},\r\n { name: 'TOTAL', title: 'Total'},\r\n { name: 'CATEDRATICO', title: 'Catedrático'},\r\n { name: 'DESCRIPCION_NIVEL', title: 'Nivel'},\r\n];\r\nconst columnExtensions = [\r\n { columnName: 'ID_SECCION', width: 0 },\r\n { columnName: 'FILTRO', width: 70, align: 'center' },\r\n { columnName: 'CODIGO', width: widthTable * 0.06, align: 'center' },\r\n { columnName: 'CURSO', width: widthTable * 0.16 }, \r\n { columnName: 'SECCION', width: widthTable * 0.05, align: 'center'}, \r\n { columnName: 'ESTATUS_SECCION', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'AULA', width: widthTable * 0.06, align: 'center'}, \r\n { columnName: 'DIAS', width: widthTable * 0.05, align: 'center'},\r\n { columnName: 'INICIO', width: widthTable * 0.05, align: 'center'},\r\n { columnName: 'FIN', width: widthTable * 0.05, align: 'center'}, \r\n { columnName: 'MODALIDAD', width: widthTable * 0.07, align: 'center'},\r\n { columnName: 'CUPO', width: widthTable * 0.07, align: 'center'}, \r\n { columnName: 'JORNADA', width: widthTable * 0.07, align: 'center'},\r\n { columnName: 'MATRICULADOS_TOT', width: widthTable * 0.03, align: 'center'}, \r\n { columnName: 'PREMATRICULADOS_TOT', width: widthTable * 0.03, align: 'center'}, \r\n { columnName: 'TOTAL', width: widthTable * 0.03, align: 'center'}, \r\n { columnName: 'CATEDRATICO', width: widthTable * 0.14}, \r\n { columnName: 'DESCRIPCION_NIVEL', width: widthTable * 0.18}, \r\n];\r\n\r\nconst columnsDays = [{ name: 'id', title: 'ID'},\r\n { name: 'descripcion', title: 'Dia'}, \r\n { name: 'catedratico', title: 'Catedrático'}, \r\n { name: 'aula', title: 'Aula'}, \r\n { name: 'inicio', title: 'Desde'}, \r\n { name: 'fin', title: 'Hasta'}, \r\n ];\r\nconst columnExtensionsDays = [\r\n { columnName: 'descripcion', width: 140 },\r\n { columnName: 'catedratico', width: 280 },\r\n { columnName: 'aula', width: 120, align: 'center' },\r\n { columnName: 'inicio', width: 120, align: 'center' },\r\n { columnName: 'fin', width: 120, align: 'center' },\r\n];\r\n\r\nconst columns_exp = [\r\n { name: 'CODIGO', title: 'Código'},\r\n { name: 'CURSO', title: 'Curso'},\r\n { name: 'CATEDRATICO_EXP', title: 'Cuenta Docente'},\r\n { name: 'NOMBRE_COMPLETO_EXP', title: 'Nombre'},\r\n { name: 'SECCION', title: 'Sección'},\r\n { name: 'ESTATUS_SECCION', title: 'Estado'},\r\n { name: 'AULA', title: 'Aula'},\r\n { name: 'DIAS', title: 'Dias'},\r\n { name: 'INICIO_EXP', title: 'Desde '},\r\n { name: 'FIN_EXP', title: 'Hasta '},\r\n { name: 'MODALIDAD', title: 'Grupo'},\r\n { name: 'JORNADA', title: 'Jornada'},\r\n { name: 'MATRICULADOS_TOT', title: 'Mat'},\r\n { name: 'PREMATRICULADOS_TOT', title: 'PreMat'},\r\n { name: 'TOTAL', title: 'Total'},\r\n { name: 'CUPO', title: 'Cupo'},\r\n { name: 'DESCRIPCION_NIVEL', title: 'Nivel'},\r\n];\r\n\r\nconst settingFilter = [\r\n { columnName: '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 { columnName: '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 { columnName: 'ESTATUS_SECCION',\r\n predicate: (value, filter, row) => {\r\n value = value === \"A\" ? \"Activa\" : value === \"C\" ? \"Cancelada\" : null;\r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n },\r\n { columnName: 'ESTATUS',\r\n predicate: (value, filter, row) => {\r\n value = value === \"A\" ? \"Activa\" : value === \"C\" ? \"Cancelada\" : null;\r\n return IntegratedFiltering.defaultPredicate(value, filter, row);\r\n },\r\n },\r\n];\r\n\r\nconst columnsDetail = [ \r\n { name: 'CODIGO_CURSO', title: 'Código'},\r\n { name: 'DESCRIPCION_CURSO', title: 'Curso'},\r\n { name: 'ESTATUS', title: 'Estado'},\r\n { name: 'AULA', title: 'Aula'},\r\n { name: 'DIAS', title: 'Dias'},\r\n { name: 'INICIO', title: 'Desde'},\r\n { name: 'FIN', title: 'Hasta'},\r\n { name: 'MODALIDAD', title: 'Grupo'},\r\n { name: 'MODALIDAD_NUEVA', title: 'Grupo (+)'},\r\n];\r\nconst columnExtensionsDetail = [\r\n { columnName: 'CODIGO_CURSO', width: widthTableDetail * 0.09},\r\n { columnName: 'DESCRIPCION_CURSO', width: widthTableDetail * 0.19},\r\n { columnName: 'ESTATUS', width: widthTableDetail * 0.09, align: 'center'},\r\n { columnName: 'AULA', width: widthTableDetail * 0.09, align: 'center'},\r\n { columnName: 'DIAS', width: widthTableDetail * 0.09, align: 'center'},\r\n { columnName: 'INICIO', width: widthTableDetail * 0.09, align: 'center'},\r\n { columnName: 'FIN', width: widthTableDetail * 0.09, align: 'center'},\r\n { columnName: 'MODALIDAD', width: widthTableDetail * 0.10, align: 'center'},\r\n { columnName: 'MODALIDAD_NUEVA', width: widthTableDetail * 0.10, align: 'center'},\r\n];\r\n\r\nconst filterOptions = createFilterOptions ({ \r\n stringify: option => option.CUENTA_CATEDRATICO + option.NOMBRE_COMPLETO,\r\n});\r\nconst filterOptionsNivel = createFilterOptions ({ \r\n stringify: option => option.CODIGO_NIVEL + option.DESCRIPCION_NIVEL,\r\n});\r\nconst filterOptionsCurso = createFilterOptions ({ \r\n stringify: option => option.CODIGO_CURSO + option.DESCRIPCION_CURSO,\r\n});\r\n\r\nconst getRowId = row => row.ID_SECCION;\r\nconst TableSelectionCellComponent = (idRowSelected, handleClickOpciones, buttonMenuRef) => (props) =>{\r\n \r\n if (props.row.ID_SECCION === idRowSelected){\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return ();\r\n\r\n}\r\nconst FilterCellComponent = ({style, className, ...props})=>{ \r\n \r\n if (props.column.name === \"FILTRO\"){\r\n \r\n return (\r\n
\r\n ); \r\n }\r\n\r\n return ();\r\n}\r\n\r\nconst VirtualTable_cellComponent = (classTooltip) => ({ ...props}) => { \r\n \r\n const style= { paddingTop: 0, paddingBottom: 0}\r\n const styleCell = { color: props.row.ESTATUS_SECCION === \"C\" || props.row.ESTATUS === \"C\" ? \"red\" : undefined} \r\n \r\n if (props.column.name === \"INICIO\"){\r\n return (\r\n { props.row.INICIO !== null ? funciones.getTime(props.row.INICIO, 1) : null }\r\n );\r\n }\r\n\r\n if (props.column.name === \"FIN\"){\r\n return (\r\n { props.row.FIN !== null ? funciones.getTime(props.row.FIN, 1) : null }\r\n );\r\n }\r\n\r\n if (props.column.name === \"DIAS\" && !funciones.isEmpty(props.row.DIAS_DETALLE)){\r\n\r\n return (\r\n {funciones.getDetailTime(props.row.DIAS_DETALLE)}} placement=\"top\" arrow>\r\n e.stopPropagation()}/>\r\n \r\n \r\n {props.row.DIAS}\r\n \r\n );\r\n }\r\n \r\n if (props.column.name === 'CUPO')\r\n { \r\n const _styleCell = {...style, ...styleCell, paddingTop: 0, paddingBottom: 0}\r\n const styleIco = { color: colores.color_disabled} \r\n const styleDiv = { display: \"flex\", alignItems: \"center\", justifyContent: \"center\", marginBottom: \"2px\", maxHeight: \"100%\", width: \"100%\" }; \r\n const infoMat = \"\\n\" + props.row.MATRICULADOS + \" matriculados\\n\" + props.row.PREMATRICULADOS + \" prematriculados\" + (props.row.LISTA_ESPERA > 0 || Boolean(props.row.ACEPTA_LE) ? \"\\n\" + props.row.LISTA_ESPERA + \" en lista de espera\" : \"\");\r\n const infoMatMod = \"\\n\" + props.row.MATRICULADOS_MODALIDAD + \" matriculados\\n\" + props.row.PREMATRICULADOS_MODALIDAD + \" prematriculados\" + (props.row.LISTA_ESPERA_MODALIDAD > 0 || Boolean(props.row.ACEPTA_LE) ? \"\\n\" + props.row.LISTA_ESPERA_MODALIDAD + \" en lista de espera\" : \"\");\r\n\r\n if (props.tableRow.row.ID_ESTADO_MODALIDAD === 2){\r\n \r\n return (\r\n
\r\n {props.row.AUTONOMA === 2 ? props.row.CUPO_MODALIDAD : props.row.CUPO}\r\n {\"Cupos Presencial\" + (props.row.AUTONOMA === 2 ? infoMatMod : infoMat)}} placement=\"top\" classes={{ tooltip: classTooltip }} PopperProps={{style:{zIndex:500000}}} arrow>\r\n \r\n \r\n {\" | \" + (props.row.AUTONOMA === 2 ? props.row.CUPO : props.row.CUPO_MODALIDAD)}\r\n {\"Cupos Por Videoconferencia\" + (props.row.AUTONOMA === 2 ? infoMat : infoMatMod)}} placement=\"top\" classes={{ tooltip: classTooltip }} PopperProps={{style:{zIndex:500000}}} arrow>\r\n \r\n \r\n \r\n );\r\n\r\n }\r\n\r\n if ((props.tableRow.row.ID_ESTADO_MODALIDAD === 1 && props.tableRow.row.AUTONOMA === 1) || (props.tableRow.row.ID_ESTADO_MODALIDAD === 3 && props.tableRow.row.AUTONOMA === 2)){\r\n return (\r\n
\r\n {props.row.CUPO}\r\n {\"Cupos Presencial\" + infoMat}} placement=\"top\" classes={{ tooltip: classTooltip }} PopperProps={{style:{zIndex:500000}}} arrow>\r\n \r\n \r\n
\r\n
);\r\n }\r\n\r\n if ((props.tableRow.row.ID_ESTADO_MODALIDAD === 1 && props.tableRow.row.AUTONOMA === 2) || (props.tableRow.row.ID_ESTADO_MODALIDAD === 3 && props.tableRow.row.AUTONOMA === 1)){\r\n return (\r\n
\r\n {props.row.CUPO}\r\n {\"Cupos Por Videoconferencia\" + infoMat}} placement=\"top\" classes={{ tooltip: classTooltip }} PopperProps={{style:{zIndex:500000}}} arrow>\r\n \r\n \r\n
\r\n
);\r\n }\r\n\r\n\r\n }\r\n\r\n if (props.column.name === 'SECCION' && !funciones.isEmpty(props.row.GRUPO))\r\n { \r\n return (\r\n {\"Referencia\\n\" + props.row.GRUPO}} placement=\"top\" classes={{ tooltip: classTooltip }} PopperProps={{style:{zIndex:500000}}} arrow>\r\n e.stopPropagation()}/>\r\n \r\n {props.row.SECCION}\r\n ); \r\n }\r\n\r\n if (props.column.name === 'ESTATUS_SECCION' || props.column.name === 'ESTATUS'){\r\n \r\n return (\r\n {props.value === \"A\" ? \"Activa\" : props.value === \"C\" ? \"Cancelada\" : null}\r\n );\r\n }\r\n\r\n return ();\r\n \r\n}\r\nconst VirtualTableDays_cellComponent = (props)=>{\r\n\r\nif (props.column.name === \"inicio\"){\r\n return (\r\n { props.row.inicio !== null ? funciones.getTime(props.row.inicio, 1) : null }\r\n );\r\n}\r\n\r\nif (props.column.name === \"fin\"){\r\n return (\r\n { props.row.fin !== null ? funciones.getTime(props.row.fin, 1) : null }\r\n );\r\n}\r\n\r\nreturn ();\r\n\r\n}\r\n\r\nconst ColumnFixed_cellComponent = ({showLeftDivider, showRightDivider, ...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\n\r\n\r\n/*\r\nconst ColumnFixed_cellComponent = (classes, handleChangeCheck, valueFilterCheck) => ({showLeftDivider, showRightDivider, ...props}) => { \r\n \r\n if (props.tableRow.key === \"Symbol(filter)\" && props.tableColumn.column.name === 'FILTRO')\r\n { \r\n return ();\r\n\r\n }\r\n \r\n return ();\r\n\r\n}\r\n*/\r\nconst HeaderRowCellComponent = (handleClick)=> ({ ...props}) => {\r\n\r\n const style={paddingTop: props.column.name === \"FILTRO\" ? \"5px\" : undefined, paddingBottom: props.column.name === \"FILTRO\" ? \"5px\" : undefined }\r\n\r\n if (props.column.name === \"FILTRO\")\r\n {\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n \r\n return ();\r\n}\r\n\r\nconst ControlCheck = (props) => {\r\n\r\n const {index, \r\n checked, \r\n descripcion, \r\n classes, \r\n horasInicioRef,\r\n minutosInicioRef,\r\n merInicioRef,\r\n horasFinRef,\r\n minutosFinRef,\r\n merFinRef,\r\n controlHora, \r\n horarioTmp, \r\n setHorarioTmp,\r\n catedratico,\r\n aula } = props;\r\n const styleButton = {textTransform: \"none\"}\r\n\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n const [arrowRef, setArrowRef] = React.useState(null);\r\n\r\n let horaInicio =null;\r\n let horaFin = null;\r\n\r\n const handleOk = (index) => (e)=>{ \r\n\r\n if (!checked){\r\n horaInicio = horasInicioRef.current !== null ? funciones.getTimeSelect(horasInicioRef.current.value, minutosInicioRef.current.value, merInicioRef.current.value, '2020-01-01') : null; \r\n horaFin = horasInicioRef.current !== null ? funciones.getTimeSelect(horasFinRef.current.value, minutosFinRef.current.value, merFinRef.current.value, '2020-01-01') : null; \r\n\r\n if (new Date(horaInicio) >= new Date(horaFin) && horaInicio !== null)\r\n {\r\n funciones.showToast('w', 'La hora final debe ser mayor a la hora inicial');\r\n return;\r\n }\r\n\r\n if (aula === null){\r\n funciones.showToast('w', 'Debe especificar el aula');\r\n return;\r\n }\r\n\r\n if (catedratico === null){\r\n funciones.showToast('w', 'Debe especificar el catedrático');\r\n return;\r\n }\r\n\r\n }\r\n\r\n let _horarioTmp = horaInicio !== null ? horaInicio + \"#\" + horaFin : horarioTmp;\r\n setHorarioTmp(_horarioTmp, index, (catedratico !== null ? catedratico.NOMBRE_COMPLETO : null), (aula !== null ? aula.CODIGO : null));\r\n setAnchorEl(null);\r\n }\r\n\r\n const handleClick = (event) => { \r\n if ((!controlHora || horarioTmp === null) && !checked) {\r\n setAnchorEl(event.currentTarget); \r\n return;\r\n }\r\n \r\n handleOk(index)();\r\n \r\n }\r\n \r\n const handleMenuClose = (e)=>{\r\n setAnchorEl(null);\r\n }\r\n \r\n const horario = horarioTmp !== null ? horarioTmp.split(\"#\") : null;\r\n\r\n return (\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\nconst CupoIcon = (props)=>{\r\n\r\nconst {modPeriodo, modalidad, cantModalidad, id} = props; \r\nconst styleIcon = { color: colores.color_disabled }\r\nconst styleAdornament = { cursor: \"default\" }\r\n\r\nif (modalidad === 2){\r\n\r\n if (modPeriodo === null){\r\n return null;\r\n }\r\n \r\n return (\r\n \r\n \r\n {(modPeriodo === 1 && id === \"CP\") || (modPeriodo !== 1 && id !== \"CP\") ? \r\n : }\r\n \r\n \r\n );\r\n\r\n}\r\n\r\nif (cantModalidad > 1 && ((modalidad === 1 && modPeriodo === 2) || (modalidad === 3 && modPeriodo !== 2)) && id === \"CP\"){ \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nif ((cantModalidad === 1 && id === \"CP\") || (cantModalidad > 1 && id === \"CP\" && ((modalidad === 1 && modPeriodo === 1) || (modalidad === 3 && modPeriodo !== 1)))){ \r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nreturn null;\r\n\r\n}\r\n\r\nexport default withStyles(styles) ( \r\nclass App extends React.Component {\r\n\r\nperiodosRef = React.createRef();\r\nintensivoRef = React.createRef();\r\ntablaRef = React.createRef();\r\nsucursalRef = React.createRef();\r\njornadaRef = React.createRef();\r\nmodalidadRef = React.createRef();\r\ncupoRef = React.createRef();\r\njornadaSecRef = React.createRef(); \r\ncupoSecRef = React.createRef();\r\nvtRef = 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\ngrupoRef = React.createRef();\r\nnota1Ref = React.createRef(); \r\nnota2Ref = React.createRef(); \r\nnota3Ref = React.createRef(); \r\nnota4Ref = React.createRef(); \r\nlabRef = React.createRef(); \r\ndialogActionsRef = React.createRef();\r\ntablaRef = React.createRef();\r\ndialogActionsRef = React.createRef();\r\ntableDialogRef = React.createRef();\r\nbuttonMenuRef = 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 openBackDrop: false,\r\n openBackDropInvisible: true,\r\n backdropText: null,\r\n selectedPeriodo: '',\r\n datosSelectPeriodo: [],\r\n openModal: false,\r\n openModalConfirm: false,\r\n modalConfTitle: null,\r\n modalConfText: null,\r\n idRowSelected: null,\r\n datosSelectIntensivo: [],\r\n selectedIntensivo: '',\r\n modalTitle: null,\r\n datosSelectSucursal: [],\r\n selectedSucursal: '',\r\n optionsAula: [],\r\n valueAutoCompleteAula: null,\r\n datosSelectModalidad: [],\r\n selectedModalidad: '',\r\n datosSelectJornada: [],\r\n selectedJornada: '',\r\n optionsCate: [],\r\n valueAutoCompleteCate: null,\r\n datosSelectJornadaSec: [],\r\n selectedJornadaSec: '',\r\n optionMod: false,\r\n optionsNivel: [],\r\n valueAutoCompleteNivel: null,\r\n valueAutoCompleteFiltroNivel: null,\r\n optionsCurso: [],\r\n valueAutoCompleteCurso: null,\r\n daysWeek: [{ id: 0, descripcion: \"Lunes\", catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 1, descripcion: \"Martes\",catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 2, descripcion: \"Miércoles\", catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 3, descripcion: \"Jueves\", catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 4, descripcion: \"Viernes\", catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 5, descripcion: \"Sábado\", catedratico: null, aula: null, inicio: null, fin: null, checked: false },\r\n { id: 6, descripcion: \"Domingo\", catedratico: null, aula: null, inicio: null, fin: null, checked: false }],\r\n checkedControlHora: true,\r\n horario_tmp: null,\r\n capacidad: '',\r\n periodoAutonoma: null,\r\n periodoDependiente: null,\r\n checkLE: false,\r\n checkEstatus: false,\r\n defaultValueCupo: 0,\r\n defaultValueCupoS: 0,\r\n defaultValueGrupo: null,\r\n openModalPond: false,\r\n loadingPond: false,\r\n totalValuePond: 0,\r\n checkedN1: false,\r\n checkedN2: true,\r\n checkedN3: false,\r\n checkedN4: false,\r\n checkedEditPond: false,\r\n checkedEditExt: false,\r\n savingPond: false,\r\n checkedN1Status: true,\r\n checkedN2Status: true,\r\n checkedN3Status: true,\r\n checkExt4Status: true,\r\n labStatus: false,\r\n openModalCopy: false,\r\n isCopying: false,\r\n checkedPI: false,\r\n checkedCan: false,\r\n checkedHib: false,\r\n checkedDed: false,\r\n selectedPerOrigen: '',\r\n selectedIntOrigen: '',\r\n datosSelectIntOrigen: [],\r\n datosSelectPerDestino: [],\r\n selectedPerDestino: '',\r\n datosSelectIntDestino: [],\r\n selectedIntDestino: '',\r\n openModalDetail: false,\r\n openModalFiltro: false,\r\n filters: null,\r\n loadingDetail: false,\r\n rowsDetail: [],\r\n heightTableDetail: 0,\r\n copying: false,\r\n parametros: null,\r\n heightTableDialog: 0,\r\n openMenu: false,\r\n guarda_horario: null,\r\n };\r\n this.botones_seccion = [\r\n {icono: 'Save', toolt: '', nombre: 'Guardar',escritura: true, 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_estado = [\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar',escritura: true, onclick: this.handleOKStatus, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleCloseConfirmation, display:'auto', color: 'red'}\r\n ];\r\n this.botones_filtro = [\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar', onclick: this.handleOKFiltro, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleCloseFiltro, display:'auto', color: 'red'}\r\n ];\r\n this.botones_eliminar = [\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar',escritura: true, onclick: this.handleOKDelete, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleCloseConfirmation, display:'auto', color: 'red'}\r\n ]; \r\n this.botones_pond = [\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar',escritura: true, onclick: this.handleOkPond, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleClosePond, display:'auto', color: 'red'},\r\n ];\r\n this.botones_copy = [\r\n {icono: 'Check', toolt: '', nombre: 'Aceptar',escritura: true, onclick: this.handleOKCopy, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleCloseCopy, display:'auto', color: 'red'}\r\n ]; \r\n this.botones_detail = [\r\n {icono: 'Copy', toolt: '', nombre: 'Copiar',escritura: true, onclick: this.handleOKDetail, display:'auto'},\r\n {icono: 'Close', toolt: '', nombre: 'Cerrar' , onclick: this.handleCloseDetail, display:'auto', color: 'red'}\r\n ]; \r\n this.periodos= [];\r\n this.id_cm_activo=null;\r\n this.id_cm_activo_pi =null;\r\n this.aulas=[];\r\n this.jornadas=[];\r\n this.cursos= [];\r\n this.numero_seccion = null;\r\n this.actionModal= 0;\r\n this.actionModalStatus= 0;\r\n this.valorExt = null;\r\n this.isCo = null;\r\n this.regCopy = false;\r\n}\r\n\r\nhandleChangeCheckFilter = (event) => {\r\n \r\n const value = event === null ? this.state.filterCheck\r\n : this.state.filterCheck === false ? undefined: event.target.checked;\r\n let filter = this.state.filters.filter(x=> x.columnName !== 'FILTRO');\r\n \r\n this.setState({ filterCheck: value, \r\n filters: [...filter, {columnName: 'FILTRO', \r\n operation: 'equal', \r\n value: value }], \r\n });\r\n\r\n}\r\n\r\nobtener_periodos = ()=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/oferta/periodos`)\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({ openBackDropInvisible: false }, ()=>{\r\n funciones.showToast('e', 'No hay conexión');\r\n });\r\n \r\n return;\r\n }\r\n \r\n this.periodos = JSON.parse(res.text);\r\n\r\n const items = this.periodos.filter(x => x.ID_CONTROL_MATRICULA_PADRE === null).map((item, i)=>{\r\n const style = { fontWeight: \"bold\", color: colores.azul }\r\n if (item.ESTATUS === 1){ this.id_cm_activo = item.ID_CONTROL_MATRICULA; }\r\n return ({item.DESCRIPCION});\r\n });\r\n \r\n this.setState({ datosSelectPeriodo: items, \r\n openBackDropInvisible: false }, ()=>{\r\n if (this.id_cm_activo !== null)\r\n this.handleChangePeriodo({ target: { value: (this.id_cm_activo === null ? '' : this.id_cm_activo) } }); \r\n });\r\n\r\n});\r\n\r\n}\r\n\r\nhandleChangePeriodo = async (event)=>{\r\n\r\n const {value} = event.target; \r\n const periodoAutonoma = value !== '' ? this.periodos.find(x => x.ID_CONTROL_MATRICULA === value).AUTONOMA : null;\r\n const periodoDependiente = value !== '' ? this.periodos.find(x => x.ID_CONTROL_MATRICULA === value).DEPENDIENTE : null;\r\n\r\n await Promise.resolve(this.setState({ periodoAutonoma,\r\n periodoDependiente,\r\n datosSelectIntensivo: [], \r\n datosSelectModalidad: [],\r\n datosSelectJornada: [],\r\n datosSelectJornadaSec: [],\r\n selectedPeriodo: value }));\r\n this.obtener_oferta(value, \"null\");\r\n this.obtener_modalidades(value);\r\n this.filtrar_jornadas(false);\r\n\r\n const items = this.periodos.filter(x => x.ID_CONTROL_MATRICULA_PADRE === value).map((item, i)=>{\r\n const style = { fontWeight: \"bold\", color: colores.azul }\r\n if (item.ESTATUS === 1){ this.id_cm_activo_pi = item.ID_CONTROL_MATRICULA; }\r\n return ({item.DESCRIPCION});\r\n });\r\n\r\n this.setState({ datosSelectIntensivo: items });\r\n\r\n\r\n\r\n}\r\n\r\nhandleChangeIntensivo = async (event)=>{\r\n\r\n const {value} = event.target; \r\n\r\n await Promise.resolve(this.setState({ selectedIntensivo: value }));\r\n this.obtener_oferta(this.state.selectedPeriodo, value === '' ? \"null\" : value);\r\n\r\n}\r\n\r\nobtener_oferta = (id_cm, id_cm_pi)=>{\r\n\r\nthis.setState({ loadingMain: true }, ()=>{\r\n\r\nnew Request\r\n.get(`${globales.ip}/oferta/secciones/${id_cm}/${id_cm_pi}/${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 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({ rows: [], 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\r\n if (rows.length > 0)\r\n { \r\n this.setState({ rows, loadingMain: false });\r\n }\r\n else \r\n {\r\n this.setState({ rows: [], loadingMain: false });\r\n } \r\n \r\n});\r\n\r\n});\r\n\r\n}\r\n\r\nobtener_sucursales = ()=>{\r\n\r\nnew Request\r\n.get(`${globales.ip}/oferta/sucursales`)\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 const items = rows.map((item, i) =>{\r\n return {item.DESCRIPCION_SUCURSAL} \r\n }); \r\n \r\n this.setState({ datosSelectSucursal: items });\r\n } \r\n \r\n});\r\n\r\n}\r\n\r\nobtener_aulas = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/oferta/aulas`)\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 this.aulas = rows;\r\n } \r\n \r\n});\r\n\r\n}\r\n\r\nobtener_modalidades = (id_cm)=>{\r\n \r\nnew Request\r\n .get(`${globales.ip}/oferta/periodo/modalidades/${id_cm}`)\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 const items = rows.map((item, i) =>{\r\n return {item.DESCRIPCION} \r\n }); \r\n \r\n this.setState({ datosSelectModalidad: items });\r\n } \r\n \r\n});\r\n\r\n}\r\n\r\nobtener_jornadas = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/oferta/jornadas`)\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 this.jornadas = rows;\r\n\r\n this.filtrar_jornadas(this.state.selectedIntensivo === '' ? false : true);\r\n } \r\n \r\n });\r\n \r\n}\r\n\r\nobtener_catedraticos = ()=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/oferta/catedraticos`)\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 this.setState({ optionsCate: rows });\r\n } \r\n \r\n });\r\n\r\n}\r\n\r\nobtener_niveles = ()=>{\r\n \r\nnew Request\r\n .get(`${globales.ip}/oferta/usuario/niveles/${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 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 this.setState({ optionsNivel: rows });\r\n } \r\n \r\n}); \r\n\r\n}\r\n\r\nobtener_cursos = ()=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/oferta/cursos`)\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 this.cursos = rows;\r\n this.setState({ optionsCurso: this.cursos });\r\n } \r\n \r\n });\r\n\r\n}\r\n\r\nhandleRowClick = (idRow) => event => {\r\n this.setState({ idRowSelected: idRow });\r\n}\r\n\r\nhandleClickNew =()=>{\r\n\r\nthis.resetHorario();\r\nthis.numero_seccion = null;\r\nthis.actionModal = 1;\r\nthis.setState({ modalTitle: \"Sección\", \r\n valueAutoCompleteAula: null,\r\n capacidad: '',\r\n selectedJornada: '',\r\n selectedJornadaSec: '',\r\n valueAutoCompleteCate: null,\r\n valueAutoCompleteNivel: null,\r\n optionsCurso: this.cursos,\r\n valueAutoCompleteCurso: null,\r\n defaultValueCupo: 0,\r\n defaultValueCupoS: 0,\r\n defaultValueGrupo: null,\r\n checkLE: false,\r\n checkEstatus: true,\r\n checkedControlHora: true,\r\n backdropText: \"Guardando...\",\r\n openModal: true });\r\n\r\nthis.handleChangeSucursal({ target: { value: 1 }});\r\nthis.handleChangeModalidad({ target: { value: 1 }});\r\n\r\n}\r\n\r\nhandleClickCopy = ()=>{\r\n\r\n const checked = this.state.selectedIntensivo !== '' ? true : false;\r\n this.toggleCheckedPI({target: { checked: checked, disabledTimeout: true } });\r\n this.handleChangePerOrigen({ target: { value: this.state.selectedPeriodo } });\r\n this.regCopy = false;\r\n\r\n this.setState({ selectedPerDestino: '',\r\n valueAutoCompleteNivel: null,\r\n checkedCan: false,\r\n checkedHib: false,\r\n checkedDed: false,\r\n openModalCopy: true });\r\n}\r\n\r\nhandleClickPrint = async ()=>{\r\n const parametros = this.state.selectedPeriodo + \",\" + (this.state.selectedIntensivo === '' ? \"null\" : this.state.selectedIntensivo) +\",\"+(this.state.valueAutoCompleteFiltroNivel===null?'null':this.state.valueAutoCompleteFiltroNivel.ID_NIVEL)+ \",\" + tokenInfo.user;\r\n await Promise.resolve(this.setState({ parametros }));\r\n document.getElementById(\"BT_OFERTA\").click();\r\n}\r\n\r\nhandleClickModify =()=>{\r\n\r\nthis.resetHorario();\r\nconst infoRowSelected = this.state.rows.find(x => x.ID_SECCION === this.state.idRowSelected);\r\nthis.numero_seccion = infoRowSelected.SECCION;\r\nthis.actionModal= 2;\r\nconst dias = infoRowSelected.DIAS.split(\"-\"); \r\nconst daysWeek = this.state.daysWeek;\r\nconst catedratico = this.state.optionsCate.find(x => x.CUENTA_CATEDRATICO === infoRowSelected.CATEDRATICO.split(\" \")[0]);\r\nconst aula = this.aulas.find(x => x.ID_AULA === infoRowSelected.ID_AULA);\r\nconst curso = this.cursos.find(x => x.ID_CURSO === infoRowSelected.ID_CURSO);\r\nlet horario = infoRowSelected.INICIO+\"#\"+infoRowSelected.FIN;\r\n\r\nthis.handleChangeSucursal({ target: { value: aula.ID_SUCURSAL } });\r\nthis.onChangeAutocompleteAula(null, aula);\r\nthis.handleChangeModalidad({ target: { value: infoRowSelected.ID_ESTADO_MODALIDAD } });\r\nthis.onChangeAutocompleteCurso(null, curso); \r\n\r\ndaysWeek.map((item)=>{\r\n if ((Boolean(dias.find(x => x === item.descripcion.substring(0,1))) && item.id !== 1) || (Boolean(dias.find(x => x === \"K\")) && item.id === 1)){\r\n \r\n let hh = null;\r\n if (infoRowSelected.DIAS_DETALLE !== null){\r\n let dd = item.id !== 1 ? item.descripcion.substring(0,1) : \"K\";\r\n hh = infoRowSelected.DIAS_DETALLE.replaceAll(\"(\", \"\").replaceAll(\")\", \"\").split(\"/n\").find(x => x.substring(0,1) === dd).replace(dd, \"\").split(\".\");\r\n }\r\n \r\n item.checked = true;\r\n item.inicio = infoRowSelected.DIAS_DETALLE === null ? infoRowSelected.INICIO : hh[0];\r\n item.fin = infoRowSelected.DIAS_DETALLE === null ? infoRowSelected.FIN : hh[1];\r\n item.aula = infoRowSelected.DIAS_DETALLE === null ? infoRowSelected.AULA: hh[2]; //infoRowSelected.AULA;\r\n item.catedratico = catedratico !== undefined ? catedratico.NOMBRE_COMPLETO : null;\r\n }\r\n return item;\r\n });\r\n\r\nthis.setState({ modalTitle: \"Sección\",\r\n selectedJornada: infoRowSelected.ID_JORNADA,\r\n selectedJornadaSec: infoRowSelected.ID_ESTADO_MODALIDAD === 2 ? infoRowSelected.ID_JORNADA_MODALIDAD : '',\r\n defaultValueCupo: infoRowSelected.CUPO,\r\n defaultValueCupoS: infoRowSelected.CUPO_MODALIDAD,\r\n defaultValueGrupo: infoRowSelected.GRUPO,\r\n daysWeek: daysWeek, \r\n valueAutoCompleteCate: catedratico !== undefined ? catedratico : null,\r\n checkLE: Boolean(infoRowSelected.ACEPTA_LE),\r\n checkEstatus: infoRowSelected.ESTATUS_SECCION === \"A\" ? true : false,\r\n checkedControlHora: true,\r\n backdropText: \"Guardando...\",\r\n horario_tmp: horario,\r\n openModal: true ,\r\n guarda_horario:horario\r\n });\r\n\r\n\r\n}\r\n\r\nhandleClickDelete = ()=>{\r\n this.actionModal = 3;\r\n \r\n this.setState({ modalConfTitle: \"Sección\",\r\n modalConfText: \"¿Confirma que desea eliminar la sección?\",\r\n openModalConfirm: true });\r\n\r\n}\r\n\r\nhandleClickPond = ()=>{\r\n\r\nthis.setState({ openModalPond: true });\r\n\r\n}\r\n\r\nhandleClose = ()=>{\r\n this.setState({ openModal: false });\r\n}\r\n\r\nhandleCloseFiltro = ()=>{\r\n this.setState({ openModalFiltro: false,valueAutoCompleteFiltroNivel: null,filters: [] });\r\n}\r\n\r\nhandleOpenFiltro = ()=>{\r\n this.setState({ openModalFiltro: true });\r\n}\r\n\r\nhandleOKFiltro = ()=>{\r\n if(this.state.valueAutoCompleteFiltroNivel!==null)\r\n {\r\n var filters = [{columnName: 'DESCRIPCION_NIVEL', operation: 'equal', value: this.state.valueAutoCompleteFiltroNivel.DESCRIPCION_NIVEL }]\r\n this.setState({ filters,openModalFiltro: false });\r\n }\r\n else\r\n {\r\n this.setState({ filters: [],openModalFiltro: false });\r\n }\r\n}\r\n\r\nchangeFilters = filters => this.setState({ filters });\r\n\r\nhandleCloseConfirmation = ()=>{\r\n this.setState({ openModalConfirm: false },()=>{\r\n if (this.state.openModal)\r\n this.setState({ checkEstatus: !this.state.checkEstatus });\r\n });\r\n}\r\n\r\nhandleClosePond = ()=>{ \r\n this.setState({ openModalPond: false });\r\n}\r\n\r\ntoggleChecked = (event)=>{\r\n this.setState({ checkedControlHora: event.target.checked });\r\n}\r\n\r\nsetHorarioTmp = (value, index, catedratico, aula)=>{\r\n \r\n let horario = value !== null ? value.split(\"#\") : null; \r\n\r\n let daysWeek = this.state.daysWeek.map((item)=> {\r\n if (index === item.id){\r\n item.catedratico = !item.checked ? catedratico : null;\r\n item.aula = !item.checked ? aula : null;\r\n item.inicio = !item.checked ? horario[0] : null; \r\n item.fin = !item.checked ? horario[1] : null; \r\n item.checked = !item.checked ? true : false;\r\n }\r\n return item;\r\n }); \r\n //this.setState({ horario_tmp: daysWeek.filter(x => x.checked).length === 0 ? null :value, daysWeek }); \r\n this.setState({ horario_tmp: daysWeek.filter(x => x.checked).length === 0 & this.state.checkedControlHora===1 ? this.state.guarda_horario\r\n :value, daysWeek }); \r\n}\r\n\r\nresetHorario = () => {\r\n \r\n let daysWeek = this.state.daysWeek.map((item)=> {\r\n item.catedratico =null;\r\n item.aula = null;\r\n item.inicio = null;\r\n item.fin = null;\r\n item.checked = false;\r\n \r\n return item;\r\n }); \r\n this.setState({ horario_tmp: null, daysWeek }); \r\n\r\n}\r\n\r\nhandleChangeSucursal = (event)=>{\r\n this.setState({ selectedSucursal: event.target.value,\r\n valueAutoCompleteAula: null,\r\n capacidad: '',\r\n optionsAula: this.aulas.filter(x => x.ID_SUCURSAL === event.target.value) }); \r\n}\r\n\r\nonChangeAutocompleteAula = (event, newValue) => { \r\n this.setState({ valueAutoCompleteAula: newValue, \r\n capacidad: newValue === null ? '' : newValue.CUPO });\r\n}\r\n\r\nonChangeAutocompleteCate = (event, newValue) =>{\r\n this.setState({ valueAutoCompleteCate: newValue });\r\n}\r\n\r\nonChangeAutocompleteNivel = (event, newValue) =>{\r\n this.setState({ valueAutoCompleteNivel: newValue,\r\n valueAutoCompleteCurso: null, \r\n optionsCurso: newValue !== null ? this.cursos.filter(x => x.ID_NIVEL === newValue.ID_NIVEL) : this.cursos\r\n });\r\n}\r\n\r\nonChangeAutocompleteFiltroNivel = (event, newValue) =>{\r\n this.setState({ valueAutoCompleteFiltroNivel: newValue});\r\n}\r\n\r\nonChangeAutocompleteCurso = (event, newValue)=>{ \r\n this.setState({ valueAutoCompleteCurso: newValue === undefined ? null : newValue }, ()=>{\r\n if (this.state.valueAutoCompleteNivel === null && newValue !== null){ \r\n const valueNivel = newValue !== undefined ? this.state.optionsNivel.filter(x => x.ID_NIVEL === newValue.ID_NIVEL)[0] : undefined;\r\n this.setState({ valueAutoCompleteNivel: valueNivel !== undefined ? valueNivel : null,\r\n optionsCurso: newValue !== undefined ? this.cursos.filter(x => x.ID_NIVEL === newValue.ID_NIVEL) : this.cursos\r\n });\r\n }\r\n });\r\n}\r\n\r\nhandleChangeModalidad = (event)=>{ \r\n this.setState({ selectedModalidad: event.target.value,\r\n optionMod: event.target.value !== 2 ? false : true,\r\n selectedJornadaSec: event.target.value !== 2 ? '' : this.state.selectedJornada });\r\n\r\n}\r\n\r\nfiltrar_jornadas = (intensivo)=>{\r\n\r\n if (this.jornadas.length > 0)\r\n { \r\n const items = this.jornadas.filter(x => (!intensivo && !x.MOD_PERIODO_INTENSIVO) || (intensivo && x.MOD_PERIODO_INTENSIVO)).map((item, i) =>{\r\n return {item.DESCRIPCION} \r\n }); \r\n \r\n this.setState({ datosSelectJornada: items, \r\n datosSelectJornadaSec: items });\r\n \r\n } \r\n\r\n}\r\n\r\nhandleChangeJornada = (event)=>{\r\n this.setState({ selectedJornada: event.target.value }, ()=>{\r\n if (this.state.selectedModalidad === 2)\r\n this.setState({ selectedJornadaSec: event.target.value });\r\n });\r\n}\r\n\r\nhandleChangeJornadaSec = (event)=>{\r\n this.setState({ selectedJornadaSec: event.target.value });\r\n}\r\n\r\nonChangeLE = (event)=>{\r\n this.setState({ checkLE: event.target.checked });\r\n}\r\n\r\nonChangeEstatus = (event)=>{\r\n\r\n const typeProcess = !event.target.checked ? \"Cancelar\" : \"Reactivar\";\r\n this.actionModalStatus= !event.target.checked ? 4 : 5;\r\n\r\n this.setState({ checkEstatus: event.target.checked,\r\n modalConfTitle: \"Sección\",\r\n modalConfText: \"¿Confirma que desea \" + typeProcess.toLowerCase() + \" la sección?\",\r\n openModalConfirm: true });\r\n}\r\n\r\nhandleOK = ()=>{\r\n\r\nif (funciones.isEmpty(this.state.valueAutoCompleteAula)){\r\n document.getElementById(\"aulaAC\").focus();\r\n funciones.showToast('w', 'Debe especificar el aula');\r\n return;\r\n}\r\n\r\nif (funciones.isEmpty(this.state.selectedJornada)){\r\n this.jornadaRef.current.focus();\r\n funciones.showToast(\"w\", \"Seleccione la jornada\");\r\n return;\r\n}\r\n\r\nif (this.state.selectedModalidad === 2 && funciones.isEmpty(this.state.selectedJornadaSec)){\r\n this.jornadaSecRef.current.focus();\r\n funciones.showToast(\"w\", \"Seleccione la jornada secundaria\");\r\n return;\r\n}\r\n \r\nif (funciones.isEmpty(this.state.valueAutoCompleteCate)){\r\n document.getElementById(\"cateAC\").focus();\r\n funciones.showToast('w', 'Debe especificar el catedrático');\r\n return;\r\n}\r\n\r\nif (funciones.isEmpty(this.state.valueAutoCompleteCurso)){\r\n document.getElementById(\"cursoAC\").focus();\r\n funciones.showToast(\"w\", \"Seleccione el curso\");\r\n return;\r\n}\r\n\r\nif (!this.state.daysWeek.find(x => x.checked)){\r\n funciones.showToast(\"w\", \"Debe especificar el horario\");\r\n return;\r\n}\r\n\r\nthis.setState({ openBackDrop: true }, ()=>{\r\n\r\nconst daysDetail = this.daysDetail(); \r\nconst id_seccion = this.actionModal === 1 ? 0 : this.state.idRowSelected;\r\nconst cuenta_catedratico = this.state.valueAutoCompleteCate.CUENTA_CATEDRATICO;\r\nconst id_curso = this.state.valueAutoCompleteCurso.ID_CURSO;\r\nconst id_aula = this.state.valueAutoCompleteAula.ID_AULA;\r\nconst inicio = daysDetail.inicio;\r\nconst fin = daysDetail.fin;\r\nconst dias = daysDetail.strDays;\r\nconst numero_seccion = this.numero_seccion;\r\nconst cupo = funciones.isEmpty(this.cupoRef.current.value) ? 0 : this.cupoRef.current.value;\r\nconst id_jornada = this.state.selectedJornada;\r\nconst id_cm = this.state.selectedPeriodo;\r\nconst id_cm_pi = !funciones.isEmpty(this.state.selectedIntensivo) ? this.state.selectedIntensivo : \"null\";\r\nconst grupo = funciones.isEmpty(this.grupoRef.current.value) ? \"null\" : this.grupoRef.current.value;\r\nconst lista_espera = this.state.checkLE ? 1 : 0; \r\nconst cupo_mod = this.state.selectedModalidad === 2 ? (funciones.isEmpty(this.cupoSecRef.current.value) ? 0 : this.cupoSecRef.current.value) : \"null\";\r\nconst id_jornada_mod = this.state.selectedModalidad === 2 ? this.state.selectedJornadaSec : \"null\";\r\nconst id_estado_mod = this.state.selectedModalidad;\r\nconst id_sucursal = this.state.selectedSucursal;\r\n\r\nthis.gestion_oferta(id_seccion, \r\n cuenta_catedratico,\r\n id_curso,\r\n id_aula,\r\n inicio,\r\n fin,\r\n dias,\r\n numero_seccion,\r\n cupo,\r\n id_jornada,\r\n id_cm,\r\n id_cm_pi,\r\n grupo,\r\n lista_espera,\r\n cupo_mod,\r\n id_jornada_mod,\r\n id_estado_mod, \r\n id_sucursal,\r\n this.actionModal)\r\n .then((res)=>{ \r\n\r\n if (res === null){\r\n this.setState({ openBackDrop: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n return; \r\n }\r\n\r\n if (res[0].RESP === undefined)\r\n { \r\n \r\n const newStructure = funciones.refreshTable(this.actionModal,\r\n this.state.rows,\r\n undefined,\r\n res,\r\n 'ID_SECCION');\r\n\r\n this.setState({ rows: newStructure.refreshRows,\r\n idRowSelected: res[0].ID_SECCION,\r\n openBackDrop: false }, ()=> { \r\n \r\n if (movil && newStructure.moveScroll){ window.scrollTo(0, this.state.heightTableMain); }\r\n if (newStructure.moveScroll){ this.vtRef.current.scrollToRow(res[0].ID_SECCION); } \r\n funciones.showToast('s', this.actionModal === 1 ? 'Se ha registrado ' + res[0].CURSO + \" sección \" + res[0].SECCION : 'Se han registrado los cambios');\r\n this.handleClose();\r\n \r\n }); \r\n\r\n }\r\n else\r\n {\r\n this.setState({ openBackDrop: false }, ()=>{ \r\n funciones.showToast('w', res[0].RESP); \r\n }); \r\n }\r\n\r\n });\r\n\r\n});\r\n\r\n}\r\n\r\nhandleOKDelete = ()=>{ \r\n\r\nthis.setState({ backdropText: \"Eliminando...\", \r\n openBackDrop: true, \r\n openModalConfirm: false }, ()=>{\r\n \r\nthis.gestion_oferta(this.state.idRowSelected, \r\n \"0\",\r\n 0,\r\n 0,\r\n \"0\",\r\n \"0\",\r\n \"0\",\r\n 0,\r\n 0,\r\n 0,\r\n 0, \r\n 'null', \r\n \"null\",\r\n 0,\r\n 0,\r\n \"null\",\r\n 0, \r\n 0,\r\n 3)\r\n.then((res)=>{ \r\n\r\n if (res === null){\r\n this.setState({ openBackDrop: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n return; \r\n }\r\n \r\n if (res[0].RESP === undefined)\r\n {\r\n const newStructure = funciones.refreshTable(3,\r\n this.state.rows,\r\n undefined,\r\n res,\r\n 'ID_SECCION');\r\n \r\n this.setState({ rows: newStructure.refreshRows, \r\n openBackDrop: false }, ()=>{\r\n\r\n funciones.showToast('s', 'Se ha eliminado la sección');\r\n this.handleClose();\r\n\r\n });\r\n\r\n }\r\n else\r\n {\r\n this.setState({ openBackDrop: false }, ()=>{ \r\n funciones.showToast('w', res[0].RESP); \r\n }); \r\n }\r\n \r\n});\r\n \r\n});\r\n\r\n}\r\n\r\nhandleOKStatus = ()=>{\r\n\r\nthis.setState({ backdropText: \"Configurando estado...\", \r\n openBackDrop: true, \r\n openModalConfirm: false }, ()=>{\r\n\r\n const id_cm = this.state.selectedPeriodo;\r\n const id_cm_pi = this.state.selectedIntensivo !== '' ? this.state.selectedIntensivo : \"null\";\r\n\r\n this.gestion_oferta(this.state.idRowSelected, \r\n \"0\",\r\n 0,\r\n 0,\r\n \"0\",\r\n \"0\",\r\n \"0\",\r\n 0,\r\n 0,\r\n 0,\r\n id_cm,\r\n id_cm_pi,\r\n \"null\",\r\n 0,\r\n 0,\r\n \"null\",\r\n 0, \r\n 0,\r\n this.actionModalStatus)\r\n .then((res)=>{ \r\n\r\n if (res === null){\r\n this.setState({ openBackDrop: false, checkEstatus: !this.state.checkEstatus }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n return; \r\n }\r\n \r\n if (res[0].RESP === undefined)\r\n {\r\n const newStructure = funciones.refreshTable(2,\r\n this.state.rows,\r\n undefined,\r\n res,\r\n 'ID_SECCION');\r\n \r\n this.setState({ rows: newStructure.refreshRows, \r\n openBackDrop: false }, ()=>{\r\n\r\n funciones.showToast('s', 'Se ha configurado nuevo estado en la sección');\r\n this.handleClose();\r\n\r\n });\r\n\r\n }\r\n else\r\n {\r\n this.setState({ openBackDrop: false, checkEstatus: !this.state.checkEstatus }, ()=>{ \r\n funciones.showToast('w', res[0].RESP); \r\n }); \r\n }\r\n \r\n});\r\n\r\n});\r\n\r\n} \r\n\r\ndaysDetail = ()=>{\r\n\r\nlet r = \"\";\r\nlet inicio = null;\r\nlet fin = null;\r\nthis.state.daysWeek.filter(x => x.checked).map((item, i)=> { \r\n\r\n inicio = i === 0 && inicio === null ? item.inicio : inicio;\r\n fin = i === 0 && fin === null ? item.fin : fin;\r\n\r\n r = r + (String(item.id + 1) + \"(\" + item.inicio + \",\" + item.fin + \")&\"); \r\n return item;\r\n});\r\n\r\nif (r.substring(r.length - 1, r.length) === \"&\"){\r\n r = r.substring(0, r.length - 1);\r\n}\r\n\r\nreturn [{ strDays: r, inicio: inicio, fin: fin }][0];\r\n\r\n}\r\n\r\ngestion_oferta = async (id_seccion, cuenta_catedratico, id_curso, id_aula, inicio, fin, dias, numero_seccion, cupo, id_jornada, id_cm, id_cm_pi, grupo, lista_espera, cupo_mod, id_jornada_mod, id_estado_mod, id_sucursal, tipo)=>{\r\n\r\nreturn await new Promise(resolve => {\r\n\r\nnew Request\r\n .post(`${globales.ip}/oferta/operaciones`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ id_seccion: id_seccion, \r\n cuenta_catedratico: cuenta_catedratico, \r\n id_curso: id_curso,\r\n id_aula: id_aula,\r\n inicio: inicio,\r\n fin: fin,\r\n dias: dias,\r\n numero_seccion: numero_seccion,\r\n ad_usuario: tokenInfo.user,\r\n cupo: cupo,\r\n id_jornada: id_jornada,\r\n id_cm,\r\n id_cm_pi,\r\n grupo: grupo,\r\n lista_espera: lista_espera,\r\n cupo_mod: cupo_mod,\r\n id_jornada_mod: id_jornada_mod,\r\n id_estado_mod: id_estado_mod,\r\n id_sucursal: id_sucursal,\r\n tipo: tipo })\r\n .retry(0)\r\n .timeout({ response: 30000, 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 return resolve(null);\r\n }\r\n \r\n const rows = JSON.parse(res.text); \r\n \r\n if (rows.length > 0)\r\n { \r\n resolve(rows);\r\n } \r\n \r\n});\r\n\r\n});\r\n\r\n}\r\n\r\nhandleChangeCheckPond = (event)=>{\r\n\r\n this.setState({ ...this.state, [event.target.name]: event.target.checked }, ()=>{\r\n if (event.target.name !== \"checkedEditPond\" && event.target.name !== \"checkedEditExt\")\r\n this.setStatusExt();\r\n });\r\n \r\n}\r\n\r\nsetStatusExt = ()=>{\r\n\r\n let haveCheck = null;\r\n let i = 1;\r\n while (i <= 4)\r\n {\r\n haveCheck = (this.state[\"checkedN\" + i] && haveCheck === null) ? i : haveCheck; \r\n i++;\r\n }\r\n \r\n this.valorExt = haveCheck !== null ? this[\"nota\" + haveCheck + \"Ref\"].current.value : null;\r\n \r\n this.setState({ checkedN1Status: haveCheck !== null ? parseInt(this.nota1Ref.current.value) === parseInt(this.valorExt) ? true : false : true,\r\n checkedN2Status: haveCheck !== null ? parseInt(this.nota2Ref.current.value) === parseInt(this.valorExt) ? true : false : true,\r\n checkedN3Status: haveCheck !== null ? parseInt(this.nota3Ref.current.value) === parseInt(this.valorExt) ? true : false : true,\r\n checkedN4Status: haveCheck !== null ? parseInt(this.nota4Ref.current.value) === parseInt(this.valorExt) ? true : false : true,\r\n }); \r\n \r\n}\r\n\r\nonEnteringPond = ()=>{\r\n\r\nthis.isCo = null;\r\nthis.setState({ loadingPond: true }, ()=>{\r\n \r\n new Request\r\n .get(`${globales.ip}/oferta/seccion/ponderacion/${this.state.idRowSelected}`)\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({ loadingPond: false, openModalPond: 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 this.isCo = Boolean(rows[0].ES_CORREQUISITO);\r\n this.setState({ checkedN1Status: !this.isCo,\r\n checkedN2Status: !this.isCo,\r\n checkedN3Status: !this.isCo,\r\n checkedN4Status: !this.isCo,\r\n labStatus: Boolean(rows[0].TIENE_CORREQUISITO),\r\n checkedEditPond: Boolean(rows[0].PO_MODIFICABLE_CATEDRATICO),\r\n checkedEditExt: Boolean(rows[0].PO_MODIFICA_EXTRAORDINARIO_CATEDRATICO),\r\n loadingPond: false }, ()=>{ \r\n \r\n rows.map((item, index)=>{ \r\n \r\n this.valorExt = (Boolean(rows[index].PO_PERMITE_EXTRAORDINARIO) && this.valorExt === null) ? rows[index].PO_PORCENTAJE : this.valorExt;\r\n \r\n switch(rows[index].PO_ID_PONDERACION){\r\n \r\n case 1: \r\n this.nota1Ref.current.value = rows[index].PO_PORCENTAJE;\r\n this.setState({ checkedN1: Boolean(rows[0].ES_CORREQUISITO) ? false : Boolean(rows[index].PO_PERMITE_EXTRAORDINARIO) });\r\n break;\r\n case 2: \r\n this.nota2Ref.current.value = rows[index].PO_PORCENTAJE;\r\n this.setState({ checkedN2: Boolean(rows[0].ES_CORREQUISITO) ? false : Boolean(rows[index].PO_PERMITE_EXTRAORDINARIO) });\r\n break;\r\n case 3: \r\n this.nota3Ref.current.value = rows[index].PO_PORCENTAJE;\r\n this.setState({ checkedN3: Boolean(rows[0].ES_CORREQUISITO) ? false : Boolean(rows[index].PO_PERMITE_EXTRAORDINARIO) });\r\n break;\r\n case 4: \r\n this.nota4Ref.current.value = rows[index].PO_PORCENTAJE;\r\n this.setState({ checkedN4: Boolean(rows[0].ES_CORREQUISITO) ? false : Boolean(rows[index].PO_PERMITE_EXTRAORDINARIO) }, ()=>{\r\n if (!this.isCo) this.setStatusExt();\r\n });\r\n break;\r\n case 6: \r\n this.labRef.current.value = rows[index].PO_PORCENTAJE;\r\n break;\r\n \r\n default:\r\n break;\r\n } \r\n \r\n \r\n return item;\r\n }); \r\n \r\n this.onChangePond(null);\r\n \r\n });\r\n \r\n }\r\n else \r\n {\r\n this.setState({ loadingPond: false });\r\n } \r\n \r\n }); \r\n \r\n });\r\n \r\n} \r\n\r\nonChangePond = (event)=>{ \r\n\r\n let val1= parseInt(this.nota1Ref.current.value);\r\n let val2= parseInt(this.nota2Ref.current.value);\r\n let val3= parseInt(this.nota3Ref.current.value);\r\n let val4= parseInt(this.nota4Ref.current.value);\r\n let valLab= parseInt(this.labRef.current.value);\r\n \r\n val1 = isNaN(val1) ? 0 : val1;\r\n val2 = isNaN(val2) ? 0 : val2;\r\n val3 = isNaN(val3) ? 0 : val3;\r\n val4 = isNaN(val4) ? 0 : val4;\r\n valLab = isNaN(valLab) ? 0 : valLab;\r\n \r\n this.setState({ totalValuePond: val1 + val2 + val3 + val4 + valLab });\r\n if (!this.isCo)\r\n this.setStatusExt();\r\n \r\n}\r\n\r\nhandleOkPond = ()=>{\r\n\r\nthis.setState({ savingPond: true }, ()=>{\r\n\r\n let strPond = \"\";\r\n let valExt = null;\r\n let valLab = this.labRef.current.value;\r\n let i = 1;\r\n let maxPond = this.state.labStatus ? 6 : 5; \r\n while (i <= maxPond)\r\n {\r\n valExt = (valExt === null && this.state[\"checkedN\" + i] ? this[\"nota\" + i + \"Ref\"].current.value : valExt); \r\n strPond = strPond + i + \"(\" + \r\n (i < 5 ? this[\"nota\" + i + \"Ref\"].current.value :\r\n (i === 5 ? (valExt === null ? \"0\" : valExt) : valLab)) + \",\" +\r\n (i < 5 ? (this.state[\"checkedN\" + i] ? \"1,\" : \"0,\") : \"0,\") + \r\n (this.state.checkedEditPond ? \"1,\" : \"0,\") +\r\n (this.state.checkedEditExt ? \"1,\" : \"0,\") + \"0)\" + (i < maxPond ? \"&\" : \"\"); \r\n i++;\r\n }\r\n \r\n new Request\r\n .post(`${globales.ip}/oferta/seccion/ponderacion`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ id_seccion: this.state.idRowSelected,\r\n str_ponderaciones: strPond, \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({ savingPond: 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[0].RESP === 'OK')\r\n { \r\n this.setState({ savingPond: false }, ()=> { \r\n funciones.showToast('s', 'Se ha actualizado la ponderación'); \r\n }); \r\n\r\n }\r\n else\r\n {\r\n this.setState({ savingPond: 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\nhandleCloseCopy = ()=>{\r\n this.setState({ openModalCopy: false }, ()=>{\r\n if (this.regCopy)\r\n this.obtener_oferta(this.state.selectedPeriodo, (this.state.selectedIntensivo === '' ? \"null\" : this.state.selectedIntensivo));\r\n });\r\n}\r\n\r\ntoggleCheckedPI = (event)=>{ \r\n \r\n this.setState({ selectedIntOrigen: '', selectedIntDestino: '', checkedPI: event.target.checked }, ()=>{\r\n \r\n if (event.target.disabledTimeout){\r\n this.handleChangePerOrigen({ target: { value: this.state.selectedPerOrigen } });\r\n return;\r\n }\r\n \r\n setTimeout(() => {\r\n this.handleChangePerOrigen({ target: { value: this.state.selectedPerOrigen } });\r\n }, 600);\r\n\r\n });\r\n}\r\n\r\nhandleChangeCheckCopy = (event)=>{\r\n this.setState({ ...this.state, [event.target.name]: event.target.checked });\r\n}\r\n\r\nhandleChangePerOrigen = (event)=>{\r\n\r\n const itemsDestino = !this.state.checkedPI ? this.state.datosSelectPeriodo.filter(x => x.props.value > event.target.value) : \r\n this.state.datosSelectPeriodo.filter(x => x.props.value >= event.target.value);\r\n\r\n this.setState({ selectedPerOrigen: event.target.value,\r\n selectedPerDestino: '',\r\n datosSelectPerDestino: itemsDestino }, ()=>{\r\n this.setItemsSelectInt(\"O\");\r\n if (this.state.datosSelectPerDestino.length > 0) \r\n this.handleChangePerDestino({ target: { value: this.state.datosSelectPerDestino[0].props.value } });\r\n \r\n});\r\n\r\n}\r\n\r\nhandleChangePerDestino = (event)=>{ \r\n this.setState({ selectedPerDestino: event.target.value }, ()=>{\r\n this.setItemsSelectInt(\"D\");\r\n });\r\n}\r\n\r\nhandleChangeIntOrigen = (event)=>{\r\n this.setState({ selectedIntOrigen: event.target.value }, ()=>{\r\n this.setItemsSelectInt(\"D\");\r\n });\r\n}\r\n\r\nhandleChangeIntDestino = (event)=>{\r\n this.setState({ selectedIntDestino: event.target.value });\r\n}\r\n\r\nsetItemsSelectInt = (sel)=>{\r\n\r\n const selControl = sel === \"O\" ? this.state.selectedPerOrigen : this.state.selectedPerDestino; \r\n\r\n const itemsInt = this.periodos.filter(x => (x.ID_CONTROL_MATRICULA_PADRE === selControl && sel === \"O\") || (sel ===\"D\" && x.ID_CONTROL_MATRICULA_PADRE === selControl && x.ID_CONTROL_MATRICULA > this.state.selectedIntOrigen)).map((item, i)=>{\r\n const style = { fontWeight: \"bold\", color: colores.azul }\r\n return ({item.DESCRIPCION});\r\n });\r\n\r\n\r\n if (sel === \"O\"){ \r\n this.setState({ datosSelectIntOrigen: this.state.checkedPI ? itemsInt : [] });\r\n return\r\n }\r\n\r\n this.setState({ datosSelectIntDestino: this.state.checkedPI ? itemsInt : [] });\r\n\r\n}\r\n\r\nhandleOKCopy = ()=>{\r\n \r\nif (funciones.isEmpty(this.state.selectedPerOrigen)){\r\n funciones.showToast('w', \"Debe seleccionar un período de origen\");\r\n return;\r\n}\r\n\r\nif (funciones.isEmpty(this.state.selectedPerDestino)){\r\n funciones.showToast('w', \"Debe seleccionar un período de destino\");\r\n return;\r\n}\r\n\r\nif (this.state.checkedPI && funciones.isEmpty(this.state.selectedIntOrigen)){\r\n funciones.showToast('w', \"Debe seleccionar un período intensivo de origen\");\r\n return;\r\n}\r\n\r\nif (this.state.checkedPI && funciones.isEmpty(this.state.selectedIntDestino)){\r\n funciones.showToast('w', \"Debe seleccionar un período intensivo de destino\");\r\n return;\r\n}\r\n\r\nif (funciones.isEmpty(this.state.valueAutoCompleteNivel))\r\n{\r\n funciones.showToast('w', \"Debe seleccionar un nivel\");\r\n document.getElementById(\"ofertaNivelAC\").focus();\r\n return;\r\n}\r\n\r\nthis.setState({ rowsDetail: [], openModalDetail: true });\r\n\r\n}\r\n\r\nhandleCloseDetail = ()=>{\r\n this.setState({ openModalDetail: false });\r\n}\r\n\r\nonEnteringDetail = ()=>{\r\n\r\nthis.setState({ heightTableDetail: funciones.getHeightTableDialog(movil, this.tablaRef, this.dialogActionsRef, !movil ? 7 : 5), \r\n loadingDetail: true },()=>{ \r\n\r\n const id_nivel = this.state.valueAutoCompleteNivel.ID_NIVEL;\r\n const id_cm_origen = this.state.selectedPerOrigen;\r\n const id_cm_pi_origen = this.state.checkedPI ? this.state.selectedIntOrigen : \"null\";\r\n const id_cm_destino = this.state.selectedPerDestino;\r\n const id_cm_pi_destino = this.state.checkedPI ? this.state.selectedIntDestino : \"null\";\r\n const hibridas = this.state.checkedHib ? 1 : 0;\r\n const dedicadas = this.state.checkedDed ? 1 : 0;\r\n const canceladas = this.state.checkedCan ? 1 : 0;\r\n \r\n new Request\r\n .get(`${globales.ip}/oferta/replicar/${id_nivel}/${id_cm_origen}/${id_cm_pi_origen}/${id_cm_destino}/${id_cm_pi_destino}/${hibridas}/${dedicadas}/${canceladas}/${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({ 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 rows = JSON.parse(res.text);\r\n \r\n this.setState({ rowsDetail: rows, loadingDetail: false }); \r\n \r\n });\r\n\r\n});\r\n\r\n\r\n}\r\n\r\nhandleOKDetail = ()=>{\r\n\r\nthis.setState({ openModalDetail: false, copying: true }, ()=>{\r\n\r\nconst id_nivel = this.state.valueAutoCompleteNivel.ID_NIVEL;\r\nconst id_cm_origen = this.state.selectedPerOrigen;\r\nconst id_cm_pi_origen = this.state.checkedPI ? this.state.selectedIntOrigen : \"null\";\r\nconst id_cm_destino = this.state.selectedPerDestino;\r\nconst id_cm_pi_destino = this.state.checkedPI ? this.state.selectedIntDestino : \"null\";\r\nconst hibridas = this.state.checkedHib ? 1 : 0;\r\nconst dedicadas = this.state.checkedDed ? 1 : 0;\r\nconst canceladas = this.state.checkedCan ? 1 : 0;\r\n\r\nnew Request\r\n.post(`${globales.ip}/oferta/replicar`)\r\n.set({'authorization': 'Bearer ' + Auth.getToken() })\r\n.set('Content-Type', 'application/json')\r\n.send({ id_nivel: id_nivel, \r\n id_cm_origen: id_cm_origen, \r\n id_cm_pi_origen: id_cm_pi_origen,\r\n id_cm_destino: id_cm_destino,\r\n id_cm_pi_destino: id_cm_pi_destino,\r\n hibridas: hibridas,\r\n dedicadas: dedicadas,\r\n canceladas: canceladas,\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({ copying: 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[0].RESP === 'OK')\r\n { \r\n if (this.state.selectedPeriodo === this.state.selectedPerDestino || (!funciones.isEmpty(this.state.selectedIntensivo) && this.state.selectedIntensivo === this.state.selectedIntDestino)){\r\n this.regCopy = true;\r\n }\r\n\r\n this.setState({ copying: false }, ()=> { \r\n funciones.showToast('s', 'Se han copiado todas las secciones del nivel seleccionado'); \r\n }); \r\n\r\n }\r\n else\r\n {\r\n this.setState({ copying: 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\nonEntering = ()=>{\r\n\r\nconst heightTableDialog = funciones.getHeightTableDialog(movil, this.tableDialogRef, this.dialogActionsRef, 6);\r\nthis.setState({ heightTableDialog });\r\n\r\n}\r\n\r\nmoodle = ()=>{\r\n\r\nconst moodle = Boolean(this.state.rows[0].ENABLE_MOODLE);\r\n\r\nif (!moodle){\r\n funciones.showToast(\"w\", \"Esta opción no esta habilitada\");\r\n return;\r\n}\r\n\r\nif (funciones.isEmpty(this.state.idRowSelected)) return;\r\n\r\nconst url_moodle = this.state.rows.find(x => x.ID_SECCION === this.state.idRowSelected).URL_MOODLE;\r\nwindow.open(url_moodle, '_blank');\r\n\r\n}\r\n\r\nhandleOpenMenuTable = (event) => {\r\n \r\n const rowSelected = this.state.rows.find(x => x.ID_SECCION === this.state.idRowSelected);\r\n \r\n this.setState({ disabledOptionMenuDel: rowSelected.ESTATUS_SECCION !== \"C\" ? true : false,\r\n openMenu: true }); \r\n \r\n}\r\n\r\nhandleCloseMenuTable = (option) => (event)=>{\r\n\r\nthis.setState({ openMenu: false }, ()=>{\r\n\r\n switch (option) {\r\n case 1:\r\n this.handleClickPond(); \r\n break;\r\n case 2: \r\n this.handleClickModify();\r\n break;\r\n case 3:\r\n this.handleClickDelete(); \r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n});\r\n\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 === 1) // Usuario Admin\r\n {\r\n this.obtener_periodos(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }, ()=>{\r\n if (!movil)\r\n this.periodosRef.current.focus();\r\n }); \r\n\r\n this.obtener_sucursales();\r\n this.obtener_aulas();\r\n this.obtener_jornadas();\r\n this.obtener_catedraticos();\r\n this.obtener_niveles();\r\n this.obtener_cursos();\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 \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {this.state.modalTitle}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n Ubicación\r\n
\r\n \r\n 0 && !this.periodos[0].MODIFICAR_JORNADA_HIBRIDA)}\r\n Ref={this.jornadaSecRef} />\r\n \r\n \r\n }} />\r\n
\r\n } \r\n label=\"Lista de espera\"\r\n disabled={this.periodos.length > 0 && !Boolean(this.periodos[0].HABILITA_LE)} />\r\n } \r\n label={Cancelada\r\n | \r\n Activa\r\n } />\r\n }\r\n >\r\n Curso en Moodle\r\n \r\n
\r\n
\r\n
\r\n
\r\n Académico\r\n
\r\n option.NOMBRE_COMPLETO}\r\n renderInput={(params) => } \r\n value={this.state.valueAutoCompleteCate} \r\n onChange={this.onChangeAutocompleteCate}\r\n className={classes.textField}\r\n style={{ marginLeft: 0 }}\r\n getOptionDisabled={(option) => !Boolean(option.ESTATUS)}\r\n renderOption={(option) => (\r\n \r\n \r\n
\r\n
{option.CUENTA_CATEDRATICO}
\r\n {option.NOMBRE_COMPLETO}\r\n
\r\n
\r\n
\r\n )} \r\n ListboxProps={{ style: { maxHeight: 257 } }} \r\n disabled={this.state.daysWeek.filter(x => x.checked).length > 0}\r\n filterOptions={filterOptions}\r\n id=\"cateAC\"\r\n PaperComponent={(props)=>()} />\r\n option.DESCRIPCION_NIVEL}\r\n renderInput={(params) => } \r\n value={this.state.valueAutoCompleteNivel} \r\n onChange={this.onChangeAutocompleteNivel}\r\n className={classes.textField}\r\n getOptionDisabled={(option) => !Boolean(option.ESTATUS)}\r\n renderOption={(option) => (\r\n \r\n \r\n
\r\n
{option.CODIGO_NIVEL}
\r\n {option.DESCRIPCION_NIVEL}\r\n
\r\n
\r\n
\r\n )} \r\n ListboxProps={{ style: { maxHeight: 257 } }}\r\n disabled={this.actionModal === 2}\r\n filterOptions={filterOptionsNivel}\r\n PaperComponent={(props)=>()} />\r\n option.DESCRIPCION_CURSO}\r\n renderInput={(params) => } \r\n value={this.state.valueAutoCompleteCurso} \r\n onChange={this.onChangeAutocompleteCurso}\r\n className={classes.textField}\r\n getOptionDisabled={(option) => !Boolean(option.ESTATUS)}\r\n renderOption={(option) => (\r\n \r\n \r\n
\r\n
{option.CODIGO_CURSO}
\r\n {option.DESCRIPCION_CURSO}\r\n
\r\n
\r\n
\r\n )} \r\n ListboxProps={{ style: { maxHeight: 257 } }}\r\n disabled={this.actionModal === 2}\r\n filterOptions={filterOptionsCurso}\r\n id=\"cursoAC\"\r\n PaperComponent={(props)=>()} />\r\n
\r\n
\r\n
\r\n Horario\r\n
\r\n { this.state.daysWeek.map((item, index)=>{\r\n return \r\n })}\r\n \r\n } label=\"Usar último horario fijado\" style={{ marginLeft: movil ? 3 : undefined }}/>\r\n
\r\n
\r\n x.checked)}\r\n DefaultHiddenColumnNames={['id']}\r\n TableColumnExtensions={columnExtensionsDays} \r\n VirtualTable_cellComponent={VirtualTableDays_cellComponent}\r\n height={!movil ? this.state.heightTableDialog : 200} />\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n {this.state.modalConfTitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.state.modalConfText}\r\n \r\n \r\n \r\n {(()=> { \r\n if (this.state.openModal)\r\n return \r\n \r\n return \r\n })()}\r\n \r\n \r\n\r\n \r\n Ponderaciones\r\n \r\n \r\n \r\n \r\n \r\n {(()=>{\r\n if (this.state.loadingPond)\r\n {\r\n return (\r\n
\r\n \r\n \r\n )\r\n }\r\n else if (!this.state.loadingPond)\r\n {\r\n return (\r\n \r\n
\r\n
\r\n
\r\n Ponderación\r\n
\r\n \r\n Nota 1\r\n \r\n \r\n \r\n \r\n \r\n Nota 2\r\n \r\n \r\n \r\n \r\n \r\n Nota 3\r\n \r\n \r\n \r\n \r\n \r\n Nota 4\r\n \r\n \r\n \r\n \r\n \r\n Laboratorio\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Total\r\n \r\n 100 ? \"red\" : undefined } }}\r\n value={this.state.totalValuePond}\r\n InputProps={{ disableUnderline: true }}\r\n />\r\n \r\n \r\n
\r\n
\r\n Examen ext.\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 label=\"Permitir modificar ponderación al docente\"\r\n className=\"disableTouchOptions\"\r\n style={{ marginTop: 10, marginLeft: 5, marginBottom: 5 }}\r\n />\r\n }\r\n label=\"Permitir modificar extraordinario al docente\"\r\n className=\"disableTouchOptions\"\r\n style={{ marginLeft: 5 }}\r\n />\r\n \r\n \r\n )\r\n }\r\n })() \r\n }\r\n \r\n \r\n {(()=>{\r\n if (this.state.savingPond)\r\n return (
\r\n \r\n )\r\n \r\n return ()\r\n \r\n })()} \r\n \r\n
\r\n\r\n \r\n Replicar oferta\r\n \r\n \r\n \r\n \r\n \r\n } \r\n label=\"Copia para período instensivo\"\r\n style={{ marginBottom: 25 }}/> \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 option.DESCRIPCION_NIVEL}\r\n renderInput={(params) => } \r\n value={this.state.valueAutoCompleteNivel} \r\n onChange={this.onChangeAutocompleteNivel}\r\n className={!this.state.checkedPI ? classes.textFieldCopy : undefined}\r\n getOptionDisabled={(option) => !Boolean(option.ESTATUS)}\r\n renderOption={(option) => (\r\n \r\n \r\n
\r\n
{option.CODIGO_NIVEL}
\r\n {option.DESCRIPCION_NIVEL}\r\n
\r\n
\r\n
\r\n )} \r\n ListboxProps={{ style: { maxHeight: 257 } }}\r\n filterOptions={filterOptionsNivel}\r\n id=\"ofertaNivelAC\"\r\n PaperComponent={(props)=>()} />\r\n
\r\n }\r\n label=\"Canceladas\"\r\n style={{ marginLeft: 5 }}\r\n />\r\n }\r\n label=\"Híbridas\"\r\n style={{ marginLeft: 5 }}\r\n />\r\n }\r\n label=\"Dedicadas\"\r\n style={{ marginLeft: 5 }}\r\n />\r\n \r\n \r\n \r\n {(()=>{\r\n if (this.state.copying) \r\n return (
\r\n \r\n )\r\n \r\n return ()\r\n \r\n })()} \r\n \r\n \r\n \r\n \r\n Secciones a copiar\r\n \r\n \r\n \r\n \r\n \r\n \r\n {!this.state.loadingDetail?(this.state.rowsDetail.length===0?'No hay secciones para replicar':''):''}\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n Filtrar\r\n \r\n \r\n \r\n \r\n \r\n option.DESCRIPCION_NIVEL}\r\n renderInput={(params) => } \r\n value={this.state.valueAutoCompleteFiltroNivel} \r\n onChange={this.onChangeAutocompleteFiltroNivel}\r\n className={!this.state.checkedPI ? classes.textFieldCopy : undefined}\r\n //getOptionDisabled={(option) => !Boolean(option.ESTATUS)}\r\n renderOption={(option) => (\r\n \r\n \r\n
\r\n
{option.CODIGO_NIVEL}
\r\n {option.DESCRIPCION_NIVEL}\r\n
\r\n
\r\n
\r\n )} \r\n ListboxProps={{ style: { maxHeight: 257 } }}\r\n filterOptions={filterOptionsNivel}\r\n id=\"ofertaNivelAC\"\r\n PaperComponent={(props)=>()} \r\n />\r\n
\r\n \r\n \r\n \r\n
\r\n\r\n {(()=>{ \r\n if (this.state.parametros !== null)\r\n return(\r\n )\r\n })()}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Ponderaciones\r\n \r\n \r\n \r\n \r\n \r\n Modificar\r\n \r\n \r\n \r\n \r\n \r\n Eliminar\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {this.state.backdropText}\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)"],"sourceRoot":""}