Exemple #1
0
        public void LoadView()
        {
            try
            {
                ENTC_CodTransportista.ContainerService = Presenter.ContainerService;

                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla de Regimen", "RGM", "< Seleccionar Regimen >", ListSortDirection.Ascending);
                CONS_CodVIA.LoadControl(Presenter.ContainerService, "Tabla de Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);

                TIPO_CodPAIOrigen.LoadControl(Presenter.ContainerService, "Tabla Países Origen", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending);
                TIPO_CodPAIDestino.LoadControl(Presenter.ContainerService, "Tabla Países Destino", "PAI", "< Seleccionar País Destino >", ListSortDirection.Ascending);

                Boolean _inicializar = true;
                foreach (Entities.Paquete _pack in Presenter.ListPaquetes)
                {
                    PACK_Codigo.AddComboBoxItem(_pack.PACK_Codigo, _pack.PACK_Desc, _inicializar);
                    _inicializar = false;
                }
                PACK_Codigo.LoadComboBox("< Seleccionar Embalaje >", ListSortDirection.Ascending);

                //FormatDataGrid();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
        }
Exemple #2
0
        public void LoadView()
        {
            try
            {
                ENTC_CodCliente.ContainerService       = Presenter.ContainerService;
                ENTC_CodTransportista.ContainerService = Presenter.ContainerService;

                ENTC_CodCliente.TipoEntidad       = Delfin.Controls.TiposEntidad.TIPE_Cliente;
                ENTC_CodTransportista.TipoEntidad = Delfin.Controls.TiposEntidad.TIPE_Transportista;

                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla Régimen", "RGM", "< Seleccionar Régimen >", ListSortDirection.Ascending);
                CONS_CodVia.LoadControl(Presenter.ContainerService, "Tabla Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);
                CONS_CodBas.LoadControl(Presenter.ContainerService, "Tabla Base De Cálculo", "BAS", "< Seleccionar Base >", ListSortDirection.Ascending);

                TIPO_CodMnd.LoadControl(Presenter.ContainerService, "Tabla Monedas", "MND", "< Seleccionar Moneda >", ListSortDirection.Ascending);
                TIPO_CodPAIOrigen.LoadControl(Presenter.ContainerService, "Tabla Países", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending);
                TIPO_CodPAIDestino.LoadControl(Presenter.ContainerService, "Tabla Países", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending);

                Boolean _inicializar = true;
                foreach (Entities.Paquete _paquete in Presenter.ListPaquetes)
                {
                    PACK_Codigo.AddComboBoxItem(_paquete.PACK_Codigo, _paquete.PACK_Desc, _inicializar);
                    _inicializar = false;
                }
                PACK_Codigo.LoadComboBox("< Seleccionar Paquete >", ListSortDirection.Ascending);

                PUER_CodOrigen.DataSource = null;
                PUER_CodOrigen.Enabled    = false;

                PUER_CodDestino.DataSource = null;
                PUER_CodDestino.Enabled    = false;
            }
            catch (Exception)
            { }
        }
Exemple #3
0
        public void LoadView()
        {
            try
            {
                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla Régimen", "RGM", "< Seleccionar Régimen >", ListSortDirection.Ascending);
                CONS_CodVia.LoadControl(Presenter.ContainerService, "Tabla Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);

                TIPO_CodPAI.LoadControl(Presenter.ContainerService, "Tabla Países", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending);
                PUER_Codigo.DataSource = null;
                PUER_Codigo.Enabled    = false;

                CONT_Numero.Enabled  = false;
                CONT_FecEmi.Enabled  = false;
                CONT_Descrip.Enabled = false;
                CONT_FecFin.Enabled  = false;
                CONT_FecIni.Enabled  = false;
                CONS_CodRGM.Enabled  = false;
                CONS_CodVia.Enabled  = false;

                //PUER_CodDestino.DataSource = null;
                //PUER_CodDestino.Enabled = false;
            }
            catch (Exception)
            { }
        }
Exemple #4
0
        public void LoadView()
        {
            try
            {
                SERV_TipoMov.LoadControl("Tipos de Movimiento Servicio", ComboBoxConstantes.OConstantes.SERV_TipoMov, "<Seleccionar Movimiento>", ListSortDirection.Ascending);

                CONS_CodLNG.LoadControl(Presenter.ContainerService, "Constantes de linea de Negocio", "LNG", "< Seleccionar Linea de Negocio >", ListSortDirection.Ascending);
                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Constantes de Régimen", "RGM", "< Seleccionar Régimen >", ListSortDirection.Ascending);
                CONS_CodVia.LoadControl(Presenter.ContainerService, "Constantes de Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);

                BSItems.DataSource     = null;
                grdItems.DataSource    = BSItems;
                navItems.BindingSource = BSItems;
                BSItems.ResetBindings(true);

                FormatDataGrid();

                grdItems.Enabled        = false;
                btnMAN_Nuevo.Enabled    = true;
                btnMAN_Buscar.Enabled   = true;
                btnMAN_Exportar.Enabled = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
        }
Exemple #5
0
 public void LoadView()
 {
     try
     {
         CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tipos de Régimen", "RGM", "< Seleccionar Régimen >", ListSortDirection.Ascending);
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
 }
Exemple #6
0
        public void LoadView()
        {
            try
            {
                ENTC_CodTransportista.ContainerService = Presenter.ContainerService;

                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla de Regimen", "RGM", "< Seleccionar Regimen >", ListSortDirection.Ascending);
                CONS_CodVIA.LoadControl(Presenter.ContainerService, "Tabla de Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);

                TIPO_CodPAIOrigen.LoadControl(Presenter.ContainerService, "Tabla Países Origen", "PAI", "< Seleccionar País Origen >", ListSortDirection.Ascending);
                TIPO_CodPAIDestino.LoadControl(Presenter.ContainerService, "Tabla Países Destino", "PAI", "< Seleccionar País Destino >", ListSortDirection.Ascending);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
        }
Exemple #7
0
        public void LoadView()
        {
            try
            {
                ENTC_CodCliente.ContainerService       = Presenter.ContainerService;
                ENTC_CodTransportista.ContainerService = Presenter.ContainerService;

                ENTC_CodCliente.TipoEntidad       = Delfin.Controls.TiposEntidad.TIPE_Cliente;
                ENTC_CodTransportista.TipoEntidad = Delfin.Controls.TiposEntidad.TIPE_Transportista;

                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Tabla Régimen", "RGM", "< Seleccionar Régimen >", ListSortDirection.Ascending);
                CONS_CodVia.LoadControl(Presenter.ContainerService, "Tabla Vía", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);
            }
            catch (Exception)
            { }
        }
Exemple #8
0
        public void LoadView(Int16 CCOT_Tipo)
        {
            try
            {
                ApplyUserAccess();
                ENTC_CodEjecutivo.ContainerService = Presenter.ContainerService;
                ENTC_CodCustomer.ContainerService  = Presenter.ContainerService;
                ENTC_CodAgente.ContainerService    = Presenter.ContainerService;
                ENTC_CodBroker.ContainerService    = Presenter.ContainerService;
                ENTC_CodCliente.ContainerService   = Presenter.ContainerService;


                if (CCOT_Tipo == Delfin.Controls.variables.CCOT_TipoCotizacion)
                {
                    this.Text = "Comercial - Cotizaciones";
                    this.TitleView.Caption = "COMERCIAL - COTIZACIONES";

                    btnNuevo.Enabled        = false;
                    btnVersionar.Visible    = true;
                    btnPresupuestar.Visible = false;
                    btnGenerarOV.Visible    = true;

                    btnConfirmar.Visible = true;
                    btnConfirmar.Text    = "Autorizar";
                    btnAnular.Visible    = true;

                    btnCoordinar.Visible = false;
                    btnConcluir.Visible  = false;
                    btnCopiar.Visible    = false;

                    CONS_CodEST.LoadControl(Presenter.ContainerService, "Estado Cotización", "COT", "< Todos >", ListSortDirection.Ascending);

                    lblDOOV_HBL.Visible            = false;
                    DOOV_HBL.Visible               = false;
                    lblCCOT_NumPresupuesto.Visible = true;
                    CCOT_NumPresupuesto.Visible    = true;
                }
                else
                {
                    this.Text = "Comercial - Órdenes de Venta";
                    this.TitleView.Caption = "COMERCIAL - ÓRDENES DE VENTA";

                    btnNuevo.Enabled        = true;
                    btnVersionar.Visible    = false;
                    btnPresupuestar.Visible = false;
                    btnGenerarOV.Visible    = false;

                    btnCoordinar.Visible = true;
                    btnConfirmar.Visible = true;
                    btnConfirmar.Text    = "Confirmar";
                    btnConcluir.Visible  = true;
                    btnAnular.Visible    = true;
                    btnCopiar.Visible    = true;


                    CONS_CodEST.LoadControl(Presenter.ContainerService, "Estado Orden de Venta", "OVE", "< Todos >", ListSortDirection.Ascending);

                    lblDOOV_HBL.Visible            = true;
                    DOOV_HBL.Visible               = true;
                    lblCCOT_NumPresupuesto.Visible = false;
                    CCOT_NumPresupuesto.Visible    = false;
                }

                BSItems.DataSource     = null;
                grdItems.DataSource    = BSItems;
                navItems.BindingSource = BSItems;
                BSItems.ResetBindings(true);

                CONS_CodRGM.LoadControl(Presenter.ContainerService, "Régimen", "RGM", "< Todos >", ListSortDirection.Ascending);
                CONS_CodFLE.LoadControl(Presenter.ContainerService, "Condición de Flete", "FLE", "< Todos >", ListSortDirection.Ascending);
                CONS_CodVia.LoadControl(Presenter.ContainerService, "Tipos Vía", "VIA", "< Todos >", ListSortDirection.Ascending);

                ENTC_CodEjecutivo.TipoEntidad = Delfin.Controls.TiposEntidad.TIPE_Ejecutivo;
                ENTC_CodCustomer.TipoEntidad  = Delfin.Controls.TiposEntidad.TIPE_Customer;
                ENTC_CodAgente.TipoEntidad    = Delfin.Controls.TiposEntidad.TIPE_Agente;
                ENTC_CodBroker.TipoEntidad    = Delfin.Controls.TiposEntidad.TIPE_Broker;
                ENTC_CodCliente.TipoEntidad   = Delfin.Controls.TiposEntidad.TIPE_Cliente;

                CCOT_FecDesde.NSFecha = Presenter.Session.Fecha.AddDays(-7);
                CCOT_FecHasta.NSFecha = Presenter.Session.Fecha;

                FormatDataGrid();

                grdItems.Enabled    = false;
                btnBuscar.Enabled   = true;
                btnExportar.Enabled = false;

                SeleccionarItem();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
        }