Ejemplo n.º 1
0
 public override void Remove(Control value)
 {
     if (value is HostedTextBoxBase)
     {
         base.Remove(value);
     }
     else
     {
         RadPageViewPage page = value as RadPageViewPage;
         this.ValidatePage(page);
         if (this.suspendOwnerNotify == (byte)0)
         {
             RadPageViewCancelEventArgs e = new RadPageViewCancelEventArgs(page);
             this.owner.OnPageRemoving(e);
             if (e.Cancel)
             {
                 return;
             }
         }
         base.Remove(value);
         if (this.suspendOwnerNotify != (byte)0)
         {
             return;
         }
         this.owner.OnPageRemoved(new RadPageViewEventArgs(page));
     }
 }
Ejemplo n.º 2
0
        public override void SetChildIndex(Control child, int newIndex)
        {
            if (!this.owner.AllowPageIndexChange)
            {
                return;
            }
            this.owner.DisablePageIndexChange();
            RadPageViewPage page = child as RadPageViewPage;

            this.ValidatePage(page);
            int num = this.IndexOf((Control)page);

            if (this.suspendOwnerNotify == (byte)0)
            {
                RadPageViewIndexChangingEventArgs e = new RadPageViewIndexChangingEventArgs(page, newIndex, num);
                this.owner.OnPageIndexChanging(e);
                if (e.Cancel)
                {
                    return;
                }
            }
            base.SetChildIndex(child, newIndex);
            if (this.suspendOwnerNotify != (byte)0)
            {
                return;
            }
            this.owner.OnPageIndexChanged(new RadPageViewIndexChangedEventArgs(page, num, newIndex));
        }
Ejemplo n.º 3
0
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ010ConciliacionLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnBuscar.Click           += new EventHandler(btnBuscar_Click);
                btnCargarArchivoXLS.Click += btnCargarArchivoXLS_Click;
                btnConciliacion.Click     += btnConciliacion_Click;
                btnDeshacer.Click         += btnDeshacer_Click;
                btnExportar.Click         += new EventHandler(btnExportar_Click);

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CellEndEdit       += grdItems_CellEndEdit;
                txtConciliacion.ReadOnly    = true;
                txtConciliacion.WordWrap    = false;
                spcBase.Panel2Collapsed     = true;
                btnConciliacion.Enabled     = false;
                btnCargarArchivoXLS.Enabled = false;

                txaCUBA_Codigo.SelectedItemCuentaBancariaChanged += txaCUBA_Codigo_SelectedItemCuentaBancariaChanged;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 4
0
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public COM007LView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click        += new EventHandler(btnNuevo_Click);
                btnBuscar.Click       += new EventHandler(btnBuscar_Click);
                btnVersionar.Click    += new EventHandler(btnVersionar_Click);
                btnCopiar.Click       += new EventHandler(btnCopiar_Click);
                btnPresupuestar.Click += new EventHandler(btnPresupuestar_Click);
                btnCoordinar.Click    += new EventHandler(btnCoordinar_Click);
                btnConfirmar.Click    += new EventHandler(btnConfirmar_Click);
                btnGenerarOV.Click    += new EventHandler(btnGenerarOV_Click);
                btnConcluir.Click     += btnConcluir_Click;
                btnImprimir.Click     += new EventHandler(btnImprimir_Click);
                btnAnular.Click       += new EventHandler(btnAnular_Click);
                btnExportar.Click     += new EventHandler(btnExportar_Click);
                btnDeshacer.Click     += new EventHandler(btnDeshacer_Click);

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting   += grdItemLViews_CellFormatting;
                TitleView.FormClose       += new EventHandler(TitleView_FormClose);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 5
