protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
        {
            base.OnColumnPropertyChanged(e);
            GridViewCommandColumn columnInfo = (GridViewCommandColumn)this.ColumnInfo;

            if (e.Property == GridViewCommandColumn.ImageProperty)
            {
                this.button.Image = columnInfo.Image;
            }
            else if (e.Property == GridViewColumn.ImageLayoutProperty)
            {
                this.button.ImagePrimitive.ImageLayout = columnInfo.ImageLayout;
            }
            else if (e.Property == GridViewColumn.TextImageRelationProperty)
            {
                this.button.TextImageRelation = columnInfo.TextImageRelation;
            }
            else
            {
                if (e.Property != GridViewColumn.TextAlignmentProperty)
                {
                    return;
                }
                this.button.TextAlignment = columnInfo.TextAlignment;
            }
        }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                //commandColumn = new Telerik.WinControls.UI.GridViewCommandColumn();
                //commandColumn.Name = "Delete";
                //commandColumn.HeaderText = "Eliminar";
                //commandColumn.DefaultText = "Eliminar";
                //commandColumn.UseDefaultText = true;
                //this.grdItems.Columns.Add(commandColumn);
                //this.grdItems.Columns["Delete"].AllowSort = false;
                //this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("MOVI_Codigo", "Interno", "MOVI_Codigo");
                this.grdItems.Columns.Add("TIPO_MOV", "Tipo Movimiento", "TIPO_MOV");
                this.grdItems.Columns.Add("MOVI_Numero", "Nro. Cheque", "MOVI_Numero");
                this.grdItems.Columns.Add("CUBA_Codigo", "Código", "CUBA_Codigo");
                this.grdItems.Columns.Add("CUBA_NroCuenta", "Nro. Cuenta", "CUBA_NroCuenta");
                this.grdItems.Columns.Add("MOVI_FecEmision", "Fecha Emisión", "MOVI_FecEmision");
                this.grdItems.Columns.Add("TIPO_MND", "Moneda", "TIPO_MND");
                this.grdItems.Columns.Add("ENTC_DocIden", "RUC Entidad", "ENTC_DocIden");
                this.grdItems.Columns.Add("ENTC_RazonSocial", "Entidad", "ENTC_RazonSocial");

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#3
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("TIPO_TDO", "Tipo Documento", "TIPO_TDO");
                this.grdItems.Columns.Add("SERI_Serie", "Serie", "SERI_Serie");
                this.grdItems.Columns.Add("SERI_MaxItems", "Nro. Items", "SERI_MaxItems");
                this.grdItems.Columns.Add("SERI_NumInicial", "Nro. Inicial", "SERI_NumInicial");
                this.grdItems.Columns.Add("SERI_NumFinal", "Nro. Final", "SERI_NumFinal");
                this.grdItems.Columns.Add("SERI_UltNumero", "Ult. Número", "SERI_UltNumero");
                this.grdItems.Columns.Add("SERI_Desc", "Descripción", "SERI_Desc");
                //this.grdItems.Columns.Add("SERI_UnidadNegocio_text", "Unidad de Negocio", "SERI_UnidadNegocio_text");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];

                //Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        protected override void UpdateInfoCore()
        {
            base.UpdateInfoCore();
            GridViewCommandColumn columnInfo = this.ColumnInfo as GridViewCommandColumn;

            if (columnInfo == null)
            {
                return;
            }
            this.button.Image             = columnInfo.Image;
            this.button.ImageAlignment    = columnInfo.ImageAlignment;
            this.button.TextImageRelation = columnInfo.TextImageRelation;
            this.button.TextAlignment     = columnInfo.TextAlignment;
        }
        protected override void SetContentCore(object value)
        {
            GridViewCommandColumn columnInfo = this.ColumnInfo as GridViewCommandColumn;

            if (columnInfo == null)
            {
                return;
            }
            if (columnInfo.UseDefaultText)
            {
                this.button.Text = columnInfo.DefaultText;
            }
            else
            {
                this.button.Text = value == null ? string.Empty : this.ApplyFormatString(value);
            }
        }
示例#6
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("FLUJ_Codigo", "Código", "FLUJ_Codigo");
                this.grdItems.Columns.Add("FLUJ_Glosa", "Glosa", "FLUJ_Glosa");
                this.grdItems.Columns.Add("FLUJ_TipoFlujo_Text", "Tipo Flujo", "FLUJ_TipoFlujo_Text");
                this.grdItems.Columns.Add("FLUJ_TipoMovimiento_Text", "Tipo Movimiento", "FLUJ_TipoMovimiento_Text");

                grdItems.BestFitColumns();

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Extornar";
                commandColumn.HeaderText     = "Extornar";
                commandColumn.DefaultText    = "Extornar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Extornar"].AllowSort      = false;
                this.grdItems.Columns["Extornar"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Nullable";
                commandColumn.HeaderText     = "Anular";
                commandColumn.DefaultText    = "Anular";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Nullable"].AllowSort      = false;
                this.grdItems.Columns["Nullable"].AllowFiltering = false;

                this.grdItems.Columns.Add("MOVI_FecEmision", "Fecha Emisión", "MOVI_FecEmision");
                this.grdItems.Columns.Add("MOVI_NroOperacion", "Nro. Operación", "MOVI_NroOperacion");
                this.grdItems.Columns.Add("TIPO_MOV", "Tipo Movimiento", "TIPO_MOV");
                this.grdItems.Columns.Add("Monto", "Monto", "Monto");
                this.grdItems.Columns.Add("MOVI_TipoCambio", "Tipo de Cambio", "MOVI_TipoCambio");
                this.grdItems.Columns.Add("ENTC_DocIden", "R.U.C. / D.N.I.", "ENTC_DocIden");
                this.grdItems.Columns.Add("ENTC_RazonSocial", "Cliente / Proveedor", "ENTC_RazonSocial");
                this.grdItems.Columns.Add("MOVI_Concepto", "Concepto", "MOVI_Concepto");
                //this.grdItems.Columns.Add("MOVI_FecDiferido", "Fecha Diferido", "MOVI_FecDiferido");
                //this.grdItems.Columns.Add("Documentos", "Documentos", "Documentos");
                //this.grdItems.Columns.Add("OrdenVenta", "Orden de Venta", "OrdenVenta");
                this.grdItems.Columns.Add("NEstado", "Estado", "NEstado");
                this.grdItems.Columns.Add("MOVI_Codigo", "Código", "MOVI_Codigo");
                this.grdItems.Columns.Add("PLAN_Codigo", "Cod. Planilla", "PLAN_Codigo");
                this.grdItems.Columns.Add("Extornado_Text", "Extornado", "Extornado_Text");
                this.grdItems.Columns.Add("Transferencia_Text", "Transferencia", "Transferencia_Text");
                this.grdItems.Columns.Add("Diferido_Text", "Diferido", "Diferido_Text");
                this.grdItems.Columns.Add("ChequeEnBlanco_Text", "Cheque en Blanco", "ChequeEnBlanco_Text");

                this.grdItems.Columns["Extornado_Text"].TextAlignment      = ContentAlignment.MiddleCenter;
                this.grdItems.Columns["Transferencia_Text"].TextAlignment  = ContentAlignment.MiddleCenter;
                this.grdItems.Columns["Diferido_Text"].TextAlignment       = ContentAlignment.MiddleCenter;
                this.grdItems.Columns["ChequeEnBlanco_Text"].TextAlignment = ContentAlignment.MiddleCenter;

                //Telerik.WinControls.UI.GridViewCheckBoxColumn checkColumn;
                //checkColumn = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                //checkColumn.Name = "Extornado";
                //checkColumn.FieldName = "Extornado";
                //checkColumn.HeaderText = "Extornado";
                //checkColumn.ReadOnly = false;
                //this.grdItems.Columns.Add(checkColumn);


                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ReadOnly         = true;
                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#8
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                //
                this.grdItems.Columns.Add("SERV_Codigo", "Interno", "SERV_Codigo");
                //this.grdItems.Columns.Add("SERV_CodSAP", "Código SAP", "SERV_CodSAP");
                this.grdItems.Columns.Add("SERV_CodUnificador", "Unificador", "SERV_CodUnificador");
                this.grdItems.Columns.Add("CONS_DescRGM", "Regimen", "CONS_DescRGM");
                this.grdItems.Columns.Add("CONS_DescVIA", "Via", "CONS_DescVIA");
                this.grdItems.Columns.Add("CONS_DescLNG", "Linea de Negocio", "CONS_DescLNG");

                this.grdItems.Columns.Add("SERV_NombreCorto", "Nombre Corto", "SERV_NombreCorto");
                //
                this.grdItems.Columns.Add("SERV_Nombre_SPA", "Nombre Español", "SERV_Nombre_SPA");
                this.grdItems.Columns.Add("SERV_Nombre_ENG", "Nombre Ingles", "SERV_Nombre_ENG");
                //
                this.grdItems.Columns.Add("SERV_Glosa", "Glosa", "SERV_Glosa");
                //this.grdItems.Columns.Add("CONS_DescLNG", "Línea de Negocio", "CONS_DescLNG");
                this.grdItems.Columns.Add("SERV_TipoMov", "Movimiento", "SERV_TipoMov");
                //
                this.grdItems.Columns.Add("SERV_CuenIngreso", "Cuenta de Venta", "SERV_CuenIngreso");
                this.grdItems.Columns.Add("SERV_CuenCosto", "Cuenta de Gasto", "SERV_CuenCosto");
                //this.grdItems.Columns.Add("SERV_CueVta", "Cuenta de Venta", "SERV_CueVta");
                //this.grdItems.Columns.Add("SERV_CueGas", "Cuenta de Gasto", "SERV_CueGas");
                this.grdItems.Columns.Add("SERV_CuenPuente", "Cuenta Puente", "SERV_CuenPuente");
                //this.grdItems.Columns.Add("SERV_Agrup1", "Agrupación 1", "SERV_Agrup1");
                //this.grdItems.Columns.Add("SERV_Agrup2", "Agrupación 2", "SERV_Agrup2");

                //this.grdItems.Columns.Add("SERV_AfeIgv", "Afecto I.G.V:", "SERV_AfeIgv");
                GridViewCheckBoxColumn checkboxColum;
                checkboxColum            = new GridViewCheckBoxColumn();
                checkboxColum.Name       = "SERV_AfeIgv";
                checkboxColum.HeaderText = "Afecto I.G.V";
                checkboxColum.FieldName  = "SERV_AfeIgv";
                grdItems.Columns.Add(checkboxColum);
                grdItems.Columns["SERV_AfeIgv"].Width = 90;

                //this.grdItems.Columns.Add("SERV_AfeDet", "Afecto Detracción", "SERV_AfeDet");
                checkboxColum            = new GridViewCheckBoxColumn();
                checkboxColum.Name       = "SERV_AfeDet";
                checkboxColum.HeaderText = "Afecto Detracción";
                checkboxColum.FieldName  = "SERV_AfeDet";
                grdItems.Columns.Add(checkboxColum);
                grdItems.Columns["SERV_AfeDet"].Width = 90;

                this.grdItems.Columns.Add("SERV_PorDet", "Procentaje Deterioro", "SERV_PorDet");
                this.grdItems.Columns.Add("TIPO_DescDET", "Tipo de Detracción", "TIPO_DescDET");
                //
                this.grdItems.Columns.Add("CONS_DescBAS", "Base de Cálculo", "CONS_DescBAS");
                this.grdItems.Columns.Add("TIPO_DescMND", "Moneda", "TIPO_DescMND");
                //
                this.grdItems.Columns.Add("SERV_Valor", "Valor de Servicio", "SERV_Valor");
                this.grdItems.Columns.Add("SERV_CobMin", "Cobro Mínimno", "SERV_CobMin");
                //this.grdItems.Columns.Add("SERV_FrecFac", "FrecFac", "SERV_FrecFac");
                this.grdItems.Columns.Add("SERV_DefinidoPor", "Definido Por", "SERV_DefinidoPor");
                this.grdItems.Columns.Add("SERV_Observaciones", "Observaciones", "SERV_Observaciones");
                this.grdItems.Columns.Add("Documentos", "Documentos", "Documentos");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
     this.splitContainer1      = new System.Windows.Forms.SplitContainer();
     this.tableLayoutPanel1    = new System.Windows.Forms.TableLayoutPanel();
     this.PresupuestoPager     = new Framework.WinForm.Controls.MetroPager();
     this.tableLayoutPanel2    = new System.Windows.Forms.TableLayoutPanel();
     this.UcFiltrosPresupuesto = new LaPaz.Win.Forms.Presupuesto.UcFiltrosPresupuesto();
     this.UcProgressSpinner    = new LaPaz.Win.Forms.Util.UcProgressSpinner();
     this.GridPresupuestos     = new Telerik.WinControls.UI.RadGridView();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos.MasterTemplate)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel      = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.IsSplitterFixed = true;
     this.splitContainer1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name            = "splitContainer1";
     this.splitContainer1.Orientation     = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.GridPresupuestos);
     this.splitContainer1.Size             = new System.Drawing.Size(1506, 920);
     this.splitContainer1.SplitterDistance = 220;
     this.splitContainer1.TabIndex         = 0;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Controls.Add(this.PresupuestoPager, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 2;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1506, 220);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // PresupuestoPager
     //
     this.PresupuestoPager.Anchor             = System.Windows.Forms.AnchorStyles.Right;
     this.PresupuestoPager.CurrentPage        = 1;
     this.PresupuestoPager.Location           = new System.Drawing.Point(1125, 163);
     this.PresupuestoPager.Name               = "PresupuestoPager";
     this.PresupuestoPager.PageSize           = 50;
     this.PresupuestoPager.PageTotal          = 1;
     this.PresupuestoPager.RefreshAction      = null;
     this.PresupuestoPager.RefreshActionAsync = null;
     this.PresupuestoPager.Size               = new System.Drawing.Size(378, 39);
     this.PresupuestoPager.TabIndex           = 10;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
     this.tableLayoutPanel2.Controls.Add(this.UcFiltrosPresupuesto, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.UcProgressSpinner, 1, 0);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(1500, 140);
     this.tableLayoutPanel2.TabIndex = 12;
     //
     // UcFiltrosPresupuesto
     //
     this.UcFiltrosPresupuesto.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.UcFiltrosPresupuesto.Location     = new System.Drawing.Point(3, 3);
     this.UcFiltrosPresupuesto.Name         = "UcFiltrosPresupuesto";
     this.UcFiltrosPresupuesto.Size         = new System.Drawing.Size(1194, 134);
     this.UcFiltrosPresupuesto.TabIndex     = 13;
     this.UcFiltrosPresupuesto.TextoABuscar = "";
     //
     // UcProgressSpinner
     //
     this.UcProgressSpinner.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.UcProgressSpinner.Location = new System.Drawing.Point(1335, 3);
     this.UcProgressSpinner.Name     = "UcProgressSpinner";
     this.UcProgressSpinner.Size     = new System.Drawing.Size(162, 27);
     this.UcProgressSpinner.TabIndex = 11;
     //
     // GridPresupuestos
     //
     this.GridPresupuestos.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.GridPresupuestos.Font     = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.GridPresupuestos.Location = new System.Drawing.Point(0, 0);
     this.GridPresupuestos.Margin   = new System.Windows.Forms.Padding(5);
     //
     // GridPresupuestos
     //
     this.GridPresupuestos.MasterTemplate.AllowAddNewRow      = false;
     this.GridPresupuestos.MasterTemplate.AllowColumnReorder  = false;
     this.GridPresupuestos.MasterTemplate.AllowDeleteRow      = false;
     this.GridPresupuestos.MasterTemplate.AllowDragToGroup    = false;
     this.GridPresupuestos.MasterTemplate.AllowEditRow        = false;
     this.GridPresupuestos.MasterTemplate.AllowRowResize      = false;
     this.GridPresupuestos.MasterTemplate.AutoGenerateColumns = false;
     this.GridPresupuestos.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
     gridViewTextBoxColumn1.FieldName     = "FechaAlta";
     gridViewTextBoxColumn1.FormatString  = "{0: dd/M/yyyy}";
     gridViewTextBoxColumn1.HeaderText    = "Fecha Alta";
     gridViewTextBoxColumn1.MinWidth      = 100;
     gridViewTextBoxColumn1.Name          = "FechaAlta";
     gridViewTextBoxColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     gridViewTextBoxColumn1.Width         = 218;
     gridViewTextBoxColumn2.FieldName     = "LCN";
     gridViewTextBoxColumn2.HeaderText    = "LCN";
     gridViewTextBoxColumn2.Name          = "LCN";
     gridViewTextBoxColumn2.Width         = 105;
     gridViewTextBoxColumn3.FieldName     = "ClienteDenominacion";
     gridViewTextBoxColumn3.HeaderText    = "Cliente";
     gridViewTextBoxColumn3.MinWidth      = 200;
     gridViewTextBoxColumn3.Name          = "ClienteDenominacion";
     gridViewTextBoxColumn3.Width         = 422;
     gridViewTextBoxColumn4.FieldName     = "Concepto";
     gridViewTextBoxColumn4.HeaderText    = "Concepto";
     gridViewTextBoxColumn4.MinWidth      = 130;
     gridViewTextBoxColumn4.Name          = "Concepto";
     gridViewTextBoxColumn4.Width         = 279;
     gridViewTextBoxColumn5.FieldName     = "Descuento";
     gridViewTextBoxColumn5.FormatString  = "{0:N2}";
     gridViewTextBoxColumn5.HeaderText    = "Descuento";
     gridViewTextBoxColumn5.MinWidth      = 100;
     gridViewTextBoxColumn5.Name          = "Descuento";
     gridViewTextBoxColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn5.Width         = 218;
     gridViewTextBoxColumn6.FieldName     = "Total";
     gridViewTextBoxColumn6.FormatString  = "{0:N2}";
     gridViewTextBoxColumn6.HeaderText    = "Total";
     gridViewTextBoxColumn6.MinWidth      = 100;
     gridViewTextBoxColumn6.Name          = "Total";
     gridViewTextBoxColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn6.Width         = 218;
     gridViewCommandColumn1.HeaderText    = "";
     gridViewCommandColumn1.Image         = global::LaPaz.Win.Properties.Resources.Print_16x16;
     gridViewCommandColumn1.MaxWidth      = 30;
     gridViewCommandColumn1.MinWidth      = 30;
     gridViewCommandColumn1.Name          = "Imprimir";
     gridViewCommandColumn1.Width         = 30;
     this.GridPresupuestos.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
         gridViewTextBoxColumn1,
         gridViewTextBoxColumn2,
         gridViewTextBoxColumn3,
         gridViewTextBoxColumn4,
         gridViewTextBoxColumn5,
         gridViewTextBoxColumn6,
         gridViewCommandColumn1
     });
     this.GridPresupuestos.MasterTemplate.EnableGrouping = false;
     this.GridPresupuestos.Name              = "GridPresupuestos";
     this.GridPresupuestos.ReadOnly          = true;
     this.GridPresupuestos.Size              = new System.Drawing.Size(1506, 696);
     this.GridPresupuestos.TabIndex          = 8;
     this.GridPresupuestos.ThemeName         = "TelerikMetroBlue";
     this.GridPresupuestos.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridPresupuestos_CommandCellClick);
     //
     // FrmPresupuestoListado
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScroll          = true;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(1506, 920);
     this.Controls.Add(this.splitContainer1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FrmPresupuestoListado";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.Text  = "Presupuestos Historial";
     this.Load += new System.EventHandler(this.FrmVentasListado_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos.MasterTemplate)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;

                GridViewCommandColumn commandColumn;
                commandColumn                = new GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                Telerik.WinControls.UI.GridViewCommandColumn _proveedor = new Telerik.WinControls.UI.GridViewCommandColumn();

                this.grdItems.Columns.Add("CUEN_Codigo", "Cuenta", "CUEN_Codigo");
                this.grdItems.Columns.Add("DETP_Glosa", "Glosa", "DETP_Glosa");
                this.grdItems.Columns.Add("CENT_Codigo", "Centro Costo", "CENT_Codigo");
                Telerik.WinControls.UI.GridViewDecimalColumn _debe = new Telerik.WinControls.UI.GridViewDecimalColumn();
                _debe.Name          = "DETP_DebePorc";
                _debe.HeaderText    = "Debe";
                _debe.FieldName     = "DETP_DebePorc";
                _debe.DecimalPlaces = 2;
                _debe.Maximum       = 999;
                _debe.Minimum       = 0;
                _debe.FormatString  = "{0:#0.00}";
                this.grdItems.Columns.Add(_debe);

                Telerik.WinControls.UI.GridViewDecimalColumn _haber = new Telerik.WinControls.UI.GridViewDecimalColumn();
                _haber.Name          = "DETP_HaberPorc";
                _haber.HeaderText    = "Haber";
                _haber.FieldName     = "DETP_HaberPorc";
                _haber.DecimalPlaces = 2;
                _haber.Maximum       = 999;
                _haber.Minimum       = 0;
                _haber.FormatString  = "{0:#0.00}";
                this.grdItems.Columns.Add(_haber);

                grdItems.BestFitColumns();
                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
                grdItems.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;

                this.grdItems.SelectionMode = Telerik.WinControls.UI.GridViewSelectionMode.CellSelect;
                this.grdItems.MultiSelect   = false;

                this.grdItems.ShowFilteringRow = false;
                this.grdItems.EnableFiltering  = false;
                this.grdItems.MasterTemplate.EnableFiltering = false;
                this.grdItems.EnableGrouping = false;
                this.grdItems.MasterTemplate.EnableGrouping = false;
                this.grdItems.EnableSorting = false;
                this.grdItems.MasterTemplate.EnableCustomSorting = false;

                this.grdItems.ReadOnly     = false;
                this.grdItems.AllowEditRow = true;

                this.grdItems.Columns["CUEN_Codigo"].ReadOnly    = false;
                this.grdItems.Columns["DETP_Glosa"].ReadOnly     = false;
                this.grdItems.Columns["CENT_Codigo"].ReadOnly    = false;
                this.grdItems.Columns["DETP_DebePorc"].ReadOnly  = false;
                this.grdItems.Columns["DETP_HaberPorc"].ReadOnly = false;

                this.grdItems.Columns["CUEN_Codigo"].Width    = 70;
                this.grdItems.Columns["DETP_Glosa"].Width     = 200;
                this.grdItems.Columns["DETP_DebePorc"].Width  = 80;
                this.grdItems.Columns["DETP_HaberPorc"].Width = 80;
                this.grdItems.Columns["CENT_Codigo"].Width    = 80;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView + " (Grid Servicios)", ex); }
        }
