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); } }
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) { } }