{"version":3,"sources":["pages/pagina404.js","pages/paginasinpermiso.js","pages/propedeuticos/propedeuticos.js","pages/registro/Aplicarnotas.js"],"names":["withStyles","theme","Dialog","borderRadius","margin","padding","React","Component","constructor","props","super","this","height","movil_pequeño","state","isLoggin","undefined","render","_jsx","style","width","bottom","top","window","innerHeight","background","children","Card","boxShadow","_jsxs","CardActionArea","CardContent","textAlign","fontSize","color","CardMedia","image","title","backgroundSize","actualizarbarra","Auth","AuthService","componentDidMount","_this","loggedIn","then","b","setState","setTimeout","logout","location","reload","ip","globales","border_dialog","movil","test","navigator","userAgent","ListboxComponent","virtual","getRowId","row","ID_SECCION_CLIENTE","columns","name","tableColumnExtensions","columnName","wordWrapEnabled","align","defaultHiddenColumnNames","currentnota","popper","zIndex","backdrop","flexDirection","select","spacing","minWidth","textField","tablaRef","createRef","notaRef","onChangeInput","e","value","target","toString","trim","length","valueAutoCompleteAdd","CUENTA_ALUMNO","NOMBRE_COMPLETO","openAutoCompleteAdd","filtersClientes","Request","get","set","getToken","retry","timeout","response","deadline","end","err","res","substr","optionAutocompleteAdd","openAutoComplete","isLoadingClientes","funciones","showToast","rows","JSON","parse","text","onBlurAutoCompleteAdd","onChangeAutocompleteAdd","event","consulta_propedeuticos","actualizarcircular","cuenta_alumno","getProfile","user","tmp","filters","heightTableMain","getHeightTableMain","heightTable","ex","cerrardialog","open_ingreso","open_modificar","selection","errornota","igual","open_cambio","onChangenota","current","NOTA","guardar_ingreso","openBackDrop","post","send","ID_PROPEDEUTICO","ID_SECCION","ID_PLAN","USUARIO","TIPO","RESP","guardar_modificar","l","i","isVisibleRowSelected","grouping","expandedGroups","filteringColumnExtensions","expandedRowIds","enabledFilterRows","sSaving","isSaving","VirtualTable_cellComponent","getTime","column","ClickBoton","CODIGO_CURSO","DESCRIPCION_CURSO","INICIO","FIN","DESCRIPCION_JORNADA","ESTADO_ACADEMICO","ESTADO_CAMBIO","Table","Cell","Tooltip","Button","paddingTop","paddingBottom","textTransform","colores","azul","onClick","variant","startIcon","Icono","icono","DESCRIPCION_CAMBIO","IconButton","plataforma","document","getElementById","focus","classes","botones_ingresa","nombre","disabled","escritura","onclick","display","botones_modificar","botones_cambio","Fragment","Backdrop","className","open","CircularProgress","marginTop","open_seleccion","open_borrar","fullWidth","maxWidth","paper","DialogTitle","marginBottom","DialogContent","Typography","BarraBotones","botones","TextField","id","label","autoFocus","defaultValue","InputLabelProps","shrink","InputProps","endAdornment","InputAdornment","position","ESPECIAL","PopperProps","required","error","onKeyDown","onlyNumbers","onChange","inputProps","ref","maxLength","Autocomplete","options","getOptionLabel","option","renderInput","params","onBlur","size","readOnly","renderOption","noOptionsText","loadingText","loading","disableListWrap","autoHighlight","disableClearable","clearText","openText","closeText","onInputChange","marginLeft","tabla","marginleft_movil","marginleft","marginRight","marginright_movil","marginright","CustomTable","Columns","Rows","TableColumnExtensions","DefaultHiddenColumnNames","Selection","Filters","onFiltersChange","changeFilters","ExpandedRowIds","standarPlugin","TableRowsIndexer","showSelectionColumn","tokenInfo","widthTable","screen","columnExtensions","RenderOptionCate","lineHeight","CUENTA_CATEDRATICO","RenderOptionCurso","NUMERO_SECCION","DESCRIPCION","filterOptionsCate","createFilterOptions","stringify","filterOptionsCurso","GroupCellContent","_ref","color_inactivo","SUPLE_EXTRA","fontWeight","styleEst","ESTADO","minHeight","maxHeight","paperConfirmation","closeButton","right","palette","grey","container","justifyContent","alignItems","paddingLeft","paddingRight","paperControls","border","formControlSelect","obtener_periodos","loadingPer","items","map","item","MenuItem","ID_CONTROL_MATRICULA","datosSelectPeriodo","obtener_catedraticos","loadingCate","catedraticos","optionsCate","selectedPeriodo","filter","x","obtener_cursos","cuenta_catedratico","id_cm","loadingCursos","optionsCursos","obtener_listado","id_seccion","loadingMain","find","push","MODALIDAD","handleChangePeriodo","valueCate","valueCurso","onChangeCate","newValue","onChangeCurso","changeExpandedGroups","aplEvent","isEmpty","id_control_matricula","ad_usuario","titleRpt","labelRpt","opcionesRpt","click","vpEvent","toolt","componentWillUnmount","Paper","square","Grid","direction","xs","Select","Label","Datos","Selected","Style","Outlined","Ref","periodosRef","filterOptions","PaperComponent","elevation","Grouping","columnWidths","ExpandedGroups","ChangeExpandedGroups","groupContentComponent","Reporte","parametros","String","nom_boton","nom_bar","label_reporte","backcolor","fill","fullScreen","boton","opciones","color_bar","invisible","transitionDuration"],"mappings":"qHAAA,sEAkBeA,iBARAC,IAAK,CAChBC,OAAO,CACLC,aAAc,GACdC,OAAO,EACPC,QAAQ,MAICL,CACX,cAAwBM,IAAMC,UAC1BC,YAAYC,GAERC,MAAMD,GACNE,KAAKC,OAAOH,EAAMG,OAClBD,KAAKE,mBAAcJ,EAAMI,mBAEzBF,KAAKG,MAAQ,CACTC,cAAoBC,EAE5B,CAGAC,SACQ,OACYC,cAAA,OAAKC,MAAO,CAACC,MAAO,OAAOC,OAAO,EAAEC,IAAKC,OAAOC,YAAY,IAAIC,WAAY,SAASC,SACnFR,cAACS,IAAI,CAACR,MAAO,CAACS,UAAW,QAAQF,SAC/BG,eAACC,IAAc,CAAAJ,SAAA,CACfR,cAACa,IAAW,CAACZ,MAAO,CAACM,WAAY,SAASC,SACtCR,cAAA,OAAKC,MAAO,CAACC,MAAO,OAAOY,UAAW,SAAUC,SAAU,OAAQC,MAAO,OAAOR,SAAC,4CAIrFR,cAACiB,IAAS,CACNC,MAAO,uBACPC,MAAM,YACNlB,MAAO,CAACC,MAAO,OAAOQ,UAAW,OAAOhB,OAAQW,OAAOC,YAAY,IAAIc,eAAgB3B,KAAKE,mBAAc,MAAM,eAM5I,G,mCCnDR,8EAmBeb,iBARAC,IAAK,CAChBC,OAAO,CACLC,aAAc,GACdC,OAAO,EACPC,QAAQ,MAICL,CACX,cAAwBM,IAAMC,UAC1BC,YAAYC,GACRC,MAAMD,GACNE,KAAK4B,gBAAgB9B,EAAM8B,gBAC3B5B,KAAK6B,KAAO,IAAIC,IAChB9B,KAAKC,OAAOH,EAAMG,OAClBD,KAAKE,mBAAcJ,EAAMI,mBACzB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kK,WAAa/Q,IAAU+O,QAAQlV,KAAKG,MAAMyU,YAAoJ,GAAtIuC,OAAOnX,KAAKG,MAAMyU,WAAWtM,YAAY,IAAI6O,OAAOnX,KAAKG,MAAMwU,UAAUzD,oBAAoB,IAAIiG,OAAOnX,KAAKG,MAAMyT,iBAC3KwD,UAAU,eACVC,QAASrX,KAAKG,MAAMkV,SACpBiC,cAAetX,KAAKG,MAAMmV,SAC1BiC,UAAW/M,IAAQC,KACnB+M,KAAK,QACLC,YAAU,EACVC,OAAO,EACPC,SAAU3X,KAAKG,MAAMoV,YACrBhU,MAAM,UACNqW,UAAU,YAEjB1W,eAAC6K,IAAQ,CAACC,UAAWX,EAAQtH,SACnBkI,KAAMjM,KAAKG,MAAM+H,aAAanH,SAAA,CACtCR,cAAC2L,IAAgB,CAAC3K,MAAM,YACxBhB,cAAA,QAAMC,MAAO,CAAE2L,UAAW,QAASpL,SAAC,0BAEtCR,cAACwL,IAAQ,CAACE,KAAMjM,KAAKG,MAAM8S,YAAcjT,KAAKG,MAAMsT,aAAezT,KAAKG,MAAM+T,eAAiBlU,KAAKG,MAAMmU,YAChGtI,UAAWX,EAAQtH,SACnB8T,WAAS,EACTC,mBAAoB,MAOnC,EAzHD,QAkIqB,IAAxB9X,KAAKG,MAAMC,SAMb,UAHLQ,OAAO2B,SAASC,QAKlB,G","file":"static/js/main~37306aed.56cfbf05.chunk.js","sourcesContent":["import React from 'react';\r\nimport CardMedia from '@material-ui/core/CardMedia';\r\nimport CardActionArea from '@material-ui/core/CardActionArea';\r\nimport Card from '@material-ui/core/Card';\r\nimport CardContent from '@material-ui/core/CardContent';\r\nimport { withStyles } from '@material-ui/core/styles';\r\n\r\n \r\n /* CLASES DE ESTILO */\r\n\r\n var styles = theme =>({\r\n Dialog:{\r\n borderRadius: 30,\r\n margin:0,\r\n padding:0\r\n },\r\n})\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Pagina404 extends React.Component {\r\n constructor(props) {\r\n \r\n super(props);\r\n this.height=props.height\r\n this.movil_pequeño=props.movil_pequeño\r\n \r\n this.state = {\r\n isLoggin : undefined,\r\n }\r\n } \r\n \r\n /* RENDER */\r\n render() {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n ¡¡ Página no encontrada !!\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n )\r\n }\r\n }\r\n)","import React from 'react';\r\nimport CardMedia from '@material-ui/core/CardMedia';\r\nimport CardActionArea from '@material-ui/core/CardActionArea';\r\nimport Card from '@material-ui/core/Card';\r\nimport CardContent from '@material-ui/core/CardContent';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport AuthService from '../AuthService';\r\nvar Sinpermiso='/Multimedia/sinpermiso.png'\r\n \r\n /* CLASES DE ESTILO */\r\n\r\n var styles = theme =>({\r\n Dialog:{\r\n borderRadius: 30,\r\n margin:0,\r\n padding:0\r\n },\r\n})\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Pagina404 extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.actualizarbarra=props.actualizarbarra\r\n this.Auth = new AuthService();\r\n this.height=props.height\r\n this.movil_pequeño=props.movil_pequeño\r\n this.state = {\r\n isLoggin : undefined,\r\n }\r\n }\r\n\r\n componentDidMount()\r\n {\r\n let _this = this;\r\n _this.actualizarbarra(false)\r\n this.Auth.loggedIn().then( function(b){\r\n _this.setState({ isLoggin: b})\r\n setTimeout(function(){ _this.actualizarbarra(true); }, 2000);\r\n })\r\n }\r\n\r\n /* RENDER */\r\n render() {\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 No tiene permiso para esta ventana \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n )\r\n }\r\n else if (this.state.isLoggin === false)\r\n {\r\n this.Auth.logout()\r\n window.location.reload();\r\n return; \r\n }\r\n return null;\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 TableRowsIndexer from '../../components/tableRowsIndexer'\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport DialogTitle from '@material-ui/core/DialogTitle';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport Icono from '../../components/Icono'\r\nimport Autocomplete from '@material-ui/lab/Autocomplete';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport {virtual} from '../../components/VirtualListBox';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport Button from '@material-ui/core/Button';\r\nimport InputAdornment from '@material-ui/core/InputAdornment';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport { Typography } from '@material-ui/core';\r\n\r\nlet Auth = new AuthService();\r\nvar ip=globales.ip\r\nvar border_dialog=globales.border_dialog\r\nvar movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\nvar movil_pequeño=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\n\r\n//let searchWorker = undefined;\r\nlet isVisibleRowSelected = false;\r\nconst ListboxComponent = virtual.ListboxComponent;\r\n\r\n\r\nconst getRowId = row => row.ID_SECCION_CLIENTE;\r\n\r\n\r\n\r\n/* CLASES DE ESTILO */\r\n\r\nvar styles = theme =>({\r\n popper: {\r\n zIndex: 400500,\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: { //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%':'50%',\r\n },\r\n textField: {\r\n margin: theme.spacing(movil_pequeño?2:1, 1,0,0),\r\n padding: 0,\r\n minWidth: movil_pequeño?'100%':'20%',\r\n width: '20%' \r\n },\r\n })\r\n\r\n const columns= [{name:'ID_SECCION_CLIENTE',title: 'ID_SECCION_CLIENTE'},{name:'CODIGO_CURSO',title: 'Código'},{name:'DESCRIPCION_CURSO',title: 'Descripción'},\r\n {name:'ID_SECCION',title: 'ID_SECCION'},{name:'INICIO',title: 'Inicio'},{name:'FIN',title: 'Fin'},{name:'DESCRIPCION_JORNADA',title: 'Jornada'}\r\n ,{name:'NOTA',title: 'Nota'},{name:'ESTADO_ACADEMICO',title: 'Estado'},{name:'ESTADO_CAMBIO',title: 'ESTADO_CAMBIO'},{name:'ID_PLAN',title: 'ID_PLAN'}\r\n ,{name:'DESCRIPCION_CAMBIO',title: 'DESCRIPCION_CAMBIO'}\r\n ,{name:'BOTONES',title: ' '}\r\n ];\r\n\r\n const tableColumnExtensions= [\r\n { columnName: 'CODIGO_CURSO', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'DESCRIPCION_CURSO', wordWrapEnabled: true, align: 'left'},\r\n { columnName: 'INICIO', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'FIN', wordWrapEnabled: false, align: 'center',width: 150},\r\n { columnName: 'DESCRIPCION_JORNADA', wordWrapEnabled: false, align: 'center',width: 200},\r\n { columnName: 'NOTA', wordWrapEnabled: false, align: 'center',width: 100},\r\n { columnName: 'ESTADO_ACADEMICO', wordWrapEnabled: false, align: 'center',width: 100},\r\n { columnName: 'BOTONES', wordWrapEnabled: false, align: 'center'},\r\n ];\r\n\r\n const defaultHiddenColumnNames= ['ID_SECCION_CLIENTE','ID_SECCION','ESTADO_CAMBIO','ID_PLAN','DESCRIPCION_CAMBIO'];\r\n\r\n let currentnota = null;\r\n\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Propedeuticos extends React.Component {\r\n tablaRef = React.createRef();\r\n notaRef = React.createRef();\r\n\r\n constructor(props) {\r\n super(props);\r\n this.l= props.l\r\n this.e= props.e\r\n this.i= props.i\r\n this.isVisibleRowSelected=isVisibleRowSelected\r\n this.actualizarbarra=props.actualizarbarra\r\n this.actualizarcircular=props.actualizarcircular\r\n\r\n this.state = {\r\n openBackDrop: false, \r\n isLoggin: undefined,\r\n heightTableMain: 0,\r\n rows: [],\r\n selection: [],\r\n grouping: [],\r\n expandedGroups: [],\r\n filteringColumnExtensions: [],\r\n filters: [],\r\n expandedRowIds: [],\r\n enabledFilterRows: false,\r\n optionAutocompleteAdd: [],\r\n valueAutoCompleteAdd: null,\r\n sSaving: false,\r\n isLoadingClientes: true,\r\n isSaving: false,\r\n openAutoCompleteAdd: false,\r\n open_ingreso: false,\r\n open_modificar: false,\r\n open_cambio: false,\r\n }\r\n\r\n const VirtualTable_cellComponent = (getTime) => (props) => {\r\n const { column } = props;\r\n const {row} = props;\r\n\r\n const ClickBoton=(ID_SECCION_CLIENTE,CODIGO_CURSO,DESCRIPCION_CURSO,ID_SECCION,INICIO,FIN,DESCRIPCION_JORNADA,NOTA,ESTADO_ACADEMICO,ESTADO_CAMBIO,ID_PLAN,TIPO) => event =>{\r\n if(TIPO===2)\r\n currentnota=NOTA\r\n this.setState({selection: [{ID_SECCION_CLIENTE,CODIGO_CURSO,DESCRIPCION_CURSO,ID_SECCION,INICIO,FIN,DESCRIPCION_JORNADA,NOTA,ESTADO_ACADEMICO,ESTADO_CAMBIO,ID_PLAN}] ,open_ingreso: TIPO===1?true:false,igual: TIPO===2?true:false,open_modificar: TIPO===2?true:false,open_cambio: TIPO===3?true:false})\r\n }\r\n \r\n if (column.name === 'INICIO')\r\n {\r\n return ( \r\n { row.INICIO !== null ? getTime(row.INICIO, 1) : row.INICIO }\r\n );\r\n }\r\n \r\n if (column.name === 'FIN')\r\n {\r\n return ( \r\n { row.FIN !== null ? getTime(row.FIN, 1) : row.FIN }\r\n );\r\n }\r\n\r\n if (column.name === 'ESTADO_ACADEMICO')\r\n {\r\n return ( \r\n );\r\n }\r\n\r\n if (column.name === 'NOTA')\r\n {\r\n return ( \r\n );\r\n }\r\n\r\n if (column.name === 'BOTONES')\r\n {\r\n if(row.NOTA === null)\r\n return (\r\n \r\n \r\n \r\n );\r\n if(row.NOTA !== null && row.ESTADO_ACADEMICO==='R')\r\n return (\r\n \r\n \r\n \r\n );\r\n if(row.NOTA !== null && row.ESTADO_ACADEMICO==='A' && !row.ESTADO_CAMBIO)\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n if(row.ESTADO_CAMBIO)\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n \r\n return(\r\n \r\n );\r\n }\r\n\r\n this.VirtualTable_cellComponent = VirtualTable_cellComponent;\r\n \r\n }; //FIN CONSTRUCTORS\r\n\r\ncomponentDidMount()\r\n{\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\r\n // if(b)\r\n this.setState({ isLoggin: Auth.getProfile().plataforma !== undefined ? true : false }, ()=>{\r\n document.getElementById('estudiante').focus();\r\n _this.filtersClientes('-');\r\n _this.setState({ rows: [], heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable})\r\n \r\n _this.actualizarbarra(true)\r\n })\r\n}\r\n\r\nonChangeInput = (e, value)=>{ \r\n \r\n if (e === null || e.target.value === undefined)\r\n {\r\n if (this.state.openAutoCompleteAdd){ \r\n this.setState({ openAutoCompleteAdd: false });\r\n }\r\n return;\r\n }\r\n \r\n if ((e.target.value.toString().trim().length < 3 || (this.state.valueAutoCompleteAdd !== null && value === this.state.valueAutoCompleteAdd.CUENTA_ALUMNO + ' | ' + this.state.valueAutoCompleteAdd.NOMBRE_COMPLETO)) && this.state.openAutoCompleteAdd)\r\n {\r\n this.setState({ openAutoCompleteAdd: false });\r\n }\r\n else if (e.target.value.toString().trim().length >= 3 && !this.state.openAutoCompleteAdd)\r\n {\r\n this.setState({ openAutoCompleteAdd: true });\r\n }\r\n}\r\n \r\nfiltersClientes = (value)=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/Filtrar_estudiantes/${value}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(0)\r\n .timeout({ response: 20000, 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 this.setState({ optionAutocompleteAdd: [], openAutoComplete: false, isLoadingClientes: false }, ()=>{\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({ optionAutocompleteAdd: rows, isLoadingClientes: false });\r\n }\r\n else\r\n {\r\n this.setState({ optionAutocompleteAdd: [], openAutoComplete: false, isLoadingClientes: false })\r\n } \r\n });\r\n }\r\n \r\n onBlurAutoCompleteAdd = ()=>{\r\n \r\n if (this.state.openAutoCompleteAdd)\r\n {\r\n this.setState({ openAutoCompleteAdd: false }); \r\n }\r\n \r\n }\r\n \r\n \r\n onChangeAutocompleteAdd = (event, value) => {\r\n \r\n this.setState({ valueAutoCompleteAdd: value, openAutoCompleteAdd: false }, ()=>{\r\n this.consulta_propedeuticos()\r\n });\r\n \r\n }\r\n\r\n onChangeInput = (e, value)=>{ \r\n \r\n if (e === null || e.target.value === undefined)\r\n {\r\n if (this.state.openAutoCompleteAdd){ \r\n this.setState({ openAutoCompleteAdd: false });\r\n }\r\n return;\r\n }\r\n \r\n if ((e.target.value.toString().trim().length < 3 || (this.state.valueAutoCompleteAdd !== null && value === this.state.valueAutoCompleteAdd.CUENTA_ALUMNO + ' | ' + this.state.valueAutoCompleteAdd.NOMBRE_COMPLETO)) && this.state.openAutoCompleteAdd)\r\n {\r\n this.setState({ openAutoCompleteAdd: false });\r\n }\r\n else if (e.target.value.toString().trim().length >= 3 && !this.state.openAutoCompleteAdd)\r\n {\r\n this.setState({ openAutoCompleteAdd: true });\r\n }\r\n \r\n}\r\n\r\nconsulta_propedeuticos=()=>{\r\n this.actualizarcircular(false)\r\n let cuenta_alumno = this.state.valueAutoCompleteAdd!==null? this.state.valueAutoCompleteAdd.CUENTA_ALUMNO:'0'\r\n try{\r\n Request.get(`${ip}/propedeuticos/obtener_propedeuticos_estudiante/${cuenta_alumno}/${Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(6)\r\n .timeout({ response: 5000, deadline: 60000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e', 'Error de conexión');\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n \r\n if(tmp.length>0){\r\n this.setState({ rows: tmp,filters:[], heightTableMain: funciones.getHeightTableMain(movil_pequeño,this).heightTable}); \r\n }\r\n else\r\n {\r\n this.setState({rows: [], heightTableMain: funciones.getHeightTableMain(movil_pequeño,this).heightTable})\r\n }\r\n \r\n this.actualizarcircular(true)\r\n })\r\n }\r\n catch(ex){\r\n funciones.showToast('e', 'Error de conexión');\r\n this.actualizarcircular(true)\r\n }\r\n}\r\n\r\ncerrardialog =()=> event =>{\r\n this.setState({open_ingreso: false, open_modificar: false,selection: [],errornota: false,igual: false,open_cambio: false},()=>{\r\n currentnota=null\r\n })\r\n}\r\n\r\nonChangenota=()=> event =>{\r\n\r\n if(this.state.open_modificar)\r\n if(this.notaRef.current.value.toString().trim()===this.state.selection[0].NOTA.toString().trim())\r\n this.setState({igual:true})\r\n else\r\n this.setState({igual:false})\r\n \r\n if(event.target.value>100)\r\n this.setState({errornota:true})\r\n else\r\n this.setState({errornota:false})\r\n}\r\n\r\nguardar_ingreso=()=>{\r\n if(this.state.errornota){\r\n funciones.showToast('w','Escriba una nota correcta.')\r\n return;\r\n }\r\n\r\n if(this.notaRef.current.value.toString().trim() === null || this.notaRef.current.value.toString().trim() === ''){\r\n funciones.showToast('w','Escriba una nota.')\r\n return;\r\n }\r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n let cuenta_alumno = this.state.valueAutoCompleteAdd!==null? this.state.valueAutoCompleteAdd.CUENTA_ALUMNO:'0'\r\n try{\r\n new Request\r\n .post(`${ip}/propedeuticos/IU_nota_propedeutico`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_PROPEDEUTICO: this.state.selection[0].ID_PROPEDEUTICO,ID_SECCION_CLIENTE: this.state.selection[0].ID_SECCION_CLIENTE,ID_SECCION: this.state.selection[0].ID_SECCION,cuenta_alumno: cuenta_alumno,NOTA: this.notaRef.current.value,ID_PLAN: this.state.selection[0].ID_PLAN,USUARIO: Auth.getProfile().user,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 { \r\n window.location.reload();\r\n return;\r\n } \r\n this.setState({ openBackDrop: false }, ()=> { \r\n funciones.showToast('e', 'Error de conexión'); \r\n });\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n if (rows.length > 0) \r\n { \r\n if (rows[0].RESP === 'OK')\r\n { \r\n this.consulta_propedeuticos()\r\n this.setState({openBackDrop: false,open_ingreso: false,selection: []}, ()=>{\r\n currentnota=null\r\n funciones.showToast('s', 'Se ingresó la nota satisfactoriamente.');\r\n })\r\n }\r\n else{\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 catch(ex){\r\n this.setState({ openBackDrop: false}, ()=>{\r\n funciones.showToast('e', 'Error de conexión');\r\n });\r\n }\r\n })\r\n}\r\n\r\nguardar_modificar=()=>{\r\n if(this.state.errornota){\r\n funciones.showToast('w','Escriba una nota correcta.')\r\n return;\r\n }\r\n\r\n if(this.notaRef.current.value.toString().trim() === null || this.notaRef.current.value.toString().trim() === ''){\r\n funciones.showToast('w','Escriba una nota.')\r\n return;\r\n }\r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n let cuenta_alumno = this.state.valueAutoCompleteAdd!==null? this.state.valueAutoCompleteAdd.CUENTA_ALUMNO:'0'\r\n try{\r\n new Request\r\n .post(`${ip}/propedeuticos/IU_nota_propedeutico`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_PROPEDEUTICO: this.state.selection[0].ID_PROPEDEUTICO,ID_SECCION_CLIENTE: this.state.selection[0].ID_SECCION_CLIENTE,ID_SECCION: this.state.selection[0].ID_SECCION,cuenta_alumno: cuenta_alumno,NOTA: this.notaRef.current.value,ID_PLAN: this.state.selection[0].ID_PLAN,USUARIO: Auth.getProfile().user,TIPO: 2 })\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 { \r\n window.location.reload();\r\n return;\r\n } \r\n this.setState({ openBackDrop: false }, ()=> { \r\n funciones.showToast('e', 'Error de conexión'); \r\n });\r\n }\r\n \r\n const rows = JSON.parse(res.text);\r\n if (rows.length > 0) \r\n { \r\n if (rows[0].RESP === 'OK')\r\n { \r\n this.consulta_propedeuticos()\r\n this.setState({openBackDrop: false,open_modificar: false,selection: []}, ()=>{\r\n currentnota=null\r\n funciones.showToast('s', 'Se ingresó la nota satisfactoriamente.');\r\n })\r\n }\r\n else{\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 catch(ex){\r\n this.setState({ openBackDrop: false}, ()=>{\r\n funciones.showToast('e', 'Error de conexión');\r\n });\r\n }\r\n })\r\n}\r\n\r\n/* RENDER */\r\nrender() {\r\n const { classes } = this.props;\r\n\r\n const botones_ingresa = [\r\n {icono: 'Save', nombre: 'Guardar',disabled: this.state.errornota ,escritura:true, onclick: this.guardar_ingreso\r\n , display: 'auto',color: colores.azul},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrardialog(), display:'auto', color: 'red'},\r\n ]\r\n const botones_modificar = [\r\n {icono: 'Save', nombre: 'Guardar',disabled: this.state.errornota||this.state.igual,escritura:true, onclick: this.guardar_modificar\r\n , display: 'auto',color: colores.azul},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrardialog(), display:'auto', color: 'red'},\r\n ]\r\n const botones_cambio = [\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrardialog(), display:'auto', color: 'red'},\r\n ]\r\n\r\n if (this.state.isLoggin === true )\r\n {\r\n return (\r\n \r\n \r\n \r\n {this.state.open_seleccion?'Guardando...':this.state.open_borrar?'Eliminando...':''}\r\n \r\n \r\n \r\n {'Cambio de Curso'}\r\n \r\n \r\n \r\n Para realizar el cambio de curso, dirijase a la ventana de \"Cambios por Curso\", si tiene permiso para hacer cambios a cursos\r\n propedéuticos, este mismo le aparecera.\r\n \r\n \r\n \r\n \r\n \r\n \r\n {'Ingreso de Nota'}\r\n \r\n \r\n \r\n {this.state.selection[0]?this.state.selection[0].ESPECIAL?\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.CUENTA_ALUMNO + ' | ' + option.NOMBRE_COMPLETO}\r\n style={{ width: !movil ? '500px' : '95%' }} \r\n renderInput={(params) => \r\n {this.state.isLoadingClientes ? : null}\r\n {params.InputProps.endAdornment}\r\n \r\n ),\r\n readOnly: this.state.isSaving\r\n }}\r\n />}\r\n renderOption={(option) => (\r\n \r\n {option.CUENTA_ALUMNO}\r\n {option.NOMBRE_COMPLETO} \r\n \r\n )}\r\n noOptionsText={'No hay resultados'}\r\n loadingText={'Cargando...'} \r\n onChange={this.onChangeAutocompleteAdd}\r\n open={this.state.openAutoCompleteAdd}\r\n loading = {this.state.isLoadingClientes}\r\n ListboxComponent={ListboxComponent}\r\n disableListWrap\r\n value={this.state.valueAutoCompleteAdd} \r\n autoHighlight\r\n disableClearable={this.state.isSaving}\r\n clearText = 'Borrar'\r\n openText = ''\r\n closeText = ''\r\n classes= {{ popper: classes.popper }}\r\n onInputChange={this.onChangeInput} \r\n /> \r\n
\r\n
\r\n }\r\n VirtualTable_cellComponent={this.VirtualTable_cellComponent(funciones.getTime)}\r\n //rowHeaderCellComponent={TableTreeColumnHeader_cellComponent}\r\n showSelectionColumn={false}\r\n />\r\n
\r\n
\r\n ); /// finaliza return\r\n }\r\n else if (this.state.isLoggin === false)\r\n {\r\n Auth.logout()\r\n window.location.reload();\r\n return; \r\n }\r\n\r\n\r\n return null;\r\n} /// finaliza render\r\n} /// finaliza class\r\n)/// finaliza withStyles\r\n\r\n ","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 Backdrop from '@material-ui/core/Backdrop';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport Autocomplete, {createFilterOptions} from '@material-ui/lab/Autocomplete';\r\nimport Grid from '@material-ui/core/Grid';\r\nimport Select from '../../components/Select';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport {Table} from '@devexpress/dx-react-grid-material-ui';\r\nimport Reporte from '../../components/Modalreporte';\r\n\r\nlet Auth = new AuthService();\r\nlet tokenInfo = [];\r\n\r\nvar movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\nconst styles = theme => ({\r\n\r\npaper: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: !movil ? '405px' : undefined, \r\n maxWidth: !movil ? '405px' : undefined,\r\n minHeight: !movil ? '490px' : undefined, \r\n maxHeight: !movil ? '490px' : undefined\r\n }, \r\npaperConfirmation: { \r\n borderRadius: globales.border_dialog,\r\n minWidth: '320px', \r\n maxWidth: '320px', \r\n},\t\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: \"center\",\r\n flexDirection: !movil ? \"row\" : \"column\",\r\n paddingTop: \"2px\",\r\n paddingBottom: \"5px\", \r\n paddingLeft: !movil ? theme.spacing(4) : theme.spacing(1),\r\n paddingRight: !movil ? theme.spacing(4) : theme.spacing(1), \r\n}, //Sirve????\r\ntextField: {\r\n marginLeft: movil ? '8px' : undefined,\r\n marginRight: theme.spacing(1),\r\n marginTop: movil ? '10px' : '5px',\r\n marginBottom: theme.spacing(1), \r\n}, //Sirve????\r\npaperControls: {\r\n marginLeft: !movil ? globales.tabla.marginleft : 0, \r\n padding: \"5px 10px\", \r\n width: movil ? \"100%\" : undefined, \r\n border: movil ? \"none\" : undefined,\r\n},\r\nformControlSelect: {\r\n width: '100%', \r\n textAlign: 'left',\r\n },\r\n});\r\nconst widthTable = !movil ? (window.screen.width * 0.80) - (globales.tabla.marginleft + globales.tabla.marginright) : (1336 * 0.80);\r\nconst columns = [ \r\n { name: 'CUENTA_ALUMNO', title: 'Cuenta'},\r\n { name: 'NOMBRE_COMPLETO', title: 'Nombre completo'},\r\n { name: 'VALOR_I', title: 'I'},\r\n { name: 'VALOR_II', title: 'II'},\r\n { name: 'VALOR_III', title: 'III'},\r\n { name: 'VALOR_IV', title: 'IV'},\r\n { name: 'VALOR_EXTRA', title: 'Extra'},\r\n { name: 'VALOR_LAB', title: 'Lab'},\r\n { name: 'TOTAL', title: 'Total'},\r\n { name: 'MODALIDAD', title: 'Modalidad'},\r\n { name: 'DESCRIPCION', title: 'Descripcion'},\r\n { name: 'ESTADO', title: 'Estado'},\r\n];\r\nconst columnExtensions= [\r\n { columnName: 'CUENTA_ALUMNO', width: widthTable * 0.08 },\r\n { columnName: 'NOMBRE_COMPLETO', width: widthTable * 0.24 },\r\n { columnName: 'VALOR_I', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'VALOR_II', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'VALOR_III', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'VALOR_IV', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'VALOR_EXTRA', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'VALOR_LAB', width: widthTable * 0.06, align: 'center'}, \r\n { columnName: 'TOTAL', width: widthTable * 0.06, align: 'center'},\r\n { columnName: 'DESCRIPCION', width: 0 }, \r\n { columnName: 'MODALIDAD', width: 0 },\r\n { columnName: 'ESTADO', width: widthTable * 0.07, align: 'center'}, \r\n];\r\nconst grouping = [{ columnName: \"DESCRIPCION\" }, { columnName: \"MODALIDAD\" }];\r\n\r\nconst RenderOptionCate = (option) => (\r\n
\r\n
{option.CUENTA_CATEDRATICO}
\r\n {option.NOMBRE_COMPLETO} \r\n
\r\n);\r\nconst RenderOptionCurso = (option) => ( \r\n
\r\n
{\"Sección \" + option.NUMERO_SECCION}
\r\n {option.DESCRIPCION} \r\n
\r\n );\r\nconst filterOptionsCate = createFilterOptions ({ \r\n stringify: option => option.CUENTA_CATEDRATICO + option.NOMBRE_COMPLETO,\r\n});\r\nconst filterOptionsCurso = createFilterOptions ({ \r\n stringify: option => option.NUMERO_SECCION + option.DESCRIPCION,\r\n});\r\nconst GroupCellContent = ({ column, row }) => { \r\n return({row.value});\r\n}\r\nconst VirtualTable_cellComponent = (props) => { \r\n \r\n const color_inactivo = \"#C8C8C8\";\r\n \r\n if (props.column.name === \"VALOR_I\")\r\n return ();\r\n \r\n if (props.column.name === \"VALOR_II\")\r\n return ();\r\n \r\n if (props.column.name === \"VALOR_III\")\r\n return ();\r\n\r\n if (props.column.name === \"VALOR_IV\")\r\n return ();\r\n\r\n if (props.column.name === 'TOTAL') \r\n return ();\r\n \r\n if (props.column.name === 'ESTADO')\r\n {\r\n const styleEst = { color: props.row.ESTADO !== \"APR\" ? \"red\" : undefined }\r\n\r\n return ();\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\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 optionsCate: [],\r\n valueCate: null,\r\n loadingCate: false,\r\n datosSelectPeriodo: null,\r\n selectedPeriodo: \"\",\r\n loadingPer: true,\r\n optionsCursos: [],\r\n valueCurso: null,\r\n loadingCursos: false,\r\n expandedGroups: [],\r\n opcionesRpt: false,\r\n labelRpt: \"\",\r\n titleRpt: \"\",\r\n };\r\n this.botones = [\r\n {icono: 'Check', toolt: '', nombre: 'Aplicar', escritura:true, onclick: this.aplEvent, color: \"green\", display: 'auto'},\r\n {icono: 'Search', toolt: '', nombre: 'Vista prev.', onclick: this.vpEvent, display:'auto'},\r\n ];\r\n this.catedraticos = [];\r\n}\r\n\r\nobtener_periodos = ()=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/aplicarnotas/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({ loadingPer: 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 const items = rows.map((item, i)=>{\r\n return ({item.DESCRIPCION});\r\n });\r\n \r\n this.setState({ datosSelectPeriodo: items, \r\n loadingPer: false });\r\n\r\n});\r\n\r\n}\r\n\r\nobtener_catedraticos = ()=>{\r\n\r\nnew Request\r\n .get(`${globales.ip}/aplicarnotas/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 this.setState({ loadingCate: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n this.catedraticos = JSON.parse(res.text);\r\n const optionsCate = this.state.selectedPeriodo !== \"\" ? this.catedraticos.filter(x => x.ID_CONTROL_MATRICULA === this.state.selectedPeriodo) : [];\r\n \r\n this.setState({ optionsCate, \r\n loadingCate: false }); \r\n \r\n });\r\n\r\n}\r\n\r\nobtener_cursos = (cuenta_catedratico, id_cm)=>{\r\n \r\n new Request\r\n .get(`${globales.ip}/aplicarnotas/cursos/${cuenta_catedratico}/${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 this.setState({ loadingCursos: 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({ optionsCursos: rows, \r\n loadingCursos: false }); \r\n \r\n });\r\n\r\n}\r\n\r\nobtener_listado = (id_seccion, cuenta_catedratico, id_cm)=>{\r\n\r\n new Request\r\n .get(`${globales.ip}/aplicarnotas/listado/${id_seccion}/${cuenta_catedratico}/${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 this.setState({ loadingMain: false }, ()=>{ \r\n funciones.showToast('e', 'No hay conexión'); \r\n }); \r\n \r\n return;\r\n }\r\n \r\n const rows = JSON.parse(res.text); \r\n \r\n let expandedGroups = [];\r\n rows.map((item)=>{\r\n if (!expandedGroups.find(x => x === item.DESCRIPCION))\r\n expandedGroups.push(item.DESCRIPCION);\r\n\r\n if (!expandedGroups.find(x => x === item.DESCRIPCION + '|' + item.MODALIDAD))\r\n expandedGroups.push(item.DESCRIPCION + '|' + item.MODALIDAD); \r\n\r\n return item;\r\n });\r\n\r\n this.setState({ rows, \r\n expandedGroups,\r\n loadingMain: false }); \r\n \r\n\r\n });\r\n\r\n}\r\n\r\nhandleChangePeriodo = (event)=>{\r\n\r\nthis.setState({ rows: [],\r\n expandedGroups: [],\r\n optionsCate: [],\r\n valueCate: null,\r\n optionsCursos: [],\r\n valueCurso: null,\r\n selectedPeriodo: event.target.value }, ()=>{\r\n this.setState({ optionsCate: this.catedraticos.filter(x => x.ID_CONTROL_MATRICULA === event.target.value) });\r\n});\r\n\r\n}\r\n\r\nonChangeCate = (event, newValue)=>{\r\n\r\n this.setState({ rows: [],\r\n expandedGroups: [],\r\n optionsCursos: [],\r\n valueCurso: null,\r\n valueCate: newValue }, ()=>{\r\n if (newValue === null)\r\n return;\r\n\r\n this.setState({ loadingCursos: true }, ()=>{\r\n const id_cm = this.state.selectedPeriodo;\r\n this.obtener_cursos(newValue.CUENTA_CATEDRATICO, id_cm);\r\n });\r\n\r\n });\r\n}\r\n\r\nonChangeCurso = (event, newValue)=>{\r\n\r\nthis.setState({ rows: [],\r\n expandedGroups: [],\r\n valueCurso: newValue }, ()=>{\r\n if (newValue === null)\r\n return;\r\n\r\n this.setState({ loadingMain: true }, ()=>{ \r\n const cuenta_catedratico = this.state.valueCate.CUENTA_CATEDRATICO;\r\n const id_cm = this.state.selectedPeriodo; \r\n this.obtener_listado(newValue.ID_SECCION, cuenta_catedratico, id_cm);\r\n });\r\n\r\n});\r\n\r\n}\r\n\r\nchangeExpandedGroups = expandedGroups =>{\r\n this.setState({ expandedGroups });\r\n}\r\n\r\naplEvent = ()=>{\r\n \r\nif (funciones.isEmpty(this.state.selectedPeriodo) || funciones.isEmpty(this.state.valueCate) || funciones.isEmpty(this.state.valueCurso))\r\n return\r\n\r\nthis.setState({ openBackDrop: true }, ()=>{\r\n\r\nconst id_seccion = this.state.valueCurso.ID_SECCION;\r\nconst cuenta_catedratico = this.state.valueCate.CUENTA_CATEDRATICO;\r\nconst id_control_matricula = this.state.selectedPeriodo;\r\n\r\n new Request\r\n .post(`${globales.ip}/aplicarnotas`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ id_seccion, \r\n cuenta_catedratico, \r\n id_control_matricula,\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 this.setState({ openBackDrop: false }, ()=>{\r\n\r\n if (rows[0].RESP === 'OK'){\r\n \r\n this.setState({ titleRpt: \"Calificaciones Aplicadas\",\r\n labelRpt: \"CALIFICACIONES_AP\",\r\n opcionesRpt: false }, ()=>{\r\n document.getElementById(\"BT_CALI_VP\").click();\r\n funciones.showToast(\"s\", \"Las calificaciones fueron aplicadas\");\r\n });\r\n\r\n }\r\n else\r\n funciones.showToast(\"w\", rows[0].RESP);\r\n\r\n });\r\n \r\n});\r\n\r\n});\r\n\r\n\r\n}\r\n\r\nvpEvent = ()=>{\r\n \r\nif (funciones.isEmpty(this.state.selectedPeriodo) || funciones.isEmpty(this.state.valueCate) || funciones.isEmpty(this.state.valueCurso))\r\n return\r\n\r\nthis.setState({ titleRpt: \"Calificaciones Vista Previa\",\r\n labelRpt: \"CALIFICACIONES_VP\",\r\n opcionesRpt: true }, ()=>{\r\n document.getElementById(\"BT_CALI_VP\").click();\r\n});\r\n\r\n\r\n}\r\n\r\ncomponentDidMount() { //Load\r\n\r\n tokenInfo = Auth.getProfile(); //Token decodificado\r\n\r\n this.setState({ isLoggin: tokenInfo.plataforma !== undefined ? true : false }, ()=>{\r\n\r\n if (tokenInfo.plataforma === 1) // Usuario Admin\r\n {\r\n this.obtener_periodos(); \r\n this.obtener_catedraticos(); \r\n }\r\n \r\n this.setState({ heightTableMain: funciones.getHeightTableMain(movil, this).heightTable }); \r\n\r\n }); \r\n \r\n}\r\n\r\ncomponentWillUnmount() { //Cerrar Subcripciones\r\n\r\n}\r\n\r\nrender() {\r\nconst { classes } = this.props; \r\n\r\n if (this.state.isLoggin === true)\r\n {\r\n return (\r\n \r\n \r\n \r\n {\r\n (() => {\r\n \r\n if (tokenInfo.plataforma === 1) //Si es Usuario Admin\r\n {\r\n \r\n return (\r\n \r\n \r\n \r\n \r\n