示例#11
0
        /// <summary>
        /// Dar Formato a la Grilla
        /// </summary>
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;

                commandColumn                = new GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("CUBA_Codigo", "Código", "CUBA_Codigo");
                this.grdItems.Columns.Add("TipoCuenta", "Tipo de Cuenta", "TipoCuenta");
                this.grdItems.Columns.Add("CUBA_NroCuenta", "Número de Cuenta", "CUBA_NroCuenta");
                this.grdItems.Columns.Add("TIPO_MND", "Moneda", "TIPO_MND");
                this.grdItems.Columns.Add("TIPO_BCO", "Banco", "TIPO_BCO");

                this.grdItems.Columns.Add("CUBA_Descripcion", "Descripción", "CUBA_Descripcion");

                Telerik.WinControls.UI.GridViewCheckBoxColumn _CUBA_Bloqueo = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CUBA_Bloqueo.Name       = "CUBA_Bloqueo";
                _CUBA_Bloqueo.HeaderText = "Bloqueo";
                _CUBA_Bloqueo.FieldName  = "CUBA_Bloqueo";
                this.grdItems.Columns.Add(_CUBA_Bloqueo);

                Telerik.WinControls.UI.GridViewCheckBoxColumn _CUBA_PermChequeBlanco = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CUBA_PermChequeBlanco.Name       = "CUBA_PermChequeBlanco";
                _CUBA_PermChequeBlanco.HeaderText = "Permitir Cheque en Blanco";
                _CUBA_PermChequeBlanco.FieldName  = "CUBA_PermChequeBlanco";
                this.grdItems.Columns.Add(_CUBA_PermChequeBlanco);

                Telerik.WinControls.UI.GridViewCheckBoxColumn _CheckBox = new Telerik.WinControls.UI.GridViewCheckBoxColumn();

                this.grdItems.Columns.Add("CUBA_CuenContable", "Cta. Contable", "CUBA_CuenContable");
                this.grdItems.Columns.Add("CUBA_CuenPuente", "Cta. Puente", "CUBA_CuenPuente");

                _CheckBox            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CheckBox.Name       = "CUBA_CtaEmprVinculada";
                _CheckBox.HeaderText = "Empr. Vinculada";
                _CheckBox.FieldName  = "CUBA_CtaEmprVinculada";
                this.grdItems.Columns.Add(_CheckBox);

                _CheckBox            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CheckBox.Name       = "CUBA_PermImprAutomatica";
                _CheckBox.HeaderText = "Impr. Automática";
                _CheckBox.FieldName  = "CUBA_PermImprAutomatica";
                this.grdItems.Columns.Add(_CheckBox);

                _CheckBox            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CheckBox.Name       = "CUBA_MedioVirtual";
                _CheckBox.HeaderText = "Medio Virtual";
                _CheckBox.FieldName  = "CUBA_MedioVirtual";
                this.grdItems.Columns.Add(_CheckBox);

                _CheckBox            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _CheckBox.Name       = "CUBA_InscritoSOL";
                _CheckBox.HeaderText = "Detracciones";
                _CheckBox.FieldName  = "CUBA_InscritoSOL";
                this.grdItems.Columns.Add(_CheckBox);

                this.grdItems.Columns.Add("SUCR_Desc", "Sucursal", "SUCR_Desc");
                this.grdItems.Columns.Add("CUBA_FechaCierre", "Fecha Cierre", "CUBA_FechaCierre");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#12
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                this.grdItems.Columns.Add("TIPO_DescPais", "País", "TIPO_DescPais");
                this.grdItems.Columns.Add("PUER_CodEstandar", "Código Estandar", "PUER_CodEstandar");
                this.grdItems.Columns.Add("PUER_Nombre", "Nombre", "PUER_Nombre");
                this.grdItems.Columns.Add("PUER_CodAduana", "Codigo Aduana", "PUER_CodAduana");

                Telerik.WinControls.UI.GridViewCheckBoxColumn _favorito = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _favorito.Name       = "PUER_Favorito";
                _favorito.HeaderText = "Favorito";
                _favorito.FieldName  = "PUER_Favorito";
                this.grdItems.Columns.Add(_favorito);
                //this.grdItems.Columns.Add("PUER_Favorito", "Favorito", "PUER_Favorito");

                Telerik.WinControls.UI.GridViewCheckBoxColumn _activo = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                _activo.Name       = "PUER_Activo";
                _activo.HeaderText = "Activo";
                _activo.FieldName  = "PUER_Activo";
                this.grdItems.Columns.Add(_activo);
                //this.grdItems.Columns.Add("PUER_Activo", "Activo", "PUER_Activo");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#13
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2 = new Telerik.WinControls.UI.GridViewCommandColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     this.btnSave = new Telerik.WinControls.UI.RadButton();
     this.btnNew = new Telerik.WinControls.UI.RadButton();
     this.radGroupBox6 = new Telerik.WinControls.UI.RadGroupBox();
     this.ucFilter1 = new ShayanDental.UserControls.UCFilter();
     this.grvItems = new Telerik.WinControls.UI.RadGridView();
     this.radGroupBox4 = new Telerik.WinControls.UI.RadGroupBox();
     this.cmbDrugs = new Telerik.WinControls.UI.RadMultiColumnComboBox();
     this.btnAdd = new Telerik.WinControls.UI.RadButton();
     this.btnSaveDrug = new Telerik.WinControls.UI.RadButton();
     this.radLabel2 = new Telerik.WinControls.UI.RadLabel();
     this.btnNewDrug = new Telerik.WinControls.UI.RadButton();
     this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
     this.grvDrugs = new Telerik.WinControls.UI.RadGridView();
     this.srcItem = new System.Windows.Forms.BindingSource(this.components);
     this.txtPreName = new Telerik.WinControls.UI.RadTextBox();
     this.radLabel20 = new Telerik.WinControls.UI.RadLabel();
     this.radLabel22 = new Telerik.WinControls.UI.RadLabel();
     this.txtManual = new Telerik.WinControls.UI.RadTextBox();
     this.srcDrug = new System.Windows.Forms.BindingSource(this.components);
     this.btnCancel = new Telerik.WinControls.UI.RadButton();
     ((System.ComponentModel.ISupportInitialize)(this.btnSave)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnNew)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox6)).BeginInit();
     this.radGroupBox6.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.grvItems)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox4)).BeginInit();
     this.radGroupBox4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.cmbDrugs)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnAdd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnSaveDrug)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnNewDrug)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.grvDrugs)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.srcItem)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPreName)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel20)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel22)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtManual)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.srcDrug)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).BeginInit();
     this.SuspendLayout();
     //
     // btnSave
     //
     this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSave.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnSave.Location = new System.Drawing.Point(540, 390);
     this.btnSave.Name = "btnSave";
     this.btnSave.Size = new System.Drawing.Size(120, 35);
     this.btnSave.TabIndex = 8;
     this.btnSave.Text = "ذخیره";
     this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
     //
     // btnNew
     //
     this.btnNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnNew.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnNew.Location = new System.Drawing.Point(6, 341);
     this.btnNew.Name = "btnNew";
     this.btnNew.Size = new System.Drawing.Size(120, 35);
     this.btnNew.TabIndex = 7;
     this.btnNew.Text = "نسخه جدید";
     this.btnNew.Click += new System.EventHandler(this.btnNew_Click);
     //
     // radGroupBox6
     //
     this.radGroupBox6.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.radGroupBox6.Controls.Add(this.ucFilter1);
     this.radGroupBox6.Controls.Add(this.grvItems);
     this.radGroupBox6.Font = new System.Drawing.Font("B Nazanin", 8.25F);
     this.radGroupBox6.FooterImageIndex = -1;
     this.radGroupBox6.FooterImageKey = "";
     this.radGroupBox6.HeaderImageIndex = -1;
     this.radGroupBox6.HeaderImageKey = "";
     this.radGroupBox6.HeaderMargin = new System.Windows.Forms.Padding(0);
     this.radGroupBox6.HeaderText = "نسخه ها";
     this.radGroupBox6.Location = new System.Drawing.Point(3, 3);
     this.radGroupBox6.Name = "radGroupBox6";
     this.radGroupBox6.Padding = new System.Windows.Forms.Padding(2, 18, 2, 2);
     this.radGroupBox6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.radGroupBox6.Size = new System.Drawing.Size(388, 423);
     this.radGroupBox6.TabIndex = 25;
     this.radGroupBox6.Text = "نسخه ها";
     //
     // ucFilter1
     //
     this.ucFilter1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.ucFilter1.Location = new System.Drawing.Point(5, 21);
     this.ucFilter1.Name = "ucFilter1";
     this.ucFilter1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.ucFilter1.Size = new System.Drawing.Size(378, 28);
     this.ucFilter1.TabIndex = 14;
     //
     // grvItems
     //
     this.grvItems.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.grvItems.AutoScroll = true;
     this.grvItems.Font = new System.Drawing.Font("B Nazanin", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.grvItems.Location = new System.Drawing.Point(5, 52);
     //
     // grvItems
     //
     this.grvItems.MasterTemplate.AllowAddNewRow = false;
     this.grvItems.MasterTemplate.AllowCellContextMenu = false;
     this.grvItems.MasterTemplate.AllowColumnChooser = false;
     this.grvItems.MasterTemplate.AllowColumnHeaderContextMenu = false;
     this.grvItems.MasterTemplate.AllowColumnReorder = false;
     this.grvItems.MasterTemplate.AllowDeleteRow = false;
     this.grvItems.MasterTemplate.AllowDragToGroup = false;
     this.grvItems.MasterTemplate.AllowEditRow = false;
     this.grvItems.MasterTemplate.AllowRowResize = false;
     this.grvItems.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
     gridViewTextBoxColumn1.FieldName = "Title";
     gridViewTextBoxColumn1.HeaderText = "نام نسخه";
     gridViewTextBoxColumn1.Name = "column1";
     gridViewTextBoxColumn1.Width = 328;
     gridViewCommandColumn1.AllowHide = false;
     gridViewCommandColumn1.AllowReorder = false;
     gridViewCommandColumn1.AllowResize = false;
     gridViewCommandColumn1.AllowSort = false;
     gridViewCommandColumn1.HeaderText = "حذف";
     gridViewCommandColumn1.Name = "column2";
     gridViewCommandColumn1.Width = 30;
     this.grvItems.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
     gridViewTextBoxColumn1,
     gridViewCommandColumn1});
     this.grvItems.MasterTemplate.EnableGrouping = false;
     this.grvItems.Name = "grvItems";
     this.grvItems.ReadOnly = true;
     //
     //
     //
     this.grvItems.RootElement.MinSize = new System.Drawing.Size(0, 0);
     this.grvItems.Size = new System.Drawing.Size(378, 361);
     this.grvItems.TabIndex = 13;
     this.grvItems.CellFormatting += new Telerik.WinControls.UI.CellFormattingEventHandler(this.grvItems_CellFormatting);
     this.grvItems.CurrentRowChanging += new Telerik.WinControls.UI.CurrentRowChangingEventHandler(this.grvItems_CurrentRowChanging);
     this.grvItems.SelectionChanged += new System.EventHandler(this.grvItems_SelectionChanged);
     this.grvItems.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.grvItems_CommandCellClick);
     this.grvItems.Click += new System.EventHandler(this.grvItems_SelectionChanged);
     this.grvItems.KeyDown += new System.Windows.Forms.KeyEventHandler(this.grvItems_KeyDown);
     //
     // radGroupBox4
     //
     this.radGroupBox4.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.radGroupBox4.CausesValidation = false;
     this.radGroupBox4.Controls.Add(this.cmbDrugs);
     this.radGroupBox4.Controls.Add(this.btnAdd);
     this.radGroupBox4.Controls.Add(this.btnNew);
     this.radGroupBox4.Controls.Add(this.btnSaveDrug);
     this.radGroupBox4.Controls.Add(this.radLabel2);
     this.radGroupBox4.Controls.Add(this.btnNewDrug);
     this.radGroupBox4.Controls.Add(this.radLabel1);
     this.radGroupBox4.Controls.Add(this.grvDrugs);
     this.radGroupBox4.Controls.Add(this.txtPreName);
     this.radGroupBox4.Controls.Add(this.radLabel20);
     this.radGroupBox4.Controls.Add(this.radLabel22);
     this.radGroupBox4.Controls.Add(this.txtManual);
     this.radGroupBox4.Font = new System.Drawing.Font("B Nazanin", 8.25F);
     this.radGroupBox4.FooterImageIndex = -1;
     this.radGroupBox4.FooterImageKey = "";
     this.radGroupBox4.HeaderImageIndex = -1;
     this.radGroupBox4.HeaderImageKey = "";
     this.radGroupBox4.HeaderMargin = new System.Windows.Forms.Padding(0);
     this.radGroupBox4.HeaderText = "تعریف";
     this.radGroupBox4.Location = new System.Drawing.Point(397, 3);
     this.radGroupBox4.Name = "radGroupBox4";
     this.radGroupBox4.Padding = new System.Windows.Forms.Padding(2, 18, 2, 2);
     this.radGroupBox4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.radGroupBox4.Size = new System.Drawing.Size(268, 380);
     this.radGroupBox4.TabIndex = 24;
     this.radGroupBox4.Text = "تعریف";
     //
     // cmbDrugs
     //
     this.cmbDrugs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     //
     // cmbDrugs.NestedRadGridView
     //
     this.cmbDrugs.EditorControl.BackColor = System.Drawing.SystemColors.Window;
     this.cmbDrugs.EditorControl.Cursor = System.Windows.Forms.Cursors.Default;
     this.cmbDrugs.EditorControl.Font = new System.Drawing.Font("B Nazanin", 9.3F);
     this.cmbDrugs.EditorControl.ForeColor = System.Drawing.SystemColors.ControlText;
     this.cmbDrugs.EditorControl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.cmbDrugs.EditorControl.Location = new System.Drawing.Point(0, 0);
     //
     // cmbDrugs.NestedRadGridView
     //
     this.cmbDrugs.EditorControl.MasterTemplate.AllowAddNewRow = false;
     this.cmbDrugs.EditorControl.MasterTemplate.AllowCellContextMenu = false;
     this.cmbDrugs.EditorControl.MasterTemplate.AllowColumnChooser = false;
     gridViewTextBoxColumn2.EnableExpressionEditor = false;
     gridViewTextBoxColumn2.FieldName = "Title";
     gridViewTextBoxColumn2.HeaderText = "دارو";
     gridViewTextBoxColumn2.Name = "Title";
     gridViewTextBoxColumn2.Width = 185;
     this.cmbDrugs.EditorControl.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
     gridViewTextBoxColumn2});
     this.cmbDrugs.EditorControl.MasterTemplate.EnableGrouping = false;
     this.cmbDrugs.EditorControl.MasterTemplate.ShowFilteringRow = false;
     this.cmbDrugs.EditorControl.Name = "NestedRadGridView";
     this.cmbDrugs.EditorControl.ReadOnly = true;
     this.cmbDrugs.EditorControl.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     this.cmbDrugs.EditorControl.ShowGroupPanel = false;
     this.cmbDrugs.EditorControl.Size = new System.Drawing.Size(240, 150);
     this.cmbDrugs.EditorControl.TabIndex = 0;
     this.cmbDrugs.Font = new System.Drawing.Font("B Nazanin", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.cmbDrugs.Location = new System.Drawing.Point(6, 53);
     this.cmbDrugs.Name = "cmbDrugs";
     //
     //
     //
     this.cmbDrugs.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren;
     this.cmbDrugs.Size = new System.Drawing.Size(191, 28);
     this.cmbDrugs.TabIndex = 1;
     this.cmbDrugs.TabStop = false;
     this.cmbDrugs.SelectedIndexChanged += new System.EventHandler(this.cmbDrugs_SelectedIndexChanged);
     this.cmbDrugs.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cmbDrugs_KeyDown);
     //
     // btnAdd
     //
     this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAdd.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnAdd.Location = new System.Drawing.Point(143, 341);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new System.Drawing.Size(120, 35);
     this.btnAdd.TabIndex = 6;
     this.btnAdd.Text = "افزودن نسخه";
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // btnSaveDrug
     //
     this.btnSaveDrug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnSaveDrug.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnSaveDrug.Location = new System.Drawing.Point(143, 178);
     this.btnSaveDrug.Name = "btnSaveDrug";
     this.btnSaveDrug.Size = new System.Drawing.Size(120, 35);
     this.btnSaveDrug.TabIndex = 3;
     this.btnSaveDrug.Text = "افزودن دارو";
     this.btnSaveDrug.Click += new System.EventHandler(this.btnSaveDrug_Click);
     //
     // radLabel2
     //
     this.radLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.radLabel2.Font = new System.Drawing.Font("B Koodak", 11.25F, System.Drawing.FontStyle.Bold);
     this.radLabel2.Location = new System.Drawing.Point(172, 215);
     this.radLabel2.Name = "radLabel2";
     this.radLabel2.Size = new System.Drawing.Size(89, 30);
     this.radLabel2.TabIndex = 10;
     this.radLabel2.Text = "داروهای نسخه :";
     this.radLabel2.TextAlignment = System.Drawing.ContentAlignment.TopRight;
     //
     // btnNewDrug
     //
     this.btnNewDrug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnNewDrug.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnNewDrug.Location = new System.Drawing.Point(6, 178);
     this.btnNewDrug.Name = "btnNewDrug";
     this.btnNewDrug.Size = new System.Drawing.Size(120, 35);
     this.btnNewDrug.TabIndex = 4;
     this.btnNewDrug.Text = "داروی جدید";
     this.btnNewDrug.Click += new System.EventHandler(this.btnNewDrug_Click);
     //
     // radLabel1
     //
     this.radLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.radLabel1.Font = new System.Drawing.Font("B Koodak", 11.25F, System.Drawing.FontStyle.Bold);
     this.radLabel1.Location = new System.Drawing.Point(199, 20);
     this.radLabel1.Name = "radLabel1";
     this.radLabel1.Size = new System.Drawing.Size(60, 30);
     this.radLabel1.TabIndex = 13;
     this.radLabel1.Text = "نام نسخه :";
     this.radLabel1.TextAlignment = System.Drawing.ContentAlignment.TopRight;
     //
     // grvDrugs
     //
     this.grvDrugs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.grvDrugs.DataBindings.Add(new System.Windows.Forms.Binding("DataSource", this.srcItem, "SavedPrescriptionDrugs", true));
     this.grvDrugs.Font = new System.Drawing.Font("B Nazanin", 9.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.grvDrugs.Location = new System.Drawing.Point(6, 246);
     //
     // grvDrugs
     //
     this.grvDrugs.MasterTemplate.AllowAddNewRow = false;
     this.grvDrugs.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
     gridViewCommandColumn2.AllowHide = false;
     gridViewCommandColumn2.AllowReorder = false;
     gridViewCommandColumn2.AllowResize = false;
     gridViewCommandColumn2.AllowSort = false;
     gridViewCommandColumn2.HeaderText = "حذف";
     gridViewCommandColumn2.Name = "column2";
     gridViewTextBoxColumn3.AllowResize = false;
     gridViewTextBoxColumn3.FieldName = "Drug.Title";
     gridViewTextBoxColumn3.HeaderText = "نام دارو";
     gridViewTextBoxColumn3.Name = "column1";
     gridViewTextBoxColumn3.Width = 200;
     this.grvDrugs.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
     gridViewCommandColumn2,
     gridViewTextBoxColumn3});
     this.grvDrugs.MasterTemplate.EnableGrouping = false;
     this.grvDrugs.Name = "grvDrugs";
     this.grvDrugs.ReadOnly = true;
     this.grvDrugs.RightToLeft = System.Windows.Forms.RightToLeft.No;
     //
     //
     //
     this.grvDrugs.RootElement.MinSize = new System.Drawing.Size(0, 0);
     this.grvDrugs.Size = new System.Drawing.Size(257, 89);
     this.grvDrugs.TabIndex = 5;
     this.grvDrugs.TabStop = false;
     this.grvDrugs.CellFormatting += new Telerik.WinControls.UI.CellFormattingEventHandler(this.grvItems_CellFormatting);
     this.grvDrugs.CurrentRowChanging += new Telerik.WinControls.UI.CurrentRowChangingEventHandler(this.grvDrugs_CurrentRowChanging);
     this.grvDrugs.SelectionChanged += new System.EventHandler(this.grvDrugs_SelectionChanged);
     this.grvDrugs.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.grvDrugs_CommandCellClick);
     this.grvDrugs.KeyDown += new System.Windows.Forms.KeyEventHandler(this.grvDrugs_KeyDown);
     //
     // srcItem
     //
     this.srcItem.DataSource = typeof(Shayan.Data.SavedPrescription);
     //
     // txtPreName
     //
     this.txtPreName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txtPreName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.srcItem, "Title", true));
     this.txtPreName.Font = new System.Drawing.Font("B Nazanin", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.txtPreName.Location = new System.Drawing.Point(6, 21);
     this.txtPreName.Name = "txtPreName";
     this.txtPreName.Size = new System.Drawing.Size(191, 28);
     this.txtPreName.TabIndex = 0;
     this.txtPreName.TabStop = false;
     this.txtPreName.TextChanging += new Telerik.WinControls.TextChangingEventHandler(this.txtPreName_TextChanging);
     this.txtPreName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPreName_KeyDown);
     //
     // radLabel20
     //
     this.radLabel20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.radLabel20.Font = new System.Drawing.Font("B Koodak", 11.25F, System.Drawing.FontStyle.Bold);
     this.radLabel20.Location = new System.Drawing.Point(199, 52);
     this.radLabel20.Name = "radLabel20";
     this.radLabel20.Size = new System.Drawing.Size(53, 30);
     this.radLabel20.TabIndex = 11;
     this.radLabel20.Text = "نام دارو :";
     this.radLabel20.TextAlignment = System.Drawing.ContentAlignment.TopRight;
     //
     // radLabel22
     //
     this.radLabel22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.radLabel22.Font = new System.Drawing.Font("B Koodak", 11.25F, System.Drawing.FontStyle.Bold);
     this.radLabel22.Location = new System.Drawing.Point(198, 81);
     this.radLabel22.Name = "radLabel22";
     this.radLabel22.Size = new System.Drawing.Size(65, 30);
     this.radLabel22.TabIndex = 9;
     this.radLabel22.Text = "توضیحات :";
     this.radLabel22.TextAlignment = System.Drawing.ContentAlignment.TopRight;
     //
     // txtManual
     //
     this.txtManual.AcceptsReturn = true;
     this.txtManual.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.txtManual.AutoScroll = true;
     this.txtManual.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.srcDrug, "CustomManual", true));
     this.txtManual.Font = new System.Drawing.Font("B Nazanin", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
     this.txtManual.Location = new System.Drawing.Point(6, 85);
     this.txtManual.Multiline = true;
     this.txtManual.Name = "txtManual";
     this.txtManual.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     //
     //
     //
     this.txtManual.RootElement.StretchVertically = true;
     this.txtManual.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtManual.Size = new System.Drawing.Size(191, 87);
     this.txtManual.TabIndex = 2;
     this.txtManual.TabStop = false;
     this.txtManual.TextChanging += new Telerik.WinControls.TextChangingEventHandler(this.txtManual_TextChanging);
     //
     // srcDrug
     //
     this.srcDrug.DataSource = typeof(Shayan.Data.SavedPrescriptionDrug);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Font = new System.Drawing.Font("B Nazanin", 10.5F, System.Drawing.FontStyle.Bold);
     this.btnCancel.Location = new System.Drawing.Point(403, 389);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(120, 35);
     this.btnCancel.TabIndex = 9;
     this.btnCancel.Text = "انصراف";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // UCPrescription
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.radGroupBox6);
     this.Controls.Add(this.radGroupBox4);
     this.Name = "UCPrescription";
     this.Size = new System.Drawing.Size(668, 432);
     ((System.ComponentModel.ISupportInitialize)(this.btnSave)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnNew)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox6)).EndInit();
     this.radGroupBox6.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.grvItems)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox4)).EndInit();
     this.radGroupBox4.ResumeLayout(false);
     this.radGroupBox4.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.cmbDrugs)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnAdd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnSaveDrug)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnNewDrug)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.grvDrugs)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.srcItem)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPreName)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel20)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel22)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtManual)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.srcDrug)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).EndInit();
     this.ResumeLayout(false);
 }