0
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ001CuentasBancariasLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click    += new EventHandler(btnNuevo_Click);
                btnBuscar.Click   += new EventHandler(btnBuscar_Click);
                btnExportar.Click += new EventHandler(btnExportar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += grdItems_CommandCellClick;
                grdItems.CellFormatting   += grdItems_CellFormatting;

                txtCUBA_Codigo.MaxLength = 3;

                comboBox1.Visible = false;
                label3.Visible    = false;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ011AnularDocBancosLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnBuscar.Click   += new EventHandler(btnBuscar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);
                btnExportar.Click += new EventHandler(btnExportar_Click);

                sctBase.Panel2Collapsed = true;
                cmbTIPO_CodMND.Enabled  = false;
                cmbTIPO_CodBCO.Enabled  = false;

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);
                grdItems.CommandCellClick  += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting    += grdItems_CellFormatting;
                txaCUBA_Codigo.SelectedItemCuentaBancariaChanged += txaCUBA_Codigo_SelectedItemCuentaBancariaChanged;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ002IngresosEgresosLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click    += new EventHandler(btnNuevo_Click);
                btnBuscar.Click   += new EventHandler(btnBuscar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);
                btnExportar.Click += new EventHandler(btnExportar_Click);
                txaCUBA_Codigo.SelectedItemCuentaBancariaChanged += txaCUBA_Codigo_SelectedItemCuentaBancariaChanged;
                cmbTIPE_Codigo.SelectedIndexChanged += cmbTIPE_Codigo_SelectedIndexChanged;

                txtMOVI_Codigo.KeyPress += txtMOVI_Codigo_KeyPress;

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting   += grdItems_CellFormatting;
                cmbTIPO_CodMND.Enabled     = false;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);

                this.txtMOVI_Codigo.MaxLength = 10;
                txtAsientoDC.MaxLength        = 20;
                txtAsientoDG.MaxLength        = 20;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
        internal virtual Size GetItemContentMetrics(ExplorerBarItemSizeInfo itemSizeInfo)
        {
            RadPageViewPage            itemPage        = itemSizeInfo.item.Page;
            RadPageViewExplorerBarItem explorerBarItem = itemSizeInfo.item as RadPageViewExplorerBarItem;
            Padding contentAreaPadding = explorerBarItem.AssociatedContentAreaElement.Padding;
            Size    result             = explorerBarItem.AssociatedContentAreaElement.MinSize;

            if (itemPage != null)
            {
                foreach (Control ctrl in itemPage.Controls)
                {
                    if (result.Width < ctrl.Left)
                    {
                        result.Width = ctrl.Left;
                    }

                    if (result.Height < ctrl.Bottom)
                    {
                        result.Height = ctrl.Bottom;
                    }
                }
            }

            result.Width  += contentAreaPadding.Horizontal;
            result.Height += contentAreaPadding.Vertical;
            return(result);
        }
Ejemplo n.º 9
0
        public MAN009LView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl     = x_tabPageControl;
                btnNuevo.Click    += new EventHandler(btnNuevo_Click);
                btnBuscar.Click   += new EventHandler(btnBuscar_Click);
                btnExportar.Click += new EventHandler(btnExportar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);
                //PAra el menejo de (filro y ordenamiendo de) grillas

                this.grdItems.SortChanged   += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(grdItems_SortChanged);
                this.grdItems.FilterChanged += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(grdItems_FilterChanged);
                grdItems.CellFormatting     += grdItems_CellFormatting;
                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);
                grdItems.CommandCellClick  += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                TitleView.FormClose        += new EventHandler(TitleView_FormClose);
                if (Presenter != null)
                {
                    TitleView.Caption = "MANTENIMIENTO DE " + Presenter.tipe_Desc;
                }
            }
            catch (Exception ex)
            { }
        }
Ejemplo n.º 10
0
        public MAN006LView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnMAN_Nuevo.Click    += new EventHandler(btnNuevo_Click);
                btnMAN_Buscar.Click   += new EventHandler(btnBuscar_Click);
                btnMAN_Exportar.Click += new EventHandler(btnExportar_Click);
                btnMAN_Deshacer.Click += new EventHandler(btnDeshacer_Click);

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                cmbMAN.SelectedIndexChanged += cmbMAN_SelectedIndexChanged;

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting   += grdItems_CellFormatting;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);
            }
            catch (Exception)
            { }
        }
