{"version":3,"sources":["pages/mantenimiento/configuraciones_del_sistema/reporteriadinamica.js","pages/mantenimiento/configuraciones_del_sistema/sucursales.js"],"names":["Auth","AuthService","ip","globales","border_dialog","movil_pequeño","test","navigator","userAgent","isVisibleRowSelected","colorRowSelected","colores","tabla","selection","alternateColorRow1","alternateColorRow2","VirtualTable_cellComponent","props","column","row","name","_jsx","Table","Cell","style","padding","children","Checkbox","checked","DEBE_VALIDAR","VirtualTable_cellComponent_detalle","ES_QUERY","getRowId","ID_REPORTE","getRowId_detalle","ID_PARAMETRO","styles","theme","Dialog","borderRadius","margin","backdrop","zIndex","color","flexDirection","select","spacing","minWidth","textField","width","columns","title","columns_detalle","defaultHiddenColumnNames","defaultHiddenColumnNames_detalle","tableColumnExtensions","columnName","wordWrapEnabled","align","tableColumnExtensions_detalle","currentlabel","currentreporte_knw","currentparametros","currentparametros_subr","currentfuncion","currentparametros_validar","currentnombre","currentetiqueta","currentsecuencia","currentcolumna","currentsecuencia_espera","currentobservacion","withStyles","React","Component","constructor","super","tablaRef","createRef","labelRef","reporte_knwRef","parametrosRef","parametros_subrRef","funcionRef","parametros_validarRef","nombreRef","etiquetaRef","secuenciaRef","columnaRef","secuencia_esperaRef","observacionRef","abrirmodal_agregar","event","this","setState","open_agregar","rows_detalle","selection_detalle","debe_validar","es_jasper","abrirmodal_modificar","state","length","rows_hijo","forEach","element","index","push","open_modificar","abrirmodal_query","open_query","abrirmodal_eliminar","open_eliminar","cerrarmodal","cerrarmodal_detalle","query","open_ingresar","open_eliminar_detalle","open_modificar_detalle","selection_componente","selection_condicion","es_query","es_alumno","permite_nulo","Limpiar_detalle","Limpiar","cerrarmodal_query","undefined","error_query","QUERY_SQL","handleClick","TIPO","funciones","showToast","handleChangeCheckbox_debevalidar","target","handleChangeCheckbox_esjasper","handleChangeCheckbox_alumno","handleChangeCheckbox_permite_nulo","handleChangeCheckbox_query","handleChangeCheckbox_espera","espera_parametro","ChangeSelect_componente","value","ChangeSelect_condicion","guardar_query","openBackDrop","Request","post","set","getToken","send","QUERY","USUARIO","getProfile","user","retry","timeout","response","deadline","end","err","res","toString","substr","window","location","reload","rows","JSON","parse","text","RESP","ex","guardar_detalle","current","ID_COMPONENTE_RPT","NOMBRE","ETIQUETA","SECUENCIA","ES_ALUMNO","PERMITE_NULO","ESPERA_PARAMETRO","COLUMNA","ID_CONDICION","SECUENCIA_PARAMETRO","rows_padre","item","find","grupo","guardar","ID_REPORTE_KNW","DOCUMENT_LABEL","PARAMETROS","PARAMETROS_SUBREPORTES","OBSERVACION_REFERENCIA","ES_JASPER","FUNCION_VALIDAR","PARAMETROS_VALIDAR","onChangequery","onClickHelpfuncion","open_ayuda","cerrarmodal_ayuda","l","e","i","actualizarbarra","actualizarcircular","isLoggin","heightTableMain","grouping","expandedGroups","filteringColumnExtensions","filters","expandedRowIds","enabledFilterRows","ayuda_texto","trow","TableRow","_ref2","classes","highlighted","rowIndex","selectByRowClick","odd","r","tableRow","Row","onClick","clickselection","onDoubleClick","dblclickselection","backgroundColor","trow_detalle","_ref3","componentDidMount","_this","loggedIn","then","b","get","tmp","Datos","map","datos","MenuItem","dense","datos_componente","componentes","DESCRIPCION","NOMBRE_CONDICION","datos_condicion","condiciones","getHeightTableMain","heightTable","render","botones","icono","toolt","nombre","escritura","onclick","display","naranja","botones_agregar","botones_modificar","botones_eliminar","botones_agregar_detalle","botones_modificar_detalle","botones_eliminar_detalle","botones_query","botones_ayuda","_jsxs","Fragment","Backdrop","className","open","CircularProgress","marginTop","disableEnforceFocus","onEscapeKeyDown","fullWidth","paper","maxWidth","DialogTitle","Typography","component","variant","DialogContent","BarraBotones","fullScreen","marginBottom","marginLeft","marginRight","border","alignItems","TextField","id","label","required","defaultValue","inputProps","ref","onKeyDown","onlyNumbers","FormControlLabel","control","onChange","labelPlacement","paddingLeft","paddingRight","paddingTop","paddingBottom","helperText","disabled","InputProps","endAdornment","InputAdornment","position","IconButton","HelpRounded","CustomTable","Columns","Rows","TableColumnExtensions","DefaultHiddenColumnNames","height","standarPlugin","TableRowsIndexer","rowHeaderCellComponent","valueStudent","_ref","TableHeaderRow","size","Icono","fontSize","color_iconos","color_iconos_SL","borderLeft","RowComponent","showSelectionColumn","dangerouslySetInnerHTML","__html","Divider","Select","Label","Selected","Multiple","SelectClass","Style","ShowItemNone","LabelItemNone","ValueItemNone","AutoFocus","Outlined","shrink","Button","Code","InputLabelProps","background","multiline","placeholder","marginleft_movil","marginleft","marginright_movil","marginright","logout","HeaderRowCellComponent_detalle","movil","PureComponent","Plugin","Template","restParams","TemplateConnector","type","filter","x","ID_SUCURSAL","indexOf","TemplatePlaceholder","params","BodyComponent","TableBody","ESTATUS","currentDescripcion","currentTelefono1","currentTelefono2","currentDireccion","descripcionSucursalRef","telefono1Ref","telefono2Ref","estadoRef","direccionRef","open_permisos","open_reporte","selection_estado","preventDefault","onEntering","id_sucursal","descripcion","confirma_valor","ChangeSelect_estado","guardar_agregar","async","trim","DESCRIPCION_SUCURSAL","ESTADO","TELEFONO1","TELEFONO2","DIRECCION","validado","error","selection_alineacion","selection_plataforma","consulta_sucursales","guardar_modificar","eliminar","changeSelection","selection_principal","permiso","localStorage","getItem","isLoading","tbody","datos_estados","_ref4","cursor","columnHeader_rowComponent","encabezado","authorization","innerHeight","getBoundingClientRect","top","timeOut","toastr","options","closeButton","newestOnTop","debug","showDuration","toLowerCase","info","success","warning","valor","open_guardar","onClose","disableAutoFocus","FormLabel","labelWidth","maxLength","Selection","ChangeSelection","onFiltersChange","changeFilters"],"mappings":"qHAAA,mQA0BA,IAAIA,EAAO,IAAIC,IACf,IAAIC,EAAGC,IAASD,GACZE,EAAcD,IAASC,cAEvBC,EAAc,4DAA4DC,KAAKC,UAAUC,WAE7F,IAAIC,GAAuB,EAC3B,MAAMC,EAAoB,OAAQC,IAAQC,MAAMC,UAAW,IAC3D,IAAIC,EAAqBH,IAAQC,MAAME,mBACnCC,EAAqBJ,IAAQC,MAAMG,mBAEvC,MAAMC,EAA8BC,IAChC,MAAM,OAA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oT,sBAAwB7Q,EAExB8Q,yBAA0BxO,KAAKQ,MAAMhD,yBACrCrB,SAAYA,EACZma,UAAWtW,KAAKQ,MAAMxF,UACtBub,gBAAmBvW,KAAKoU,gBAExB3F,OAAQzO,KAAKQ,MAAM4G,gBAEnBoP,gBAAmBxW,KAAKyW,cAExBzE,cAAgBA,EAGhBtK,kBAAoB1H,KAAKQ,MAAMkH,kBAC/B4H,aAActP,KAAK4H,KACnB8G,cAAkBlT,cAACmT,EAAgB,IACnCY,qBAAqB,YAOR,IAAxBvP,KAAKQ,MAAM2G,UAEpBhN,EAAK8W,cACLzM,OAAOC,SAASC,UAKT,IACX,G","file":"static/js/main~1f6d830f.5b080675.chunk.js","sourcesContent":["import React from 'react';\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport {colores, globales,funciones} from '../../../global';\r\nimport BarraBotones from '../../../components/Barra_menu';\r\nimport AuthService from '../../../AuthService';\r\nimport Request from 'superagent';\r\nimport CustomTable from '../../../components/CustomTable';\r\nimport {Table} from '@devexpress/dx-react-grid-material-ui';\r\nimport TableRowsIndexer from '../../../components/tableRowsIndexer'\r\nimport 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 Checkbox from '@material-ui/core/Checkbox';\r\nimport {Typography,TextField, Button, Divider} from '@material-ui/core';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport Select from '../../../components/Select';\r\nimport {TableHeaderRow} from '@devexpress/dx-react-grid-material-ui';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport Code from '@material-ui/icons/DashboardTwoTone'\r\nimport InputAdornment from '@material-ui/core/InputAdornment';\r\nimport HelpRounded from '@material-ui/icons/HelpRounded';\r\n\r\nlet Auth = new AuthService();\r\nvar ip=globales.ip\r\nvar border_dialog=globales.border_dialog\r\n//var movil=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\nvar movil_pequeño=/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\r\n\r\nlet isVisibleRowSelected = false;\r\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==='DEBE_VALIDAR'){\r\n return(\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return(\r\n \r\n );\r\n}\r\n\r\nconst VirtualTable_cellComponent_detalle = (props) => {\r\n const { column } = props;\r\n const {row} = props;\r\n\r\n if(column.name==='ES_QUERY'){\r\n return(\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\r\nconst HeaderRowCellComponent_detalle = (valueStudent,handleClick,selection)=> ({ ...props}) => {\r\n\r\n const style={paddingTop: props.column.name === \"ROOT\" ? \"5px\" : undefined, paddingBottom: props.column.name === \"ROOT\" ? \"5px\" : undefined }\r\n\r\n if (props.column.name === \"ROOT\")\r\n {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n if (props.column.name === \"NUEVA\")\r\n {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return ();\r\n}\r\n\r\n\r\nconst getRowId = row => row.ID_REPORTE;\r\nconst getRowId_detalle = row => row.ID_PARAMETRO;\r\n\r\n\r\n\r\n/* CLASES DE ESTILO */\r\n\r\nvar styles = theme =>({\r\n Dialog:{\r\n borderRadius: border_dialog,\r\n margin:0,\r\n padding:0\r\n },\r\n backdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column'\r\n },\r\n select: { //CONFIGURA EL SELECT \r\n margin: theme.spacing(movil_pequeño?2:1, 1,0,0),\r\n padding: 0,\r\n minWidth: movil_pequeño?'100%':'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\nconst columns= [\r\n {name:'ID_REPORTES_KNW',title: 'ID_REPORTES_KNW'}\r\n ,{name:'ID_REPORTE',title: 'ID_REPORTE'}\r\n ,{name:'ID_REPORTE_KNW',title: 'ID_REPORTE_KNW'}\r\n ,{name:'DOCUMENT_LABEL',title: 'Label'}\r\n ,{name:'PARAMETROS',title: 'Parámetros'}\r\n ,{name:'PARAMETROS_SUBREPORTES',title: 'Parámetros'}\r\n ,{name:'ES_JASPER',title: 'Parámetros'}\r\n ,{name:'TIPO_PRINCIPAL',title: 'TIPO_PRINCIPAL'}\r\n ,{name:'DEBE_VALIDAR',title: 'Se Valida'}\r\n ,{name:'FUNCION_VALIDAR',title: 'Función a Validar'}\r\n ,{name:'OBSERVACION_REFERENCIA',title: 'Observación'}\r\n ,{name:'PARAMETROS_VALIDAR',title: 'PARAMETROS_VALIDAR'}\r\n ];\r\n\r\n const columns_detalle= [\r\n {name:'ROOT',title: ' '}\r\n ,{name:'ID_PARAMETRO',title: 'ID_PARAMETRO'}\r\n ,{name:'ID_REPORTE',title: 'ID_REPORTE'}\r\n ,{name:'NOMBRE',title: 'Nombre'}\r\n ,{name:'ETIQUETA',title: 'Etiqueta'}\r\n ,{name:'ES_QUERY',title: 'Query'}\r\n ];\r\n\r\n const defaultHiddenColumnNames= ['ID_REPORTES_KNW','ID_REPORTE','ID_REPORTE_KNW','TIPO_PRINCIPAL','PARAMETROS_VALIDAR','PARAMETROS_SUBREPORTES','ES_JASPER'];\r\n\r\n const defaultHiddenColumnNames_detalle= ['ID_PARAMETRO','ID_REPORTE'];\r\n\r\n const tableColumnExtensions= [\r\n { columnName: 'DOCUMENT_LABEL', wordWrapEnabled: false, align: 'left',width:200},\r\n { columnName: 'PARAMETROS', wordWrapEnabled: false, align: 'left',width:250},\r\n { columnName: 'DEBE_VALIDAR', wordWrapEnabled: false, align: 'center',width:100},\r\n { columnName: 'FUNCION_VALIDAR', wordWrapEnabled: false, align: 'left',width:250},\r\n { columnName: 'OBSERVACION_REFERENCIA', wordWrapEnabled: false, align: 'left',width:200},\r\n ];\r\n\r\n const tableColumnExtensions_detalle= [\r\n { columnName: 'ROOT', wordWrapEnabled: false, align: 'left',width:70},\r\n { columnName: 'NOMBRE', wordWrapEnabled: false, align: 'left',width:180},\r\n { columnName: 'ETIQUETA', wordWrapEnabled: false, align: 'left',width:160},\r\n { columnName: 'ES_QUERY', wordWrapEnabled: false, align: 'center',width:100},\r\n ];\r\n\r\n let currentlabel = '';\r\n let currentreporte_knw = null;\r\n let currentparametros = '';\r\n let currentparametros_subr = '';\r\n let currentfuncion='';\r\n let currentparametros_validar='';\r\n let currentnombre='';\r\n let currentetiqueta='';\r\n let currentsecuencia=null;\r\n let currentcolumna='';\r\n let currentsecuencia_espera=null;\r\n let currentobservacion='';\r\n\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Configuracion_reporteria extends React.Component {\r\n tablaRef = React.createRef();\r\n labelRef = React.createRef();\r\n reporte_knwRef = React.createRef();\r\n parametrosRef = React.createRef();\r\n parametros_subrRef = React.createRef();\r\n funcionRef = React.createRef();\r\n parametros_validarRef = React.createRef();\r\n nombreRef = React.createRef();\r\n etiquetaRef = React.createRef();\r\n secuenciaRef = React.createRef();\r\n columnaRef = React.createRef();\r\n secuencia_esperaRef = React.createRef();\r\n observacionRef = 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 rows_detalle: [],\r\n rows_hijo:[],\r\n rows_padre: [],\r\n selection: [],\r\n selection_detalle:[],\r\n selection_componente:'',\r\n selection_condicion:'',\r\n grouping: [],\r\n expandedGroups: [],\r\n filteringColumnExtensions: [],\r\n filters: [],\r\n expandedRowIds: [],\r\n enabledFilterRows: true,\r\n open_agregar: false,\r\n open_modificar: false,\r\n open_eliminar: false,\r\n open_ingresar: false,\r\n open_modificar_detalle: false,\r\n open_eliminar_detalle: false,\r\n open_query: false,\r\n debe_validar: false,\r\n permite_nulo: false,\r\n es_alumno: false,\r\n es_query: false,\r\n es_jasper: false,\r\n error_query: false,\r\n query: '',\r\n espera_parametro: false,\r\n open_ayuda: false,\r\n ayuda_texto: '

CREATE FUNCTION

FN_EJEMPLO_VALIDAR_REPORTE
(
@CUENTA_ALUMNO

VARCHAR

(7)
)

RETURNS VARCHAR

(MAX)

AS


BEGIN


DECLARE

@RESP

VARCHAR

(MAX)

IF

EXISTS

(

SELECT

*

FROM

DOC_ADMISION_ALUMNOS

WHERE


CUENTA_ALUMNO = @CUENTA_ALUMNO AND ESTATUS = 0
AND

CONVERT

(DATE,FECHA_ENTREGA) <=

CONVERT

(DATE,GETDATE()))

BEGIN


SET

@RESP=\"El alumno tiene documentos pendientes.\"

END


ELSE


BEGIN


SET

@RESP=\"OK\"

END


RETURN @RESP

END

',\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_REPORTE,ID_REPORTE_KNW,DOCUMENT_LABEL,DEBE_VALIDAR,ES_JASPER,PARAMETROS,PARAMETROS_SUBREPORTES,FUNCION_VALIDAR,PARAMETROS_VALIDAR,OBSERVACION_REFERENCIA) => event =>{\r\n currentlabel=DOCUMENT_LABEL;\r\n currentreporte_knw=ID_REPORTE_KNW\r\n currentfuncion=FUNCION_VALIDAR\r\n currentparametros=PARAMETROS\r\n currentparametros_subr=PARAMETROS_SUBREPORTES\r\n currentparametros_validar=PARAMETROS_VALIDAR\r\n currentobservacion=OBSERVACION_REFERENCIA\r\n\r\n this.setState({ selection: [{ID_REPORTE:ID_REPORTE}], debe_validar: DEBE_VALIDAR, es_jasper: ES_JASPER});\r\n }\r\n\r\n const dblclickselection = ((ID_REPORTE,ID_REPORTE_KNW,DOCUMENT_LABEL,DEBE_VALIDAR,ES_JASPER,PARAMETROS,PARAMETROS_SUBREPORTES,FUNCION_VALIDAR,PARAMETROS_VALIDAR) => event =>{ \r\n \r\n var row=[];\r\n\r\n this.state.rows_hijo.forEach((element,index)=>{\r\n if(element.ID_REPORTE===this.state.selection[0].ID_REPORTE)\r\n {\r\n row.push(element);\r\n }\r\n })\r\n \r\n \r\n this.setState({open_modificar: true,selection: [{ID_REPORTE:ID_REPORTE}], debe_validar: DEBE_VALIDAR, es_jasper: ES_JASPER,rows_detalle: row})\r\n })\r\n \r\n if (this.state.selection[0]===undefined?this.state.selection[0]:this.state.selection[0].ID_REPORTE === props.tableRow.row.ID_REPORTE) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n });\r\n\r\n const trow_detalle = 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_PARAMETRO,NOMBRE,ETIQUETA,SECUENCIA,ID_COMPONENTE_RPT,ES_ALUMNO,PERMITE_NULO,ES_QUERY,QUERY_SQL,ESPERA_PARAMETRO,COLUMNA,ID_CONDICION,SECUENCIA_PARAMETRO) => event =>{\r\n currentnombre=NOMBRE\r\n currentetiqueta=ETIQUETA\r\n currentsecuencia=SECUENCIA\r\n //currentquery=QUERY_SQL\r\n currentcolumna=COLUMNA\r\n currentsecuencia_espera=SECUENCIA_PARAMETRO\r\n ID_CONDICION=ID_CONDICION!==undefined&&ID_CONDICION!==null?ID_CONDICION:''\r\n\r\n this.setState({ selection_detalle: [{ID_PARAMETRO:ID_PARAMETRO,QUERY_SQL:QUERY_SQL,ES_QUERY:ES_QUERY}],selection_componente: ID_COMPONENTE_RPT,query: QUERY_SQL, es_alumno: ES_ALUMNO,permite_nulo: PERMITE_NULO, es_query: ES_QUERY\r\n ,espera_parametro: ESPERA_PARAMETRO, selection_condicion: ID_CONDICION});\r\n }\r\n\r\n const dblclickselection = (ID_PARAMETRO,QUERY_SQL,ES_QUERY) => event =>{\r\n this.setState({open_modificar_detalle: true,selection_detalle: [{ID_PARAMETRO:ID_PARAMETRO,QUERY_SQL:QUERY_SQL,ES_QUERY:ES_QUERY}]})\r\n }\r\n \r\n if (this.state.selection_detalle[0]===undefined?this.state.selection_detalle[0]:this.state.selection_detalle[0].ID_PARAMETRO === props.tableRow.row.ID_PARAMETRO) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n });\r\n\r\n this.trow = trow(Table.Row);\r\n this.trow_detalle = trow_detalle(Table.Row);\r\n \r\n }; //FIN CONSTRUCTORS\r\n\r\nabrirmodal_agregar=()=>event=>{\r\n currentlabel=null;\r\n currentreporte_knw=null;\r\n currentparametros=null;\r\n currentfuncion=null;\r\n currentparametros_validar=null;\r\n currentparametros_subr=null;\r\n\r\n this.setState({open_agregar:true,rows_detalle:[], selection: [],selection_detalle: [],debe_validar: false,es_jasper: false});\r\n}\r\n\r\nabrirmodal_modificar=()=>event=>{\r\n\r\n if(this.state.selection.length>0)\r\n {\r\n var row=[];\r\n\r\n this.state.rows_hijo.forEach((element,index)=>{\r\n if(element.ID_REPORTE===this.state.selection[0].ID_REPORTE)\r\n {\r\n row.push(element);\r\n }\r\n })\r\n \r\n this.setState({open_modificar:true,rows_detalle: row});\r\n }\r\n}\r\n\r\nabrirmodal_query=()=>event=>{\r\n this.setState({open_query:true});\r\n}\r\n\r\ncomponentDidMount()\r\n{\r\n let _this = this;\r\n _this.actualizarbarra(false)\r\n\r\n Auth.loggedIn().then( function(b){\r\n _this.setState({ isLoggin: b})\r\n if(b)\r\n _this.setState({openBackDrop:true},()=>{\r\n Request.get(`${ip}/reporteriadinamica/obtener_componentes_conf/`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 20000, deadline: 50000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n //window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n const Datos = tmp.map((datos, i) =>\r\n \r\n {datos.TIPO}\r\n \r\n );\r\n _this.setState({ datos_componente: Datos,componentes: tmp})\r\n }\r\n })\r\n\r\n Request.get(`${ip}/reporteriadinamica/obtener_condiciones_conf/`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 20000, deadline: 50000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n //window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n })();//FIN FUNCION ASYNC\r\n return;\r\n }\r\n const tmp = JSON.parse(res.text);\r\n if(tmp.length>0){\r\n const Datos = tmp.map((datos, i) =>\r\n \r\n {datos.NOMBRE_CONDICION+' ('+datos.DESCRIPCION+')'}\r\n \r\n );\r\n _this.setState({ datos_condicion: Datos,condiciones: tmp})\r\n }\r\n })\r\n\r\n Request.get(`${ip}/reporteriadinamica/obtener_reportes_conf/${Auth.getProfile().user}`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .retry(1)\r\n .timeout({ response: 20000, deadline: 50000, }) \r\n .end((err, res)=> {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n {\r\n //window.location.reload();\r\n return; \r\n }\r\n (async function() {\r\n funciones.showToast('e','Error de conexión')\r\n _this.setState({openBackDrop:false,rows: [], heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable})\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 var found;\r\n var rows_padre=[];\r\n var rows_hijo=[];\r\n tmp.forEach(\r\n function getCheck(item, index) {\r\n found = rows_padre.find(grupo => grupo.ID_REPORTE === item.ID_REPORTE);\r\n \r\n if (found == null){\r\n rows_padre.push(item);\r\n }else {\r\n found = null;\r\n }\r\n\r\n if(item.ID_PARAMETRO !== null){\r\n rows_hijo.push(item);\r\n }\r\n })\r\n\r\n _this.setState({ openBackDrop:false,rows: rows_padre,rows_detalle: [],rows_hijo:rows_hijo, heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable}); \r\n }\r\n else\r\n {\r\n _this.setState({openBackDrop:false,rows: [],rows_detalle: [],rows_hijo:[], heightTableMain: funciones.getHeightTableMain(movil_pequeño,_this).heightTable})\r\n }\r\n _this.actualizarbarra(true)\r\n })\r\n })\r\n })\r\n}\r\n\r\nabrirmodal_eliminar=()=>event=>{\r\n if(this.state.selection.length>0)\r\n {\r\n this.setState({open_eliminar:true});\r\n }\r\n}\r\n\r\ncerrarmodal=()=>event=>{\r\n currentlabel= '';\r\n currentfuncion= '';\r\n currentparametros= '';\r\n currentparametros_subr= '';\r\n currentparametros_validar= '';\r\n currentobservacion= '';\r\n currentreporte_knw= null;\r\n\r\n this.setState({open_agregar: false, open_modificar: false,selection: [], open_eliminar: false,selection_detalle: [], rows_detalle: [], debe_validar: false, es_jasper: false})\r\n}\r\n\r\ncerrarmodal_detalle=()=>event=>{\r\n currentetiqueta= '';\r\n currentnombre= '';\r\n currentsecuencia= null;\r\n currentcolumna= '';\r\n currentsecuencia_espera= null;\r\n\r\n this.setState({query:'',open_ingresar: false,open_eliminar_detalle: false,open_modificar_detalle: false,selection_detalle: [],selection_componente: '',selection_condicion: '',es_query: false,es_alumno: false,permite_nulo: false})\r\n}\r\n\r\nLimpiar_detalle=()=>{\r\n currentcolumna='';\r\n currentetiqueta='';\r\n currentnombre='';\r\n currentsecuencia=null;\r\n currentsecuencia_espera=null;\r\n}\r\nLimpiar=()=>{\r\n currentparametros='';\r\n currentparametros_subr='';\r\n currentparametros_validar='';\r\n currentfuncion='';\r\n currentlabel=''; \r\n currentobservacion='';\r\n currentreporte_knw=null;\r\n}\r\n\r\ncerrarmodal_query=()=>event=>{\r\n if(this.state.query==='' || this.state.query===null || this.state.query===undefined || this.state.error_query)\r\n this.setState({es_query: this.state.open_ingresar?false:this.state.selection_detalle[0].ES_QUERY, query:this.state.open_ingresar?'':this.state.selection_detalle[0].QUERY_SQL,error_query: false})\r\n \r\n this.setState({open_query: false})\r\n}\r\n\r\nhandleClick=(TIPO)=>event=>{\r\n if(TIPO===1)\r\n {\r\n this.setState({open_ingresar: true,selection_detalle:''})\r\n }\r\n if(TIPO===2)\r\n {\r\n if(this.state.selection_detalle.length>0)\r\n this.setState({open_modificar_detalle: true})\r\n else\r\n {\r\n funciones.showToast('w','Debe seleccionar un detalle.')\r\n }\r\n }\r\n if(TIPO===3)\r\n {\r\n if(this.state.selection_detalle.length>0)\r\n this.setState({open_eliminar_detalle: true})\r\n else\r\n {\r\n funciones.showToast('w','Debe seleccionar un detalle.')\r\n }\r\n }\r\n}\r\n\r\nhandleChangeCheckbox_debevalidar= event => {\r\n this.setState({ debe_validar: event.target.checked});\r\n}\r\nhandleChangeCheckbox_esjasper= event => {\r\n this.setState({ es_jasper: event.target.checked});\r\n}\r\nhandleChangeCheckbox_alumno= event => {\r\n this.setState({ es_alumno: event.target.checked});\r\n}\r\nhandleChangeCheckbox_permite_nulo= event => {\r\n this.setState({ permite_nulo: event.target.checked});\r\n}\r\nhandleChangeCheckbox_query= event => {\r\n this.setState((state,props)=>({ es_query: event.target.checked,open_query:!state.es_query}));\r\n}\r\nhandleChangeCheckbox_espera= event => {\r\n this.setState({ espera_parametro: event.target.checked});\r\n}\r\nChangeSelect_componente = event => {\r\n this.setState({ selection_componente: event.target.value });\r\n}\r\nChangeSelect_condicion = event => {\r\n this.setState({ selection_condicion: event.target.value });\r\n}\r\n\r\nguardar_query=()=>{\r\n if (this.state.query==='' || this.state.query===null || this.state.query===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar una consulta.');\r\n return;\r\n }\r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${ip}/reporteriadinamica/valida_query_conf`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({QUERY: this.state.query,USUARIO: Auth.getProfile().user\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000, }) \r\n .end((err, res) => {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n { \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 === undefined)\r\n { \r\n this.setState({openBackDrop: false,open_query: false,error_query: false});\r\n }\r\n else{\r\n this.setState({ openBackDrop: false,error_query: 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 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\r\nguardar_detalle=(TIPO)=>event=>{\r\n\r\n if(TIPO!==3)\r\n {\r\n if(this.state.selection_componente==='' || this.state.selection_componente===null || this.state.selection_componente===undefined)\r\n {\r\n funciones.showToast('w','Debe seleccionar un componente.');\r\n return;\r\n }\r\n if(this.nombreRef.current.value==='' || this.nombreRef.current.value===null || this.nombreRef.current.value===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar un nombre.');\r\n return;\r\n }\r\n if(this.etiquetaRef.current.value==='' || this.etiquetaRef.current.value===null || this.etiquetaRef.current.value===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar una etiqueta.');\r\n return;\r\n }\r\n if(this.secuenciaRef.current.value==='' || this.secuenciaRef.current.value===null || this.secuenciaRef.current.value===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar una secuencia.');\r\n return;\r\n }\r\n\r\n if(this.state.espera_parametro)\r\n {\r\n if(this.state.selection_condicion==='' || this.state.selection_condicion===null || this.state.selection_condicion===undefined)\r\n {\r\n funciones.showToast('w','Debe seleccionar una condición.');\r\n return;\r\n }\r\n if(this.columnaRef.current.value==='' || this.columnaRef.current.value===null || this.columnaRef.current.value===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar el parámetro que espera.');\r\n return;\r\n }\r\n if(this.secuencia_esperaRef.current.value==='' || this.secuencia_esperaRef.current.value===null || this.secuencia_esperaRef.current.value===undefined)\r\n {\r\n funciones.showToast('w','Debe ingresar la secuencia que espera.');\r\n return;\r\n }\r\n }\r\n } \r\n\r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${ip}/reporteriadinamica/gestion_reportes_parametros_conf`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ ID_PARAMETRO:(TIPO!==1?this.state.selection_detalle[0].ID_PARAMETRO:null)\r\n ,ID_REPORTE: this.state.selection[0].ID_REPORTE\r\n ,ID_COMPONENTE_RPT: this.state.selection_componente\r\n ,NOMBRE: TIPO!==3?this.nombreRef.current.value:null\r\n ,ETIQUETA: TIPO!==3?this.etiquetaRef.current.value:null\r\n ,SECUENCIA : TIPO!==3&& this.secuenciaRef.current!==null? this.secuenciaRef.current.value:null\r\n ,ES_ALUMNO: this.state.es_alumno\r\n ,PERMITE_NULO: this.state.selection_componente!==3?0:this.state.permite_nulo\r\n ,ES_QUERY: this.state.es_query\r\n ,QUERY_SQL: this.state.query//this.state.es_query&&TIPO!==3?this.queryRef.current.value:null\r\n ,ESPERA_PARAMETRO: this.state.espera_parametro\r\n ,COLUMNA: this.state.espera_parametro&&TIPO!==3?this.columnaRef.current.value:null\r\n ,ID_CONDICION: this.state.espera_parametro&&TIPO!==3?this.state.selection_condicion:null\r\n ,SECUENCIA_PARAMETRO: this.state.espera_parametro&&TIPO!==3&&this.secuencia_esperaRef.current!==null?this.secuencia_esperaRef.current.value:null\r\n ,USUARIO: Auth.getProfile().user\r\n ,TIPO: TIPO })\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 === undefined)\r\n { \r\n var found\r\n var rows_padre=[]\r\n var rows_hijo=[]\r\n rows.forEach(\r\n function getCheck(item, index) {\r\n found = rows_padre.find(grupo => grupo.ID_REPORTE === item.ID_REPORTE);\r\n \r\n if (found == null){\r\n rows_padre.push(item);\r\n }else {\r\n found = null;\r\n }\r\n\r\n if(item.ID_PARAMETRO !== null){\r\n rows_hijo.push(item);\r\n }\r\n })\r\n\r\n var row=[];\r\n\r\n rows_hijo.forEach((element,index)=>{\r\n if(element.ID_REPORTE===this.state.selection[0].ID_REPORTE)\r\n {\r\n row.push(element);\r\n }\r\n })\r\n\r\n this.setState({openBackDrop: false}, ()=>{\r\n funciones.showToast('s', 'Proceso realizado correctamente.'); \r\n this.Limpiar_detalle();\r\n this.setState({open_ingresar: false,open_modificar_detalle: false,open_eliminar_detalle: false,rows:rows_padre,rows_hijo:rows_hijo,espera_parametro:false,es_alumno:false,permite_nulo: false,es_query:false,query: '',selection_componente: '', selection_condicion: '',rows_detalle:row})\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=(TIPO)=>event=>{\r\n\r\n if (TIPO!==3)\r\n {\r\n if(this.labelRef.current.value==='') {funciones.showToast('w','Ingrese el Label del reporte.'); return;}\r\n if(this.reporte_knwRef.current.value==='') {funciones.showToast('w','Ingrese el id del reporte en Knowage.'); return;}\r\n\r\n if(this.state.debe_validar)\r\n {\r\n if(this.funcionRef.current.value==='') {funciones.showToast('w','Ingrese la función a validar.'); return;}\r\n if(this.parametros_validarRef.current.value==='') {funciones.showToast('w','Ingrese los parámetros a validar.'); return;}\r\n }\r\n } \r\n\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${ip}/reporteriadinamica/gestion_reportes_conf`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_REPORTE: TIPO!==1?this.state.selection[0].ID_REPORTE:null\r\n ,ID_REPORTE_KNW: TIPO!==3&&this.reporte_knwRef.current!==null?this.reporte_knwRef.current.value:null\r\n ,DOCUMENT_LABEL: TIPO!==3?this.labelRef.current.value:null\r\n ,PARAMETROS: TIPO!==3?this.parametrosRef.current.value:null\r\n ,PARAMETROS_SUBREPORTES: TIPO!==3?this.parametros_subrRef.current.value:null\r\n ,OBSERVACION_REFERENCIA: TIPO!==3?this.observacionRef.current.value:null\r\n ,DEBE_VALIDAR: this.state.debe_validar\r\n ,ES_JASPER: this.state.es_jasper\r\n ,FUNCION_VALIDAR: TIPO!==3&&this.state.debe_validar?this.funcionRef.current.value:null\r\n ,PARAMETROS_VALIDAR: TIPO!==3&&this.state.debe_validar?this.parametros_validarRef.current.value:null\r\n ,USUARIO: Auth.getProfile().user\r\n ,TIPO: TIPO \r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000, }) \r\n .end((err, res) => {\r\n if (err) { \r\n if (err.toString().substr(0,16) === 'Error: Forbidden')\r\n { \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 === undefined)\r\n { \r\n var found\r\n var rows_padre=[]\r\n var rows_hijo=[]\r\n rows.forEach(\r\n function getCheck(item, index) {\r\n found = rows_padre.find(grupo => grupo.ID_REPORTE === item.ID_REPORTE);\r\n \r\n if (found == null){\r\n rows_padre.push(item);\r\n }else {\r\n found = null;\r\n }\r\n\r\n if(item.ID_PARAMETRO !== null){\r\n rows_hijo.push(item);\r\n }\r\n })\r\n\r\n this.setState({openBackDrop: false}, ()=>{\r\n funciones.showToast('s', 'Proceso realizado correctamente.'); \r\n this.Limpiar();\r\n if(this.state.open_agregar||this.state.open_eliminar)\r\n this.setState({open_agregar: false,selection_detalle: [],open_eliminar: false,rows:rows_padre,rows_hijo:rows_hijo,debe_validar:false,es_jasper: false,rows_detalle:[]});\r\n else\r\n this.setState({rows:rows_padre,rows_hijo:rows_hijo});\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\nonChangequery=()=>event=>{\r\n this.setState({query: event.target.value}) ;\r\n}\r\n\r\nonClickHelpfuncion=()=>{\r\n this.setState({open_ayuda: true});\r\n}\r\ncerrarmodal_ayuda=()=>event=>{\r\n this.setState({open_ayuda: false});\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 Reporte', nombre: 'Agregar' ,escritura:true, onclick: this.abrirmodal_agregar()\r\n , display: 'auto'},\r\n {icono: 'Edit', toolt: 'Modificar Reporte', nombre: 'Modificar' ,escritura:true, onclick: this.abrirmodal_modificar()\r\n , display:'auto'},\r\n {icono: 'Delete', toolt: 'Eliminar Reporte', 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(1)\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(2)\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', nombre: 'Eliminar',escritura:true,onclick: this.guardar(3)\r\n , display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n const botones_agregar_detalle = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_detalle(1), display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_detalle(), display:'auto', color: 'red'},\r\n ]\r\n const botones_modificar_detalle = [\r\n {icono: 'Save', nombre: 'Guardar',escritura:true,onclick: this.guardar_detalle(2), display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_detalle(), display:'auto', color: 'red'},\r\n ]\r\n const botones_eliminar_detalle = [\r\n {icono: 'Delete', nombre: 'Eliminar',escritura:true,onclick: this.guardar_detalle(3), display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_detalle(), display:'auto', color: 'red'},\r\n ]\r\n const botones_query = [\r\n {icono: 'Save', nombre: 'Aceptar',escritura:true,onclick: this.guardar_query, display:'auto'},\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_query(), display:'auto', color: 'red'},\r\n ]\r\n const botones_ayuda = [\r\n {icono: 'Close', nombre: 'Cerrar' ,onclick: this.cerrarmodal_ayuda(), 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 {'Cargando...'}\r\n \r\n\r\n {/*--------------------------------------------------------------------DIALOG PARA ELIMINAR ---------------------------------------------------------------------*/}\r\n \r\n \r\n \r\n {'Eliminar'}\r\n \r\n \r\n \r\n \r\n ¿Está seguro de eliminar este reporte?\r\n \r\n \r\n \r\n \r\n\r\n {/*---------------------------------------------------------------------------DIALOG PARA AGREGAR---------------------------------------------------------------------*/}\r\n \r\n \r\n \r\n {'Reporte'}\r\n \r\n \r\n \r\n
\r\n Información Knowage \r\n
\r\n \r\n \r\n }\r\n label={'Jasper'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:2 ,marginRight: 1}}\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n }\r\n label={'Validar Reporte'}\r\n labelPlacement=\"end\"\r\n style={{paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:1 ,marginRight: 1}}\r\n />\r\n ,}}\r\n />\r\n \r\n
\r\n \r\n {this.state.open_modificar?\r\n }\r\n rowHeaderCellComponent={HeaderRowCellComponent_detalle(this.state.selection_detalle,this.handleClick,this.state.selection_detalle[0]!==undefined?this.state.selection_detalle[0].ID_PARAMETRO:'0')}\r\n VirtualTable_cellComponent={VirtualTable_cellComponent_detalle}\r\n RowComponent={this.trow_detalle}\r\n showSelectionColumn={false}\r\n />:null\r\n }\r\n
\r\n \r\n \r\n\r\n {/*-------------------------------------------------------------------------------DIALOG AYUDA--------------------------------------------------------------------*/}\r\n \r\n \r\n \r\n {'Ejemplo'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n La función siempre debe retornar @RESP. \r\n
\r\n Nota: No crear funciones con un mismo fin de una ya creada.\r\n
\r\n \r\n \r\n {/*--------------------------------------------------------------------DIALOG PARA ELIMINAR DETALLE---------------------------------------------------------------------*/}\r\n \r\n \r\n \r\n {'Eliminar'}\r\n \r\n \r\n \r\n \r\n ¿Está seguro de eliminar este detalle?\r\n \r\n \r\n \r\n \r\n {/*--------------------------------------------------------------------DIALOG PARA INGRESAR DETALLE---------------------------------------------------------------------*/}\r\n \r\n \r\n \r\n {'Parámetro'}\r\n \r\n \r\n \r\n
\r\n \r\n }\r\n label={'Alumno'}\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
\r\n \r\n \r\n \r\n \r\n \r\n {/*---------------------------------------------------------------------DIALOG PARA QUERY--------------------------------------------------------------*/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*--------------------------------------------------------------------VENTANA PRINCIPAL--------------------------------------------------------------*/}\r\n\r\n \r\n
\r\n }\r\n VirtualTable_cellComponent={VirtualTable_cellComponent}\r\n RowComponent={this.trow}\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 \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 { Plugin, Template, TemplateConnector, TemplatePlaceholder } from \"@devexpress/dx-react-core\";\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 TextField from '@material-ui/core/TextField';\r\nimport toastr from 'toastr';\r\n\r\n//-------------------------------------------------\r\nimport CircularProgress from '@material-ui/core/CircularProgress';\r\nimport Backdrop from '@material-ui/core/Backdrop';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport Select from '../../../components/Select';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport FormLabel from '@material-ui/core/FormLabel';\r\nimport { Divider } from '@material-ui/core';\r\n\r\nlet Auth = new AuthService();\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\nconst colorRowSelected = 'rgb('+ colores.tabla.selection +')';\r\nlet alternateColorRow1 = colores.tabla.alternateColorRow1; //'#FEFFED'; \r\nlet alternateColorRow2 = colores.tabla.alternateColorRow2;\r\nlet isVisibleRowSelected = false;\r\n\r\nclass TableRowsIndexer extends React.PureComponent {\r\n render() { \r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n };\r\n\r\n\r\n const BodyComponent = (props) => {\r\n return ;\r\n }\r\n const getRowId = row => row.ID_SUCURSAL;\r\n\r\n/** VARIABLES DE LA TABLA */\r\n const columns = [{name: 'ID_SUCURSAL',title: 'ID_SUCURSAL'}\r\n ,{name: 'DESCRIPCION_SUCURSAL', title: 'Campus'}\r\n ,{name: 'ESTATUS', title: 'Estado'}\r\n ,{name: 'TELEFONO1', title: 'Teléfono 1'}\r\n ,{name: 'TELEFONO2', title: 'Teléfono 2'}\r\n ,{name: 'DIRECCION', title: 'Dirección'}\r\n ];\r\n\r\n //CONST DEL VIRTUAL\r\n const VirtualTable_cellComponent = (props) => {\r\n const { column } = props;\r\n const {row} = props;\r\n \r\n if(column.name===\"ESTATUS\")\r\n {\r\n return(\r\n \r\n {\r\n \r\n }\r\n \r\n )\r\n }\r\n \r\n return(\r\n \r\n );\r\n }\r\n\r\n const tableColumnExtensions= [\r\n { columnName: 'ESTATUS', wordWrapEnabled: false, align: 'center'},\r\n ];\r\n\r\n /* CLASES DE ESTILO */\r\n\r\n var styles = theme =>({\r\n Dialog:{\r\n borderRadius: globales.border_dialog,\r\n margin:0,\r\n padding:0\r\n },\r\n select: { //CONFIGURA EL SELECT \r\n margin: theme.spacing(movil_pequeño?2:1, 0,0),\r\n padding: 0,\r\n minWidth: movil_pequeño?'100%':'100%',\r\n },\r\n backdrop: {\r\n zIndex: 500000,\r\n color: '#fff', \r\n flexDirection: 'column' \r\n },\r\n \r\n\r\n})\r\n\r\n\r\nlet currentDescripcion = null;\r\n//let currentEstado = null;\r\nlet currentTelefono1 = null;\r\nlet currentTelefono2 = null;\r\nlet currentDireccion = null;\r\n\r\n/* EXPORT */\r\nexport default withStyles(styles)(\r\n class Usuarios extends React.Component {\r\n tablaRef = React.createRef();\r\n descripcionSucursalRef = React.createRef();\r\n telefono1Ref = React.createRef();\r\n telefono2Ref = React.createRef();\r\n estadoRef = React.createRef();\r\n direccionRef = React.createRef();\r\n\r\n constructor(props) {\r\n\r\n super(props);\r\n this.actualizarbarra=props.actualizarbarra;\r\n this.actualizarcircular=props.actualizarcircular;\r\n this.Auth = new AuthService();\r\n this.permiso=props.permiso!==undefined?props.permiso:localStorage.getItem('Tabpanel_user')\r\n this.l= props.l\r\n this.e= props.e\r\n this.i= props.i\r\n\r\n this.state = {\r\n isLoggin : undefined,\r\n heightTableMain: 0,\r\n isLoading: false,\r\n open_agregar: false,\r\n open_modificar: false,\r\n open_eliminar: false,\r\n \r\n defaultHiddenColumnNames: ['ID_SUCURSAL'],\r\n rows: [],\r\n selection: [],\r\n enabledFilterRows: true,\r\n tbody: BodyComponent,\r\n\r\n //SELECT STATUS\r\n datos_estados:[ \r\n {'Activo'}\r\n ,\r\n \r\n {'Inactivo'}\r\n \r\n ],\r\n selection_estado:'',\r\n openBackDrop:false,\r\n }\r\n\r\n //AYUDA AL ESTILO DE LA TABLA\r\n const columnHeader_rowComponent = ({style,...props}) => {\r\n\r\n return ();\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_SUCURSAL,DESCRIPCION_SUCURSAL,ESTATUS,TELEFONO1,TELEFONO2,DIRECCION) => event =>{\r\n this.setState({ selection: [ID_SUCURSAL,DESCRIPCION_SUCURSAL,ESTATUS,TELEFONO1,TELEFONO2,DIRECCION] });\r\n }\r\n \r\n if (this.state.selection[0] === props.tableRow.row.ID_SUCURSAL) { isVisibleRowSelected = true; }\r\n return (\r\n \r\n );\r\n \r\n \r\n });\r\n \r\n //LLAMA AL ESTILO DE LA TABLA\r\n this.trow = trow(Table.Row);\r\n this.columnHeader_rowComponent = columnHeader_rowComponent;\r\n}; //FIN CONSTRUCTORS\r\n \r\ncomponentDidMount()\r\n{\r\n this.isVisibleRowSelected=isVisibleRowSelected\r\n let _this=this;\r\n _this.actualizarbarra(false)\r\n //_this.actualizarcircular(false)\r\n\r\n Auth.loggedIn().then( function(b){\r\n _this.setState({ isLoggin: b})\r\n if(b)\r\n\r\n _this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request.post(`${globales.ip}/sucursales/IUD_sucursal`)\r\n .set({ authorization: \"Bearer \" + Auth.getToken() })\r\n .set(\"Content-Type\", \"application/json\")\r\n //.set({USUARIO:Auth.getProfile().user})\r\n .send({\r\n ID_SUCURSAL: 0,\r\n DESCRIPCION_SUCURSAL: \"-\",\r\n ESTADO: 0,\r\n TELEFONO1: 0,\r\n TELEFONO2: 0,\r\n DIRECCION: \"-\",\r\n USUARIO: Auth.getProfile().user,\r\n TIPO: 4,\r\n })\r\n .retry(0)\r\n .timeout({ response: 15000, deadline: 60000 })\r\n .end((err, res) => {\r\n if (err) {\r\n if (err.toString().substr(0, 16) === \"Error: Forbidden\") {\r\n window.location.reload();\r\n return;\r\n }\r\n _this.setState({ openBackDrop: false }, () => {\r\n funciones.showToast(\"e\", \"Error de conexión\");\r\n });\r\n }\r\n\r\n const tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) {\r\n _this.setState({ openBackDrop: false }, ()=> { \r\n _this.setState({\r\n rows: tmp,\r\n heightTableMain:\r\n movil === false\r\n ? window.innerHeight -\r\n _this.tablaRef.current.getBoundingClientRect().top -\r\n 5\r\n : \"500px\",\r\n });\r\n });\r\n } else {\r\n _this.setState({ openBackDrop: false }, ()=> { \r\n _this.setState({\r\n rows: [],\r\n heightTableMain:\r\n movil === false\r\n ? window.innerHeight -\r\n _this.tablaRef.current.getBoundingClientRect().top -\r\n 5\r\n : \"500px\",\r\n });\r\n });\r\n }\r\n });\r\n }\r\n catch(ex){\r\n funciones.showToast('e', 'Error de conexión JS');\r\n _this.setState({validado: true })\r\n }\r\n })\r\n _this.actualizarbarra(true)\r\n //_this.actualizarcircular(true)\r\n })\r\n\r\n}\r\n/** OBTENER SUCURSALES */\r\nconsulta_sucursales(){\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${globales.ip}/sucursales/IUD_sucursal`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_SUCURSAL:0,DESCRIPCION_SUCURSAL:\"-\",ESTADO:0,TELEFONO1:0,TELEFONO2:0,DIRECCION:\"-\",USUARIO:Auth.getProfile().user,TIPO:4})\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 tmp = JSON.parse(res.text);\r\n if (tmp.length > 0) \r\n { \r\n this.setState({ openBackDrop: false }, ()=> { \r\n this.setState({ rows: tmp }); \r\n });\r\n \r\n }\r\n else{\r\n this.setState({ openBackDrop: false }, ()=> { \r\n this.setState({rows: []}); \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 })\r\n }\r\n })\r\n \r\n}\r\n////////////////////////////////////////////////////////////////////////////\r\nshowToast(type, text, timeOut)\r\n{\r\n toastr.options = {\r\n closeButton: true,\r\n newestOnTop: false,\r\n debug: false,\r\n //positionClass: \"toast-top-full-width\",\r\n onclick: null,\r\n timeOut: timeOut,\r\n showDuration: 20, \r\n };\r\n \r\n if (type.toLowerCase() === 'i')\r\n {\r\n toastr.info(text);\r\n }\r\n else if (type.toLowerCase() === 's'){\r\n toastr.success(text);\r\n }\r\n else if (type.toLowerCase() === 'w'){\r\n toastr.warning(text);\r\n }\r\n else if (type.toLowerCase() === 'e'){\r\n toastr.error(text);\r\n }\r\n}\r\n\r\n/** CERRAR MODALES */\r\ncerrarmodal=()=>event=>{\r\n this.setState({open_agregar: false, open_modificar: false, open_eliminar: false, open_permisos: false, open_reporte: false,selection_estado: ''})\r\n event.preventDefault();\r\n}\r\n/** MODALES */\r\nabrirmodal_agregar=()=>event=>{\r\n event.preventDefault();\r\n this.setState({open_agregar: true})\r\n}\r\nonEntering=() =>{\r\n if(this.state.open_modificar){\r\n this.setState({\r\n selection_estado: this.state.selection[2]? 1:0\r\n })\r\n }\r\n else{\r\n this.setState({selection_estado: ''})\r\n }\r\n};\r\n/** ABRIR MODAL PARA ELIMINAR */\r\nabrirmodal_eliminar=()=>event=>{\r\n if(this.state.selection.length>0)\r\n {\r\n this.setState({open_eliminar: true, id_sucursal: this.state.selection[0] ,descripcion: this.confirma_valor(this.state.selection[1])})\r\n }\r\n}\r\n\r\n\r\n/*** EVENTO DEL SELECT*/\r\nChangeSelect_estado = event => {\r\n this.setState({ selection_estado: event.target.value });\r\n}\r\n\r\n/** GUARDAR NUEVA SUCURSAL */\r\nguardar_agregar= async ()=>{\r\n let _this=this;\r\n if(_this.descripcionSucursalRef.current.value.toString().trim() !== null && _this.descripcionSucursalRef.current.value.toString().trim() !== '')\r\n {\r\n _this.setState({ openBackDrop: true }, ()=>{ \r\n try{\r\n new Request\r\n .post(`${globales.ip}/sucursales/IUD_sucursal`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_SUCURSAL:0\r\n ,DESCRIPCION_SUCURSAL:_this.descripcionSucursalRef.current.value.toString()\r\n ,ESTADO:_this.state.selection_estado\r\n ,TELEFONO1:_this.telefono1Ref.current.value\r\n ,TELEFONO2:_this.telefono2Ref.current.value\r\n ,DIRECCION:_this.direccionRef.current.value.toString()\r\n ,USUARIO:_this.Auth.getProfile().user\r\n ,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({openBackDrop: false,validado: true,error:false,open_modificar: false,selection:[],selection_alineacion: '', selection_plataforma: '', selection_estado: ''}, ()=>{\r\n funciones.showToast('s', 'Campus agregado exitosamente.'); \r\n this.setState({open_agregar: false})\r\n this.consulta_sucursales();\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 funciones.showToast('e', 'Error de conexión');\r\n this.setState({validado: true })\r\n }\r\n })\r\n }\r\n else{\r\n funciones.showToast('w', 'Confirme la información ingresada.');\r\n }\r\n\r\n}\r\n\r\n/** EDITAR SUCURSAL */\r\nguardar_modificar= async ()=>{\r\n let _this=this;\r\n _this.setState({ openBackDrop: true }, ()=>{\r\n if(_this.descripcionSucursalRef.current.value.toString().trim() !== null && _this.descripcionSucursalRef.current.value.toString().trim() !== '')\r\n { \r\n try{\r\n new Request\r\n .post(`${globales.ip}/sucursales/IUD_sucursal`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_SUCURSAL:_this.state.id_sucursal,DESCRIPCION_SUCURSAL:_this.descripcionSucursalRef.current.value.toString(),ESTADO:_this.state.selection_estado,TELEFONO1:_this.telefono1Ref.current.value,TELEFONO2:_this.telefono2Ref.current.value,DIRECCION:_this.direccionRef.current.value.toString(),USUARIO:_this.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.setState({openBackDrop: false,validado: true,error:false,open_modificar: false,selection:[],selection_alineacion: '', selection_plataforma: '', selection_estado: ''}, ()=>{\r\n funciones.showToast('s', 'Informacion editada exitosamente.'); \r\n _this.setState({open_agregar: false})\r\n \r\n _this.setState({ openBackDrop: true }, ()=> { \r\n _this.consulta_sucursales();\r\n });\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 funciones.showToast('e', 'Error de conexión');\r\n this.setState({validado: true })\r\n }\r\n }\r\n else{\r\n funciones.showToast('w', 'Confirme la información ingresada.');\r\n }\r\n })\r\n}\r\n/** ELIMINAR REGISTRO */\r\neliminar = async ()=>{\r\n let _this=this;\r\n this.setState({ openBackDrop: true }, ()=>{\r\n try{\r\n new Request\r\n .post(`${globales.ip}/sucursales/IUD_sucursal`)\r\n .set({'authorization': 'Bearer ' + Auth.getToken() })\r\n .set('Content-Type', 'application/json')\r\n .send({ID_SUCURSAL:_this.state.id_sucursal,DESCRIPCION_SUCURSAL:\"-\",ESTADO:0,TELEFONO1:0,TELEFONO2:0,DIRECCION:\"-\",USUARIO:_this.Auth.getProfile().user,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({openBackDrop: false,validado: true,error:false,open_eliminar: false,selection:[],selection_alineacion: '', selection_plataforma: '', selection_estado: ''}, ()=>{\r\n funciones.showToast('s', 'Campus eliminado exitosamente.'); \r\n \r\n this.consulta_sucursales();\r\n\r\n //this.consulta_sucursales();\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 funciones.showToast('e', 'Error de conexión');\r\n this.setState({validado: true })\r\n }\r\n })\r\n}\r\n\r\n/** CAMBIA EL SELECTION PARA QUE TOME EN CUENTA TODAS LAS COLUMNAS */\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\nconfirma_valor(valor){\r\n if(valor!==undefined)\r\n return valor;\r\n else{\r\n return '';\r\n } \r\n}\r\n/** MODAL PARA MODIFICACION */\r\nabrirmodal_modificar=()=>event=>{\r\n if(this.state.selection.length>0){\r\n this.setState({selection_principal: this.state.selection,open_modificar: true,id_sucursal: this.state.selection[0]})\r\n currentDescripcion= this.confirma_valor(this.state.selection[1])\r\n //currentEstado= this.state.selection_estado//this.confirma_valor(this.state.selection[2]) //ESTADO\r\n currentTelefono1= this.confirma_valor(this.state.selection[3])\r\n currentTelefono2= this.confirma_valor(this.state.selection[4])\r\n currentDireccion= this.confirma_valor(this.state.selection[5])\r\n }\r\n else\r\n {\r\n funciones.showToast('w','Por favor, seleccione la sucursal que desea modificar.')\r\n }\r\n}\r\n/** MODAL PARA ELIMINACION */\r\nabrirmodal_eliminar=()=>event=>{\r\n if(this.state.selection.length>0)\r\n {\r\n this.setState({open_eliminar: true, id_sucursal: this.state.selection[0] ,/*codigo: this.confirma_valor(this.state.selection[1]), nombre: this.confirma_valor(this.state.selection[2]),*/ descripcion: this.confirma_valor(this.state.selection[1])})\r\n\r\n }\r\n}\r\n\r\n/* RENDER */\r\nrender() {\r\n\r\n const { classes } = this.props;\r\n\r\n /** BOTONES PARA FUNCIONES DINAMICOS */\r\n const botones = [\r\n {icono: 'Add', toolt: 'Agregar un campus', nombre: 'Agregar' ,escritura:true, onclick: this.abrirmodal_agregar(), display: 'auto'},\r\n {icono: 'Edit', toolt: 'Modificar un campus', nombre: 'Modificar' ,escritura:true, onclick: this.abrirmodal_modificar(), display:'auto'},\r\n {icono: 'Delete', toolt: 'Eliminar un campus', nombre: 'Eliminar' ,escritura:true, onclick: this.abrirmodal_eliminar(), color: colores.naranja, display: 'auto'},\r\n ]\r\n /** BOTONES DEL MODAL AGREGAR */\r\n const botones_agregar =[\r\n {icono: 'Save', toolt: 'Guardar', nombre: 'Guardar',escritura:true,onclick: this.guardar_agregar , display:'auto'},\r\n {icono: 'Close', toolt: 'Cerrar', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n /** BOTONES DEL MODAL EDITAR */\r\n const botones_modificar =[\r\n {icono: 'Save', toolt: 'Guardar cambios', nombre: 'Guardar',escritura:true,onclick: this.guardar_modificar , display:'auto'},\r\n {icono: 'Close', toolt: 'Cerrar', nombre: 'Cerrar' ,onclick: this.cerrarmodal(), display:'auto', color: 'red'},\r\n ]\r\n /** BOTONES DEL MODAL ELIMINAR */\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\r\n if (this.state.isLoggin === true )\r\n {\r\n return ( \r\n
\r\n {/** backdrop */}\r\n \r\n \r\n {this.state.open_eliminar ? 'Eliminando...' : this.state.open_guardar? 'Guardando...':this.state.open_modificar?'Guardando...': 'Cargando...'}\r\n \r\n {/**MODAL DE AGREGAR */}\r\n \r\n \r\n {'Ingreso de Campus'} \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n {/* MODAL ELIMINAR */}\r\n \r\n \r\n {'Eliminar Campus'} \r\n \r\n \r\n \r\n ¿Seguro de eliminar el campus: {this.state.selection[1]}?\r\n \r\n
\r\n \r\n
\r\n \r\n\r\n \r\n\r\n
\r\n
\r\n }\r\n showSelectionColumn={false}\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":""}