示例#14
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                this.grdItems.Columns.Add("CONT_Numero", "Número de Contrato", "CONT_Numero");
                this.grdItems.Columns.Add("CONT_Descrip", "Descripción", "CONT_Descrip");
                this.grdItems.Columns.Add("ENTC_NomTransportista", "Transportista", "ENTC_NomTransportista");
                this.grdItems.Columns.Add("CONT_FecEmi", "Fecha de Emisión", "CONT_FecEmi");
                this.grdItems.Columns.Add("CONT_FecIni", "Fecha de Inicio", "CONT_FecIni");
                this.grdItems.Columns.Add("CONT_FecFin", "Fecha de Fin", "CONT_FecFin");
                this.grdItems.Columns.Add("CONS_DescRGM", "Régimen", "CONS_DescRGM");

                this.grdItems.Columns.Add("TIPO_DescPaisDestino", "País Destino", "TIPO_DescPaisDestino");
                this.grdItems.Columns.Add("PUER_NombreDestino", "Puerto Destino", "PUER_NombreDestino");
                this.grdItems.Columns.Add("TIPO_DescPaisOrigen", "País Origen", "TIPO_DescPaisOrigen");
                this.grdItems.Columns.Add("PUER_NombreOrigen", "Puerto Origen", "PUER_NombreOrigen");

                this.grdItems.Columns.Add("CONS_DescVIA", "Vía", "CONS_DescVIA");
                this.grdItems.Columns.Add("TIPO_DescMND", "Moneda", "TIPO_DescMND");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumnDel = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnDel.Name           = "Delete";
                commandColumnDel.HeaderText     = "Eliminar";
                commandColumnDel.DefaultText    = "Eliminar";
                commandColumnDel.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnDel);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("CCCT_Codigo", "Código", "CCCT_Codigo");
                this.grdItems.Columns.Add("TIPE_Descripcion", "Tipo Entidad", "TIPE_Descripcion");
                this.grdItems.Columns.Add("ENTC_DocIden", "R.U.C. / D.N.I.", "ENTC_DocIden");
                this.grdItems.Columns.Add("ENTC_RazonSocial", "Entidad", "ENTC_RazonSocial");
                this.grdItems.Columns.Add("TIPO_MND", "Moneda", "TIPO_MND");
                //this.grdItems.Columns.Add("TIPO_FPG", "Forma Pago", "TIPO_FPG");
                this.grdItems.Columns.Add("TIPO_TDO", "Tipo Documento", "TIPO_TDO");
                this.grdItems.Columns.Add("CCCT_Serie", "Serie", "CCCT_Serie");
                this.grdItems.Columns.Add("CCCT_Numero", "Numero", "CCCT_Numero");
                this.grdItems.Columns.Add("CCCT_FechaEmision", "Fecha Emisión", "CCCT_FechaEmision");
                this.grdItems.Columns.Add("CCCT_ValVta", "Valor Venta", "CCCT_ValVta");
                this.grdItems.Columns.Add("CCCT_Monto", "Monto", "CCCT_Monto");
                this.grdItems.Columns.Add("CCCT_TipoCambio", "Tipo Cambio", "CCCT_TipoCambio");
                this.grdItems.Columns.Add("TipoCtaCte", "Tipo", "TipoCtaCte");
                this.grdItems.Columns.Add("DocVenta", "Doc. Venta", "DocVenta");
                this.grdItems.Columns.Add("OV_OP", "OV / OP", "OV_OP");
                this.grdItems.Columns.Add("MBL_HBL", "MBL / HBL", "MBL_HBL");
                this.grdItems.Columns.Add("Viaje", "Viaje", "Viaje");
                this.grdItems.Columns.Add("NVIA_FecPreFactura", "Fec. Prefactura", "NVIA_FecPreFactura");
                this.grdItems.Columns.Add("NVIA_FecETA_IMPO_ETD_EXPO", "Fecha ETA/ETD", "NVIA_FecETA_IMPO_ETD_EXPO");
                this.grdItems.Columns.Add("CCCT_Glosa", "Glosa", "CCCT_Glosa");
                this.grdItems.Columns.Add("ConDetraccion_text", "Detraccion", "ConDetraccion_text");

                Telerik.WinControls.UI.GridViewCommandColumn commandColumnSend = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnSend.Name           = "SendAsiento";
                commandColumnSend.HeaderText     = "As. al Diario";
                commandColumnSend.DefaultText    = "As. al Diario";
                commandColumnSend.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnSend);
                this.grdItems.Columns["SendAsiento"].AllowSort      = false;
                this.grdItems.Columns["SendAsiento"].AllowFiltering = false;

                this.grdItems.Columns.Add("AsientoContable", "Nro. Asiento", "AsientoContable");
                this.grdItems.Columns.Add("DocumentoSAP", "Documento SAP", "DocumentoSAP");
                /* Desvincular Asiento Inicial*/
                Telerik.WinControls.UI.GridViewCommandColumn commandColumnAP = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnAP.Name           = "DAsientoContable";
                commandColumnAP.HeaderText     = "D.As.";
                commandColumnAP.DefaultText    = "D.As.";
                commandColumnAP.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnAP);
                this.grdItems.Columns["DAsientoContable"].AllowSort      = false;
                this.grdItems.Columns["DAsientoContable"].AllowFiltering = false;

                this.grdItems.Columns.Add("AsientoContableC", "Nro. Asiento Compras", "AsientoContableC");
                /* Descvincular Asiento Compras/Reversion*/
                Telerik.WinControls.UI.GridViewCommandColumn commandColumnAC = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnAC.Name           = "DAsientoContableC";
                commandColumnAC.HeaderText     = "D.As.C/R";
                commandColumnAC.DefaultText    = "D.As.C/R";
                commandColumnAC.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnAC);
                this.grdItems.Columns["DAsientoContableC"].AllowSort      = false;
                this.grdItems.Columns["DAsientoContableC"].AllowFiltering = false;

                this.grdItems.Columns.Add("AsientoContableO", "Asientos Adicionales", "AsientoContableO");
                /* Desvincular Otros Asiento */
                Telerik.WinControls.UI.GridViewCommandColumn commandColumnAO = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnAO.Name           = "DAsientoContableO";
                commandColumnAO.HeaderText     = "D.O.As.";
                commandColumnAO.DefaultText    = "D.O.As.";
                commandColumnAO.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnAO);
                this.grdItems.Columns["DAsientoContableO"].AllowSort      = false;
                this.grdItems.Columns["DAsientoContableO"].AllowFiltering = false;

                Telerik.WinControls.UI.GridViewCommandColumn commandColumnReg = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnReg.Name           = "RegAsientoCompras";
                commandColumnReg.HeaderText     = "R. As. R/C";
                commandColumnReg.DefaultText    = "R. As. R/C";
                commandColumnReg.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnReg);
                this.grdItems.Columns["RegAsientoCompras"].AllowSort      = false;
                this.grdItems.Columns["RegAsientoCompras"].AllowFiltering = false;

                this.grdItems.Columns.Add("ESTADO", "Estado", "ESTADO");

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Print";
                commandColumn.HeaderText     = "Imprimir";
                commandColumn.DefaultText    = "Imprimir";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Print"].AllowSort      = false;
                this.grdItems.Columns["Print"].AllowFiltering = false;


                if (Presenter.TMovimiento == Infrastructure.Aspect.Constants.TipoMovimientoCtaCte.Egresos)
                {
                    commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                    commandColumn.Name           = "Cheque";
                    commandColumn.HeaderText     = "Cheque";
                    commandColumn.DefaultText    = "Cheque";
                    commandColumn.UseDefaultText = true;
                    this.grdItems.Columns.Add(commandColumn);
                    this.grdItems.Columns["Cheque"].AllowSort      = false;
                    this.grdItems.Columns["Cheque"].AllowFiltering = false;
                }

                this.grdItems.Columns.Add("MOVI_FecEmision", "Fecha Emisión", "MOVI_FecEmision");
                if (Presenter.TMovimiento == Infrastructure.Aspect.Constants.TipoMovimientoCtaCte.Ingresos)
                {
                    this.grdItems.Columns.Add("MOVI_NroOperacion", "Nro. Operación", "MOVI_NroOperacion");
                }
                this.grdItems.Columns.Add("TIPO_MOV", "Tipo Movimiento", "TIPO_MOV");
                this.grdItems.Columns.Add("CUBA_NroCuenta", "Nro. Cta. Bancaria", "CUBA_NroCuenta");
                this.grdItems.Columns.Add("Monto_text", "Monto", "Monto_text");
                this.grdItems.Columns.Add("MOVI_TipoCambio", "Tipo de Cambio", "MOVI_TipoCambio");
                this.grdItems.Columns["MOVI_TipoCambio"].FormatString = "{0:#,##0.0000}";
                this.grdItems.Columns.Add("TipoEntidad", "Tipo Entidad", "TipoEntidad");
                this.grdItems.Columns.Add("ENTC_DocIden", "R.U.C. / D.N.I.", "ENTC_DocIden");
                this.grdItems.Columns.Add("ENTC_RazonSocial", "Cliente / Proveedor", "ENTC_RazonSocial");
                this.grdItems.Columns.Add("MOVI_Concepto", "Concepto", "MOVI_Concepto");
                if (Presenter.TMovimiento == Infrastructure.Aspect.Constants.TipoMovimientoCtaCte.Egresos)
                {
                    this.grdItems.Columns.Add("MOVI_NroOperacion", "No.Operación", "MOVI_NroOperacion");
                    this.grdItems.Columns.Add("MOVI_Referencia", "Referencia", "MOVI_Referencia");
                }
                this.grdItems.Columns.Add("MOVI_FecDiferido", "Fecha Diferido", "MOVI_FecDiferido");
                this.grdItems.Columns.Add("Documentos", "Documentos", "Documentos");
                this.grdItems.Columns.Add("OrdenVenta", "OV / OP", "OrdenVenta");
                this.grdItems.Columns.Add("NEstado", "Estado", "NEstado");
                this.grdItems.Columns.Add("AsientoContable_DG", "Nro. Asiento D.G.", "AsientoContable_DG");
                this.grdItems.Columns.Add("AsientoContable_DC", "Nro. Asiento D.C.", "AsientoContable_DC");

                this.grdItems.Columns.Add("AsientoContable_DG_02", "Nro. Asiento D.G. Rev.", "AsientoContable_DG_02");

                //if (Presenter.TMovimiento == Infrastructure.Aspect.Constants.TipoMovimientoCtaCte.Egresos)
                //{
                //   /* Desvincular Otros Asiento */
                //   Telerik.WinControls.UI.GridViewCommandColumn commandColumnAO = new Telerik.WinControls.UI.GridViewCommandColumn();
                //   commandColumnAO.Name = "DAsientoContable_DG_02";
                //   commandColumnAO.HeaderText = "D.As.";
                //   commandColumnAO.DefaultText = "D.As.";
                //   commandColumnAO.UseDefaultText = true;
                //   this.grdItems.Columns.Add(commandColumnAO);
                //   this.grdItems.Columns["DAsientoContable_DG_02"].AllowSort = false;
                //   this.grdItems.Columns["DAsientoContable_DG_02"].AllowFiltering = false;

                //   Telerik.WinControls.UI.GridViewCommandColumn commandColumnReg = new Telerik.WinControls.UI.GridViewCommandColumn();
                //   commandColumnReg.Name = "RegAsientoReversion";
                //   commandColumnReg.HeaderText = "R. As. R.";
                //   commandColumnReg.DefaultText = "R. As. R.";
                //   commandColumnReg.UseDefaultText = true;
                //   this.grdItems.Columns.Add(commandColumnReg);
                //   this.grdItems.Columns["RegAsientoReversion"].AllowSort = false;
                //   this.grdItems.Columns["RegAsientoReversion"].AllowFiltering = false;
                //}

                this.grdItems.Columns.Add("AsientoContable_DG_04", "Nro. Asiento D.G. Caja", "AsientoContable_DG_04");
                this.grdItems.Columns.Add("AsientoContable_DC_04", "Nro. Asiento D.C. Caja", "AsientoContable_DC_04");

                this.grdItems.Columns.Add("MOVI_Codigo", "Código", "MOVI_Codigo");
                this.grdItems.Columns.Add("PLAN_Codigo", "Cod. Planilla", "PLAN_Codigo");

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                //Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = true;
                grdItems.EnableFiltering  = true;
                grdItems.MasterTemplate.EnableFiltering = true;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = true;
                grdItems.MasterTemplate.EnableCustomSorting = true;
                grdItems.AutoGenerateColumns = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn7  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn8  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn9  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn10 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn11 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn12 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn13 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn14 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn15 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1  = new Telerik.WinControls.UI.GridViewCommandColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2  = new Telerik.WinControls.UI.GridViewCommandColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn3  = new Telerik.WinControls.UI.GridViewCommandColumn();
     this.splitContainer1      = new System.Windows.Forms.SplitContainer();
     this.tableLayoutPanel1    = new System.Windows.Forms.TableLayoutPanel();
     this.ProveedoresPager     = new Framework.WinForm.Controls.MetroPager();
     this.UcFiltrosProveedores = new LaPaz.Win.Forms.Proveedores.UcFiltrosProveedores();
     this.tableLayoutPanel2    = new System.Windows.Forms.TableLayoutPanel();
     this.BtnCrearProveedor    = new Telerik.WinControls.UI.RadButton();
     this.ucProgressSpinner1   = new LaPaz.Win.Forms.Util.UcProgressSpinner();
     this.GridProveedores      = new Telerik.WinControls.UI.RadGridView();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.BtnCrearProveedor)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridProveedores)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridProveedores.MasterTemplate)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel      = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.IsSplitterFixed = true;
     this.splitContainer1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name            = "splitContainer1";
     this.splitContainer1.Orientation     = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.GridProveedores);
     this.splitContainer1.Size             = new System.Drawing.Size(1394, 824);
     this.splitContainer1.SplitterDistance = 220;
     this.splitContainer1.TabIndex         = 0;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Controls.Add(this.ProveedoresPager, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.UcFiltrosProveedores, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1394, 220);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // ProveedoresPager
     //
     this.ProveedoresPager.Anchor             = System.Windows.Forms.AnchorStyles.Right;
     this.ProveedoresPager.CurrentPage        = 1;
     this.ProveedoresPager.Location           = new System.Drawing.Point(1013, 178);
     this.ProveedoresPager.Name               = "ProveedoresPager";
     this.ProveedoresPager.PageSize           = 50;
     this.ProveedoresPager.PageTotal          = 1;
     this.ProveedoresPager.RefreshAction      = null;
     this.ProveedoresPager.RefreshActionAsync = null;
     this.ProveedoresPager.Size               = new System.Drawing.Size(378, 39);
     this.ProveedoresPager.TabIndex           = 10;
     //
     // UcFiltrosProveedores
     //
     this.UcFiltrosProveedores.BackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.UcFiltrosProveedores.Cuenta       = null;
     this.UcFiltrosProveedores.Cuit         = "";
     this.UcFiltrosProveedores.Denominacion = "";
     this.UcFiltrosProveedores.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.UcFiltrosProveedores.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.UcFiltrosProveedores.LocalidadId  = null;
     this.UcFiltrosProveedores.Location     = new System.Drawing.Point(3, 43);
     this.UcFiltrosProveedores.Name         = "UcFiltrosProveedores";
     this.UcFiltrosProveedores.ProvinciaId  = null;
     this.UcFiltrosProveedores.Size         = new System.Drawing.Size(1388, 129);
     this.UcFiltrosProveedores.TabIndex     = 11;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.Controls.Add(this.BtnCrearProveedor, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.ucProgressSpinner1, 1, 0);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(1388, 34);
     this.tableLayoutPanel2.TabIndex = 12;
     //
     // BtnCrearProveedor
     //
     this.BtnCrearProveedor.Anchor    = System.Windows.Forms.AnchorStyles.Left;
     this.BtnCrearProveedor.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.BtnCrearProveedor.Location  = new System.Drawing.Point(3, 3);
     this.BtnCrearProveedor.Name      = "BtnCrearProveedor";
     this.BtnCrearProveedor.Size      = new System.Drawing.Size(75, 28);
     this.BtnCrearProveedor.TabIndex  = 10;
     this.BtnCrearProveedor.Text      = "Crear";
     this.BtnCrearProveedor.ThemeName = "TelerikMetroBlue";
     this.BtnCrearProveedor.Click    += new System.EventHandler(this.BtnCrearProveedor_Click);
     ((Telerik.WinControls.UI.RadButtonElement)(this.BtnCrearProveedor.GetChildAt(0))).Text = "Crear";
     ((Telerik.WinControls.Primitives.BorderPrimitive)(this.BtnCrearProveedor.GetChildAt(0).GetChildAt(2))).StretchHorizontally = true;
     //
     // ucProgressSpinner1
     //
     this.ucProgressSpinner1.Anchor   = System.Windows.Forms.AnchorStyles.Right;
     this.ucProgressSpinner1.Location = new System.Drawing.Point(1223, 3);
     this.ucProgressSpinner1.Name     = "ucProgressSpinner1";
     this.ucProgressSpinner1.Size     = new System.Drawing.Size(162, 27);
     this.ucProgressSpinner1.TabIndex = 11;
     //
     // GridProveedores
     //
     this.GridProveedores.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.GridProveedores.Font     = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.GridProveedores.Location = new System.Drawing.Point(0, 0);
     this.GridProveedores.Margin   = new System.Windows.Forms.Padding(5);
     //
     // GridProveedores
     //
     this.GridProveedores.MasterTemplate.AllowAddNewRow      = false;
     this.GridProveedores.MasterTemplate.AllowColumnReorder  = false;
     this.GridProveedores.MasterTemplate.AllowDeleteRow      = false;
     this.GridProveedores.MasterTemplate.AllowDragToGroup    = false;
     this.GridProveedores.MasterTemplate.AllowEditRow        = false;
     this.GridProveedores.MasterTemplate.AllowRowResize      = false;
     this.GridProveedores.MasterTemplate.AutoGenerateColumns = false;
     this.GridProveedores.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
     gridViewTextBoxColumn1.FieldName   = "Id";
     gridViewTextBoxColumn1.HeaderText  = "Id";
     gridViewTextBoxColumn1.IsVisible   = false;
     gridViewTextBoxColumn1.Name        = "Id";
     gridViewTextBoxColumn1.ReadOnly    = true;
     gridViewTextBoxColumn1.Width       = 29;
     gridViewTextBoxColumn2.FieldName   = "Cuenta";
     gridViewTextBoxColumn2.HeaderText  = "Cuenta";
     gridViewTextBoxColumn2.Name        = "Cuenta";
     gridViewTextBoxColumn2.ReadOnly    = true;
     gridViewTextBoxColumn2.Width       = 226;
     gridViewTextBoxColumn3.FieldName   = "Denominacion";
     gridViewTextBoxColumn3.HeaderText  = "Denominación";
     gridViewTextBoxColumn3.Name        = "Denominacion";
     gridViewTextBoxColumn3.ReadOnly    = true;
     gridViewTextBoxColumn3.Width       = 300;
     gridViewTextBoxColumn4.FieldName   = "Domicilio";
     gridViewTextBoxColumn4.HeaderText  = "Domicilio";
     gridViewTextBoxColumn4.IsVisible   = false;
     gridViewTextBoxColumn4.Name        = "Domicilio";
     gridViewTextBoxColumn4.ReadOnly    = true;
     gridViewTextBoxColumn4.Width       = 202;
     gridViewTextBoxColumn5.FieldName   = "Telefono";
     gridViewTextBoxColumn5.HeaderText  = "Teléfono";
     gridViewTextBoxColumn5.Name        = "Telefono";
     gridViewTextBoxColumn5.ReadOnly    = true;
     gridViewTextBoxColumn5.Width       = 262;
     gridViewTextBoxColumn6.FieldName   = "Celular";
     gridViewTextBoxColumn6.HeaderText  = "Celular";
     gridViewTextBoxColumn6.IsVisible   = false;
     gridViewTextBoxColumn6.Name        = "Celular";
     gridViewTextBoxColumn6.ReadOnly    = true;
     gridViewTextBoxColumn6.Width       = 113;
     gridViewTextBoxColumn7.FieldName   = "Contacto";
     gridViewTextBoxColumn7.HeaderText  = "Contacto";
     gridViewTextBoxColumn7.IsVisible   = false;
     gridViewTextBoxColumn7.Name        = "Contacto";
     gridViewTextBoxColumn7.ReadOnly    = true;
     gridViewTextBoxColumn7.Width       = 157;
     gridViewTextBoxColumn8.FieldName   = "Cuit";
     gridViewTextBoxColumn8.HeaderText  = "Cuit";
     gridViewTextBoxColumn8.IsVisible   = false;
     gridViewTextBoxColumn8.Name        = "Cuit";
     gridViewTextBoxColumn8.ReadOnly    = true;
     gridViewTextBoxColumn8.Width       = 56;
     gridViewTextBoxColumn9.FieldName   = "ProvinciaNombre";
     gridViewTextBoxColumn9.HeaderText  = "Provincia";
     gridViewTextBoxColumn9.Name        = "ProvinciaNombre";
     gridViewTextBoxColumn9.ReadOnly    = true;
     gridViewTextBoxColumn9.Width       = 201;
     gridViewTextBoxColumn10.FieldName  = "LocalidadNombre";
     gridViewTextBoxColumn10.HeaderText = "Localidad";
     gridViewTextBoxColumn10.Name       = "LocalidadNombre";
     gridViewTextBoxColumn10.ReadOnly   = true;
     gridViewTextBoxColumn10.Width      = 300;
     gridViewTextBoxColumn11.FieldName  = "CondicionCompraNombre";
     gridViewTextBoxColumn11.HeaderText = "Condición Compra";
     gridViewTextBoxColumn11.IsVisible  = false;
     gridViewTextBoxColumn11.Name       = "CondicionCompraNombre";
     gridViewTextBoxColumn11.ReadOnly   = true;
     gridViewTextBoxColumn11.Width      = 148;
     gridViewTextBoxColumn12.FieldName  = "PorcentajeDescuento";
     gridViewTextBoxColumn12.HeaderText = "% Desc.";
     gridViewTextBoxColumn12.IsVisible  = false;
     gridViewTextBoxColumn12.Name       = "PorcentajeDescuento";
     gridViewTextBoxColumn12.ReadOnly   = true;
     gridViewTextBoxColumn12.Width      = 219;
     gridViewTextBoxColumn13.FieldName  = "BancoNombre";
     gridViewTextBoxColumn13.HeaderText = "Banco";
     gridViewTextBoxColumn13.IsVisible  = false;
     gridViewTextBoxColumn13.Name       = "BancoNombre";
     gridViewTextBoxColumn13.ReadOnly   = true;
     gridViewTextBoxColumn13.Width      = 75;
     gridViewTextBoxColumn14.FieldName  = "CBU";
     gridViewTextBoxColumn14.HeaderText = "CBU";
     gridViewTextBoxColumn14.IsVisible  = false;
     gridViewTextBoxColumn14.Name       = "CBU";
     gridViewTextBoxColumn14.ReadOnly   = true;
     gridViewTextBoxColumn14.Width      = 57;
     gridViewTextBoxColumn15.FieldName  = "EmailPedido";
     gridViewTextBoxColumn15.HeaderText = "Email Pedido";
     gridViewTextBoxColumn15.IsVisible  = false;
     gridViewTextBoxColumn15.Name       = "EmailPedido";
     gridViewTextBoxColumn15.ReadOnly   = true;
     gridViewTextBoxColumn15.Width      = 232;
     gridViewCommandColumn1.HeaderText  = "";
     gridViewCommandColumn1.Image       = global::LaPaz.Win.Properties.Resources.View_Details;
     gridViewCommandColumn1.MaxWidth    = 30;
     gridViewCommandColumn1.MinWidth    = 30;
     gridViewCommandColumn1.Name        = "ColumnaDetalle";
     gridViewCommandColumn1.Width       = 30;
     gridViewCommandColumn2.HeaderText  = "";
     gridViewCommandColumn2.Image       = global::LaPaz.Win.Properties.Resources.Data_Edit;
     gridViewCommandColumn2.MaxWidth    = 30;
     gridViewCommandColumn2.MinWidth    = 30;
     gridViewCommandColumn2.Name        = "ColumnaEditar";
     gridViewCommandColumn2.Width       = 30;
     gridViewCommandColumn3.HeaderText  = "";
     gridViewCommandColumn3.Image       = global::LaPaz.Win.Properties.Resources.Garbage_Closed;
     gridViewCommandColumn3.MaxWidth    = 30;
     gridViewCommandColumn3.MinWidth    = 30;
     gridViewCommandColumn3.Name        = "ColumnaEliminar";
     gridViewCommandColumn3.Width       = 30;
     this.GridProveedores.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
         gridViewTextBoxColumn1,
         gridViewTextBoxColumn2,
         gridViewTextBoxColumn3,
         gridViewTextBoxColumn4,
         gridViewTextBoxColumn5,
         gridViewTextBoxColumn6,
         gridViewTextBoxColumn7,
         gridViewTextBoxColumn8,
         gridViewTextBoxColumn9,
         gridViewTextBoxColumn10,
         gridViewTextBoxColumn11,
         gridViewTextBoxColumn12,
         gridViewTextBoxColumn13,
         gridViewTextBoxColumn14,
         gridViewTextBoxColumn15,
         gridViewCommandColumn1,
         gridViewCommandColumn2,
         gridViewCommandColumn3
     });
     this.GridProveedores.MasterTemplate.EnableGrouping = false;
     this.GridProveedores.Name              = "GridProveedores";
     this.GridProveedores.ReadOnly          = true;
     this.GridProveedores.Size              = new System.Drawing.Size(1394, 600);
     this.GridProveedores.TabIndex          = 8;
     this.GridProveedores.ThemeName         = "TelerikMetroBlue";
     this.GridProveedores.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridProveedores_CommandCellClick);
     //
     // FrmProveedoresListado
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScroll          = true;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(1394, 824);
     this.Controls.Add(this.splitContainer1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FrmProveedoresListado";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.Text  = "Proveedores";
     this.Load += new System.EventHandler(this.FrmProveedoresListado_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.BtnCrearProveedor)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridProveedores.MasterTemplate)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridProveedores)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
