protected void Button_EMPEZAR_CONFIGURACION_Click(object sender, EventArgs e) { Decimal ID_EMPRESA = Convert.ToDecimal(HiddenField_ID_EMPRESA.Value); Decimal ID_PERFIL = Convert.ToDecimal(HiddenField_ID_PERFIL.Value); Boolean verificador = true; verificador = determinarIDsSubCCentrosCCiudad(); if (verificador == true) { servicio _servicio = new servicio(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaServiciosComplementariosAsociados; condicionesContratacion _condicionesContratacion = new condicionesContratacion(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaCondicionContratacion; condicionComercial _condicionComercial = new condicionComercial(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaCondicionComercial; tablaCondicionContratacion = _condicionesContratacion.ObtenerCondicionContratacionPorUbicacion(ID_PERFIL, GLO_ID_CIUDAD, GLO_ID_CENTRO_C, GLO_ID_SUB_C, GLO_ID_SERVICIO); tablaServiciosComplementariosAsociados = _servicio.ObtenerServiciosComplementariosPorUbicacion(GLO_ID_CIUDAD, GLO_ID_CENTRO_C, GLO_ID_SUB_C, GLO_ID_SERVICIO); if (tablaCondicionContratacion.Rows.Count > 0) { Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "La UBICACIÓN, PERFIL Y/Ó SERVICIO seleccionado YA POSEE CONDICIONES DE CONTRATACIÓN configuradas.", Proceso.Advertencia); } else { tablaCondicionComercial = _condicionComercial.ObtenerCondicionesEconomicasPorId(ID_EMPRESA, GLO_ID_CIUDAD, GLO_ID_CENTRO_C, GLO_ID_SUB_C); if (tablaCondicionComercial.Rows.Count <= 0) { EnviarCorreoAComercial(); } Ocultar(Acciones.Inicio); Desactivar(Acciones.Inicio); Mostrar(Acciones.NuevaCondicionSegundaParte); Activar(Acciones.NuevaCondicionSegundaParte); CargarInterfazNuevaCondicionSegundaParte(tablaServiciosComplementariosAsociados); } } else { Informar(Panel_FONDO_MENSAJE, Image_MENSAJE_POPUP, Panel_MENSAJES, Label_MENSAJE, "Debe seleccionar por lo mínimo una ciudad, para aplicar nuevas condiciones.", Proceso.Advertencia); } }