コード例 #1
0
ファイル: COM006DView.cs プロジェクト: ferarell/DelfinGroup
        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)
            { }
        }
コード例 #2
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)
            { }
        }
コード例 #3
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); }
        }
コード例 #4
0
 public void LoadView()
 {
     try
     {
         CONS_CodVia.LoadControl(Presenter.ContainerService, "Constantes Vías", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);
         CONS_CodEnt.LoadControl(Presenter.ContainerService, "Constantes Entidad Emisora", "CEM", "< Seleccionar Entidad Emisora >", ListSortDirection.Ascending);
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
 }
コード例 #5
0
 public void LoadView()
 {
     try
     {
         CONS_CodVia.LoadControl(Presenter.ContainerService, "Constantes de VIA", "VIA", "< Selecionar Tipo Vía >", ListSortDirection.Ascending);
         TIPO_CodPais.LoadControl(Presenter.ContainerService, "Tabla de Paises", "PAI", "< Seleccionar País >", ListSortDirection.Ascending);
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
 }
コード例 #6
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)
            { }
        }
コード例 #7
0
ファイル: MAN007LView.cs プロジェクト: ferarell/DelfinGroup
        public void LoadView()
        {
            try
            {
                BSItems.DataSource     = null;
                grdItems.DataSource    = BSItems;
                navItems.BindingSource = BSItems;
                BSItems.ResetBindings(true);

                CONS_CodVia.LoadControl(Presenter.ContainerService, "Constantes Vías", "VIA", "< Seleccionar Vía >", ListSortDirection.Ascending);

                CONS_CodVia.SelectedIndexChanged += CONS_CodVia_SelectedIndexChanged;

                FormatDataGrid();

                grdItems.Enabled    = false;
                btnNuevo.Enabled    = true;
                btnBuscar.Enabled   = true;
                btnExportar.Enabled = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error cargando la vista.", ex); }
        }
コード例 #8
0
ファイル: COM007LView.cs プロジェクト: ferarell/DelfinGroup
        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); }
        }