示例#18
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                this.grdItems.Columns.Add("UBIG_Codigo", "Código Ubigeo", "UBIG_Codigo");
                //this.grdItems.Columns.Add("UBIG_CodPadre", "Código Padre", "UBIG_CodPadre");
                this.grdItems.Columns.Add("UBIG_Desc", "Descripción", "UBIG_Desc");
                this.grdItems.Columns.Add("UBIG_DescC", "Descripción Corta", "UBIG_DescC");



                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);



                //this.grdItems.Columns["TIPO_CodTipo"].BestFit();
                //this.grdItems.Columns["TIPO_Desc1"].BestFit();
                //this.grdItems.Columns["TIPO_DescC"].BestFit();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#19
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("NVIA_Codigo", "Código", "NVIA_Codigo");
                this.grdItems.Columns.Add("NVIA_DesEstado", "Estado", "NVIA_DesEstado");
                this.grdItems.Columns.Add("NAVE_Nombre", "NAVE", "NAVE_Nombre");
                this.grdItems.Columns.Add("NVIA_NroViaje", "NroViaje", "NVIA_NroViaje");
                this.grdItems.Columns.Add("ENTC_NomTransp", "Transportista", "ENTC_NomTransp");
                this.grdItems.Columns.Add("CONS_DescRGM", "Régimen", "CONS_DescRGM");
                //this.grdItems.Columns.Add("TIPO_DescTRF", "Tráfico", "TIPO_DescTRF");
                this.grdItems.Columns.Add("NVIA_FecETA_IMPO_ETD_EXPO", "Fecha ETA/ETD", "NVIA_FecETA_IMPO_ETD_EXPO");

                //this.grdItems.Columns.Add("TIPO_DescPAI", "País", "TIPO_DescPAI");
                this.grdItems.Columns.Add("PUER_Nombre", "Puerto", "PUER_Nombre");
                //this.grdItems.Columns.Add("ENTC_NomAgentePort_EXPO", "Agente Portuario", "ENTC_NomAgentePort_EXPO");


                this.grdItems.Columns.Add("AUDI_UsrCrea", "Usuario Creación", "AUDI_UsrCrea");
                this.grdItems.Columns.Add("AUDI_FecCrea", "Fecha Creación", "AUDI_FecCrea");
                this.grdItems.Columns.Add("NVIA_UsrPreFactura", "Usuario Pre-Factura", "NVIA_UsrPreFactura");
                this.grdItems.Columns.Add("NVIA_UsrCierreNave", "Usuario Cierra", "NVIA_UsrCierreNave");

                //this.grdItems.Columns["TIPO_DescPAI"].IsVisible = false;


                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#20
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;


                Infrastructure.WinForms.Controls.ComboBox.ComboxBoxItem.AddComboBoxItem(0, "Neutral", true);
                Infrastructure.WinForms.Controls.ComboBox.ComboxBoxItem.AddComboBoxItem(1, "Positivo");
                Infrastructure.WinForms.Controls.ComboBox.ComboxBoxItem.AddComboBoxItem(-1, "Negativo");

                Telerik.WinControls.UI.GridViewComboBoxColumn tipoGestionColumn = new Telerik.WinControls.UI.GridViewComboBoxColumn();
                tipoGestionColumn.Name          = "RESG_PositivoNegativo";
                tipoGestionColumn.HeaderText    = "Tipo Result. Gestión";
                tipoGestionColumn.DataSource    = Infrastructure.WinForms.Controls.ComboBox.ComboxBoxItem.GetComboBoxItems();
                tipoGestionColumn.ValueMember   = "IntCodigo";
                tipoGestionColumn.DisplayMember = "StrDesc";
                tipoGestionColumn.FieldName     = "RESG_PositivoNegativo";
                tipoGestionColumn.Width         = 200;

                this.grdItems.Columns.Add(tipoGestionColumn);
                this.grdItems.Columns.Add("RESG_Desc", "Descripción", "RESG_Desc");
                this.grdItems.Columns.Add("RESG_DescC", "Descripción Corta", "RESG_DescC");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                this.grdItems.Columns["RESG_PositivoNegativo"].TextAlignment = ContentAlignment.MiddleLeft;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#21
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                this.grdItems.Columns.Add("REBA_TipoDesc", "Tipo", "REBA_TipoDesc");
                this.grdItems.Columns.Add("REBA_Codigo", "Código", "REBA_Codigo");
                this.grdItems.Columns.Add("ENTC_NomTransportista", "Transportista", "ENTC_NomTransportista");
                this.grdItems.Columns.Add("REBA_FecIni", "Fecha Inicio", "REBA_FecIni");
                this.grdItems.Columns.Add("REBA_FecFin", "Fecha Fin", "REBA_FecFin");
                this.grdItems.Columns.Add("TIPO_DescMND", "Moneda", "TIPO_DescMND");
                this.grdItems.Columns.Add("REBA_Valor", "Valor de Rebate x TEUS", "REBA_Valor");
                this.grdItems.Columns.Add("REBA_CostoFlete", "Costo Flete", "REBA_CostoFlete");
                this.grdItems.Columns.Add("REBA_CostoFleteDes", "Costo Flete Des. x CNTR", "REBA_CostoFleteDes");
                this.grdItems.Columns.Add("REBA_LimiteInf", "Límite Inferior", "REBA_LimiteInf");
                this.grdItems.Columns.Add("REBA_LimiteSup", "Límite Superior", "REBA_LimiteSup");
                this.grdItems.Columns.Add("REBA_ValorPorcentaje", "Valor GRR (%)", "REBA_Valor");


                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);


                this.grdItems.Columns["TIPO_DescMND"].IsVisible         = false;
                this.grdItems.Columns["REBA_Valor"].IsVisible           = false;
                this.grdItems.Columns["REBA_CostoFlete"].IsVisible      = false;
                this.grdItems.Columns["REBA_CostoFleteDes"].IsVisible   = false;
                this.grdItems.Columns["REBA_LimiteInf"].IsVisible       = false;
                this.grdItems.Columns["REBA_LimiteSup"].IsVisible       = false;
                this.grdItems.Columns["REBA_ValorPorcentaje"].IsVisible = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "EditSmall";
                commandColumn.HeaderText     = "Ed. Red.";
                commandColumn.DefaultText    = "Ed. Red.";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["EditSmall"].AllowSort      = false;
                this.grdItems.Columns["EditSmall"].AllowFiltering = false;

                //commandColumn = new Telerik.WinControls.UI.GridViewCommandColumn();
                //commandColumn.Name = "Delete";
                //commandColumn.HeaderText = "Eliminar";
                //commandColumn.DefaultText = "Eliminar";
                //commandColumn.UseDefaultText = true;
                //this.grdItems.Columns.Add(commandColumn);
                //this.grdItems.Columns["Delete"].AllowSort = false;
                //this.grdItems.Columns["Delete"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Nullable";
                commandColumn.HeaderText     = "Anular";
                commandColumn.DefaultText    = "Anular";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Nullable"].AllowSort      = false;
                this.grdItems.Columns["Nullable"].AllowFiltering = false;

                this.grdItems.Columns.Add("TRAN_Codigo", "Código", "TRAN_Codigo");
                this.grdItems.Columns.Add("TRAN_Fecha", "Fecha", "TRAN_Fecha");
                this.grdItems.Columns.Add("TRAN_Glosa", "Glosa", "TRAN_Glosa");

                this.grdItems.Columns.Add("AsientoContable_DG", "Nro. Asiento D.G.", "AsientoContable_DG");
                this.grdItems.Columns.Add("AsientoContable_DC", "Nro. Asiento D.C.", "AsientoContable_DC");

                this.grdItems.Columns.Add("TRAN_Estado_Text", "Estado", "TRAN_Estado_Text");

                //grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }
                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
