Example #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); }
        }
Example #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)
            { }
        }
Example #3
0
        public void SetItem()
        {
            try
            {
                if (Presenter.Item != null)
                {
                    if (Presenter.Item.PACK_Codigo != 0)
                    {
                        PACK_Codigo.Text = Presenter.Item.PACK_Codigo.ToString();
                    }
                    txtPACK_Desc.Text                = Presenter.Item.PACK_Desc.ToString();
                    txtPACK_DescC.Text               = Presenter.Item.PACK_DescC.ToString();
                    cmbTIPO_Paqute.SelectedValue     = Presenter.Item.TIPO_CodPAQ;
                    cmbTIPO_Tamaño.SelectedValue     = Presenter.Item.TIPO_CodTAM;
                    cmbTIPO_Contenedor.SelectedValue = Presenter.Item.TIPO_CodCNT;

                    PACK_Codigo.Select();
                    HashFormulario = Infrastructure.Client.FormClose.FormValidateChanges.iniciarComparacionFormulario(this);
                }
            }
            catch (Exception)
            { }
        }