예제 #1
0
        ///*******************************************************************************
        ///NOMBRE DE LA FUNCIÓN: Frm_Ope_Ordenes_Salida_Load
        ///DESCRIPCIÓN  :Evento Load
        ///PARAMENTROS  :
        ///CREO         : Hugo Enrique Ramírez Aguilera
        ///FECHA_CREO   : 21/Feb/2013 01:01 p.m.
        ///MODIFICO     :
        ///FECHA_MODIFICO:
        ///CAUSA_MODIFICACIÓN:
        ///*******************************************************************************
        private void Frm_Ope_Ordenes_Salida_Load(object sender, EventArgs e)
        {
            DataTable Dt_Destinos;

            Cls_Metodos_Generales.Validar_Acceso_Sistema("Órdenes de salida", this);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Busqueda, true);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Datos_Generales, false);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Configuracion_Embarque, false);
            Cls_Metodos_Generales.Limpia_Controles(Fra_Busqueda);
            Cls_Metodos_Generales.Limpia_Controles(Fra_Datos_Generales);
            Cls_Metodos_Generales.Limpia_Controles(Fra_Configuracion_Embarque);
            Grid_Configuracion.Enabled         = false;
            Fra_Datos_Generales.Enabled        = true;
            Fra_Configuracion_Embarque.Enabled = true;
            Error_Provider.Clear();
            Cls_Cat_Destinos_Negocio P_Destinos = new Cls_Cat_Destinos_Negocio();

            P_Destinos.P_Estatus = " = 'ACTIVO'";
            Dt_Destinos          = P_Destinos.Consultar_Destinos();
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Destino, Dt_Destinos, Cat_Destinos.Campo_Destino, Cat_Destinos.Campo_Destino_Id);
            Cls_Cat_Tipos_Contenedores_Negocio P_Tipos = new Cls_Cat_Tipos_Contenedores_Negocio();

            P_Tipos.P_Estatus = " = 'ACTIVO'";
            Dt_Destinos       = P_Tipos.Consultar_Pseudocodigos();
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Tipo_Contenedor, Dt_Destinos, "PSEUDO_CODIGO", Cat_Tipos_Contenedores.Campo_Tipo_Contenedor_Id);
            Consultar_Embarques();
            Btn_Agregar.Enabled    = false;
            Btn_Actualizar.Enabled = false;
            Btn_Quitar.Enabled     = false;
        }
예제 #2
0
 ///*************************************************************************************
 ///NOMBRE DE LA FUNCIÓN : Frm_Cat_Cajas_Load
 ///DESCRIPCIÓN          : Muestra la forma en pantalla
 ///PARÁMETROS           :
 ///CREÓ                 : Héctor Gabriel Galicia Luna
 ///FECHA_CREO           : 04 Octubre 2013
 ///MODIFICÓ             :
 ///FECHA_MODIFICO       :
 ///CAUSA_MODIFICACIÓN   :
 ///*************************************************************************************
 private void Frm_Cat_Cajas_Load(object sender, EventArgs e)
 {
     Fra_Datos_Generales.Visible = true;
     Fra_Datos_Generales.Enabled = false;
     Fra_Buscar.Visible          = false;
     Carga_Cajas();
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Cajas", this);
     Cls_Metodos_Generales.Grid_Propiedad_Fuente_Celdas(Grid_Cajas);
 }
예제 #3
0
 ///*******************************************************************************
 ///NOMBRE DE LA FUNCIÓN: Frm_Ope_Descuentos
 ///DESCRIPCIÓN  : Carga los elementos del formulario
 ///PARAMENTROS  :
 ///CREO         : Antonio Salvador Benavides Guardado
 ///FECHA_CREO   : 03/Octubre/2013
 ///MODIFICO     :
 ///FECHA_MODIFICO:
 ///CAUSA_MODIFICACIÓN:
 ///*******************************************************************************
 public Frm_Ope_Descuentos()
 {
     InitializeComponent();
     Inicializar_Controles();
     Validador = new Validador_Generico(Error_Provider);
     Rellena_Combo_Busqueda();
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Cancelaciones", this);
     Error_Provider.Clear();
 }
예제 #4
0
 ///*************************************************************************************
 ///NOMBRE DE LA FUNCIÓN : Frm_Cat_Motivos_Cancelacion_Load
 ///DESCRIPCIÓN          : Muestra la forma en pantalla
 ///PARÁMETROS           :
 ///CREÓ                 : Luis Eugenio Razo Mendiola
 ///FECHA_CREO           : 15 Octubre 2013
 ///MODIFICÓ             :
 ///FECHA_MODIFICO       :
 ///CAUSA_MODIFICACIÓN   :
 ///*************************************************************************************
 private void Frm_Cat_Motivos_Cancelacion_Load(object sender, EventArgs e)
 {
     Fra_Datos_Generales.Visible = true;
     Fra_Datos_Generales.Enabled = false;
     Fra_Buscar.Visible          = false;
     Carga_Motivos_Cancelacion();
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Motivos de Cancelación", this);
     Cls_Metodos_Generales.Grid_Propiedad_Fuente_Celdas(Grid_Motivos);
 }