示例#23
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumnCerrar;
                commandColumnCerrar                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnCerrar.Name           = "Cerrar";
                commandColumnCerrar.HeaderText     = "Cerrar";
                commandColumnCerrar.DefaultText    = "Cerrar";
                commandColumnCerrar.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnCerrar);
                this.grdItems.Columns["Cerrar"].AllowSort      = false;
                this.grdItems.Columns["Cerrar"].AllowFiltering = false;

                Telerik.WinControls.UI.GridViewCommandColumn commandColumnAperturar;
                commandColumnAperturar                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumnAperturar.Name           = "Aperturar";
                commandColumnAperturar.HeaderText     = "Aperturar";
                commandColumnAperturar.DefaultText    = "Aperturar";
                commandColumnAperturar.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumnAperturar);
                this.grdItems.Columns["Aperturar"].AllowSort      = false;
                this.grdItems.Columns["Aperturar"].AllowFiltering = false;

                this.grdItems.Columns.Add("CHAN_Mes", "No.Mes", "CHAN_Mes");
                grdItems.Columns["CHAN_Mes"].IsVisible = false;

                this.grdItems.Columns.Add("CHAN_DescMes", "Mes", "CHAN_DescMes");
                this.grdItems.Columns.Add("CHAN_DescEstado", "Estado", "CHAN_DescEstado");
                this.grdItems.Columns.Add("CHAN_UsuarioCierre", "Usuario Último Cierre", "CHAN_UsuarioCierre");
                this.grdItems.Columns.Add("CHAN_FechaCierre", "Fecha Último Cierre", "CHAN_FechaCierre");
                this.grdItems.Columns.Add("CHAN_UsuarioApertura", "Usuario Última Apertura", "CHAN_UsuarioApertura");
                this.grdItems.Columns.Add("CHAN_FechaApertura", "Fecha Última Apertura", "CHAN_FechaApertura");

                this.grdItems.Columns.Add("AsientoContable", "Asiento", "AsientoContable");
                this.grdItems.Columns.Add("DocumentoSAP", "Documento SAP", "DocumentoSAP");

                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = false;
                grdItems.MasterTemplate.EnableFiltering = false;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn7 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn8 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn9 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn10 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn11 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn12 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn13 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn14 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn15 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn3 = new Telerik.WinControls.UI.GridViewCommandColumn();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.ProveedoresPager = new Framework.WinForm.Controls.MetroPager();
            this.UcFiltrosProveedores = new LaPaz.Win.Forms.Proveedores.UcFiltrosProveedores();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.BtnCrearProveedor = new Telerik.WinControls.UI.RadButton();
            this.ucProgressSpinner1 = new LaPaz.Win.Forms.Util.UcProgressSpinner();
            this.GridProveedores = new Telerik.WinControls.UI.RadGridView();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.BtnCrearProveedor)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridProveedores)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridProveedores.MasterTemplate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.splitContainer1.IsSplitterFixed = true;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.GridProveedores);
            this.splitContainer1.Size = new System.Drawing.Size(1394, 824);
            this.splitContainer1.SplitterDistance = 220;
            this.splitContainer1.TabIndex = 0;
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Controls.Add(this.ProveedoresPager, 0, 2);
            this.tableLayoutPanel1.Controls.Add(this.UcFiltrosProveedores, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 3;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(1394, 220);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // ProveedoresPager
            // 
            this.ProveedoresPager.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.ProveedoresPager.CurrentPage = 1;
            this.ProveedoresPager.Location = new System.Drawing.Point(1013, 178);
            this.ProveedoresPager.Name = "ProveedoresPager";
            this.ProveedoresPager.PageSize = 50;
            this.ProveedoresPager.PageTotal = 1;
            this.ProveedoresPager.RefreshAction = null;
            this.ProveedoresPager.RefreshActionAsync = null;
            this.ProveedoresPager.Size = new System.Drawing.Size(378, 39);
            this.ProveedoresPager.TabIndex = 10;
            // 
            // UcFiltrosProveedores
            // 
            this.UcFiltrosProveedores.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.UcFiltrosProveedores.Cuenta = null;
            this.UcFiltrosProveedores.Cuit = "";
            this.UcFiltrosProveedores.Denominacion = "";
            this.UcFiltrosProveedores.Dock = System.Windows.Forms.DockStyle.Fill;
            this.UcFiltrosProveedores.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.UcFiltrosProveedores.LocalidadId = null;
            this.UcFiltrosProveedores.Location = new System.Drawing.Point(3, 43);
            this.UcFiltrosProveedores.Name = "UcFiltrosProveedores";
            this.UcFiltrosProveedores.ProvinciaId = null;
            this.UcFiltrosProveedores.Size = new System.Drawing.Size(1388, 129);
            this.UcFiltrosProveedores.TabIndex = 11;
            // 
            // tableLayoutPanel2
            // 
            this.tableLayoutPanel2.ColumnCount = 2;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.Controls.Add(this.BtnCrearProveedor, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.ucProgressSpinner1, 1, 0);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 1;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.Size = new System.Drawing.Size(1388, 34);
            this.tableLayoutPanel2.TabIndex = 12;
            // 
            // BtnCrearProveedor
            // 
            this.BtnCrearProveedor.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.BtnCrearProveedor.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BtnCrearProveedor.Location = new System.Drawing.Point(3, 3);
            this.BtnCrearProveedor.Name = "BtnCrearProveedor";
            this.BtnCrearProveedor.Size = new System.Drawing.Size(75, 28);
            this.BtnCrearProveedor.TabIndex = 10;
            this.BtnCrearProveedor.Text = "Crear";
            this.BtnCrearProveedor.ThemeName = "TelerikMetroBlue";
            this.BtnCrearProveedor.Click += new System.EventHandler(this.BtnCrearProveedor_Click);
            ((Telerik.WinControls.UI.RadButtonElement)(this.BtnCrearProveedor.GetChildAt(0))).Text = "Crear";
            ((Telerik.WinControls.Primitives.BorderPrimitive)(this.BtnCrearProveedor.GetChildAt(0).GetChildAt(2))).StretchHorizontally = true;
            // 
            // ucProgressSpinner1
            // 
            this.ucProgressSpinner1.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.ucProgressSpinner1.Location = new System.Drawing.Point(1223, 3);
            this.ucProgressSpinner1.Name = "ucProgressSpinner1";
            this.ucProgressSpinner1.Size = new System.Drawing.Size(162, 27);
            this.ucProgressSpinner1.TabIndex = 11;
            // 
            // GridProveedores
            // 
            this.GridProveedores.Dock = System.Windows.Forms.DockStyle.Fill;
            this.GridProveedores.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.GridProveedores.Location = new System.Drawing.Point(0, 0);
            this.GridProveedores.Margin = new System.Windows.Forms.Padding(5);
            // 
            // GridProveedores
            // 
            this.GridProveedores.MasterTemplate.AllowAddNewRow = false;
            this.GridProveedores.MasterTemplate.AllowColumnReorder = false;
            this.GridProveedores.MasterTemplate.AllowDeleteRow = false;
            this.GridProveedores.MasterTemplate.AllowDragToGroup = false;
            this.GridProveedores.MasterTemplate.AllowEditRow = false;
            this.GridProveedores.MasterTemplate.AllowRowResize = false;
            this.GridProveedores.MasterTemplate.AutoGenerateColumns = false;
            this.GridProveedores.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            gridViewTextBoxColumn1.FieldName = "Id";
            gridViewTextBoxColumn1.HeaderText = "Id";
            gridViewTextBoxColumn1.IsVisible = false;
            gridViewTextBoxColumn1.Name = "Id";
            gridViewTextBoxColumn1.ReadOnly = true;
            gridViewTextBoxColumn1.Width = 29;
            gridViewTextBoxColumn2.FieldName = "Cuenta";
            gridViewTextBoxColumn2.HeaderText = "Cuenta";
            gridViewTextBoxColumn2.Name = "Cuenta";
            gridViewTextBoxColumn2.ReadOnly = true;
            gridViewTextBoxColumn2.Width = 226;
            gridViewTextBoxColumn3.FieldName = "Denominacion";
            gridViewTextBoxColumn3.HeaderText = "Denominación";
            gridViewTextBoxColumn3.Name = "Denominacion";
            gridViewTextBoxColumn3.ReadOnly = true;
            gridViewTextBoxColumn3.Width = 300;
            gridViewTextBoxColumn4.FieldName = "Domicilio";
            gridViewTextBoxColumn4.HeaderText = "Domicilio";
            gridViewTextBoxColumn4.IsVisible = false;
            gridViewTextBoxColumn4.Name = "Domicilio";
            gridViewTextBoxColumn4.ReadOnly = true;
            gridViewTextBoxColumn4.Width = 202;
            gridViewTextBoxColumn5.FieldName = "Telefono";
            gridViewTextBoxColumn5.HeaderText = "Teléfono";
            gridViewTextBoxColumn5.Name = "Telefono";
            gridViewTextBoxColumn5.ReadOnly = true;
            gridViewTextBoxColumn5.Width = 262;
            gridViewTextBoxColumn6.FieldName = "Celular";
            gridViewTextBoxColumn6.HeaderText = "Celular";
            gridViewTextBoxColumn6.IsVisible = false;
            gridViewTextBoxColumn6.Name = "Celular";
            gridViewTextBoxColumn6.ReadOnly = true;
            gridViewTextBoxColumn6.Width = 113;
            gridViewTextBoxColumn7.FieldName = "Contacto";
            gridViewTextBoxColumn7.HeaderText = "Contacto";
            gridViewTextBoxColumn7.IsVisible = false;
            gridViewTextBoxColumn7.Name = "Contacto";
            gridViewTextBoxColumn7.ReadOnly = true;
            gridViewTextBoxColumn7.Width = 157;
            gridViewTextBoxColumn8.FieldName = "Cuit";
            gridViewTextBoxColumn8.HeaderText = "Cuit";
            gridViewTextBoxColumn8.IsVisible = false;
            gridViewTextBoxColumn8.Name = "Cuit";
            gridViewTextBoxColumn8.ReadOnly = true;
            gridViewTextBoxColumn8.Width = 56;
            gridViewTextBoxColumn9.FieldName = "ProvinciaNombre";
            gridViewTextBoxColumn9.HeaderText = "Provincia";
            gridViewTextBoxColumn9.Name = "ProvinciaNombre";
            gridViewTextBoxColumn9.ReadOnly = true;
            gridViewTextBoxColumn9.Width = 201;
            gridViewTextBoxColumn10.FieldName = "LocalidadNombre";
            gridViewTextBoxColumn10.HeaderText = "Localidad";
            gridViewTextBoxColumn10.Name = "LocalidadNombre";
            gridViewTextBoxColumn10.ReadOnly = true;
            gridViewTextBoxColumn10.Width = 300;
            gridViewTextBoxColumn11.FieldName = "CondicionCompraNombre";
            gridViewTextBoxColumn11.HeaderText = "Condición Compra";
            gridViewTextBoxColumn11.IsVisible = false;
            gridViewTextBoxColumn11.Name = "CondicionCompraNombre";
            gridViewTextBoxColumn11.ReadOnly = true;
            gridViewTextBoxColumn11.Width = 148;
            gridViewTextBoxColumn12.FieldName = "PorcentajeDescuento";
            gridViewTextBoxColumn12.HeaderText = "% Desc.";
            gridViewTextBoxColumn12.IsVisible = false;
            gridViewTextBoxColumn12.Name = "PorcentajeDescuento";
            gridViewTextBoxColumn12.ReadOnly = true;
            gridViewTextBoxColumn12.Width = 219;
            gridViewTextBoxColumn13.FieldName = "BancoNombre";
            gridViewTextBoxColumn13.HeaderText = "Banco";
            gridViewTextBoxColumn13.IsVisible = false;
            gridViewTextBoxColumn13.Name = "BancoNombre";
            gridViewTextBoxColumn13.ReadOnly = true;
            gridViewTextBoxColumn13.Width = 75;
            gridViewTextBoxColumn14.FieldName = "CBU";
            gridViewTextBoxColumn14.HeaderText = "CBU";
            gridViewTextBoxColumn14.IsVisible = false;
            gridViewTextBoxColumn14.Name = "CBU";
            gridViewTextBoxColumn14.ReadOnly = true;
            gridViewTextBoxColumn14.Width = 57;
            gridViewTextBoxColumn15.FieldName = "EmailPedido";
            gridViewTextBoxColumn15.HeaderText = "Email Pedido";
            gridViewTextBoxColumn15.IsVisible = false;
            gridViewTextBoxColumn15.Name = "EmailPedido";
            gridViewTextBoxColumn15.ReadOnly = true;
            gridViewTextBoxColumn15.Width = 232;
            gridViewCommandColumn1.HeaderText = "";
            gridViewCommandColumn1.Image = global::LaPaz.Win.Properties.Resources.View_Details;
            gridViewCommandColumn1.MaxWidth = 30;
            gridViewCommandColumn1.MinWidth = 30;
            gridViewCommandColumn1.Name = "ColumnaDetalle";
            gridViewCommandColumn1.Width = 30;
            gridViewCommandColumn2.HeaderText = "";
            gridViewCommandColumn2.Image = global::LaPaz.Win.Properties.Resources.Data_Edit;
            gridViewCommandColumn2.MaxWidth = 30;
            gridViewCommandColumn2.MinWidth = 30;
            gridViewCommandColumn2.Name = "ColumnaEditar";
            gridViewCommandColumn2.Width = 30;
            gridViewCommandColumn3.HeaderText = "";
            gridViewCommandColumn3.Image = global::LaPaz.Win.Properties.Resources.Garbage_Closed;
            gridViewCommandColumn3.MaxWidth = 30;
            gridViewCommandColumn3.MinWidth = 30;
            gridViewCommandColumn3.Name = "ColumnaEliminar";
            gridViewCommandColumn3.Width = 30;
            this.GridProveedores.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
            gridViewTextBoxColumn1,
            gridViewTextBoxColumn2,
            gridViewTextBoxColumn3,
            gridViewTextBoxColumn4,
            gridViewTextBoxColumn5,
            gridViewTextBoxColumn6,
            gridViewTextBoxColumn7,
            gridViewTextBoxColumn8,
            gridViewTextBoxColumn9,
            gridViewTextBoxColumn10,
            gridViewTextBoxColumn11,
            gridViewTextBoxColumn12,
            gridViewTextBoxColumn13,
            gridViewTextBoxColumn14,
            gridViewTextBoxColumn15,
            gridViewCommandColumn1,
            gridViewCommandColumn2,
            gridViewCommandColumn3});
            this.GridProveedores.MasterTemplate.EnableGrouping = false;
            this.GridProveedores.Name = "GridProveedores";
            this.GridProveedores.ReadOnly = true;
            this.GridProveedores.Size = new System.Drawing.Size(1394, 600);
            this.GridProveedores.TabIndex = 8;
            this.GridProveedores.ThemeName = "TelerikMetroBlue";
            this.GridProveedores.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridProveedores_CommandCellClick);
            // 
            // FrmProveedoresListado
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScroll = true;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(1394, 824);
            this.Controls.Add(this.splitContainer1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FrmProveedoresListado";
            // 
            // 
            // 
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "Proveedores";
            this.Load += new System.EventHandler(this.FrmProveedoresListado_Load);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.BtnCrearProveedor)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridProveedores.MasterTemplate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridProveedores)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);

        }