Ejemplo n.º 11
0
        public override void SetChildIndex(Control child, int newIndex)
        {
            //unwanted index changes may occur due to internal z-order update, so allow only intended ones.
            if (!this.owner.AllowPageIndexChange)
            {
                return;
            }

            this.owner.DisablePageIndexChange();

            RadPageViewPage page = child as RadPageViewPage;

            this.ValidatePage(page);

            int currentIndex = this.IndexOf(page);

            if (this.suspendOwnerNotify == 0)
            {
                RadPageViewIndexChangingEventArgs args = new RadPageViewIndexChangingEventArgs(page, newIndex, currentIndex);
                this.owner.OnPageIndexChanging(args);

                if (args.Cancel)
                {
                    return;
                }
            }

            base.SetChildIndex(child, newIndex);

            if (this.suspendOwnerNotify == 0)
            {
                this.owner.OnPageIndexChanged(new RadPageViewIndexChangedEventArgs(page, currentIndex, newIndex));
            }
        }
Ejemplo n.º 12
0
        protected void UpdateUI()
        {
            RadPageViewPage currentSelected = this.SelectedPage;

            if (this.viewElement != null)
            {
                this.viewElement.Dispose();
            }

            this.viewElement       = this.CreateUI();
            this.viewElement.Owner = this;

            this.SuspendEvents();
            foreach (RadPageViewPage page in this.pages)
            {
                this.viewElement.OnPageAdded(new RadPageViewEventArgs(page));
            }
            this.RootElement.Children.Add(this.viewElement);

            if (currentSelected != null)
            {
                this.SelectedPage = currentSelected;
            }

            this.ResumeEvents();
        }
Ejemplo n.º 13
0
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]

        public CAJ012IngresoLibreLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click  += new EventHandler(btnNuevo_Click);
                btnBuscar.Click += new EventHandler(btnBuscar_Click);

                btnExportar.Click += new EventHandler(btnExportar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);

                txtCCCT_Codigo.KeyPress += txtCCCT_Codigo_KeyPress;

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting   += grdItems_CellFormatting;

                cmbTIPE_Codigo.SelectedIndexChanged += cmbTIPE_Codigo_SelectedIndexChanged;
                TitleView.FormClose += new EventHandler(TitleView_FormClose);

                txtAsientoInicial.MaxLength = 20;
                txtAsientoCompras.MaxLength = 20;
                txtNumDoc.MaxLength         = 20;
                txtHBL.MaxLength            = 50;
                txtMBL.MaxLength            = 50;
                txtCCCT_Serie.MaxLength     = 20;
                txtCCCT_Numero.MaxLength    = 20;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 14
0
 private void ValidatePage(RadPageViewPage page)
 {
     if (page == null)
     {
         throw new ArgumentException("RadPageView accepts only RadPageViewPage instances as child controls");
     }
 }
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ004ChequesEnBlancoLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click    += new EventHandler(btnNuevo_Click);
                btnBuscar.Click   += new EventHandler(btnBuscar_Click);
                btnDeshacer.Click += new EventHandler(btnDeshacer_Click);
                btnExportar.Click += new EventHandler(btnExportar_Click);
                txaCUBA_Codigo.SelectedItemCuentaBancariaChanged += txaCUBA_Codigo_SelectedItemCuentaBancariaChanged;
                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);
                grdItems.CellFormatting   += grdItems_CellFormatting;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);

                txtMOVI_Codigo.KeyPress += txtMOVI_Codigo_KeyPress;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 16
0
 public virtual void Detach()
 {
     if (this.page != null)
     {
         this.page.Item = null;
         this.page      = null;
     }
 }
