{"version":3,"sources":["pages/mantenimiento/notificaciones_derecha.js"],"names":["Auth","AuthService","ip","globales","border_dialog","color_icono","colores","tabla","color_iconos","movil","test","navigator","userAgent","movil_pequeño","isVisibleRowSelected","colorRowSelected","selection","alternateColorRow1","alternateColorRow2","VirtualTable_cellComponent","props","column","row","name","_jsx","Table","Cell","style","padding","children","VIGENTE","_jsxs","React","Fragment","Icono","icono","color","display","alignItems","justifyContent","Avatar","marginRight","width","height","backgroundColor","COLOR_TIPO","MOSTRAR_ICONO","fontSize","NOM_ICONO","LETRAS","TIPO_NOTIFICACION","getRowId","ID_NOTIFICACIONES_DERECHA_PRINCIPAL","getRowId_plataformas","ID_PLATAFORMA","getRowId_roles","ID_ROL","BodyComponent","TableBody","styles","theme","Dialog","borderRadius","margin","backdrop","zIndex","flexDirection","root","flexWrap","listStyle","spacing","chip","customCellHeader","paddingBottom","marginTop","paddingTop","borderLeft","customCellHeadertitulo","select","minWidth","textField","columns","title","columns_plataformas","columns_roles","defaultHiddenColumnNames_plataformas","defaultHiddenColumnNames_roles","tableColumnExtensions_plataformas","columnName","wordWrapEnabled","align","tableColumnExtensions_roles","tableColumnExtensions","window","innerWidth","defaultHiddenColumnNames","currentdescripcion","currenttitulo","withStyles","Component","constructor","super","tablaRef","createRef","descripcionRef","tituloRef","consultanotificacion_plataformas","_this","this","Request","get","state","set","getToken","retry","timeout","response","deadline","end","err","res","toString","substr","location","reload","tmp","JSON","parse","text","length","consultanotificacion_roles","seleccion","seleccion_nombre","forEach","data","array","push","DESCRIPCION","setState","chipplataformas","notificacion_plataformas","plataformas_principal","selection_plataformas","plataformas_original","seleccion_nombres","NOMBRE","chiproles","notificacion_roles","roles_principal","selection_roles","roles_original","handleInfoClick","event","preventDefault","stopPropagation","openPopover","x","clientX","y","clientY","handleClosePop","changeSelection","undefined","changeSelection_plataformas","changeSelection_roles","changeFilters","filters","changeFiltersRoles","filtersRoles","changeExpandedGroups","expandedGroups","cerrarmodal","matricula","cuota","todo","selectedDateInicio","Date","selectedDateFin","selection_alineacion_descripcion","selection_alineacion_titulo","selection_tipo","plataforma","roles","open_modificar","open_agregar","open_eliminar","selection_estado","cerrarmodal_plataformas","rows_plataformas","data2","array2","open_plataformas","cerrarmodal_roles","rows_roles","open_roles","abrirmodal_modificar","confirma_valor","TITULO","titulooriginal","descripcionoriginal","alineacion_titulooriginal","ID_ALINEACION_TITULO","alineacion_descripcionoriginal","ID_ALINEACION_DESCRIPCION","tiponotificacionoriginal","ID_TIPO_NOTIFICACION","fechainiciooriginal","FECHA_INICIO","replaceAll","fechafinoriginal","FECHA_VENCIMIENTO","estadooriginal","ESTADO","plataformaoriginal","RESTRINGIDO_PLATAFORMA","matriculaoriginal","MATRICULA","cuotasoriginal","CUOTAS","todooriginal","TODO","rolesoriginal","RESTRINGIDO_ROL","abrirmodal_agregar","abrirmodal_plataformas","abrirmodal_roles","abrirmodal_eliminar","funciones","showToast","guardar_plataformas","toLowerCase","filter","busqueda","guardar_roles","guardar_agregar","current","value","trim","validado","plataformas","index","openBackDrop","post","send","SECUENCIA","ID_PROCESO","USUARIO","getProfile","user","PLATAFORMAS","ROLES","TIPO","rows","RESP","error","selection_plataformas_nom","consulta_notificaciones","ex","guardar_modificar","stringify","chipalumnos","eliminar","onEntering","ChangeSelect_alineacion_titulo","nom","alineaciones","element","ID_ALINEACION","target","selection_nom_alineacion","ChangeSelect_alineacion_descripcion","Change_Text_titulo","handleDateChangeInicio","date","handleDateChangeFin","ChangeSelect_estado","ChangeSelect_tipo","handleChangeCheckbox_plataforma","checked","handleChangeCheckbox_roles","handleChangeCheckbox_matricula","handleChangeCheckbox_cuota","handleChangeCheckbox_todo","l","e","i","actualizarbarra","actualizarcircular","selection_plataformaoriginal","selection_rolesoriginal","isLoggin","heightTableMain","grouping","filteringColumnExtensions","expandedRowIds","enabledFilterRows","datos_estados","MenuItem","dense","selection_roles_nom","datos_alineaciones","anchorEl","chipData","trow","TableRow","_ref2","classes","highlighted","rowIndex","selectByRowClick","odd","r","tableRow","Row","onClick","clickselection","ID_ICONO","NOM_ESTADO","cursor","trow_plataformas","_ref3","trow_roles","_ref4","componentDidMount","getHeightTableMain","heightTable","Datos","map","datos","COLOR","datos_tipo","tipos","valor","innerHeight","getBoundingClientRect","top","render","botones","toolt","nombre","escritura","onclick","naranja","botones_agregar","botones_modificar","botones_eliminar","botones_plataformas","botones_roles","Backdrop","className","open","CircularProgress","BarraBotones","onClose","disableEnforceFocus","disableAutoFocus","fullWidth","paper","fullScreen","DialogContent","Typography","maxWidth","paper_agregar","FormLabel","component","background","Divider","variant","marginBottom","CustomTable","Columns","Rows","TableColumnExtensions","DefaultHiddenColumnNames","Selection","ChangeSelection","Filters","onFiltersChange","RowComponent","standarPlugin","TableRowsIndexer","showSelectionColumn","Popover","anchorReference","anchorPosition","left","elevation","paddingLeft","paddingRight","FormControlLabel","control","label","marginLeft","TransitionProps","TextField","id","onChange","defaultValue","inputProps","ref","Select","Label","Selected","Multiple","SelectClass","Style","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","Outlined","labelWidth","required","MuiPickersUtilsProvider","utils","DateFnsUtils","locale","esLocale","KeyboardDatePicker","disableToolbar","inputVariant","format","InputProps","readOnly","autoOk","ToolbarComponent","CustomToolbar","border","Checkbox","labelPlacement","Tooltip","PopperProps","Button","size","disabled","orientation","Paper","Chip","avatar","LinearProgress","marginleft_movil","marginleft","marginright_movil","marginright","rowHeaderCellComponent","_ref","TableHeaderRow","IconButton","logout","ColumnHeader_cellComponent"],"mappings":"qHAAA,iTAqCA,IAAIA,EAAO,IAAIC,IACf,IAAIC,EAAGC,IAASD,GACZE,EAAcD,IAASC,cACvBC,EAAYC,IAAQC,MAAMC,aAC1BC,EAAM,iEAAiEC,KAAKC,UAAUC,WACtFC,EAAc,4DAA4DH,KAAKC,UAAUC,WAE7F,IAAIE,GAAuB,EAC3B,MAAMC,EAAoB,OAAQT,IAAQC,MAAMS,UAAW,IAC3D,IAAIC,EAAqBX,IAAQC,MAAMU,mBACn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IAAK,CAACC,MAAO,OAAQR,MAAO,CAAES,MAAQ/B,SAG1CQ,EAAc,KAAK,YAK3BW,cAACsa,IAAepa,KAAI,IAAKN,GAAS,GAq3C7BqC,cAAgBA,GAEhB8O,kBAAoB3L,KAAKG,MAAMwL,kBAC/BmF,aAAc9Q,KAAKmM,KACnB4E,cAAkBnW,cAACoW,IAAgB,IACnCzW,2BAA4BA,EAC5B0W,qBAAqB,YAQA,IAAxBjR,KAAKG,MAAMmL,UAEpBlS,EAAKgc,cACLnW,OAAO8B,SAASC,UAKT,KA75CyBqU,IAAS1S,CA85C7C,G","file":"static/js/main~4f946458.08f20e03.chunk.js","sourcesContent":["import React from 'react';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport {colores, globales, funciones} from '../../global';\r\nimport BarraBotones from '../../components/Barra_menu';\r\nimport AuthService from '../../AuthService';\r\nimport Request from 'superagent';\r\nimport CustomTable from '../../components/CustomTable';\r\nimport {Table} from '@devexpress/dx-react-grid-material-ui';\r\nimport Dialog from '@material-ui/core/Dialog';\r\nimport DialogContent from '@material-ui/core/DialogContent';\r\nimport { Typography } from '@material-ui/core';\r\nimport Icono from '../../components/Icono'\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport { TableHeaderRow } from '@devexpress/dx-react-grid-material-ui';\r\nimport Popover from '@material-ui/core/Popover';\r\nimport FormLabel from '@material-ui/core/FormLabel';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport Avatar from '@material-ui/core/Avatar';\r\nimport LinearProgress from '@material-ui/core/LinearProgress';\r\nimport { Divider } from '@material-ui/core';\r\nimport TextField from '@material-ui/core/TextField';\r\nimport Select from '../../components/Select';\r\nimport { KeyboardDatePicker, MuiPickersUtilsProvider } from \"@material-ui/pickers\";\r\nimport DateFnsUtils from \"@date-io/date-fns\";\r\nimport esLocale from \"date-fns/locale/es\";\r\nimport 'date-fns';\r\nimport CustomToolbar from '../../components/toolbarPicker'; \r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport Button from '@material-ui/core/Button';\r\nimport Chip from '@material-ui/core/Chip';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport TableRowsIndexer from '../../components/tableRowsIndexer'\r\n\r\nlet Auth = new AuthService();\r\nvar ip=globales.ip\r\nvar border_dialog=globales.border_dialog\r\nvar color_icono=colores.tabla.color_iconos\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\nlet isVisibleRowSelected = false;\r\nconst colorRowSelected = 'rgb('+ colores.tabla.selection +')';\r\nlet alternateColorRow1 = colores.tabla.alternateColorRow1; \r\nlet alternateColorRow2 = colores.tabla.alternateColorRow2;\r\n\r\nconst VirtualTable_cellComponent = (props) => {\r\n const { column } = props;\r\n const {row} = props;\r\n\r\n if(column.name===\"VIGENTE_ICONO\")\r\n {\r\n return(\r\n \r\n {row.VIGENTE===1?\r\n \r\n \r\n \r\n \r\n :row.VIGENTE===2?\r\n \r\n \r\n \r\n \r\n :row.VIGENTE===3?\r\n \r\n \r\n \r\n \r\n :row.VIGENTE===4?\r\n \r\n \r\n \r\n \r\n :row.VIGENTE===5?\r\n \r\n \r\n \r\n \r\n :\r\n }\r\n \r\n );\r\n }\r\n if(column.name===\"TIPO_NOTIFICACION\")\r\n {\r\n return (\r\n \r\n {\r\n \r\n \r\n {row.MOSTRAR_ICONO === true ? (\r\n \r\n ) : null}\r\n {row.MOSTRAR_ICONO === true ? null : row.LETRAS}\r\n \r\n {row.TIPO_NOTIFICACION}\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\r\n const getRowId = row => row.ID_NOTIFICACIONES_DERECHA_PRINCIPAL;\r\n const getRowId_plataformas = row => row.ID_PLATAFORMA;\r\n const getRowId_roles = row => row.ID_ROL;\r\n\r\n const BodyComponent = (props) => {\r\n return ;\r\n }\r\n\r\n /* CLASES DE ESTILO */\r\n\r\n var styles = theme =>({\r\n Dialog:{\r\n borderRadius: border_dialog,\r\n margin:0,\r\n padding:0\r\n },\r\n backdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n },\r\n root: {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n flexWrap: 'wrap',\r\n listStyle: 'none',\r\n padding: theme.spacing(0.5),\r\n margin: 0,\r\n },\r\n chip: {\r\n margin: theme.spacing(0.5),\r\n },\r\n customCellHeader: {\r\n paddingBottom: '4px',\r\n marginTop: '0px',\r\n paddingTop: '4px', \r\n height: '57px',\r\n borderLeft: '1px solid white',\r\n },\r\n customCellHeadertitulo: {\r\n paddingBottom: '4px',\r\n marginTop: '0px',\r\n paddingTop: '4px', \r\n height: '57px',\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%':'32%',\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 ColumnHeader_cellComponent = (classes,handleInfoClick) => ({...props}) => {\r\n \r\n\r\n const {column} = props; \r\n \r\n if (column.name === 'VIGENTE_ICONO')\r\n {\r\n return ( \r\n \r\n handleInfoClick(event)} >\r\n \r\n \r\n \r\n {movil_pequeño?null:'Estado'} \r\n \r\n );\r\n } \r\n\r\n return ();\r\n}\r\n\r\nconst columns= [{name:'ID_NOTIFICACIONES_DERECHA_PRINCIPAL',title: 'ID_NOTIFICACIONES_DERECHA_PRINCIPAL'},\r\n{name:'TITULO',title: 'Título'},{name:'DESCRIPCION',title: 'Descripción'},{name:'ID_ALINEACION_TITULO',title: 'ID_ALINEACION_TITULO'}\r\n,{name:'ID_ALINEACION_DESCRIPCION',title: 'ID_ALINEACION_DESCRIPCION'},{name:'SECUENCIA',title: 'SECUENCIA'}\r\n,{name:'FECHA_INICIO',title: 'Fecha Inicio'},{name:'FECHA_VENCIMIENTO',title: 'Fecha Venc.'}\r\n,{name:'ID_PROCESO',title: 'ID_PROCESO'},{name:'RESTRINGIDO_PLATAFORMA',title: 'Rest. Plataforma'}\r\n,{name:'RESTRINGIDO_ROL',title: 'Rest. Rol'},{name:'ID_TIPO_NOTIFICACION',title: 'ID_TIPO_NOTIFICACION'}\r\n,{name:'MOSTRAR_ICONO',title: 'MOSTRAR_ICONO'},{name:'ID_ICONO',title: 'ID_ICONO'},{name:'NOM_ICONO',title: 'NOM_ICONO'}\r\n,{name:'LETRAS',title: 'LETRAS'},{name:'TIPO_NOTIFICACION', title: 'Tipo'},{name:'ESTADO', title: 'ESTADO'}\r\n,{name:'NOM_ESTADO',title: 'Estado'},{name:'VIGENTE',title: 'Vigente'},{name:'VIGENTE_ICONO',title: 'Vigente'}\r\n,{name:'COLOR_TIPO',title: 'COLOR_TIPO'},{name:'MATRICULA',title: 'MATRICULA'},{name:'CUOTAS',title: 'CUOTAS'},{name:'TODO',title: 'TODO'},\r\n];\r\n\r\nconst columns_plataformas= [\r\n {name:'ID_PLATAFORMA',title: 'ID_PLATAFORMA'},{name:'DESCRIPCION',title: 'Nombre'},\r\n];\r\nconst columns_roles= [\r\n {name:'ID_ROL',title: 'ID_ROL'},{name:'CODIGO',title: 'Código'},{name:'NOMBRE',title: 'Nombre'},{name:'DESCRIPCION',title: 'Descripción'},\r\n];\r\n\r\nconst defaultHiddenColumnNames_plataformas= ['ID_PLATAFORMA'];\r\nconst defaultHiddenColumnNames_roles= ['ID_ROL','DESCRIPCION'];\r\nconst tableColumnExtensions_plataformas= [\r\n { columnName: 'DESCRIPCION', wordWrapEnabled: false, align: 'center'},\r\n];\r\nconst tableColumnExtensions_roles= [\r\n { columnName: 'DESCRIPCION', wordWrapEnabled: false, align: 'center'},\r\n];\r\n\r\nconst tableColumnExtensions= [\r\n { columnName: 'DESCRIPCION', wordWrapEnabled: false, width: !movil_pequeño ? ((window.innerWidth-5)/3): 150, align: 'center'},\r\n { columnName: 'TITULO', wordWrapEnabled: false, width: !movil_pequeño ? ((window.innerWidth - 25)/4): 150, align: 'center'},\r\n { columnName: 'TIPO_NOTIFICACION', wordWrapEnabled: false, width: !movil_pequeño ? ((window.innerWidth - 180)/4): 100, align: 'center'},\r\n { columnName: 'VIGENTE_ICONO', wordWrapEnabled: false, width: !movil_pequeño ? ((window.innerWidth - 0)/8): 80, align: 'center'},\r\n];\r\nconst defaultHiddenColumnNames= ['MATRICULA','CUOTAS','TODO','COLOR_TIPO','VIGENTE','NOM_ESTADO','FECHA_VENCIMIENTO','FECHA_INICIO','ESTADO','RESTRINGIDO_ROL','RESTRINGIDO_PLATAFORMA','SECUENCIA','LETRAS','NOM_ICONO','ID_ICONO','MOSTRAR_ICONO'\r\n,'ID_NOTIFICACIONES_DERECHA_PRINCIPAL','ID_ALINEACION_DESCRIPCION','ID_ALINEACION_TITULO','ID_PROCESO','ID_TIPO_NOTIFICACION'];\r\n\r\nlet currentdescripcion = null;\r\nlet currenttitulo = null;\r\n \r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Notificaciones_derecha extends React.Component {\r\n tablaRef = React.createRef();\r\n descripcionRef = React.createRef();\r\n tituloRef = React.createRef();\r\n\r\nconstructor(props) {\r\n\r\n super(props);\r\n this.Auth = new AuthService();\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 this.titulooriginal='';\r\n this.descripcionoriginal='';\r\n this.alineacion_titulooriginal=''\r\n this.alineacion_descripcionoriginal=''\r\n this.tiponotificacionoriginal=''\r\n this.fechainiciooriginal=''\r\n this.fechafinoriginal=''\r\n this.estadooriginal=''\r\n this.plataformaoriginal=''\r\n this.rolesoriginal=''\r\n this.matriculaoriginal='';\r\n this.cuotasoriginal='';\r\n this.todooriginal='';\r\n this.selection_plataformaoriginal=[]\r\n this.selection_rolesoriginal=[]\r\n\r\n\r\n this.state = {\r\n openBackDrop: false, \r\n isLoggin: undefined,\r\n heightTableMain: 0,\r\n open_agregar: false,\r\n open_modificar: false,\r\n open_eliminar: false,\r\n selectedDateInicio: new Date(),\r\n selectedDateFin: new Date(),\r\n rows: [],\r\n grouping: [],\r\n expandedGroups: [],\r\n filteringColumnExtensions: [],\r\n filters: [],\r\n filtersRoles: [],\r\n expandedRowIds: [],\r\n enabledFilterRows: true,\r\n datos_estados:[ \r\n {'Activo'}\r\n ,\r\n \r\n {'Inactivo'}\r\n \r\n ],\r\n selection: [],\r\n \r\n selection_plataformas_nom: [],\r\n selection_plataformas: [],\r\n selection_roles: [],\r\n selection_roles_nom: [],\r\n selection_estado:'',\r\n datos_alineaciones: '',\r\n alineaciones:'',\r\n selection_alineacion_titulo: [],\r\n selection_alineacion_descripcion: [],\r\n selection_tipo: [],\r\n openPopover:false,\r\n anchorEl: null,\r\n x:0,\r\n y:0,\r\n validado: true,\r\n plataforma: false,\r\n roles: false,\r\n chipData: [],\r\n chipplataformas: [],\r\n chiproles: [],\r\n chipalumnos: [],\r\n notificacion_plataformas: [],\r\n rows_plataformas: [],\r\n open_plataformas: false,\r\n plataformas_original: [],\r\n plataformas_principal: [],\r\n roles_principal: [],\r\n rows_roles: [],\r\n open_roles: false,\r\n roles_original: [],\r\n notificacion_roles: [],\r\n matricula: false,\r\n cuota: false,\r\n todo: false,\r\n }\r\n\r\n const trow = TableRow => withStyles(styles, { name: \"Row\" })( ({classes,highlighted, rowIndex, row, selectByRowClick, ...props}) => {\r\n\r\n const odd = !!(rowIndex % 2);\r\n const r = props.tableRow \r\n \r\n const clickselection = (ID_NOTIFICACIONES_DERECHA_PRINCIPAL,TITULO,DESCRIPCION,ID_ALINEACION_TITULO,ID_ALINEACION_DESCRIPCION,SECUENCIA\r\n ,FECHA_INICIO,FECHA_VENCIMIENTO,ID_PROCESO,RESTRINGIDO_PLATAFORMA,RESTRINGIDO_ROL,ID_TIPO_NOTIFICACION\r\n ,MOSTRAR_ICONO,ID_ICONO,NOM_ICONO,LETRAS,TIPO_NOTIFICACION,ESTADO,VIGENTE,NOM_ESTADO,MATRICULA,CUOTAS,TODO\r\n ) => event =>{\r\n this.setState({ selection: [{ID_NOTIFICACIONES_DERECHA_PRINCIPAL:ID_NOTIFICACIONES_DERECHA_PRINCIPAL\r\n ,TITULO:TITULO,DESCRIPCION:DESCRIPCION,ID_ALINEACION_TITULO:ID_ALINEACION_TITULO,ID_ALINEACION_DESCRIPCION:ID_ALINEACION_DESCRIPCION,SECUENCIA:SECUENCIA\r\n ,FECHA_INICIO:FECHA_INICIO,FECHA_VENCIMIENTO:FECHA_VENCIMIENTO,ID_PROCESO:ID_PROCESO,RESTRINGIDO_PLATAFORMA:RESTRINGIDO_PLATAFORMA\r\n ,RESTRINGIDO_ROL:RESTRINGIDO_ROL,ID_TIPO_NOTIFICACION:ID_TIPO_NOTIFICACION\r\n ,MOSTRAR_ICONO:MOSTRAR_ICONO,ID_ICONO:ID_ICONO,NOM_ICONO:NOM_ICONO,LETRAS:LETRAS,TIPO_NOTIFICACION:TIPO_NOTIFICACION,ESTADO:ESTADO,VIGENTE:VIGENTE,NOM_ESTADO:NOM_ESTADO\r\n ,MATRICULA:MATRICULA,CUOTAS:CUOTAS,TODO:TODO\r\n }] });\r\n }\r\n \r\n if (this.state.selection[0]===undefined?this.state.selection[0]:this.state.selection[0].ID_NOTIFICACIONES_DERECHA_PRINCIPAL === props.tableRow.row.ID_NOTIFICACIONES_DERECHA_PRINCIPAL) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n });\r\n const trow_plataformas = TableRow => withStyles(styles, { name: \"Row\" })( ({classes,highlighted, rowIndex, row, selectByRowClick, ...props}) => {\r\n\r\n const odd = !!(rowIndex % 2);\r\n //const r = props.tableRow \r\n\r\n \r\n if (this.state.selection_plataformas[0]===undefined?this.state.selection_plataformas[0]:this.state.selection_plataformas[0].ID_PLATAFORMA === props.tableRow.row.ID_PLATAFORMA) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n });\r\n\r\n const trow_roles = TableRow => withStyles(styles, { name: \"Row\" })( ({classes,highlighted, rowIndex, row, selectByRowClick, ...props}) => {\r\n\r\n const odd = !!(rowIndex % 2);\r\n //const r = props.tableRow \r\n \r\n if (this.state.selection_roles[0]===undefined?this.state.selection_roles[0]:this.state.selection_roles[0].ID_ROL === props.tableRow.row.ID_ROL) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n });\r\n this.trow = trow(Table.Row);\r\n this.trow_plataformas = trow_plataformas(Table.Row);\r\n this.trow_roles = trow_roles(Table.Row);\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 // if(b)\r\n this.setState({ isLoggin: Auth.getProfile().plataforma !== undefined ? true : false }, ()=>{\r\n Request.get(`${ip}/notificaciones/obtener_notificacionesderecha_ventana/${_this.Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(3)\r\n .timeout({ response: 5000, deadline: 60000, }) \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 (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n _this.setState({ rows: tmp, heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable\r\n }); \r\n }\r\n else\r\n {\r\n _this.setState({rows: [], heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable})\r\n }\r\n _this.actualizarbarra(true)\r\n })\r\n Request.get(`${ip}/notificaciones/obtener_alineaciones/`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n const Datos = tmp.map((datos, i) =>\r\n \r\n {datos.NOMBRE}\r\n \r\n );\r\n _this.setState({ datos_alineaciones: Datos,alineaciones: tmp})\r\n }\r\n })\r\n })\r\n Request.get(`${ip}/notificaciones/obtener_tipo_notificaciones/`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 {window.location.reload();return; }\r\n (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n const Datos = tmp.map((datos, i) =>\r\n \r\n
\r\n \r\n {datos.MOSTRAR_ICONO===true?:null}\r\n {datos.MOSTRAR_ICONO===true?null:datos.LETRAS}\r\n \r\n {datos.NOMBRE}\r\n
\r\n
\r\n );\r\n \r\n _this.setState({ datos_tipo: Datos,tipos: tmp})\r\n }\r\n }) \r\n Request.get(`${ip}/notificaciones/obtener_plataformas_ventana_notificaciones/${_this.Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 {window.location.reload();return; }\r\n (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n \r\n this.setState({ rows_plataformas: tmp})\r\n }\r\n })\r\n Request.get(`${ip}/notificaciones/obtener_roles_ventana_notificaciones/${_this.Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 {window.location.reload();return; }\r\n (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n \r\n this.setState({ rows_roles: tmp})\r\n }\r\n }) \r\n \r\n}\r\n\r\nconsultanotificacion_plataformas=()=>{\r\n let _this=this\r\n Request.get(`${ip}/notificaciones/obtener_notificaciones_plataformas/${this.state.selection[0].ID_NOTIFICACIONES_DERECHA_PRINCIPAL}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 {window.location.reload();return; }\r\n (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n this.consultanotificacion_roles();\r\n var seleccion = []\r\n var seleccion_nombre = []\r\n tmp.forEach((data,array)=>{\r\n seleccion.push(data.ID_PLATAFORMA)\r\n seleccion_nombre.push(data.DESCRIPCION)\r\n })\r\n _this.setState({ chipplataformas:seleccion_nombre,notificacion_plataformas: tmp, plataformas_principal: seleccion,selection_plataformas: seleccion,plataformas_original: seleccion})\r\n }\r\n }) \r\n}\r\nconsultanotificacion_roles=()=>{\r\n let _this=this\r\n Request.get(`${ip}/notificaciones/obtener_notificaciones_roles/${this.state.selection[0].ID_NOTIFICACIONES_DERECHA_PRINCIPAL}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 {window.location.reload();return; }\r\n (async function() {\r\n //toastr.error('Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n var seleccion = []\r\n var seleccion_nombres = []\r\n tmp.forEach((data,array)=>{\r\n seleccion.push(data.ID_ROL)\r\n seleccion_nombres.push(data.NOMBRE)\r\n })\r\n _this.setState({ chiproles:seleccion_nombres,notificacion_roles: tmp, roles_principal:seleccion,selection_roles: seleccion,roles_original: seleccion})\r\n }\r\n }) \r\n}\r\n\r\nhandleInfoClick =()=> event =>{\r\n event.preventDefault(); //Quita el Munú Contextual del Navegador\r\n event.stopPropagation();\r\n\r\n this.setState({openPopover: true,x: event.clientX + 1, y: event.clientY})\r\n \r\n}\r\n\r\n\r\nhandleClosePop= (event) => {\r\n this.setState({openPopover: false});\r\n};\r\n\r\nchangeSelection = selection =>{\r\n if(selection[selection.length-1]===undefined)\r\n {\r\n this.setState({ selection: this.state.selection });\r\n }\r\n else{\r\n this.setState({ selection: [selection[selection.length-1]] });\r\n }\r\n}\r\n\r\nchangeSelection_plataformas = selection =>{\r\n this.setState({ selection_plataformas: selection });\r\n}\r\nchangeSelection_roles = selection =>{\r\n this.setState({ selection_roles: selection });\r\n}\r\n\r\nchangeFilters = filters => this.setState({ filters}); //EVENTO CAMBIO DE FILTRO PARA LA TABLA PRINCIPAL\r\nchangeFiltersRoles = filtersRoles => this.setState({ filtersRoles }); //EVENTO CAMBIO DE FILTRO PARA LA TABLA ROLES\r\n\r\nchangeExpandedGroups = expandedGroups =>\r\n{\r\n this.setState({ expandedGroups });\r\n};\r\n\r\nconfirma_valor(valor){\r\n if(valor!==undefined && valor!==null)\r\n return valor;\r\n else{\r\n return '';\r\n } \r\n}\r\n\r\ncerrarmodal =()=> event =>{\r\n currentdescripcion=''\r\n currenttitulo=''\r\n this.setState({matricula:false,cuota:false,todo:false,selectedDateInicio: new Date(),selectedDateFin: new Date(),selection_alineacion_descripcion: '',selection_alineacion_titulo:'',selection_tipo: '',plataforma:false,roles:false,selection_roles: [],selection_plataformas: [],open_modificar: false,open_agregar: false, open_eliminar: false, selection_estado: ''})\r\n}\r\n\r\ncerrarmodal_plataformas =()=> event =>{\r\n var chipplataformas=[];\r\n if(this.state.selection_plataformas.length>0 && this.state.plataformas_original.length>0)\r\n this.state.rows_plataformas.forEach((data,array)=>{\r\n this.state.selection_plataformas.forEach((data2,array2)=>{\r\n if(data.ID_PLATAFORMA===data2)\r\n {\r\n chipplataformas.push(data.DESCRIPCION)\r\n }\r\n })\r\n })\r\n else\r\n {\r\n this.state.rows_plataformas.forEach((data,array)=>{\r\n this.state.plataformas_original.forEach((data2,array2)=>{\r\n if(data.ID_PLATAFORMA===data2)\r\n {\r\n chipplataformas.push(data.DESCRIPCION)\r\n }\r\n })\r\n })\r\n }\r\n this.setState({chipplataformas: chipplataformas, open_plataformas:false, plataforma: this.state.selection_plataformas.length === 0 || this.state.plataformas_original.length===0? false:true,selection_plataformas: this.state.plataformas_original});\r\n}\r\n\r\ncerrarmodal_roles =()=> event =>{\r\n var chiproles=[];\r\n if(this.state.selection_roles.length>0 && this.state.roles_original.length>0)\r\n this.state.rows_roles.forEach((data,array)=>{\r\n this.state.selection_roles.forEach((data2,array2)=>{\r\n if(data.ID_ROL===data2)\r\n {\r\n chiproles.push(data.NOMBRE)\r\n }\r\n })\r\n })\r\n else\r\n {\r\n this.state.rows_roles.forEach((data,array)=>{\r\n this.state.roles_original.forEach((data2,array2)=>{\r\n if(data.ID_ROL===data2)\r\n {\r\n chiproles.push(data.NOMBRE)\r\n }\r\n })\r\n })\r\n }\r\n this.setState({chiproles:chiproles,open_roles:false, roles: this.state.selection_roles.length === 0 || this.state.roles_original.length===0? false:true,selection_roles: this.state.roles_original});\r\n}\r\n\r\nabrirmodal_modificar = () => event => {\r\n if(this.state.selection.length>0){\r\n currenttitulo=this.confirma_valor(this.state.selection[0].TITULO)\r\n currentdescripcion=this.confirma_valor(this.state.selection[0].DESCRIPCION)\r\n this.titulooriginal=this.confirma_valor(this.state.selection[0].TITULO)\r\n this.descripcionoriginal=this.confirma_valor(this.state.selection[0].DESCRIPCION)\r\n this.alineacion_titulooriginal=this.state.selection[0].ID_ALINEACION_TITULO\r\n this.alineacion_descripcionoriginal=this.state.selection[0].ID_ALINEACION_DESCRIPCION\r\n this.tiponotificacionoriginal=this.state.selection[0].ID_TIPO_NOTIFICACION\r\n this.fechainiciooriginal=this.state.selection[0].FECHA_INICIO.replaceAll('Z','')\r\n this.fechafinoriginal=this.state.selection[0].FECHA_VENCIMIENTO.replaceAll('Z','')\r\n this.estadooriginal=this.state.selection[0].ESTADO?1:0\r\n this.plataformaoriginal=this.state.selection[0].RESTRINGIDO_PLATAFORMA\r\n this.matriculaoriginal=this.state.selection[0].MATRICULA\r\n this.cuotasoriginal=this.state.selection[0].CUOTAS\r\n this.todooriginal=this.state.selection[0].TODO\r\n this.rolesoriginal=this.state.selection[0].RESTRINGIDO_ROL\r\n this.consultanotificacion_plataformas();\r\n this.setState({open_modificar: true})\r\n }\r\n}\r\nabrirmodal_agregar = () => event => {\r\n\r\n this.setState({open_agregar: true,selectedDateInicio: new Date(),selectedDateFin: new Date()})\r\n}\r\nabrirmodal_plataformas = () => event => {\r\n this.setState({open_plataformas: true})\r\n}\r\nabrirmodal_roles = () => event => {\r\n this.setState({open_roles: true})\r\n}\r\nabrirmodal_eliminar=()=>event=>{\r\n if(this.state.selection.length>0)\r\n {\r\n if(this.state.selection[0].ESTADO===false) \r\n this.setState({open_eliminar: true})\r\n else\r\n funciones.showToast('w', 'Debe estar Inactivo para la eliminación.');\r\n }\r\n}\r\n\r\nguardar_plataformas = event =>{\r\n var chipplataformas=[];\r\n if(this.state.selection_plataformas !== this.state.plataformas_original)\r\n this.state.rows_plataformas.forEach((data,array)=>{\r\n this.state.selection_plataformas.forEach((data2,array2)=>{\r\n if(data.ID_PLATAFORMA===data2)\r\n {\r\n chipplataformas.push(data.DESCRIPCION.toLowerCase())\r\n }\r\n })\r\n })\r\n else\r\n {\r\n this.state.rows_plataformas.forEach((data,array)=>{\r\n this.state.plataformas_original.forEach((data2,array2)=>{\r\n if(data.ID_PLATAFORMA===data2)\r\n {\r\n chipplataformas.push(data.DESCRIPCION.toLowerCase())\r\n }\r\n })\r\n })\r\n }\r\n if(this.state.selection_plataformas !== this.state.plataformas_original ){\r\n this.setState({chipplataformas: chipplataformas,roles: this.state.selection_plataformas.filter(busqueda=> busqueda===1?true:false).length>0?this.state.roles:false,chiproles: this.state.selection_plataformas.filter(busqueda=> busqueda===1?true:false).length>0?this.state.chiproles:[],open_plataformas: false,plataformas_original:this.state.selection_plataformas,plataforma: this.state.selection_plataformas.length === 0? false:true})\r\n }\r\n}\r\n\r\nguardar_roles = event =>{\r\n var chiproles=[];\r\n if(this.state.selection_roles !== this.state.roles_original)\r\n this.state.rows_roles.forEach((data,array)=>{\r\n this.state.selection_roles.forEach((data2,array2)=>{\r\n if(data.ID_ROL===data2)\r\n {\r\n chiproles.push(data.NOMBRE)\r\n }\r\n })\r\n })\r\n else\r\n {\r\n this.state.rows_roles.forEach((data,array)=>{\r\n this.state.roles_original.forEach((data2,array2)=>{\r\n if(data.ID_ROL===data2)\r\n {\r\n chiproles.push(data.NOMBRE)\r\n }\r\n })\r\n })\r\n }\r\n if(this.state.selection_roles !== this.state.roles_original ){\r\n this.setState({chiproles:chiproles,open_roles: false,roles_original:this.state.selection_roles,roles: this.state.selection_roles.length === 0? false:true})\r\n }\r\n}\r\n\r\nconsulta_notificaciones(){\r\n var _this=this\r\n //_this.actualizarcircular(false)\r\n Request.get(`${ip}/notificaciones/obtener_notificacionesderecha_ventana/${this.Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(10)\r\n .timeout({ response: 5000, 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 (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n _this.setState({ rows: tmp, heightTableMain: movil===false? window.innerHeight-(_this.tablaRef.current.getBoundingClientRect().top):'500px'\r\n }); \r\n }\r\n else\r\n {\r\n _this.setState({rows: [], heightTableMain: movil===false? window.innerHeight-(_this.tablaRef.current.getBoundingClientRect().top):'500px'})\r\n }\r\n // _this.actualizarcircular(true)\r\n })\r\n\r\n}\r\n\r\nguardar_agregar =()=>{\r\n if(this.state.selection_estado==='')\r\n {funciones.showToast('w', 'Seleccionar un estado.'); return;}\r\n if(this.state.selection_alineacion_titulo==='')\r\n {funciones.showToast('w', 'Seleccionar alineación del título.'); return;}\r\n if(this.state.selection_alineacion_descripcion==='')\r\n {funciones.showToast('w', 'Seleccionar alineación de la descripción.'); return;}\r\n if(this.state.selection_tipo==='')\r\n {funciones.showToast('w', 'Seleccionar tipo.'); return;}\r\n if(this.descripcionRef.current.value.toString().trim() === null || this.descripcionRef.current.value.toString().trim() === '')\r\n {funciones.showToast('w', 'Ingresar descripción.'); return;}\r\n\r\n this.setState({validado: false})\r\n var plataformas=''\r\n var roles=''\r\n this.state.selection_plataformas.forEach((data,index)=>{\r\n if(index===0){\r\n plataformas=plataformas+data.toString()\r\n }\r\n else\r\n {\r\n plataformas=plataformas+','+data.toString()\r\n }\r\n })\r\n this.state.selection_roles.forEach((data,index)=>{\r\n if(index===0){\r\n roles=roles+data.toString()\r\n }\r\n else\r\n {\r\n roles=roles+','+data.toString()\r\n }\r\n })\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n \r\n new Request\r\n .post(`${globales.ip}/notificaciones/IUD_notificaciones_derecha`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ ID_NOTIFICACIONES_DERECHA_PRINCIPAL:null,TITULO:this.tituloRef.current.value.toString().trim()===''?null:this.tituloRef.current.value.toString(),DESCRIPCION:this.descripcionRef.current.value.toString(),ID_ALINEACION_TITULO:this.state.selection_alineacion_titulo\r\n ,ID_ALINEACION_DESCRIPCION:this.state.selection_alineacion_descripcion,SECUENCIA:null,FECHA_INICIO:this.state.selectedDateInicio,FECHA_VENCIMIENTO:this.state.selectedDateFin\r\n ,ID_PROCESO:null,RESTRINGIDO_PLATAFORMA:this.state.plataforma,RESTRINGIDO_ROL:this.state.roles,ID_TIPO_NOTIFICACION:this.state.selection_tipo,ESTADO:this.state.selection_estado,USUARIO:this.Auth.getProfile().user,PLATAFORMAS:plataformas===''?null:plataformas,ROLES:roles===''?null:roles,MATRICULA:this.state.matricula,CUOTAS:this.state.cuota,TODO:this.state.todo,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.setState({matricula:false,cuota:false,todo:false,openBackDrop: false,validado: true,error:false,open_agregar: false,selection:[],selection_alineacion_descripcion: '',selection_alineacion_titulo: '', selection_tipo: '', selection_estado: '',plataformas_original:[],plataformas_principal:[],selection_plataformas:[],selection_plataformas_nom:[],selection_roles:[],roles_original:[],roles_principal:[]}, ()=>{\r\n funciones.showToast('s', 'Información ingresada correctamente.'); \r\n this.consulta_notificaciones();\r\n })\r\n }\r\n else{\r\n this.setState({ openBackDrop: false,validado: true}, ()=>{\r\n funciones.showToast('w', rows[0].RESP);\r\n });\r\n }\r\n } \r\n }); \r\n }\r\n catch(ex){\r\n funciones.showToast('e', 'Error de conexión');\r\n this.setState({validado: true,error:true, openBackDrop: false})\r\n }\r\n })\r\n \r\n\r\n\r\n}\r\n\r\nguardar_modificar =()=>{\r\n if(this.state.selection_estado==='')\r\n {funciones.showToast('w', 'Seleccionar un estado.'); return;}\r\n if(this.state.selection_alineacion_titulo==='')\r\n {funciones.showToast('w', 'Seleccionar alineación del título.'); return;}\r\n if(this.state.selection_alineacion_descripcion==='')\r\n {funciones.showToast('w', 'Seleccionar alineación de la descripción.'); return;}\r\n if(this.state.selection_tipo==='')\r\n {funciones.showToast('w', 'Seleccionar tipo.'); return;}\r\n\r\n if((this.state.selection_estado!=='' && this.state.selection_alineacion_titulo!=='' && this.state.selection_alineacion_descripcion!=='' && this.state.selection_tipo !=='' && this.descripcionRef.current.value.toString().trim() !== null && this.descripcionRef.current.value.toString().trim() !== '')\r\n &&(this.state.plataforma!==this.plataformaoriginal \r\n || JSON.stringify(this.state.selection_plataformas) !== JSON.stringify(this.state.plataformas_principal)\r\n || JSON.stringify(this.state.selection_roles) !== JSON.stringify(this.state.roles_principal)\r\n || this.state.roles !== this.rolesoriginal || this.tituloRef.current.value !== this.titulooriginal || this.descripcionRef.current.value !== this.descripcionoriginal\r\n || this.alineacion_titulooriginal !== this.state.selection_alineacion_titulo || this.alineacion_descripcionoriginal !== this.state.selection_alineacion_descripcion\r\n || this.tiponotificacionoriginal !== this.state.selection_tipo || this.fechainiciooriginal !== this.state.selectedDateInicio || this.fechafinoriginal!== this.state.selectedDateFin\r\n || this.estadooriginal !== this.state.selection_estado || this.matriculaoriginal !== this.state.matricula || this.cuotasoriginal !== this.state.cuota\r\n || this.todooriginal !== this.state.todo\r\n ))\r\n {\r\n this.setState({validado: false})\r\n var plataformas=''\r\n var roles=''\r\n this.state.selection_plataformas.forEach((data,index)=>{\r\n if(index===0){\r\n plataformas=plataformas+data.toString()\r\n }\r\n else\r\n {\r\n plataformas=plataformas+','+data.toString()\r\n }\r\n })\r\n this.state.selection_roles.forEach((data,index)=>{\r\n if(index===0){\r\n roles=roles+data.toString()\r\n }\r\n else\r\n {\r\n roles=roles+','+data.toString()\r\n }\r\n })\r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${globales.ip}/notificaciones/IUD_notificaciones_derecha`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ ID_NOTIFICACIONES_DERECHA_PRINCIPAL:this.state.selection[0].ID_NOTIFICACIONES_DERECHA_PRINCIPAL,TITULO:this.tituloRef.current.value.toString().trim()===''?null:this.tituloRef.current.value.toString(),DESCRIPCION:this.descripcionRef.current.value.toString(),ID_ALINEACION_TITULO:this.state.selection_alineacion_titulo,ID_ALINEACION_DESCRIPCION:this.state.selection_alineacion_descripcion,SECUENCIA:null,FECHA_INICIO:this.state.selectedDateInicio,FECHA_VENCIMIENTO:this.state.selectedDateFin,ID_PROCESO:null,RESTRINGIDO_PLATAFORMA:this.state.plataforma,RESTRINGIDO_ROL:this.state.roles,ID_TIPO_NOTIFICACION:this.state.selection_tipo,ESTADO:this.state.selection_estado,USUARIO:this.Auth.getProfile().user,PLATAFORMAS:plataformas===''?null:plataformas,ROLES:roles===''?null:roles,MATRICULA:this.state.matricula,CUOTAS:this.state.cuota,TODO:this.state.todo,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 currentdescripcion=''\r\n currenttitulo=''\r\n this.setState(\r\n { matricula:false,cuota:false,todo:false,\r\n chipalumnos:[],\r\n chipplataformas:[],\r\n chiproles:[],\r\n openBackDrop: false,\r\n validado: true,\r\n error: false,\r\n open_modificar: false,\r\n selection: [],\r\n selection_alineacion_descripcion: \"\",\r\n selection_alineacion_titulo: \"\",\r\n selection_tipo: \"\",\r\n selection_estado: \"\"\r\n ,plataformas_original:[],plataformas_principal:[],selection_plataformas:[],selection_plataformas_nom:[],selection_roles:[],roles_original:[],roles_principal:[]\r\n },\r\n () => {\r\n funciones.showToast(\"s\",\"Información ingresada correctamente.\",);\r\n this.consulta_notificaciones();\r\n }\r\n );\r\n } else {\r\n this.setState({ openBackDrop: false, validado: true }, () => {\r\n funciones.showToast(\"w\", rows[0].RESP);\r\n });\r\n }\r\n } \r\n });\r\n \r\n }\r\n catch(ex){\r\n this.setState({ openBackDrop: false, validado: true, error:true}, () => {\r\n funciones.showToast('e', 'Error de conexión');\r\n })\r\n }})\r\n }\r\n else{\r\n funciones.showToast('w', 'Confirme información ingresada.'); \r\n }\r\n}\r\n\r\neliminar =()=>{\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n \r\n new Request\r\n .post(`${globales.ip}/notificaciones/IUD_notificaciones_derecha`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ ID_NOTIFICACIONES_DERECHA_PRINCIPAL:this.state.selection[0].ID_NOTIFICACIONES_DERECHA_PRINCIPAL,TITULO:'',DESCRIPCION:'',ID_ALINEACION_TITULO:0,ID_ALINEACION_DESCRIPCION:0,SECUENCIA:null,FECHA_INICIO:'',FECHA_VENCIMIENTO:'',ID_PROCESO:null,RESTRINGIDO_PLATAFORMA:0,RESTRINGIDO_ROL:0,ID_TIPO_NOTIFICACION:0,ESTADO:0,USUARIO:this.Auth.getProfile().user,PLATAFORMAS:null,ROLES:null,MATRICULA:false,CUOTAS:false,TODO:false,TIPO: 3 })\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.setState({matricula:false,cuota:false,todo:false,openBackDrop: false,validado: true,error:false,open_eliminar: false,selection:[],selection_alineacion_descripcion: '',selection_alineacion_titulo: '', selection_tipo: '', selection_estado: '',plataformas_original:[],plataformas_principal:[],selection_plataformas:[],selection_plataformas_nom:[],selection_roles:[],roles_original:[],roles_principal:[]}, ()=>{\r\n funciones.showToast('s', 'Se eliminó correctamente.'); \r\n currenttitulo=''\r\n currentdescripcion=''\r\n this.consulta_notificaciones();\r\n })\r\n }\r\n else{\r\n this.setState({ openBackDrop: false,validado: true}, ()=>{\r\n funciones.showToast('w', rows[0].RESP);\r\n });\r\n }\r\n } \r\n });\r\n \r\n }\r\n catch(ex){\r\n funciones.showToast('e', 'Error de conexión');\r\n this.setState({validado: true,error:true,openBackDrop: false})\r\n }\r\n })\r\n \r\n}\r\n\r\nonEntering=() =>{\r\n if(this.state.open_modificar){\r\n\r\n var chipalumnos=[];\r\n if(this.state.selection[0].TODO)\r\n chipalumnos.push('Alumnos con facturas pendientes')\r\n else if(this.state.selection[0].MATRICULA || this.state.selection[0].CUOTAS ){\r\n if(this.state.selection[0].MATRICULA)\r\n chipalumnos.push('Alumnos con matrícula pendiente')\r\n if(this.state.selection[0].CUOTAS)\r\n chipalumnos.push('Alumnos con cuota pendiente')\r\n }\r\n this.setState({chipalumnos:chipalumnos,todo:this.state.selection[0].TODO,cuota:this.state.selection[0].CUOTAS,matricula:this.state.selection[0].MATRICULA,plataforma: this.state.selection[0].RESTRINGIDO_PLATAFORMA,roles: this.state.selection[0].RESTRINGIDO_ROL,selectedDateFin:this.state.selection[0].FECHA_VENCIMIENTO.replaceAll('Z','')\r\n ,selectedDateInicio: this.state.selection[0].FECHA_INICIO.replaceAll('Z',''),selection_alineacion_descripcion: this.state.selection[0].ID_ALINEACION_DESCRIPCION,selection_estado: this.state.selection[0].ESTADO?1:0,selection_tipo:this.state.selection[0].ID_TIPO_NOTIFICACION,selection_alineacion_titulo: this.state.selection[0].ID_ALINEACION_TITULO})\r\n }\r\n else{\r\n currenttitulo=''\r\n currentdescripcion=''\r\n this.setState({todo:false,matricula:false,cuota:false,selection_alineacion_titulo: 3,selection_estado: '',selection_alineacion_descripcion: 3, plataforma:false,roles:false,selection_tipo: ''})\r\n }\r\n}\r\n\r\nChangeSelect_alineacion_titulo = event => {\r\n var nom='';\r\n for (let index = 0; index < this.state.alineaciones.length; index++) {\r\n const element = this.state.alineaciones[index];\r\n if(element.ID_ALINEACION===event.target.value){\r\n nom=element.NOMBRE\r\n break;\r\n }\r\n }\r\n this.setState({ selection_alineacion_titulo: event.target.value,selection_nom_alineacion: nom });\r\n}\r\nChangeSelect_alineacion_descripcion = event => {\r\n var nom='';\r\n for (let index = 0; index < this.state.alineaciones.length; index++) {\r\n const element = this.state.alineaciones[index];\r\n if(element.ID_ALINEACION===event.target.value){\r\n nom=element.NOMBRE\r\n break;\r\n }\r\n }\r\n \r\n this.setState({ selection_alineacion_descripcion: event.target.value,selection_nom_alineacion: nom });\r\n}\r\nChange_Text_titulo= event => {\r\n // this.setState({ titulorender: this.tituloRef.current.value });\r\n}\r\nhandleDateChangeInicio = (date)=>{\r\n this.setState({ selectedDateInicio: date }, ()=>{\r\n \r\n //this.obtenerActividades();\r\n \r\n }); \r\n}\r\nhandleDateChangeFin = (date)=>{\r\n this.setState({ selectedDateFin: date }, ()=>{\r\n \r\n //this.obtenerActividades();\r\n \r\n }); \r\n}\r\nChangeSelect_estado = event => {\r\n this.setState({ selection_estado: event.target.value });\r\n}\r\nChangeSelect_tipo = event => {\r\n this.setState({ selection_tipo: event.target.value });\r\n}\r\n\r\nhandleChangeCheckbox_plataforma= event => {\r\n this.setState({ plataforma: event.target.checked, open_plataformas: event.target.checked,roles:!event.target.checked?event.target.checked:this.state.roles });\r\n}\r\n\r\nhandleChangeCheckbox_roles= event => {\r\n this.setState({ roles: event.target.checked, open_roles: event.target.checked });\r\n}\r\n\r\nhandleChangeCheckbox_matricula= event => {\r\n var chipalumnos=[];\r\n if(event.target.checked)\r\n chipalumnos.push('Alumnos con martrícula pendiente')\r\n if(this.state.cuota)\r\n chipalumnos.push('Alumnos con cuota pendiente')\r\n \r\n this.setState({ matricula: event.target.checked,chipalumnos:chipalumnos });\r\n\r\n}\r\nhandleChangeCheckbox_cuota= event => {\r\n var chipalumnos=[];\r\n if(event.target.checked)\r\n chipalumnos.push('Alumnos con cuota pendiente')\r\n if(this.state.matricula)\r\n chipalumnos.push('Alumnos con matrícula pendiente')\r\n this.setState({ cuota: event.target.checked,chipalumnos:chipalumnos });\r\n}\r\nhandleChangeCheckbox_todo= event => {\r\n var chipalumnos=[];\r\n if(event.target.checked)\r\n chipalumnos.push('Alumnos con saldo pendiente')\r\n\r\n this.setState({ chipalumnos:chipalumnos,todo: event.target.checked,cuota:event.target.checked?false:this.state.cuota,matricula:event.target.checked?false:this.state.matricula });\r\n}\r\n\r\n\r\n/* RENDER */\r\nrender() {\r\n const { classes } = this.props;\r\n \r\n const botones = [\r\n {icono: 'Add', toolt: 'Agregar Notificación', nombre: 'Agregar' ,escritura:true, onclick: this.abrirmodal_agregar()\r\n , display: 'auto'},\r\n {icono: 'Edit', toolt: 'Modificar Notificación', nombre: 'Modificar' ,escritura:true, onclick: this.abrirmodal_modificar()\r\n , display:'auto'},\r\n {icono: 'Delete', toolt: 'Eliminar Notificación', nombre: 'Eliminar' ,escritura:true, onclick: this.abrirmodal_eliminar()\r\n , color: colores.naranja, display: 'auto'},\r\n ]\r\n const botones_agregar = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_agregar\r\n , display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n const botones_modificar = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_modificar\r\n , display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n const botones_eliminar = [\r\n {icono: 'Delete', toolt: 'Eliminar', nombre: 'Eliminar',onclick: this.eliminar , display:'auto'},\r\n {icono: 'Close', toolt: 'Cerrar', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n const botones_plataformas = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_plataformas\r\n , display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_plataformas(), display:'auto', color: 'red'},\r\n ]\r\n const botones_roles = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_roles\r\n , display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_roles(), display:'auto', color: 'red'},\r\n ]\r\n\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_eliminar ? 'Eliminando...' : 'Guardando...'}\r\n \r\n\r\n \r\n \r\n \r\n \r\n ¿Está seguro de eliminar la notificación?\r\n \r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n \r\n {this.state.open_plataformas?'Plataformas':'Roles'} \r\n \r\n }\r\n //VirtualTable_cellComponent={VirtualTable_cellComponent}\r\n showSelectionColumn={true}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n \r\n Estados de Notificaciones\r\n \r\n }\r\n label=\"Esperando y Activo\" style={{display: 'flex',marginLeft: 5}}\r\n />\r\n }\r\n label=\"Activo Actualmente\" style={{display: 'flex',marginLeft: 5}}\r\n />\r\n }\r\n label=\"Vencimiento en 10 días\" style={{display: 'flex',marginLeft: 5}}\r\n />\r\n }\r\n label=\"Vencimiento en 5 días\" style={{display: 'flex',marginLeft: 5}}\r\n />\r\n }\r\n label=\"Vencido\" style={{display: 'flex',marginLeft: 5}}\r\n />\r\n }\r\n label=\"Inactivo\" style={{display: 'flex',marginLeft: 5,paddingBottom:10}}\r\n />\r\n \r\n\r\n \r\n \r\n {this.state.open_agregar?'Ingreso de Notificación':'Modificar Notificaión'} \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n Restricciones\r\n
\r\n }\r\n label={'Plataforma'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:5,paddingBottom:5,marginLeft:5 ,marginRight: 10, marginTop:1}}\r\n />\r\n {this.state.plataforma ?\r\n \r\n \r\n \r\n :\r\n \r\n }\r\n
\r\n
\r\n busqueda===1?true:false).length>0||!this.state.plataforma}\r\n control={}\r\n label={'Roles'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:5,paddingBottom:5,marginLeft:5 ,marginRight: 10, marginTop:1}}\r\n />\r\n {this.state.roles && this.state.selection_plataformas.filter(busqueda=> busqueda===1?true:false).length>0?\r\n \r\n \r\n \r\n :\r\n \r\n }\r\n
\r\n \r\n {this.state.selection_plataformas.filter(busqueda=> busqueda===1?true:false).length>0 && this.state.plataforma?'Nota: No seleccionar un rol, se considerará toda el área administrativa.':!this.state.plataforma && !this.state.roles? 'Nota: No seleccionar restricción, se considerará para todas las áreas.':''}\r\n
\r\n Alumnos\r\n busqueda===2?true:false).length>0&&this.state.plataforma)||this.state.todo}\r\n control={}\r\n label={'Matrícula Pendiente'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:5,paddingBottom:5,marginLeft:5 ,marginRight: 10, marginTop:1}}\r\n />\r\n busqueda===2?true:false).length>0&&this.state.plataforma)||this.state.todo}\r\n control={}\r\n label={'Cuotas Pendientes'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:5,paddingBottom:5,marginLeft:5 ,marginRight: 10, marginTop:1}}\r\n />\r\n busqueda===2?true:false).length>0&&this.state.plataforma)}\r\n control={}\r\n label={'Toda Factura Pendientes'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:5,paddingBottom:5,marginLeft:5 ,marginRight: 10, marginTop:1}}\r\n />\r\n
\r\n
\r\n
\r\n Habilitado para:\r\n \r\n {\r\n this.state.chipplataformas.length>0&&this.state.plataforma?\r\n this.state.chipplataformas.map((data,index) => {\r\n return (\r\n
  • \r\n {'P'}}\r\n label={data}\r\n //onDelete={data.label === 'React' ? undefined : handleDelete(data)}\r\n className={classes.chip}\r\n />\r\n
  • \r\n );\r\n }):{'P'}}\r\n label={'Todos'}\r\n //onDelete={data.label === 'React' ? undefined : handleDelete(data)}\r\n className={classes.chip}\r\n />}{\r\n this.state.chipalumnos.map((data,index) => {\r\n return (\r\n
  • \r\n {'P'}}\r\n label={data}\r\n //onDelete={data.label === 'React' ? undefined : handleDelete(data)}\r\n className={classes.chip}\r\n />\r\n
  • \r\n );\r\n })\r\n }\r\n {\r\n this.state.chiproles.length>0&&this.state.roles?\r\n this.state.chiproles.map((data,index) => {\r\n return (\r\n
  • \r\n {'R'}}\r\n label={data}\r\n //onDelete={data.label === 'React' ? undefined : handleDelete(data)}\r\n className={classes.chip}\r\n />\r\n
  • \r\n );\r\n }):null\r\n }\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n {this.state.validado?\r\n :\r\n }\r\n
    \r\n
    \r\n \r\n
    \r\n }\r\n VirtualTable_cellComponent={VirtualTable_cellComponent}\r\n showSelectionColumn={false}\r\n />\r\n \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"],"sourceRoot":""}