示例#25
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Delete"].AllowSort      = false;
                this.grdItems.Columns["Delete"].AllowFiltering = false;
                this.grdItems.Columns.Add("ENTC_Codigo", "Código", "ENTC_Codigo");
                this.grdItems.Columns.Add("Tipo_CodTDI", "Tipo Doc Iden", "Tipo_CodTDI");

                //segun el tipo de entidad mostramos los campos
                this.grdItems.Columns.Add("ENTC_DocIden", "N.I.T.", "ENTC_DocIden");
                this.grdItems.Columns.Add("ENTC_NomCompleto", "Nombre", "ENTC_NomCompleto");

                //this.grdItems.Columns.Add("ENTC_Activo", "Activo", "ENTC_Activo");
                Telerik.WinControls.UI.GridViewCheckBoxColumn checkColumn;
                checkColumn            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                checkColumn.Name       = "ENTC_Activo";
                checkColumn.FieldName  = "ENTC_Activo";
                checkColumn.HeaderText = "Activo";
                checkColumn.ReadOnly   = true;
                this.grdItems.Columns.Add(checkColumn);

                this.grdItems.Columns.Add("ENTC_EMail", "Correo", "ENTC_EMail");
                this.grdItems.Columns.Add("ENTC_EmailReceptorFE", "Correo Factura Electrónica", "ENTC_EmailReceptorFE");
                this.grdItems.Columns.Add("ENTC_Telef1", "Tel. Fijo", "ENTC_Telef1");
                this.grdItems.Columns.Add("ENTC_Telef2", "Tel. Movil", "ENTC_Telef2");


                switch (Presenter.tipe_Codigo)
                {
                case Delfin.Controls.EntidadClear.TIPE_Cliente:
                    //this.grdItems.Columns.Add("ENTC_Prospecto", "Prospecto", "ENTC_Prospecto");
                    checkColumn            = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
                    checkColumn.Name       = "ENTC_Prospecto";
                    checkColumn.FieldName  = "ENTC_Prospecto";
                    checkColumn.HeaderText = "Prospecto";
                    checkColumn.ReadOnly   = true;
                    this.grdItems.Columns.Add(checkColumn);
                    this.grdItems.Columns.Add("TIPO_HOL", "Holding", "TIPO_HOL");

                    this.grdItems.Columns.Add("ENTC_FechaCredito", "Fecha Credito", "ENTC_FechaCredito");
                    this.grdItems.Columns.Add("ENTC_DiasCredito", "Dias Credito", "ENTC_DiasCredito");

                    this.grdItems.Columns["ENTC_FechaCredito"].FormatString = "{0:dd/MM/yyyy}";

                    this.grdItems.Columns.Add("Limitecredito", "Límite de Crédito", "Limitecredito");
                    break;

                case Delfin.Controls.EntidadClear.TIPE_Proveedor:

                    break;

                case Delfin.Controls.EntidadClear.TIPE_Ejecutivo:
                    this.grdItems.Columns.Add("ENTC_FecIng", "Fec. Ingreso", "ENTC_FecIng");
                    this.grdItems.Columns.Add("ENTC_Area", "Area", "ENTC_Area");
                    this.grdItems.Columns.Add("ENTC_Cargo", "Cargo", "ENTC_Cargo");

                    break;

                case Delfin.Controls.EntidadClear.TIPE_CustomerService:
                    this.grdItems.Columns.Add("ENTC_FecIng", "Fec. Ingreso", "ENTC_FecIng");
                    this.grdItems.Columns.Add("ENTC_Area", "Area", "ENTC_Area");
                    this.grdItems.Columns.Add("ENTC_Cargo", "Cargo", "ENTC_Cargo");

                    break;

                case Delfin.Controls.EntidadClear.TIPE_Transportista:
                    break;

                case Delfin.Controls.EntidadClear.TIPE_Agente:
                    break;

                case Delfin.Controls.EntidadClear.TIPE_Broker:
                    this.grdItems.Columns.Add("ENTC_FecIng", "Fec. Ingreso", "ENTC_FecIng");
                    break;

                case Delfin.Controls.EntidadClear.TIPE_AgenteCarga:
                    break;

                case Delfin.Controls.EntidadClear.TIPE_Contacto:
                    this.grdItems.Columns.Add("ENTC_Area", "Area", "ENTC_Area");
                    this.grdItems.Columns.Add("ENTC_Cargo", "Cargo", "ENTC_Cargo");
                    break;

                default:
                    break;
                }
                this.grdItems.Columns.Add("ENTC_CodSAP_C", "Cliente SAP", "ENTC_CodSAP_C");
                this.grdItems.Columns.Add("ENTC_CodSAP_P", "Proveedor SAP", "ENTC_CodSAP_P");
                this.grdItems.Columns.Add("ENTC_FecActSAP", "Sincronización SAP", "ENTC_FecActSAP");
                //this.grdItems.Columns.Add("ENTC_EstActSAP", "Creado por", "ENTC_EstActSAP");

                this.grdItems.Columns.Add("AUDI_UsrCrea", "Creado por", "AUDI_UsrCrea");
                this.grdItems.Columns.Add("AUDI_FecCrea", "Fecha crea", "AUDI_FecCrea");
                this.grdItems.Columns.Add("AUDI_UsrMod", "Modificado por", "AUDI_UsrMod");
                this.grdItems.Columns.Add("AUDI_FecMod", "Fecha mod.", "AUDI_FecMod");
                grdItems.BestFitColumns();

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn7 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn8 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn9 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn10 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn11 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn12 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn13 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn14 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2 = new Telerik.WinControls.UI.GridViewCommandColumn();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.ProveedoresPager = new Framework.WinForm.Controls.MetroPager();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.UcFiltrosVentas = new LaPaz.Win.Forms.Ventas.UcFiltrosVentas();
            this.UcProgressSpinner = new LaPaz.Win.Forms.Util.UcProgressSpinner();
            this.GridVentas = new Telerik.WinControls.UI.RadGridView();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.GridVentas)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridVentas.MasterTemplate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.splitContainer1.IsSplitterFixed = true;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.GridVentas);
            this.splitContainer1.Size = new System.Drawing.Size(1720, 972);
            this.splitContainer1.SplitterDistance = 220;
            this.splitContainer1.TabIndex = 0;
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Controls.Add(this.ProveedoresPager, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.Size = new System.Drawing.Size(1720, 220);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // ProveedoresPager
            // 
            this.ProveedoresPager.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.ProveedoresPager.CurrentPage = 1;
            this.ProveedoresPager.Location = new System.Drawing.Point(1211, 185);
            this.ProveedoresPager.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
            this.ProveedoresPager.Name = "ProveedoresPager";
            this.ProveedoresPager.PageSize = 50;
            this.ProveedoresPager.PageTotal = 1;
            this.ProveedoresPager.RefreshAction = null;
            this.ProveedoresPager.RefreshActionAsync = null;
            this.ProveedoresPager.Size = new System.Drawing.Size(504, 48);
            this.ProveedoresPager.TabIndex = 10;
            // 
            // tableLayoutPanel2
            // 
            this.tableLayoutPanel2.ColumnCount = 2;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
            this.tableLayoutPanel2.Controls.Add(this.UcFiltrosVentas, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.UcProgressSpinner, 1, 0);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(4, 4);
            this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 1;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.Size = new System.Drawing.Size(1712, 172);
            this.tableLayoutPanel2.TabIndex = 12;
            // 
            // UcFiltrosVentas
            // 
            this.UcFiltrosVentas.Dock = System.Windows.Forms.DockStyle.Fill;
            this.UcFiltrosVentas.Location = new System.Drawing.Point(5, 5);
            this.UcFiltrosVentas.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
            this.UcFiltrosVentas.Name = "UcFiltrosVentas";
            this.UcFiltrosVentas.NumeroComprobante = null;
            this.UcFiltrosVentas.Size = new System.Drawing.Size(1359, 165);
            this.UcFiltrosVentas.TabIndex = 13;
            this.UcFiltrosVentas.TextoABuscar = "";
            // 
            // UcProgressSpinner
            // 
            this.UcProgressSpinner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.UcProgressSpinner.Location = new System.Drawing.Point(1491, 5);
            this.UcProgressSpinner.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
            this.UcProgressSpinner.Name = "UcProgressSpinner";
            this.UcProgressSpinner.Size = new System.Drawing.Size(216, 33);
            this.UcProgressSpinner.TabIndex = 11;
            // 
            // GridVentas
            // 
            this.GridVentas.Dock = System.Windows.Forms.DockStyle.Fill;
            this.GridVentas.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.GridVentas.Location = new System.Drawing.Point(0, 0);
            this.GridVentas.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
            // 
            // GridVentas
            // 
            this.GridVentas.MasterTemplate.AllowAddNewRow = false;
            this.GridVentas.MasterTemplate.AllowColumnReorder = false;
            this.GridVentas.MasterTemplate.AllowDeleteRow = false;
            this.GridVentas.MasterTemplate.AllowDragToGroup = false;
            this.GridVentas.MasterTemplate.AllowEditRow = false;
            this.GridVentas.MasterTemplate.AllowRowResize = false;
            this.GridVentas.MasterTemplate.AutoGenerateColumns = false;
            this.GridVentas.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            gridViewTextBoxColumn1.FieldName = "FechaAlta";
            gridViewTextBoxColumn1.FormatString = "{0: dd/M/yyyy}";
            gridViewTextBoxColumn1.HeaderText = "Fecha Alta";
            gridViewTextBoxColumn1.MinWidth = 100;
            gridViewTextBoxColumn1.Name = "FechaAlta";
            gridViewTextBoxColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            gridViewTextBoxColumn1.Width = 260;
            gridViewTextBoxColumn2.FieldName = "LCN";
            gridViewTextBoxColumn2.HeaderText = "LCN";
            gridViewTextBoxColumn2.Name = "LCN";
            gridViewTextBoxColumn2.Width = 256;
            gridViewTextBoxColumn3.FieldName = "EstadosVentaAbreviatura";
            gridViewTextBoxColumn3.HeaderText = "Estado";
            gridViewTextBoxColumn3.IsVisible = false;
            gridViewTextBoxColumn3.MinWidth = 80;
            gridViewTextBoxColumn3.Name = "EstadosVentaAbreviatura";
            gridViewTextBoxColumn3.Width = 80;
            gridViewTextBoxColumn4.FieldName = "TiposComprobanteAbreviatura";
            gridViewTextBoxColumn4.HeaderText = "Tpo. Comp.";
            gridViewTextBoxColumn4.IsVisible = false;
            gridViewTextBoxColumn4.MinWidth = 80;
            gridViewTextBoxColumn4.Name = "TiposComprobanteAbreviatura";
            gridViewTextBoxColumn4.Width = 80;
            gridViewTextBoxColumn5.FieldName = "ClienteDenominacion";
            gridViewTextBoxColumn5.HeaderText = "Cliente";
            gridViewTextBoxColumn5.MinWidth = 200;
            gridViewTextBoxColumn5.Name = "ClienteDenominacion";
            gridViewTextBoxColumn5.Width = 426;
            gridViewTextBoxColumn6.FieldName = "LetraComprobante";
            gridViewTextBoxColumn6.HeaderText = "Lta. Comp.";
            gridViewTextBoxColumn6.IsVisible = false;
            gridViewTextBoxColumn6.MaxWidth = 80;
            gridViewTextBoxColumn6.MinWidth = 80;
            gridViewTextBoxColumn6.Name = "LetraComprobante";
            gridViewTextBoxColumn6.Width = 80;
            gridViewTextBoxColumn7.FieldName = "NumeroComprobante";
            gridViewTextBoxColumn7.HeaderText = "Nro Comp.";
            gridViewTextBoxColumn7.MinWidth = 80;
            gridViewTextBoxColumn7.Name = "NumeroComprobante";
            gridViewTextBoxColumn7.Width = 210;
            gridViewTextBoxColumn8.FieldName = "CondicionesVentaDescripcion";
            gridViewTextBoxColumn8.HeaderText = "Cond. Vta.";
            gridViewTextBoxColumn8.IsVisible = false;
            gridViewTextBoxColumn8.MinWidth = 80;
            gridViewTextBoxColumn8.Name = "CondicionesVentaDescripcion";
            gridViewTextBoxColumn8.Width = 101;
            gridViewTextBoxColumn9.FieldName = "Concepto";
            gridViewTextBoxColumn9.HeaderText = "Concepto";
            gridViewTextBoxColumn9.MinWidth = 130;
            gridViewTextBoxColumn9.Name = "Concepto";
            gridViewTextBoxColumn9.Width = 338;
            gridViewTextBoxColumn10.FieldName = "ImporteNeto";
            gridViewTextBoxColumn10.FormatString = "{0:N2}";
            gridViewTextBoxColumn10.HeaderText = "Importe Neto";
            gridViewTextBoxColumn10.IsVisible = false;
            gridViewTextBoxColumn10.MinWidth = 100;
            gridViewTextBoxColumn10.Name = "ImporteNeto";
            gridViewTextBoxColumn10.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn10.Width = 136;
            gridViewTextBoxColumn11.FieldName = "ImporteIva";
            gridViewTextBoxColumn11.FormatString = "{0:N2}";
            gridViewTextBoxColumn11.HeaderText = "Importe Iva";
            gridViewTextBoxColumn11.IsVisible = false;
            gridViewTextBoxColumn11.MinWidth = 100;
            gridViewTextBoxColumn11.Name = "ImporteIva";
            gridViewTextBoxColumn11.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn11.Width = 152;
            gridViewTextBoxColumn12.FieldName = "ImporteSena";
            gridViewTextBoxColumn12.FormatString = "{0:N2}";
            gridViewTextBoxColumn12.HeaderText = "Importe Seña";
            gridViewTextBoxColumn12.IsVisible = false;
            gridViewTextBoxColumn12.MinWidth = 100;
            gridViewTextBoxColumn12.Name = "ImporteSena";
            gridViewTextBoxColumn12.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn12.Width = 173;
            gridViewTextBoxColumn13.FieldName = "TotalPagado";
            gridViewTextBoxColumn13.FormatString = "{0:N2}";
            gridViewTextBoxColumn13.HeaderText = "Total Pagado";
            gridViewTextBoxColumn13.MinWidth = 100;
            gridViewTextBoxColumn13.Name = "TotalPagado";
            gridViewTextBoxColumn13.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn13.Width = 136;
            gridViewTextBoxColumn14.FieldName = "FechaUltimoPago";
            gridViewTextBoxColumn14.FormatString = "{0: dd/M/yyyy}";
            gridViewTextBoxColumn14.HeaderText = "F. Ultimo Pago";
            gridViewTextBoxColumn14.IsVisible = false;
            gridViewTextBoxColumn14.MinWidth = 100;
            gridViewTextBoxColumn14.Name = "FechaUltimoPago";
            gridViewTextBoxColumn14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            gridViewTextBoxColumn14.Width = 115;
            gridViewCommandColumn1.HeaderText = "";
            gridViewCommandColumn1.Image = global::LaPaz.Win.Properties.Resources.Print_16x16;
            gridViewCommandColumn1.MaxWidth = 30;
            gridViewCommandColumn1.MinWidth = 30;
            gridViewCommandColumn1.Name = "Imprimir";
            gridViewCommandColumn1.Width = 30;
            gridViewCommandColumn2.HeaderText = "";
            gridViewCommandColumn2.Name = "column1";
            gridViewCommandColumn2.Width = 49;
            this.GridVentas.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
            gridViewTextBoxColumn1,
            gridViewTextBoxColumn2,
            gridViewTextBoxColumn3,
            gridViewTextBoxColumn4,
            gridViewTextBoxColumn5,
            gridViewTextBoxColumn6,
            gridViewTextBoxColumn7,
            gridViewTextBoxColumn8,
            gridViewTextBoxColumn9,
            gridViewTextBoxColumn10,
            gridViewTextBoxColumn11,
            gridViewTextBoxColumn12,
            gridViewTextBoxColumn13,
            gridViewTextBoxColumn14,
            gridViewCommandColumn1,
            gridViewCommandColumn2});
            this.GridVentas.MasterTemplate.EnableGrouping = false;
            this.GridVentas.Name = "GridVentas";
            this.GridVentas.ReadOnly = true;
            this.GridVentas.Size = new System.Drawing.Size(1720, 748);
            this.GridVentas.TabIndex = 8;
            this.GridVentas.ThemeName = "TelerikMetroBlue";
            this.GridVentas.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridProveedores_CommandCellClick);
            // 
            // FrmVentasListado
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScroll = true;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(1720, 972);
            this.Controls.Add(this.splitContainer1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FrmVentasListado";
            // 
            // 
            // 
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "Ventas Historial";
            this.Load += new System.EventHandler(this.FrmVentasListado_Load);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.GridVentas.MasterTemplate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridVentas)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);

        }