예제 #5
0
 ///*************************************************************************************
 ///NOMBRE DE LA FUNCIÓN : Frm_Cat_Productos_Load
 ///DESCRIPCIÓN          : Muestra la forma en pantalla
 ///PARÁMETROS           :
 ///CREÓ                 : Héctor Gabriel Galicia Luna
 ///FECHA_CREO           : 07 Octubre 2013
 ///MODIFICÓ             :
 ///FECHA_MODIFICO       :
 ///CAUSA_MODIFICACIÓN   :
 ///*************************************************************************************
 private void Frm_Cat_Turnos_Load(object sender, EventArgs e)
 {
     Fra_Datos_Generales.Visible = true;
     Fra_Datos_Generales.Enabled = false;
     Fra_Buscar.Visible          = false;
     Carga_Turnos();
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Turnos", this);
     Cls_Metodos_Generales.Grid_Propiedad_Fuente_Celdas(Grid_Turnos);
     Validador = new Validador_Generico(Erp_Validaciones);
     Erp_Validaciones.Clear();
 }
 ///*******************************************************************************
 ///NOMBRE DE LA FUNCIÓN: Frm_Cat_Destinos_Load
 ///DESCRIPCIÓN  : Evento Load del formulario
 ///PARAMENTROS  :
 ///CREO         : Miguel Angel Bedolla Moreno
 ///FECHA_CREO   : 12/Abr/2013 04:20 p.m.
 ///MODIFICO     :
 ///FECHA_MODIFICO:
 ///CAUSA_MODIFICACIÓN:
 ///*******************************************************************************
 private void Frm_Cat_Destinos_Load(object sender, EventArgs e)
 {
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Destinos", this);
     Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Busqueda, true);
     Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Datos_Generales, false);
     Cls_Metodos_Generales.Limpia_Controles(Fra_Busqueda);
     Cls_Metodos_Generales.Limpia_Controles(Fra_Datos_Generales);
     Grid_Destinos.Enabled = true;
     Fra_Busqueda.Visible  = false;
     Error_Provider.Clear();
 }
예제 #7
0
        ///*******************************************************************************
        ///NOMBRE DE LA FUNCIÓN: Frm_Apl_Parametros_Load
        ///DESCRIPCIÓN  : Evento Load del formulario Frm_Apl_Parametros
        ///PARAMENTROS  :
        ///CREO         : Miguel Angel Bedolla Moreno
        ///FECHA_CREO   : 28/Feb/2013
        ///MODIFICO     :
        ///FECHA_MODIFICO:
        ///CAUSA_MODIFICACIÓN:
        ///*******************************************************************************
        private void Frm_Apl_Parametros_Load(object sender, EventArgs e)
        {
            Cls_Metodos_Generales.Validar_Acceso_Sistema("Parámetros", this);
            Cls_Cat_Ubicaciones_Negocio P_Ubicaciones = new Cls_Cat_Ubicaciones_Negocio();

            P_Ubicaciones.P_Estatus       = "='ACTIVO'";
            P_Ubicaciones.P_Clasificacion = " = 'WIP/FG'";
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Ubicacion, P_Ubicaciones.Consultar_Ubicaciones(), Cat_Ubicaciones.Campo_Ubicacion, Cat_Ubicaciones.Campo_Ubicacion_Id);
            Consultar();
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Correo, false);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Alertas, false);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Imagen, false);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Ubicacion, false);
            Btn_Enviar_Alertas.Enabled = true;
        }
예제 #8
0
        private void Frm_Cat_Contactos_Load(object sender, EventArgs e)
        {
            Cls_Metodos_Generales.Validar_Acceso_Sistema("Contactos", this);
            Cls_Cat_Clientes_Negocio    Cls_Clientes    = new Cls_Cat_Clientes_Negocio();
            Cls_Cat_Proveedores_Negocio Cls_Proveedores = new Cls_Cat_Proveedores_Negocio();

            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Clientes, Cls_Clientes.Consultar_Clientes(), Cat_Adm_Clientes.Campo_Nombre_Corto, Cat_Adm_Clientes.Campo_Cliente_Id);
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Proveedor, Cls_Proveedores.Consultar_Proveedores(), Cat_Adm_Proveedores.Campo_Nombre_Corto, Cat_Adm_Proveedores.Campo_Proveedor_Id);
            Cls_Metodos_Generales.Limpia_Controles(this);
            Fra_Campos.Visible = true;
            Fra_Buscar.Visible = false;
            Consultar_Contactos();
            Rellena_Combo_Busqueda();
            Validador = new Validador_Generico(Erp_Error_Provider);
        }