Ejemplo n.º 17
0
 public virtual void Detach()
 {
     if (this.page == null)
     {
         return;
     }
     this.page.Item = (RadPageViewItem)null;
     this.page      = (RadPageViewPage)null;
 }
 public RadPageViewPageAccessibilityObject(
     RadPageViewPage owner,
     RadPageViewAccessibilityObject parent,
     string name)
     : base((Control)owner, name)
 {
     this.owner  = owner;
     this.parent = parent;
 }
Ejemplo n.º 19
0
 public override void Attach(RadPageViewPage page)
 {
     base.Attach(page);
     if (page.Owner == null || !page.Owner.IsHandleCreated)
     {
         return;
     }
     this.Page.Visible = this.IsExpanded;
 }
Ejemplo n.º 20
0
        //private String m_sortColumnName;
        //private Boolean m_sortAscending = false;
        #endregion

        #region [ Formulario ]
        public CAJ006LiquidacionAgentesLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnNuevo.Click     += new EventHandler(btnNuevo_Click);
                btnAprobar.Click   += btnAprobar_Click;
                btnConciliar.Click += btnConciliar_Click;
                btnExportar.Click  += btnExportar_Click;

                btnLiquidar.Click             += btnLiquidar_Click;
                btnImportarLiquidacion.Click  += btnImportarLiquidacion_Click;
                btnImportarLiquidacion.Visible = false;
                btnAnular.Click               += btnAnular_Click;
                btnImprimir.Click             += btnImprimir_Click;
                btnExportarNoProcesados.Click += btnExportarNoProcesados_Click;

                btnAprobar.Enabled           = false;
                btnConciliar.Enabled         = false;
                btnAnular.Enabled            = false;
                btnImprimir.Enabled          = false;
                btnLiquidar.Enabled          = false;
                chkIncluirPendientes.Checked = true;
                pgbBase.Visible = false;

                txaLIQU_Codigo.AyudaValueChanged += txaLIQU_Codigo_AyudaValueChanged;

                BSItems = new BindingSource();
                BSItems.CurrentItemChanged += new EventHandler(BSItems_CurrentItemChanged);

                grdItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(grdItems_CommandCellClick);

                TitleView.FormClose += new EventHandler(TitleView_FormClose);

                pnlTitleDatosCancelacion.Visible = false;
                tlpDatosCancelacion.Visible      = false;

                txaLIQU_Codigo.Tag = "LIQU_CodigoMSGERROR";
                txtLIQU_Glosa.Tag  = "LIQU_GlosaMSGERROR";
                dtpLIQU_Fecha.Tag  = "LIQU_FechaMSGERROR";
                cmbLIQU_Estado.Tag = "LIQU_EstadoMSGERROR";
                txaENTC_Codigo.Tag = "ENTC_CodigoMSGERROR";

                spcBase.Panel2Collapsed             = true;
                spcResultado.Panel2Collapsed        = true;
                txtObservaciones.ReadOnly           = true;
                txtObservaciones.WordWrap           = false;
                txaENTC_Codigo.SelectedItemChanged += txaENTC_Codigo_SelectedItemChanged;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 21
0
 public void EnsurePageVisible(RadPageViewPage page)
 {
     if (page == null)
     {
         throw new ArgumentNullException("Page");
     }
     if (page.Owner != this)
     {
         throw new InvalidOperationException("Page is not owned by this view.");
     }
     this.viewElement.EnsureItemVisible(page.Item);
 }
Ejemplo n.º 22
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     if (this.Owner != null && this.Owner.Owner != null)
     {
         RadPageViewPage selectedPage = this.Owner.Owner.SelectedPage;
         if (selectedPage != null && selectedPage.HasFocusedChildControl())
         {
             return;
         }
     }
     this.dragStart = e.Location;
     this.owner.OnItemMouseDown(this, e);
 }
Ejemplo n.º 23
0
        protected virtual void UpdatePageBounds(RadPageViewPage page)
        {
            if (this.ElementState != ElementState.Loaded)
            {
                return;
            }

            Rectangle bounds = this.GetContentAreaRectangle();

            if (page.Bounds != bounds)
            {
                page.Bounds = bounds;
            }
        }