示例#27
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinFormsControls.MySpanishRadGridLocalizationProvider();
                grdItems.Columns.Clear();
                grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                grdItems.Columns.Add(commandColumn);
                grdItems.Columns["Edit"].AllowSort      = false;
                grdItems.Columns["Edit"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Delete";
                commandColumn.HeaderText     = "Eliminar";
                commandColumn.DefaultText    = "Eliminar";
                commandColumn.UseDefaultText = true;
                grdItems.Columns.Add(commandColumn);
                grdItems.Columns["Delete"].AllowSort      = false;
                grdItems.Columns["Delete"].AllowFiltering = false;

                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Anular";
                commandColumn.HeaderText     = "Anular";
                commandColumn.DefaultText    = "Anular";
                commandColumn.UseDefaultText = true;
                grdItems.Columns.Add(commandColumn);
                grdItems.Columns["Anular"].AllowSort      = false;
                grdItems.Columns["Anular"].AllowFiltering = false;

                grdItems.Columns.Add("COPE_NumDoc", "Número Operación", "COPE_NumDoc");
                grdItems.Columns.Add("COPE_MBL", "MBL", "COPE_MBL");
                grdItems.Columns.Add("COPE_HBL", "HBL", "COPE_HBL");

                grdItems.Columns.Add("COPE_FecEmi", "Fecha Emisión", "COPE_FecEmi");
                grdItems.Columns.Add("Cliente", "Cliente", "Cliente");
                grdItems.Columns.Add("Transportista", "Transportista", "Transportista");

                grdItems.Columns.Add("COPE_Nave", "Nave", "COPE_Nave");
                grdItems.Columns.Add("COPE_Viaje", "Viaje", "COPE_Viaje");
                grdItems.Columns.Add("DDOV_FecEmbarque", "Fecha Embarque", "DDOV_FecEmbarque");
                grdItems.Columns.Add("NVIA_FecETA_IMPO_ETD_EXPO", "Fecha ETA/ETD", "NVIA_FecETA_IMPO_ETD_EXPO");

                grdItems.Columns.Add("Agente", "Agente", "Agente");
                grdItems.Columns.Add("MonedaSTR", "Moneda", "MonedaSTR");
                grdItems.Columns.Add("COPE_ValorCosto", "Valor Costo", "COPE_ValorCosto");
                grdItems.Columns["COPE_ValorCosto"].Width         = 50;
                grdItems.Columns["COPE_ValorCosto"].FormatString  = @"{0:###,##0.00}";
                grdItems.Columns["COPE_ValorCosto"].AutoSizeMode  = BestFitColumnMode.DisplayedCells;
                grdItems.Columns["COPE_ValorCosto"].TextAlignment = ContentAlignment.MiddleRight;

                grdItems.Columns.Add("COPE_ValorVenta", "Valor Venta", "COPE_ValorVenta");
                grdItems.Columns["COPE_ValorVenta"].Width         = 50;
                grdItems.Columns["COPE_ValorVenta"].FormatString  = @"{0:###,##0.00}";
                grdItems.Columns["COPE_ValorVenta"].AutoSizeMode  = BestFitColumnMode.DisplayedCells;
                grdItems.Columns["COPE_ValorVenta"].TextAlignment = ContentAlignment.MiddleRight;

                grdItems.Columns.Add("COPE_Profit", "Profit", "COPE_Profit");
                grdItems.Columns["COPE_Profit"].Width         = 50;
                grdItems.Columns["COPE_Profit"].FormatString  = @"{0:###,##0.00}";
                grdItems.Columns["COPE_Profit"].AutoSizeMode  = BestFitColumnMode.DisplayedCells;
                grdItems.Columns["COPE_Profit"].TextAlignment = ContentAlignment.MiddleRight;

                grdItems.Columns.Add("Situacion_fact_clie", "Situación Fact. Cliente", "Situacion_fact_clie");
                grdItems.Columns.Add("Situacion_fact_Prov", "Situación Fact. Proveedor", "Situacion_fact_Prov");
                grdItems.Columns.Add("CONS_CodEstadoSTR", "Estado", "CONS_CodEstadoSTR");

                grdItems.BestFitColumns();
                grdItems.ContextMenuStrip = cmsItems;

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);
                Infrastructure.WinFormsControls.GridAutoFit.Fit(grdItems);
            }
            catch (Exception ex)
            { Infrastructure.WinFormsControls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn7  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn8  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn9  = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn10 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn11 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn12 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn13 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn14 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1  = new Telerik.WinControls.UI.GridViewCommandColumn();
     Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2  = new Telerik.WinControls.UI.GridViewCommandColumn();
     this.splitContainer1   = new System.Windows.Forms.SplitContainer();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.ProveedoresPager  = new Framework.WinForm.Controls.MetroPager();
     this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
     this.UcFiltrosVentas   = new LaPaz.Win.Forms.Ventas.UcFiltrosVentas();
     this.UcProgressSpinner = new LaPaz.Win.Forms.Util.UcProgressSpinner();
     this.GridVentas        = new Telerik.WinControls.UI.RadGridView();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GridVentas)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridVentas.MasterTemplate)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel      = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.IsSplitterFixed = true;
     this.splitContainer1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name            = "splitContainer1";
     this.splitContainer1.Orientation     = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.GridVentas);
     this.splitContainer1.Size             = new System.Drawing.Size(1720, 972);
     this.splitContainer1.SplitterDistance = 220;
     this.splitContainer1.TabIndex         = 0;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Controls.Add(this.ProveedoresPager, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 2;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1720, 220);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // ProveedoresPager
     //
     this.ProveedoresPager.Anchor             = System.Windows.Forms.AnchorStyles.Right;
     this.ProveedoresPager.CurrentPage        = 1;
     this.ProveedoresPager.Location           = new System.Drawing.Point(1211, 185);
     this.ProveedoresPager.Margin             = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.ProveedoresPager.Name               = "ProveedoresPager";
     this.ProveedoresPager.PageSize           = 50;
     this.ProveedoresPager.PageTotal          = 1;
     this.ProveedoresPager.RefreshAction      = null;
     this.ProveedoresPager.RefreshActionAsync = null;
     this.ProveedoresPager.Size               = new System.Drawing.Size(504, 48);
     this.ProveedoresPager.TabIndex           = 10;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
     this.tableLayoutPanel2.Controls.Add(this.UcFiltrosVentas, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.UcProgressSpinner, 1, 0);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(4, 4);
     this.tableLayoutPanel2.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(1712, 172);
     this.tableLayoutPanel2.TabIndex = 12;
     //
     // UcFiltrosVentas
     //
     this.UcFiltrosVentas.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.UcFiltrosVentas.Location          = new System.Drawing.Point(5, 5);
     this.UcFiltrosVentas.Margin            = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.UcFiltrosVentas.Name              = "UcFiltrosVentas";
     this.UcFiltrosVentas.NumeroComprobante = null;
     this.UcFiltrosVentas.Size              = new System.Drawing.Size(1359, 165);
     this.UcFiltrosVentas.TabIndex          = 13;
     this.UcFiltrosVentas.TextoABuscar      = "";
     //
     // UcProgressSpinner
     //
     this.UcProgressSpinner.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.UcProgressSpinner.Location = new System.Drawing.Point(1491, 5);
     this.UcProgressSpinner.Margin   = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.UcProgressSpinner.Name     = "UcProgressSpinner";
     this.UcProgressSpinner.Size     = new System.Drawing.Size(216, 33);
     this.UcProgressSpinner.TabIndex = 11;
     //
     // GridVentas
     //
     this.GridVentas.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.GridVentas.Font     = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.GridVentas.Location = new System.Drawing.Point(0, 0);
     this.GridVentas.Margin   = new System.Windows.Forms.Padding(7, 6, 7, 6);
     //
     // GridVentas
     //
     this.GridVentas.MasterTemplate.AllowAddNewRow      = false;
     this.GridVentas.MasterTemplate.AllowColumnReorder  = false;
     this.GridVentas.MasterTemplate.AllowDeleteRow      = false;
     this.GridVentas.MasterTemplate.AllowDragToGroup    = false;
     this.GridVentas.MasterTemplate.AllowEditRow        = false;
     this.GridVentas.MasterTemplate.AllowRowResize      = false;
     this.GridVentas.MasterTemplate.AutoGenerateColumns = false;
     this.GridVentas.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
     gridViewTextBoxColumn1.FieldName      = "FechaAlta";
     gridViewTextBoxColumn1.FormatString   = "{0: dd/M/yyyy}";
     gridViewTextBoxColumn1.HeaderText     = "Fecha Alta";
     gridViewTextBoxColumn1.MinWidth       = 100;
     gridViewTextBoxColumn1.Name           = "FechaAlta";
     gridViewTextBoxColumn1.TextAlignment  = System.Drawing.ContentAlignment.MiddleCenter;
     gridViewTextBoxColumn1.Width          = 260;
     gridViewTextBoxColumn2.FieldName      = "LCN";
     gridViewTextBoxColumn2.HeaderText     = "LCN";
     gridViewTextBoxColumn2.Name           = "LCN";
     gridViewTextBoxColumn2.Width          = 256;
     gridViewTextBoxColumn3.FieldName      = "EstadosVentaAbreviatura";
     gridViewTextBoxColumn3.HeaderText     = "Estado";
     gridViewTextBoxColumn3.IsVisible      = false;
     gridViewTextBoxColumn3.MinWidth       = 80;
     gridViewTextBoxColumn3.Name           = "EstadosVentaAbreviatura";
     gridViewTextBoxColumn3.Width          = 80;
     gridViewTextBoxColumn4.FieldName      = "TiposComprobanteAbreviatura";
     gridViewTextBoxColumn4.HeaderText     = "Tpo. Comp.";
     gridViewTextBoxColumn4.IsVisible      = false;
     gridViewTextBoxColumn4.MinWidth       = 80;
     gridViewTextBoxColumn4.Name           = "TiposComprobanteAbreviatura";
     gridViewTextBoxColumn4.Width          = 80;
     gridViewTextBoxColumn5.FieldName      = "ClienteDenominacion";
     gridViewTextBoxColumn5.HeaderText     = "Cliente";
     gridViewTextBoxColumn5.MinWidth       = 200;
     gridViewTextBoxColumn5.Name           = "ClienteDenominacion";
     gridViewTextBoxColumn5.Width          = 426;
     gridViewTextBoxColumn6.FieldName      = "LetraComprobante";
     gridViewTextBoxColumn6.HeaderText     = "Lta. Comp.";
     gridViewTextBoxColumn6.IsVisible      = false;
     gridViewTextBoxColumn6.MaxWidth       = 80;
     gridViewTextBoxColumn6.MinWidth       = 80;
     gridViewTextBoxColumn6.Name           = "LetraComprobante";
     gridViewTextBoxColumn6.Width          = 80;
     gridViewTextBoxColumn7.FieldName      = "NumeroComprobante";
     gridViewTextBoxColumn7.HeaderText     = "Nro Comp.";
     gridViewTextBoxColumn7.MinWidth       = 80;
     gridViewTextBoxColumn7.Name           = "NumeroComprobante";
     gridViewTextBoxColumn7.Width          = 210;
     gridViewTextBoxColumn8.FieldName      = "CondicionesVentaDescripcion";
     gridViewTextBoxColumn8.HeaderText     = "Cond. Vta.";
     gridViewTextBoxColumn8.IsVisible      = false;
     gridViewTextBoxColumn8.MinWidth       = 80;
     gridViewTextBoxColumn8.Name           = "CondicionesVentaDescripcion";
     gridViewTextBoxColumn8.Width          = 101;
     gridViewTextBoxColumn9.FieldName      = "Concepto";
     gridViewTextBoxColumn9.HeaderText     = "Concepto";
     gridViewTextBoxColumn9.MinWidth       = 130;
     gridViewTextBoxColumn9.Name           = "Concepto";
     gridViewTextBoxColumn9.Width          = 338;
     gridViewTextBoxColumn10.FieldName     = "ImporteNeto";
     gridViewTextBoxColumn10.FormatString  = "{0:N2}";
     gridViewTextBoxColumn10.HeaderText    = "Importe Neto";
     gridViewTextBoxColumn10.IsVisible     = false;
     gridViewTextBoxColumn10.MinWidth      = 100;
     gridViewTextBoxColumn10.Name          = "ImporteNeto";
     gridViewTextBoxColumn10.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn10.Width         = 136;
     gridViewTextBoxColumn11.FieldName     = "ImporteIva";
     gridViewTextBoxColumn11.FormatString  = "{0:N2}";
     gridViewTextBoxColumn11.HeaderText    = "Importe Iva";
     gridViewTextBoxColumn11.IsVisible     = false;
     gridViewTextBoxColumn11.MinWidth      = 100;
     gridViewTextBoxColumn11.Name          = "ImporteIva";
     gridViewTextBoxColumn11.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn11.Width         = 152;
     gridViewTextBoxColumn12.FieldName     = "ImporteSena";
     gridViewTextBoxColumn12.FormatString  = "{0:N2}";
     gridViewTextBoxColumn12.HeaderText    = "Importe Seña";
     gridViewTextBoxColumn12.IsVisible     = false;
     gridViewTextBoxColumn12.MinWidth      = 100;
     gridViewTextBoxColumn12.Name          = "ImporteSena";
     gridViewTextBoxColumn12.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn12.Width         = 173;
     gridViewTextBoxColumn13.FieldName     = "TotalPagado";
     gridViewTextBoxColumn13.FormatString  = "{0:N2}";
     gridViewTextBoxColumn13.HeaderText    = "Total Pagado";
     gridViewTextBoxColumn13.MinWidth      = 100;
     gridViewTextBoxColumn13.Name          = "TotalPagado";
     gridViewTextBoxColumn13.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     gridViewTextBoxColumn13.Width         = 136;
     gridViewTextBoxColumn14.FieldName     = "FechaUltimoPago";
     gridViewTextBoxColumn14.FormatString  = "{0: dd/M/yyyy}";
     gridViewTextBoxColumn14.HeaderText    = "F. Ultimo Pago";
     gridViewTextBoxColumn14.IsVisible     = false;
     gridViewTextBoxColumn14.MinWidth      = 100;
     gridViewTextBoxColumn14.Name          = "FechaUltimoPago";
     gridViewTextBoxColumn14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     gridViewTextBoxColumn14.Width         = 115;
     gridViewCommandColumn1.HeaderText     = "";
     gridViewCommandColumn1.Image          = global::LaPaz.Win.Properties.Resources.Print_16x16;
     gridViewCommandColumn1.MaxWidth       = 30;
     gridViewCommandColumn1.MinWidth       = 30;
     gridViewCommandColumn1.Name           = "Imprimir";
     gridViewCommandColumn1.Width          = 30;
     gridViewCommandColumn2.HeaderText     = "";
     gridViewCommandColumn2.Name           = "column1";
     gridViewCommandColumn2.Width          = 49;
     this.GridVentas.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
         gridViewTextBoxColumn1,
         gridViewTextBoxColumn2,
         gridViewTextBoxColumn3,
         gridViewTextBoxColumn4,
         gridViewTextBoxColumn5,
         gridViewTextBoxColumn6,
         gridViewTextBoxColumn7,
         gridViewTextBoxColumn8,
         gridViewTextBoxColumn9,
         gridViewTextBoxColumn10,
         gridViewTextBoxColumn11,
         gridViewTextBoxColumn12,
         gridViewTextBoxColumn13,
         gridViewTextBoxColumn14,
         gridViewCommandColumn1,
         gridViewCommandColumn2
     });
     this.GridVentas.MasterTemplate.EnableGrouping = false;
     this.GridVentas.Name              = "GridVentas";
     this.GridVentas.ReadOnly          = true;
     this.GridVentas.Size              = new System.Drawing.Size(1720, 748);
     this.GridVentas.TabIndex          = 8;
     this.GridVentas.ThemeName         = "TelerikMetroBlue";
     this.GridVentas.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridProveedores_CommandCellClick);
     //
     // FrmVentasListado
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScroll          = true;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(1720, 972);
     this.Controls.Add(this.splitContainer1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Margin          = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FrmVentasListado";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.Text  = "Ventas Historial";
     this.Load += new System.EventHandler(this.FrmVentasListado_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.GridVentas.MasterTemplate)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GridVentas)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.PresupuestoPager = new Framework.WinForm.Controls.MetroPager();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.UcFiltrosPresupuesto = new LaPaz.Win.Forms.Presupuesto.UcFiltrosPresupuesto();
            this.UcProgressSpinner = new LaPaz.Win.Forms.Util.UcProgressSpinner();
            this.GridPresupuestos = new Telerik.WinControls.UI.RadGridView();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos.MasterTemplate)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.splitContainer1.IsSplitterFixed = true;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.GridPresupuestos);
            this.splitContainer1.Size = new System.Drawing.Size(1506, 920);
            this.splitContainer1.SplitterDistance = 220;
            this.splitContainer1.TabIndex = 0;
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Controls.Add(this.PresupuestoPager, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.Size = new System.Drawing.Size(1506, 220);
            this.tableLayoutPanel1.TabIndex = 0;
            // 
            // PresupuestoPager
            // 
            this.PresupuestoPager.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.PresupuestoPager.CurrentPage = 1;
            this.PresupuestoPager.Location = new System.Drawing.Point(1125, 163);
            this.PresupuestoPager.Name = "PresupuestoPager";
            this.PresupuestoPager.PageSize = 50;
            this.PresupuestoPager.PageTotal = 1;
            this.PresupuestoPager.RefreshAction = null;
            this.PresupuestoPager.RefreshActionAsync = null;
            this.PresupuestoPager.Size = new System.Drawing.Size(378, 39);
            this.PresupuestoPager.TabIndex = 10;
            // 
            // tableLayoutPanel2
            // 
            this.tableLayoutPanel2.ColumnCount = 2;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
            this.tableLayoutPanel2.Controls.Add(this.UcFiltrosPresupuesto, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.UcProgressSpinner, 1, 0);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 1;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.Size = new System.Drawing.Size(1500, 140);
            this.tableLayoutPanel2.TabIndex = 12;
            // 
            // UcFiltrosPresupuesto
            // 
            this.UcFiltrosPresupuesto.Dock = System.Windows.Forms.DockStyle.Fill;
            this.UcFiltrosPresupuesto.Location = new System.Drawing.Point(3, 3);
            this.UcFiltrosPresupuesto.Name = "UcFiltrosPresupuesto";
            this.UcFiltrosPresupuesto.Size = new System.Drawing.Size(1194, 134);
            this.UcFiltrosPresupuesto.TabIndex = 13;
            this.UcFiltrosPresupuesto.TextoABuscar = "";
            // 
            // UcProgressSpinner
            // 
            this.UcProgressSpinner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.UcProgressSpinner.Location = new System.Drawing.Point(1335, 3);
            this.UcProgressSpinner.Name = "UcProgressSpinner";
            this.UcProgressSpinner.Size = new System.Drawing.Size(162, 27);
            this.UcProgressSpinner.TabIndex = 11;
            // 
            // GridPresupuestos
            // 
            this.GridPresupuestos.Dock = System.Windows.Forms.DockStyle.Fill;
            this.GridPresupuestos.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.GridPresupuestos.Location = new System.Drawing.Point(0, 0);
            this.GridPresupuestos.Margin = new System.Windows.Forms.Padding(5);
            // 
            // GridPresupuestos
            // 
            this.GridPresupuestos.MasterTemplate.AllowAddNewRow = false;
            this.GridPresupuestos.MasterTemplate.AllowColumnReorder = false;
            this.GridPresupuestos.MasterTemplate.AllowDeleteRow = false;
            this.GridPresupuestos.MasterTemplate.AllowDragToGroup = false;
            this.GridPresupuestos.MasterTemplate.AllowEditRow = false;
            this.GridPresupuestos.MasterTemplate.AllowRowResize = false;
            this.GridPresupuestos.MasterTemplate.AutoGenerateColumns = false;
            this.GridPresupuestos.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            gridViewTextBoxColumn1.FieldName = "FechaAlta";
            gridViewTextBoxColumn1.FormatString = "{0: dd/M/yyyy}";
            gridViewTextBoxColumn1.HeaderText = "Fecha Alta";
            gridViewTextBoxColumn1.MinWidth = 100;
            gridViewTextBoxColumn1.Name = "FechaAlta";
            gridViewTextBoxColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            gridViewTextBoxColumn1.Width = 218;
            gridViewTextBoxColumn2.FieldName = "LCN";
            gridViewTextBoxColumn2.HeaderText = "LCN";
            gridViewTextBoxColumn2.Name = "LCN";
            gridViewTextBoxColumn2.Width = 105;
            gridViewTextBoxColumn3.FieldName = "ClienteDenominacion";
            gridViewTextBoxColumn3.HeaderText = "Cliente";
            gridViewTextBoxColumn3.MinWidth = 200;
            gridViewTextBoxColumn3.Name = "ClienteDenominacion";
            gridViewTextBoxColumn3.Width = 422;
            gridViewTextBoxColumn4.FieldName = "Concepto";
            gridViewTextBoxColumn4.HeaderText = "Concepto";
            gridViewTextBoxColumn4.MinWidth = 130;
            gridViewTextBoxColumn4.Name = "Concepto";
            gridViewTextBoxColumn4.Width = 279;
            gridViewTextBoxColumn5.FieldName = "Descuento";
            gridViewTextBoxColumn5.FormatString = "{0:N2}";
            gridViewTextBoxColumn5.HeaderText = "Descuento";
            gridViewTextBoxColumn5.MinWidth = 100;
            gridViewTextBoxColumn5.Name = "Descuento";
            gridViewTextBoxColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn5.Width = 218;
            gridViewTextBoxColumn6.FieldName = "Total";
            gridViewTextBoxColumn6.FormatString = "{0:N2}";
            gridViewTextBoxColumn6.HeaderText = "Total";
            gridViewTextBoxColumn6.MinWidth = 100;
            gridViewTextBoxColumn6.Name = "Total";
            gridViewTextBoxColumn6.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn6.Width = 218;
            gridViewCommandColumn1.HeaderText = "";
            gridViewCommandColumn1.Image = global::LaPaz.Win.Properties.Resources.Print_16x16;
            gridViewCommandColumn1.MaxWidth = 30;
            gridViewCommandColumn1.MinWidth = 30;
            gridViewCommandColumn1.Name = "Imprimir";
            gridViewCommandColumn1.Width = 30;
            this.GridPresupuestos.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
            gridViewTextBoxColumn1,
            gridViewTextBoxColumn2,
            gridViewTextBoxColumn3,
            gridViewTextBoxColumn4,
            gridViewTextBoxColumn5,
            gridViewTextBoxColumn6,
            gridViewCommandColumn1});
            this.GridPresupuestos.MasterTemplate.EnableGrouping = false;
            this.GridPresupuestos.Name = "GridPresupuestos";
            this.GridPresupuestos.ReadOnly = true;
            this.GridPresupuestos.Size = new System.Drawing.Size(1506, 696);
            this.GridPresupuestos.TabIndex = 8;
            this.GridPresupuestos.ThemeName = "TelerikMetroBlue";
            this.GridPresupuestos.CommandCellClick += new Telerik.WinControls.UI.CommandCellClickEventHandler(this.GridPresupuestos_CommandCellClick);
            // 
            // FrmPresupuestoListado
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScroll = true;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(1506, 920);
            this.Controls.Add(this.splitContainer1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FrmPresupuestoListado";
            // 
            // 
            // 
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "Presupuestos Historial";
            this.Load += new System.EventHandler(this.FrmVentasListado_Load);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos.MasterTemplate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.GridPresupuestos)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);

        }
