Beispiel #1
0
        public void LoadView()
        {
            try
            {
                ENTC_CodigoEntidad.ContainerService = Presenter.ContainerService;
                ENTC_CodigoEntidad.TipoEntidad      = TiposEntidad.TIPE_Proveedor;

                CbSERV_Codigo.DataSource    = Presenter.GetTodosServicios();
                CbSERV_Codigo.ValueMember   = "SERV_Codigo";
                CbSERV_Codigo.DisplayMember = "SERV_Nombre_SPA";
                SetMaxWidth("01234567890123456789012345678901234567890123456789", CbSERV_Codigo);
                CbBase.DataSource    = Presenter.ListConstantes;
                CbBase.ValueMember   = "CONS_CodTipo";
                CbBase.DisplayMember = "CONS_Desc_SPA";

                CbTIPO_CodMnd.LoadControl(Presenter.ContainerService, "Tabla Moneda", "MND", "< Selecione Moneda >", ListSortDirection.Descending);

                CbTipoGasto.LoadControl(Presenter.ContainerService, "Tabla TipoGasto", "TMC", "< Seleccionar Gasto >", ListSortDirection.Descending);
            }
            catch (Exception ex)
            { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.LoadView, ex); }
        }
Beispiel #2
0
        public void LoadView()
        {
            try
            {
                ENTC_CodigoEntidad.LoadControl(Presenter.ContainerService, "Entidad", TiposEntidad.TIPE_Proveedor, null, true);
                cmbTIPE_codigo.LoadControl(Presenter.ContainerService, "Tipo Entidad", "< Sel. Tipo Entidad >", ListSortDirection.Ascending, 2, new Int16[] { 2, 6 });

                System.Data.DataTable _dt;
                _dt = Presenter.GetTodosServicios();
                CbSERV_Codigo.DataSource    = _dt;
                CbSERV_Codigo.ValueMember   = "SERV_Codigo";
                CbSERV_Codigo.DisplayMember = "SERV_Nombre_SPA";
                SetMaxWidth("12345678901234567890123456789012345678901234567890123456");
                CbBase.DataSource    = Presenter.ListConstantes;
                CbBase.ValueMember   = "CONS_CodTipo";
                CbBase.DisplayMember = "CONS_Desc_SPA";

                CbTIPO_CodMnd.LoadControl(Presenter.ContainerService, "Tabla Moneda", "MND", "< Selecione Moneda >", ListSortDirection.Descending);

                CbTipoGasto.LoadControl(Presenter.ContainerService, "Tabla TipoGasto", "TMC", "< Seleccionar Gasto >", ListSortDirection.Descending);
            }
            catch (Exception ex)
            { Dialogos.MostrarMensajeError(Presenter.Title, Mensajes.LoadView, ex); }
        }