Ejemplo n.º 24
0
        protected internal virtual void OnContentBoundsChanged()
        {
            if (this.owner == null || this.BitState[ArrangeInProgressStateKey])
            {
                return;
            }

            RadPageViewPage page = this.owner.SelectedPage;

            if (page != null)
            {
                this.UpdatePageBounds(page);
            }
        }
Ejemplo n.º 25
0
        protected override void OnLoaded()
        {
            base.OnLoaded();

            if (this.owner == null)
            {
                return;
            }

            RadPageViewPage selectedPage = this.owner.SelectedPage;

            if (selectedPage != null)
            {
                selectedPage.Visible = true;
            }
        }
Ejemplo n.º 26
0
 public REP009FlujoCajaLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
 {
     InitializeComponent();
     try
     {
         TabPageControl       = x_tabPageControl;
         TitleView.FormClose += new EventHandler(TitleView_FormClose);
         txaCUBA_Codigo.SelectedItemCuentaBancariaChanged += txaCUBA_Codigo_SelectedItemCuentaBancariaChanged;
         btnEnviarExcel.Click  += btnEnviarExcel_Click;
         btnReporte.Click      += btnReporte_Click;
         cmbTIPO_CodMND.Enabled = false;
         cmbTIPO_CodBCO.Enabled = false;
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
 }
Ejemplo n.º 27
0
        public OPE007LView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnSincronizar.Click += new EventHandler(btnSincronizar_Click);
                btnDeshacer.Click    += new EventHandler(btnDeshacer_Click);
                btnArchivo.Click     += new EventHandler(btnArchivo_Click);
                TitleView.FormClose  += new EventHandler(View_FormClose);
                BSItemsNoEncontrados  = new BindingSource();
                BSItemsFleteDiferente = new BindingSource();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error al crear la vista.", ex); }
        }
Ejemplo n.º 28
0
 public PRO005LView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
 {
     InitializeComponent();
     try
     {
         TabPageControl                     = x_tabPageControl;
         BSItems                            = new BindingSource();
         BSItems.CurrentItemChanged        += new EventHandler(BSItems_CurrentItemChanged);
         BSItemsDetalle                     = new BindingSource();
         BSItemsDetalle.CurrentItemChanged += new EventHandler(BSItemsDetalle_CurrentItemChanged);
         grdItemsDetalle.RowValidating     += grdItemsDetalle_RowValidating;
         btnForward.Click                  += BtnForward_AyudaClick;
         TitleView.FormClose               += TitleView_FormClose;
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.ConstructorView, ex); }
 }
Ejemplo n.º 29
0
        public CAJ018AsientosStatementLView(Telerik.WinControls.UI.RadPageViewPage x_tabPageControl)
        {
            InitializeComponent();
            try
            {
                TabPageControl = x_tabPageControl;

                btnDeshacer.Click         += new EventHandler(btnDeshacer_Click);
                btnProcesarAsientos.Click += btnProcesarAsientos_Click;
                btnBuscar.Click           += btnBuscar_Click;

                TitleView.FormClose += new EventHandler(TitleView_FormClose);

                BSItems = new BindingSource();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, "Ha ocurrido un error inicializando el formulario LView.", ex); }
        }
Ejemplo n.º 30
0
 public virtual void Attach(RadPageViewPage page)
 {
     this.page = page;
     if (this.page == null)
     {
         return;
     }
     this.page.Item        = this;
     this.Text             = this.page.Text;
     this.Title            = this.page.Title;
     this.Description      = this.page.Description;
     this.ToolTipText      = this.page.ToolTipText;
     this.Enabled          = this.page.Enabled;
     this.PageLength       = this.page.PageLength;
     this.IsContentVisible = this.page.IsContentVisible;
     this.page.UpdateItemStyle();
     this.page.CallBackColorChanged();
 }