示例#30
0
        private void FormatDataGrid()
        {
            try
            {
                Telerik.WinControls.UI.Localization.RadGridLocalizationProvider.CurrentProvider = new Infrastructure.WinForms.Controls.MySpanishRadGridLocalizationProvider();
                this.grdItems.Columns.Clear();
                this.grdItems.AllowAddNewRow = false;
                Telerik.WinControls.UI.GridViewCommandColumn commandColumn;
                commandColumn                = new Telerik.WinControls.UI.GridViewCommandColumn();
                commandColumn.Name           = "Edit";
                commandColumn.HeaderText     = "Editar";
                commandColumn.DefaultText    = "Editar";
                commandColumn.UseDefaultText = true;
                this.grdItems.Columns.Add(commandColumn);
                this.grdItems.Columns["Edit"].AllowSort      = false;
                this.grdItems.Columns["Edit"].AllowFiltering = false;
                //commandColumn = new Telerik.WinControls.UI.GridViewCommandColumn();
                //commandColumn.Name = "Delete";
                //commandColumn.HeaderText = "Eliminar";
                //commandColumn.DefaultText = "Eliminar";
                //commandColumn.UseDefaultText = true;
                //this.grdItemLViews.Columns.Add(commandColumn);
                //this.grdItemLViews.Columns["Delete"].AllowSort = false;
                //this.grdItemLViews.Columns["Delete"].AllowFiltering = false;

                this.grdItems.Columns.Add("CONS_DescEST", "Estado", "CONS_DescEST");
                this.grdItems.Columns.Add("CONS_CodEST", "CodEstado", "CONS_CodEST");
                this.grdItems.Columns["CONS_CodEST"].IsVisible = false;
                if (Presenter.CCOT_Tipo == Delfin.Controls.variables.CCOT_TipoCotizacion)
                {
                    this.grdItems.Columns.Add("CCOT_NumDocVersion", "Número/Versión Cotización", "CCOT_NumDocVersion");
                }
                else if (Presenter.CCOT_Tipo == Delfin.Controls.variables.CCOT_TipoOrdenVenta)
                {
                    this.grdItems.Columns.Add("CCOT_NumDoc", "Número Orden Venta", "CCOT_NumDoc");
                    this.grdItems.Columns.Add("CCOT_NumDocCOT", "Número/Versión Cotización", "CCOT_NumDocCOT");
                    this.grdItems.Columns.Add("DOOV_HBL", "BL Hijo", "DOOV_HBL");
                }

                this.grdItems.Columns.Add("CCOT_NumPresupuesto", "No. CRM", "CCOT_NumPresupuesto");
                this.grdItems.Columns.Add("CCOT_FecEmi", "Fecha Emisión", "CCOT_FecEmi");
                this.grdItems.Columns.Add("ENTC_NomCliente", "Cliente", "ENTC_NomCliente");
                this.grdItems.Columns.Add("CONS_DescRGM", "Régimen", "CONS_DescRGM");
                this.grdItems.Columns.Add("CONS_DescVia", "Tipo Vía", "CONS_DescVia");
                this.grdItems.Columns.Add("CONS_DescFLE", "Condición Embarque", "CONS_DescFLE");
                this.grdItems.Columns.Add("ENTC_NomEjecutivo", "Ejecutivo Ventas", "ENTC_NomEjecutivo");


                //número de cotización (resultado de concatenar con guiones la sigla de la empresa, el año de la cotización, el número de cotización y el número de la última versión)
                //número de presupuesto siempre y cuando la cotización forme parte de un presupuesto
                //fecha de emisión
                //la razón social del cliente/prospecto
                //régimen
                //tipo de vía
                //condición de embarque
                //ejecutivo de ventas
                //estado.

                grdItems.BestFitColumns();
                //grdItems.ContextMenuStrip = cmsItems;

                tsmColumnas.DropDownItems.Clear();
                defaultColumns = new string[grdItems.Columns.Count];
                int index = 0;
                foreach (Telerik.WinControls.UI.GridViewDataColumn column in grdItems.Columns)
                {
                    ToolStripMenuItem _item = new ToolStripMenuItem(column.HeaderText);
                    _item.Tag          = column.Name;
                    _item.Checked      = column.IsVisible;
                    _item.CheckOnClick = true;
                    _item.Click       += new EventHandler(tsmColumna_Click);
                    tsmColumnas.DropDownItems.Add(_item);

                    if (column.IsVisible)
                    {
                        defaultColumns[index] = column.Name; index += 1;
                    }
                }

                ToolStripSeparator tsmSeparacion = new ToolStripSeparator();
                tsmColumnas.DropDownItems.Add(tsmSeparacion);
                tsmTodos              = new ToolStripMenuItem("Todos");
                tsmTodos.Tag          = "Todas";
                tsmTodos.Checked      = false;
                tsmTodos.CheckOnClick = true;
                tsmTodos.Click       += new EventHandler(tsmTodos_Click);
                tsmColumnas.DropDownItems.Add(tsmTodos);

                Infrastructure.WinForms.Controls.GridAutoFit.Fit(grdItems);

                grdItems.ShowFilteringRow = false;
                grdItems.EnableFiltering  = true;
                grdItems.MasterTemplate.EnableFiltering = true;
                grdItems.EnableGrouping = false;
                grdItems.MasterTemplate.EnableGrouping = false;
                grdItems.EnableSorting = false;
                grdItems.MasterTemplate.EnableCustomSorting = false;
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Presenter.Title, Infrastructure.Aspect.Constants.Mensajes.FormatDataGridView, ex); }
        }