예제 #1
0
        private void actualizacion_datos()
        {
            WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
            wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");

            WSGestion.MOD_Usuario obj = new WSGestion.MOD_Usuario();

            obj = wsgest.SEL_GRID_BY_ID_Usuario(codigo);

            cantidad_mascota = obj.CANT_mascota.ToString();
            cantidad_cita = obj.CANT_cita.ToString();
            cantidad_expediente = obj.CANT_expediente.ToString();
            cantidad_factura = obj.CANT_factura.ToString();
            cantidad_entrada_inventario = obj.CANT_entrada_inventario.ToString();
            cantidad_salida_inventario = obj.CANT_salida_inventario.ToString();
            cantidad_articulo = obj.CANT_articulo.ToString();
            cantidad_bodega = obj.CANT_bodega.ToString();
        }
예제 #2
0
        private void Carga_Editar()
        {
            try
            {
                WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                WSGestion.MOD_Usuario obj = new WSGestion.MOD_Usuario();
                obj = wsgest.SEL_GRID_BY_ID_Usuario(codigo_seleccionado);
                txt_codigo.Value = obj.USU_id_usuario.ToString();
                txt_nombre.Value = obj.USU_nombre;
                txt_apellido1.Value = obj.USU_primapellido;
                txt_apellido2.Value = obj.USU_segapellido;
                txt_telefono.Value = obj.USU_telefono;
                txt_email.Value = obj.USU_email;
                txt_contrasena.Value = obj.USU_contrasena;
                contrasena = obj.USU_contrasena;
                txt_contrasena.Disabled = true;
                txt_confirmacion.Value = obj.USU_contrasena;
                txt_confirmacion.Disabled = true;
                txt_Direccion.Value = obj.USU_direccion;
                dl_perfil.SelectedValue = obj.USU_id_perfil.ToString();
                dlPuesto.SelectedValue = obj.USU_id_puesto.ToString();
                txt_codigocentro.Value = obj.USU_id_centro_atencion.ToString();
                Carga_Centro_Nombre(obj.USU_id_centro_atencion);
                if (obj.USU_id_estado_usuario == 1)
                {
                    chk_activo.Checked = true;
                }
                else
                {
                    chk_activo.Checked = false;
                }

            }
            catch (Exception exc)
            {
                WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
                wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
                Session[wsgest.Get_usu_id_session(Session.SessionID.ToString())+"Codigo_Select"] = "0";
                Alert_Mensaje.Attributes["class"] = "alert alert-danger";
                mensaje_alerta = exc.ToString();
                titulo_mensaje_alerta = "Error: ";
                Alert_Mensaje.Visible = true;
            }
        }