예제 #9
0
        ///*******************************************************************************
        ///NOMBRE DE LA FUNCIÓN: Frm_Cat_Contenedores_Load
        ///DESCRIPCIÓN  : Evento Load del formulario Frm_Cat_Contenedores
        ///PARAMENTROS  :
        ///CREO         : Miguel Angel Bedolla Moreno
        ///FECHA_CREO   : 12/Abr/2013 04:20 p.m.
        ///MODIFICO     :
        ///FECHA_MODIFICO:
        ///CAUSA_MODIFICACIÓN:
        ///*******************************************************************************
        private void Frm_Cat_Contenedores_Load(object sender, EventArgs e)
        {
            Cls_Metodos_Generales.Validar_Acceso_Sistema("Contenedores", this);
            Btn_Eliminar.Visible = false;
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Busqueda, true);
            Cls_Metodos_Generales.Habilita_Deshabilita_Controles(Fra_Datos_Generales, false);
            Cls_Cat_Tipos_Contenedores_Negocio P_Tipo = new Cls_Cat_Tipos_Contenedores_Negocio();

            P_Tipo.P_Estatus = " = 'ACTIVO'";
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Tipo_Contenedor, P_Tipo.Consultar_Pseudocodigos(), "PSEUDO_CODIGO", Cat_Tipos_Contenedores.Campo_Tipo_Contenedor_Id);
            Cls_Cat_Ubicaciones_Negocio P_Ubicaciones = new Cls_Cat_Ubicaciones_Negocio();

            P_Ubicaciones.P_Estatus = "ACTIVO";
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Ubicacion, P_Ubicaciones.Consultar_Ubicaciones(), Cat_Ubicaciones.Campo_Ubicacion, Cat_Ubicaciones.Campo_Ubicacion_Id);
            Cls_Metodos_Generales.Limpia_Controles(Fra_Busqueda);
            Cls_Metodos_Generales.Limpia_Controles(Fra_Datos_Generales);
            Grid_Contenedores.Enabled = true;
            Fra_Busqueda.Visible      = false;
            Error_Provider.Clear();
        }
예제 #10
0
        //*************************************************************************************
        //NOMBRE DE LA FUNCIÓN: Frm_Cat_Usuarios_Load
        //DESCRIPCIÓN: Evento Load del formulario
        //PARÁMETROS :
        //CREO       : Miguel Angel Bedolla Moreno
        //FECHA_CREO : 22-Febrero-2013
        //MODIFICO:
        //FECHA_MODIFICO
        //CAUSA_MODIFICACIÓN
        //*************************************************************************************
        private void Frm_Cat_Usuarios_Load(object sender, EventArgs e)
        {
            Cls_Metodos_Generales.Validar_Acceso_Sistema("Usuarios", this);
            Cls_Apl_Roles_Negocio Rs_Roles     = new Cls_Apl_Roles_Negocio();
            DataTable             Dt_Resultado = new DataTable();

            Grb_Buscar.Visible          = false;
            Grb_Datos_Generales.Visible = true;
            Fra_Login.Visible           = true;
            Grb_Datos_Generales.Enabled = false;
            Fra_Login.Enabled           = false;
            Cargar_Usuarios_Activos();
            Dt_Resultado       = new DataTable();
            Rs_Roles.P_Estatus = "ACTIVO";
            Dt_Resultado       = Rs_Roles.Consultar_Roles();
            Cls_Metodos_Generales.Rellena_Combo_Box(Cmb_Rol, Dt_Resultado, Apl_Roles.Campo_Nombre, Apl_Roles.Campo_Rol_Id);
            Cls_Metodos_Generales.Grid_Propiedad_Fuente_Celdas(Grid_Usuarios);
            Cmb_Estatus.Enabled = false;
            Validador           = new Validador_Generico(Erp_Validaciones);
            Erp_Validaciones.Clear();
        }
예제 #11
0
 private void Frm_Apl_Parametros_Load(object sender, EventArgs e)
 {
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Parametros", this);
     Consultar();
 }
 private void Frm_Apl_Roles_Load(object sender, EventArgs e)
 {
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Roles", this);
     Error_Provider.Clear();
 }
예제 #13
0
 private void Frm_Cat_Clientes_Load(object sender, EventArgs e)
 {
     Cls_Metodos_Generales.Validar_Acceso_Sistema("Clientes", this);
 }