Exemple #1
0
        /// <summary>
        /// Actualiza la variable ColFiltros según los controles en pantalla.
        /// </summary>
        public void ActualizarFiltros()
        {
            foreach (Lazaro.Pres.Filters.IFilter Filtro in this.ColFiltros)
            {
                if (Filtro is Lazaro.Pres.Filters.NumericRangeFilter)
                {
                    Lcc.Entrada.RangoNumerico EntradaRangoNumerico        = Filtro.Control as Lcc.Entrada.RangoNumerico;
                    Lazaro.Pres.Filters.NumericRangeFilter FiltroNumerico = Filtro as Lazaro.Pres.Filters.NumericRangeFilter;

                    FiltroNumerico.Value  = EntradaRangoNumerico.Valule1;
                    FiltroNumerico.Value2 = EntradaRangoNumerico.Valule2;
                }
                else if (Filtro is Lazaro.Pres.Filters.SetFilter)
                {
                    Lazaro.Pres.Filters.SetFilter FiltroSet  = Filtro as Lazaro.Pres.Filters.SetFilter;
                    Lui.Forms.ComboBox            EntradaSet = Filtro.Control as Lui.Forms.ComboBox;

                    FiltroSet.CurrentValue = EntradaSet.TextKey;
                }
                else if (Filtro is Lazaro.Pres.Filters.DateRangeFilter)
                {
                    Lazaro.Pres.Filters.DateRangeFilter FiltroFechas       = Filtro as Lazaro.Pres.Filters.DateRangeFilter;
                    Lcc.Entrada.RangoFechas             EntradaRangoFechas = Filtro.Control as Lcc.Entrada.RangoFechas;

                    FiltroFechas.DateRange = EntradaRangoFechas.Rango;
                }
                else if (Filtro is Lazaro.Pres.Filters.RelationFilter)
                {
                    Lazaro.Pres.Filters.RelationFilter FiltroRelacion  = Filtro as Lazaro.Pres.Filters.RelationFilter;
                    Lcc.Entrada.CodigoDetalle          EntradaRelacion = Filtro.Control as Lcc.Entrada.CodigoDetalle;

                    FiltroRelacion.Elemento = EntradaRelacion.Elemento;
                }
                else
                {
                    // Tipo de filtro de reconocidgo
                }
            }
        }
Exemple #2
0
        public void FromFilters(Lazaro.Pres.Filters.FilterCollection filters)
        {
            this.SuspendLayout();
            this.TablaFiltros.SuspendLayout();
            this.ColFiltros            = filters;
            this.TablaFiltros.RowCount = filters.Count;

            while (TablaFiltros.RowStyles.Count < TablaFiltros.RowCount)
            {
                TablaFiltros.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.AutoSize));
            }

            int i = 0;

            foreach (Lazaro.Pres.Filters.IFilter Filtro in this.ColFiltros)
            {
                Label Etiqueta = new Label();
                Etiqueta.Name      = "etiqueta" + i.ToString();
                Etiqueta.Text      = Filtro.Label;
                Etiqueta.TextAlign = System.Drawing.ContentAlignment.TopLeft;
                Etiqueta.Margin    = new System.Windows.Forms.Padding(0, 4, 4, 0);
                Etiqueta.Dock      = DockStyle.Fill;
                this.TablaFiltros.Controls.Add(Etiqueta, 0, i);

                Control Entrada;
                if (Filtro is Lazaro.Pres.Filters.NumericRangeFilter)
                {
                    Lcc.Entrada.RangoNumerico EntradaRangoNumerico        = new Lcc.Entrada.RangoNumerico();
                    Lazaro.Pres.Filters.NumericRangeFilter FiltroNumerico = Filtro as Lazaro.Pres.Filters.NumericRangeFilter;
                    EntradaRangoNumerico.DecimalPlaces = FiltroNumerico.DecimalPlaces;
                    EntradaRangoNumerico.Valule1       = System.Convert.ToDecimal(FiltroNumerico.Value);
                    EntradaRangoNumerico.Valule2       = System.Convert.ToDecimal(FiltroNumerico.Value2);
                    EntradaRangoNumerico.Dock          = DockStyle.Top;
                    Entrada = EntradaRangoNumerico;
                }
                else if (Filtro is Lazaro.Pres.Filters.SetFilter)
                {
                    Lazaro.Pres.Filters.SetFilter FiltroSet  = Filtro as Lazaro.Pres.Filters.SetFilter;
                    Lui.Forms.ComboBox            EntradaSet = new Lui.Forms.ComboBox();
                    EntradaSet.SetData        = FiltroSet.SetData;
                    EntradaSet.TextKey        = FiltroSet.CurrentValue;
                    EntradaSet.Size           = new System.Drawing.Size(200, 24);
                    EntradaSet.AlwaysExpanded = EntradaSet.SetData != null && (EntradaSet.SetData.Length <= 4 || TablaFiltros.RowCount <= 6);
                    EntradaSet.AutoSize       = EntradaSet.AlwaysExpanded;
                    EntradaSet.Dock           = DockStyle.Top;
                    Entrada = EntradaSet;
                }
                else if (Filtro is Lazaro.Pres.Filters.DateRangeFilter)
                {
                    Lazaro.Pres.Filters.DateRangeFilter FiltroFechas       = Filtro as Lazaro.Pres.Filters.DateRangeFilter;
                    Lcc.Entrada.RangoFechas             EntradaRangoFechas = new Lcc.Entrada.RangoFechas();
                    EntradaRangoFechas.Rango    = FiltroFechas.DateRange;
                    EntradaRangoFechas.Size     = new System.Drawing.Size(160, 46);
                    EntradaRangoFechas.AutoSize = true;
                    EntradaRangoFechas.Dock     = DockStyle.Top;
                    Entrada = EntradaRangoFechas;
                }
                else if (Filtro is Lazaro.Pres.Filters.RelationFilter)
                {
                    Lazaro.Pres.Filters.RelationFilter FiltroRelacion  = Filtro as Lazaro.Pres.Filters.RelationFilter;
                    Lcc.Entrada.CodigoDetalle          EntradaRelacion = new Lcc.Entrada.CodigoDetalle();
                    EntradaRelacion.Required = false;
                    EntradaRelacion.Size     = new System.Drawing.Size(160, 24);
                    EntradaRelacion.Relation = FiltroRelacion.Relation;
                    if (FiltroRelacion.Filter != null)
                    {
                        EntradaRelacion.Filter = Lfx.Workspace.Master.Formatter.SqlText(FiltroRelacion.Filter);
                    }
                    EntradaRelacion.Elemento = (Lbl.IElementoDeDatos)FiltroRelacion.Elemento;
                    EntradaRelacion.Dock     = DockStyle.Top;
                    Entrada = EntradaRelacion;
                }
                else
                {
                    Entrada            = new Label();
                    Entrada.Text       = Filtro.GetType().ToString();
                    Etiqueta.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                }

                Entrada.Name   = "entrada" + i.ToString();
                Filtro.Control = Entrada;

                this.TablaFiltros.Controls.Add(Entrada, 1, i);
                i++;
            }

            this.TablaFiltros.ResumeLayout();
            this.ResumeLayout();
        }
Exemple #3
0
 private void InitializeComponent()
 {
     this.EntradaFormaDePago = new Lcc.Entrada.CodigoDetalle();
     this.Label16            = new Lui.Forms.Label();
     this.Label11            = new Lui.Forms.Label();
     this.EntradaPlanInteres = new Lui.Forms.TextBox();
     this.Label14            = new Lui.Forms.Label();
     this.EntradaPlanCuotas  = new Lui.Forms.TextBox();
     this.EtiquetaFecha1     = new Lui.Forms.Label();
     this.EntradaPlan        = new Lcc.Entrada.CodigoDetalle();
     this.Label15            = new Lui.Forms.Label();
     this.EntradaCliente     = new Lcc.Entrada.CodigoDetalle();
     this.Label1             = new Lui.Forms.Label();
     this.EntradaEstado      = new Lui.Forms.ComboBox();
     this.label3             = new Lui.Forms.Label();
     this.panel1             = new Lui.Forms.Panel();
     this.tableLayoutPanel1  = new Lui.Forms.TableLayoutPanel();
     this.EntradaFechas      = new Lcc.Entrada.RangoFechas();
     this.panel1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // OkButton
     //
     this.OkButton.Location = new System.Drawing.Point(354, 8);
     //
     // CancelCommandButton
     //
     this.CancelCommandButton.Location = new System.Drawing.Point(474, 8);
     //
     // txtTarjeta
     //
     this.EntradaFormaDePago.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaFormaDePago.AutoSize            = true;
     this.EntradaFormaDePago.CanCreate           = false;
     this.EntradaFormaDePago.Filter              = "tipo=4";
     this.EntradaFormaDePago.Location            = new System.Drawing.Point(85, 3);
     this.EntradaFormaDePago.MaxLength           = 200;
     this.EntradaFormaDePago.Name                = "txtTarjeta";
     this.EntradaFormaDePago.Required            = true;
     this.EntradaFormaDePago.Size                = new System.Drawing.Size(456, 24);
     this.EntradaFormaDePago.TabIndex            = 1;
     this.EntradaFormaDePago.NombreTipo          = "Lbl.Pagos.FormaDePago";
     this.EntradaFormaDePago.TeclaDespuesDeEnter = "{tab}";
     this.EntradaFormaDePago.Text                = "0";
     this.EntradaFormaDePago.ValueInt            = 0;
     this.EntradaFormaDePago.TextChanged        += new System.EventHandler(this.EntradaTarjeta_TextChanged);
     //
     // Label16
     //
     this.Label16.Location  = new System.Drawing.Point(3, 0);
     this.Label16.Name      = "Label16";
     this.Label16.Size      = new System.Drawing.Size(76, 24);
     this.Label16.TabIndex  = 0;
     this.Label16.Text      = "Tarjeta";
     this.Label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label11
     //
     this.Label11.Location  = new System.Drawing.Point(3, 90);
     this.Label11.Name      = "Label11";
     this.Label11.Size      = new System.Drawing.Size(76, 24);
     this.Label11.TabIndex  = 5;
     this.Label11.Text      = "Estado";
     this.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtPlanInteres
     //
     this.EntradaPlanInteres.AutoSize          = false;
     this.EntradaPlanInteres.DataType          = Lui.Forms.DataTypes.Float;
     this.EntradaPlanInteres.Location          = new System.Drawing.Point(200, 0);
     this.EntradaPlanInteres.Name              = "txtPlanInteres";
     this.EntradaPlanInteres.TemporaryReadOnly = true;
     this.EntradaPlanInteres.Size              = new System.Drawing.Size(56, 24);
     this.EntradaPlanInteres.TabIndex          = 3;
     this.EntradaPlanInteres.TabStop           = false;
     //
     // Label14
     //
     this.Label14.Location  = new System.Drawing.Point(144, 0);
     this.Label14.Name      = "Label14";
     this.Label14.Size      = new System.Drawing.Size(56, 24);
     this.Label14.TabIndex  = 2;
     this.Label14.Text      = "Interés";
     this.Label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtPlanCuotas
     //
     this.EntradaPlanCuotas.AutoSize          = false;
     this.EntradaPlanCuotas.DataType          = Lui.Forms.DataTypes.Integer;
     this.EntradaPlanCuotas.Location          = new System.Drawing.Point(76, 0);
     this.EntradaPlanCuotas.Name              = "txtPlanCuotas";
     this.EntradaPlanCuotas.TemporaryReadOnly = true;
     this.EntradaPlanCuotas.Size              = new System.Drawing.Size(56, 24);
     this.EntradaPlanCuotas.TabIndex          = 1;
     this.EntradaPlanCuotas.TabStop           = false;
     this.EntradaPlanCuotas.Text              = "1";
     //
     // lblFecha1
     //
     this.EtiquetaFecha1.Location  = new System.Drawing.Point(20, 0);
     this.EtiquetaFecha1.Name      = "lblFecha1";
     this.EtiquetaFecha1.Size      = new System.Drawing.Size(56, 24);
     this.EtiquetaFecha1.TabIndex  = 0;
     this.EtiquetaFecha1.Text      = "Cuotas";
     this.EtiquetaFecha1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtPlan
     //
     this.EntradaPlan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaPlan.AutoSize            = true;
     this.EntradaPlan.CanCreate           = false;
     this.EntradaPlan.Filter              = "";
     this.EntradaPlan.Location            = new System.Drawing.Point(85, 33);
     this.EntradaPlan.MaxLength           = 200;
     this.EntradaPlan.Name                = "txtPlan";
     this.EntradaPlan.Required            = false;
     this.EntradaPlan.Size                = new System.Drawing.Size(456, 24);
     this.EntradaPlan.TabIndex            = 3;
     this.EntradaPlan.NombreTipo          = "Lbl.Pagos.Plan";
     this.EntradaPlan.TeclaDespuesDeEnter = "{tab}";
     this.EntradaPlan.Text                = "0";
     this.EntradaPlan.ValueInt            = 0;
     this.EntradaPlan.TextChanged        += new System.EventHandler(this.txtPlan_TextChanged);
     //
     // Label15
     //
     this.Label15.Location  = new System.Drawing.Point(3, 30);
     this.Label15.Name      = "Label15";
     this.Label15.Size      = new System.Drawing.Size(76, 24);
     this.Label15.TabIndex  = 2;
     this.Label15.Text      = "Plan";
     this.Label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtCliente
     //
     this.EntradaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaCliente.AutoSize            = true;
     this.EntradaCliente.CanCreate           = false;
     this.EntradaCliente.Filter              = "";
     this.EntradaCliente.Location            = new System.Drawing.Point(85, 123);
     this.EntradaCliente.MaxLength           = 200;
     this.EntradaCliente.Name                = "txtCliente";
     this.EntradaCliente.Required            = false;
     this.EntradaCliente.Size                = new System.Drawing.Size(456, 24);
     this.EntradaCliente.TabIndex            = 8;
     this.EntradaCliente.NombreTipo          = "Lbl.Personas.Persona";
     this.EntradaCliente.TeclaDespuesDeEnter = "{tab}";
     this.EntradaCliente.Text                = "0";
     this.EntradaCliente.ValueInt            = 0;
     //
     // Label1
     //
     this.Label1.Location  = new System.Drawing.Point(3, 120);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(76, 24);
     this.Label1.TabIndex  = 7;
     this.Label1.Text      = "Cliente";
     this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // EntradaEstado
     //
     this.EntradaEstado.AutoSize = true;
     this.EntradaEstado.Location = new System.Drawing.Point(85, 93);
     this.EntradaEstado.Name     = "EntradaEstado";
     this.EntradaEstado.SetData  = new string[] {
         "No Cobrados|-2",
         "Sin presentar|0",
         "Cancelados|1",
         "Rechazados|2",
         "Presentados|10",
         "Acreditados|20",
         "Todos|-1"
     };
     this.EntradaEstado.Size     = new System.Drawing.Size(180, 24);
     this.EntradaEstado.TabIndex = 6;
     this.EntradaEstado.Text     = "No Cobrados";
     this.EntradaEstado.TextKey  = "-2";
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(3, 150);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(76, 24);
     this.label3.TabIndex  = 9;
     this.label3.Text      = "Fecha";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.EtiquetaFecha1);
     this.panel1.Controls.Add(this.EntradaPlanCuotas);
     this.panel1.Controls.Add(this.Label14);
     this.panel1.Controls.Add(this.EntradaPlanInteres);
     this.panel1.Location = new System.Drawing.Point(85, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(260, 24);
     this.panel1.TabIndex = 4;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.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.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.EntradaFechas, 1, 5);
     this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.EntradaCliente, 1, 4);
     this.tableLayoutPanel1.Controls.Add(this.EntradaEstado, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.Label16, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.Label15, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.Label11, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.Label1, 0, 4);
     this.tableLayoutPanel1.Controls.Add(this.label3, 0, 5);
     this.tableLayoutPanel1.Controls.Add(this.EntradaFormaDePago, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.EntradaPlan, 1, 1);
     this.tableLayoutPanel1.Location = new System.Drawing.Point(24, 24);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 6;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     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(544, 288);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // EntradaFechas
     //
     this.EntradaFechas.AutoSize       = true;
     this.EntradaFechas.Location       = new System.Drawing.Point(85, 153);
     this.EntradaFechas.MuestraFuturos = false;
     this.EntradaFechas.Name           = "EntradaFechas";
     this.EntradaFechas.Size           = new System.Drawing.Size(455, 30);
     this.EntradaFechas.TabIndex       = 10;
     //
     // Filtros
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
     this.ClientSize          = new System.Drawing.Size(594, 375);
     this.Controls.Add(this.tableLayoutPanel1);
     this.Name = "Filtros";
     this.Text = "Tarjetas: Filtros";
     this.Controls.SetChildIndex(this.tableLayoutPanel1, 0);
     this.panel1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #4
0
 private void InitializeComponent()
 {
     this.EntradaCliente    = new Lcc.Entrada.CodigoDetalle();
     this.Label2            = new Lui.Forms.Label();
     this.Label1            = new Lui.Forms.Label();
     this.EntradaVendedor   = new Lcc.Entrada.CodigoDetalle();
     this.Label5            = new Lui.Forms.Label();
     this.EntradaSucursal   = new Lcc.Entrada.CodigoDetalle();
     this.label7            = new Lui.Forms.Label();
     this.tableLayoutPanel1 = new Lui.Forms.TableLayoutPanel();
     this.EntradaFechas     = new Lcc.Entrada.RangoFechas();
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // OkButton
     //
     this.OkButton.Location = new System.Drawing.Point(394, 8);
     //
     // CancelCommandButton
     //
     this.CancelCommandButton.Location = new System.Drawing.Point(514, 8);
     //
     // EntradaCliente
     //
     this.EntradaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaCliente.AutoSize   = true;
     this.EntradaCliente.CanCreate  = false;
     this.EntradaCliente.Filter     = "";
     this.EntradaCliente.Location   = new System.Drawing.Point(133, 31);
     this.EntradaCliente.MaxLength  = 200;
     this.EntradaCliente.Name       = "EntradaCliente";
     this.EntradaCliente.ReadOnly   = false;
     this.EntradaCliente.Required   = false;
     this.EntradaCliente.Size       = new System.Drawing.Size(448, 22);
     this.EntradaCliente.TabIndex   = 5;
     this.EntradaCliente.NombreTipo = "Lbl.Personas.Persona";
     this.EntradaCliente.Text       = "0";
     //
     // Label2
     //
     this.Label2.Location  = new System.Drawing.Point(3, 28);
     this.Label2.Name      = "Label2";
     this.Label2.Size      = new System.Drawing.Size(124, 24);
     this.Label2.TabIndex  = 4;
     this.Label2.Text      = "Cliente";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label1
     //
     this.Label1.Location  = new System.Drawing.Point(3, 84);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(124, 24);
     this.Label1.TabIndex  = 8;
     this.Label1.Text      = "Fecha";
     this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // EntradaVendedor
     //
     this.EntradaVendedor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaVendedor.AutoSize   = true;
     this.EntradaVendedor.CanCreate  = false;
     this.EntradaVendedor.Filter     = "(tipo&4)=4";
     this.EntradaVendedor.Location   = new System.Drawing.Point(133, 59);
     this.EntradaVendedor.MaxLength  = 200;
     this.EntradaVendedor.Name       = "EntradaVendedor";
     this.EntradaVendedor.ReadOnly   = false;
     this.EntradaVendedor.Required   = false;
     this.EntradaVendedor.Size       = new System.Drawing.Size(448, 22);
     this.EntradaVendedor.TabIndex   = 7;
     this.EntradaVendedor.NombreTipo = "Lbl.Personas.Persona";
     this.EntradaVendedor.Text       = "0";
     //
     // Label5
     //
     this.Label5.Location  = new System.Drawing.Point(3, 56);
     this.Label5.Name      = "Label5";
     this.Label5.Size      = new System.Drawing.Size(124, 24);
     this.Label5.TabIndex  = 6;
     this.Label5.Text      = "Vendedor";
     this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // EntradaSucursal
     //
     this.EntradaSucursal.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaSucursal.AutoSize   = true;
     this.EntradaSucursal.CanCreate  = false;
     this.EntradaSucursal.Filter     = "";
     this.EntradaSucursal.Location   = new System.Drawing.Point(133, 3);
     this.EntradaSucursal.MaxLength  = 200;
     this.EntradaSucursal.Name       = "EntradaSucursal";
     this.EntradaSucursal.ReadOnly   = false;
     this.EntradaSucursal.Required   = false;
     this.EntradaSucursal.Size       = new System.Drawing.Size(448, 22);
     this.EntradaSucursal.TabIndex   = 3;
     this.EntradaSucursal.NombreTipo = "Lbl.Entidades.Sucursal";
     this.EntradaSucursal.Text       = "0";
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(3, 0);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(124, 24);
     this.label7.TabIndex  = 2;
     this.label7.Text      = "Sucursal";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.tableLayoutPanel1.Controls.Add(this.EntradaSucursal, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.EntradaCliente, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.EntradaVendedor, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.EntradaFechas, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.label7, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.Label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.Label5, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.Label1, 0, 3);
     this.tableLayoutPanel1.Location = new System.Drawing.Point(24, 24);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 5;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     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(584, 280);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // EntradaFechas
     //
     this.EntradaFechas.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.EntradaFechas.AutoSize       = true;
     this.EntradaFechas.Font           = new System.Drawing.Font("Bitstream Vera Sans", 9.75F);
     this.EntradaFechas.Location       = new System.Drawing.Point(133, 87);
     this.EntradaFechas.MuestraFuturos = false;
     this.EntradaFechas.Name           = "EntradaFechas";
     this.EntradaFechas.ReadOnly       = false;
     this.EntradaFechas.Size           = new System.Drawing.Size(448, 33);
     this.EntradaFechas.TabIndex       = 9;
     //
     // Filtros
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
     this.ClientSize          = new System.Drawing.Size(634, 374);
     this.Controls.Add(this.tableLayoutPanel1);
     this.Name = "Filtros";
     this.Controls.SetChildIndex(this.tableLayoutPanel1, 0);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Exemple #5
0
                private void InitializeComponent()
                {
                        this.EntradaFormaDePago = new Lcc.Entrada.CodigoDetalle();
                        this.Label16 = new Lui.Forms.Label();
                        this.Label11 = new Lui.Forms.Label();
                        this.EntradaPlanInteres = new Lui.Forms.TextBox();
                        this.Label14 = new Lui.Forms.Label();
                        this.EntradaPlanCuotas = new Lui.Forms.TextBox();
                        this.EtiquetaFecha1 = new Lui.Forms.Label();
                        this.EntradaPlan = new Lcc.Entrada.CodigoDetalle();
                        this.Label15 = new Lui.Forms.Label();
                        this.EntradaCliente = new Lcc.Entrada.CodigoDetalle();
                        this.Label1 = new Lui.Forms.Label();
                        this.EntradaEstado = new Lui.Forms.ComboBox();
                        this.label3 = new Lui.Forms.Label();
                        this.panel1 = new Lui.Forms.Panel();
                        this.tableLayoutPanel1 = new Lui.Forms.TableLayoutPanel();
                        this.EntradaFechas = new Lcc.Entrada.RangoFechas();
                        this.panel1.SuspendLayout();
                        this.tableLayoutPanel1.SuspendLayout();
                        this.SuspendLayout();
                        // 
                        // OkButton
                        // 
                        this.OkButton.Location = new System.Drawing.Point(354, 8);
                        // 
                        // CancelCommandButton
                        // 
                        this.CancelCommandButton.Location = new System.Drawing.Point(474, 8);
                        // 
                        // txtTarjeta
                        // 
                        this.EntradaFormaDePago.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                    | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaFormaDePago.AutoSize = true;
                        this.EntradaFormaDePago.CanCreate = false;
                        this.EntradaFormaDePago.Filter = "tipo=4";
                        this.EntradaFormaDePago.Location = new System.Drawing.Point(85, 3);
                        this.EntradaFormaDePago.MaxLength = 200;
                        this.EntradaFormaDePago.Name = "txtTarjeta";
                        this.EntradaFormaDePago.Required = true;
                        this.EntradaFormaDePago.Size = new System.Drawing.Size(456, 24);
                        this.EntradaFormaDePago.TabIndex = 1;
                        this.EntradaFormaDePago.NombreTipo = "Lbl.Pagos.FormaDePago";
                        this.EntradaFormaDePago.TeclaDespuesDeEnter = "{tab}";
                        this.EntradaFormaDePago.Text = "0";
                        this.EntradaFormaDePago.ValueInt = 0;
                        this.EntradaFormaDePago.TextChanged += new System.EventHandler(this.EntradaTarjeta_TextChanged);
                        // 
                        // Label16
                        // 
                        this.Label16.Location = new System.Drawing.Point(3, 0);
                        this.Label16.Name = "Label16";
                        this.Label16.Size = new System.Drawing.Size(76, 24);
                        this.Label16.TabIndex = 0;
                        this.Label16.Text = "Tarjeta";
                        this.Label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // Label11
                        // 
                        this.Label11.Location = new System.Drawing.Point(3, 90);
                        this.Label11.Name = "Label11";
                        this.Label11.Size = new System.Drawing.Size(76, 24);
                        this.Label11.TabIndex = 5;
                        this.Label11.Text = "Estado";
                        this.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // txtPlanInteres
                        // 
                        this.EntradaPlanInteres.AutoSize = false;
                        this.EntradaPlanInteres.DataType = Lui.Forms.DataTypes.Float;
                        this.EntradaPlanInteres.Location = new System.Drawing.Point(200, 0);
                        this.EntradaPlanInteres.Name = "txtPlanInteres";
                        this.EntradaPlanInteres.TemporaryReadOnly = true;
                        this.EntradaPlanInteres.Size = new System.Drawing.Size(56, 24);
                        this.EntradaPlanInteres.TabIndex = 3;
                        this.EntradaPlanInteres.TabStop = false;
                        // 
                        // Label14
                        // 
                        this.Label14.Location = new System.Drawing.Point(144, 0);
                        this.Label14.Name = "Label14";
                        this.Label14.Size = new System.Drawing.Size(56, 24);
                        this.Label14.TabIndex = 2;
                        this.Label14.Text = "Interés";
                        this.Label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // txtPlanCuotas
                        // 
                        this.EntradaPlanCuotas.AutoSize = false;
                        this.EntradaPlanCuotas.DataType = Lui.Forms.DataTypes.Integer;
                        this.EntradaPlanCuotas.Location = new System.Drawing.Point(76, 0);
                        this.EntradaPlanCuotas.Name = "txtPlanCuotas";
                        this.EntradaPlanCuotas.TemporaryReadOnly = true;
                        this.EntradaPlanCuotas.Size = new System.Drawing.Size(56, 24);
                        this.EntradaPlanCuotas.TabIndex = 1;
                        this.EntradaPlanCuotas.TabStop = false;
                        this.EntradaPlanCuotas.Text = "1";
                        // 
                        // lblFecha1
                        // 
                        this.EtiquetaFecha1.Location = new System.Drawing.Point(20, 0);
                        this.EtiquetaFecha1.Name = "lblFecha1";
                        this.EtiquetaFecha1.Size = new System.Drawing.Size(56, 24);
                        this.EtiquetaFecha1.TabIndex = 0;
                        this.EtiquetaFecha1.Text = "Cuotas";
                        this.EtiquetaFecha1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // txtPlan
                        // 
                        this.EntradaPlan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                    | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaPlan.AutoSize = true;
                        this.EntradaPlan.CanCreate = false;
                        this.EntradaPlan.Filter = "";
                        this.EntradaPlan.Location = new System.Drawing.Point(85, 33);
                        this.EntradaPlan.MaxLength = 200;
                        this.EntradaPlan.Name = "txtPlan";
                        this.EntradaPlan.Required = false;
                        this.EntradaPlan.Size = new System.Drawing.Size(456, 24);
                        this.EntradaPlan.TabIndex = 3;
                        this.EntradaPlan.NombreTipo = "Lbl.Pagos.Plan";
                        this.EntradaPlan.TeclaDespuesDeEnter = "{tab}";
                        this.EntradaPlan.Text = "0";
                        this.EntradaPlan.ValueInt = 0;
                        this.EntradaPlan.TextChanged += new System.EventHandler(this.txtPlan_TextChanged);
                        // 
                        // Label15
                        // 
                        this.Label15.Location = new System.Drawing.Point(3, 30);
                        this.Label15.Name = "Label15";
                        this.Label15.Size = new System.Drawing.Size(76, 24);
                        this.Label15.TabIndex = 2;
                        this.Label15.Text = "Plan";
                        this.Label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // txtCliente
                        // 
                        this.EntradaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                    | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaCliente.AutoSize = true;
                        this.EntradaCliente.CanCreate = false;
                        this.EntradaCliente.Filter = "";
                        this.EntradaCliente.Location = new System.Drawing.Point(85, 123);
                        this.EntradaCliente.MaxLength = 200;
                        this.EntradaCliente.Name = "txtCliente";
                        this.EntradaCliente.Required = false;
                        this.EntradaCliente.Size = new System.Drawing.Size(456, 24);
                        this.EntradaCliente.TabIndex = 8;
                        this.EntradaCliente.NombreTipo = "Lbl.Personas.Persona";
                        this.EntradaCliente.TeclaDespuesDeEnter = "{tab}";
                        this.EntradaCliente.Text = "0";
                        this.EntradaCliente.ValueInt = 0;
                        // 
                        // Label1
                        // 
                        this.Label1.Location = new System.Drawing.Point(3, 120);
                        this.Label1.Name = "Label1";
                        this.Label1.Size = new System.Drawing.Size(76, 24);
                        this.Label1.TabIndex = 7;
                        this.Label1.Text = "Cliente";
                        this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // EntradaEstado
                        // 
                        this.EntradaEstado.AutoSize = true;
                        this.EntradaEstado.Location = new System.Drawing.Point(85, 93);
                        this.EntradaEstado.Name = "EntradaEstado";
                        this.EntradaEstado.SetData = new string[] {
        "No Cobrados|-2",
        "Sin presentar|0",
        "Cancelados|1",
        "Rechazados|2",
        "Presentados|10",
        "Acreditados|20",
        "Todos|-1"};
                        this.EntradaEstado.Size = new System.Drawing.Size(180, 24);
                        this.EntradaEstado.TabIndex = 6;
                        this.EntradaEstado.Text = "No Cobrados";
                        this.EntradaEstado.TextKey = "-2";
                        // 
                        // label3
                        // 
                        this.label3.Location = new System.Drawing.Point(3, 150);
                        this.label3.Name = "label3";
                        this.label3.Size = new System.Drawing.Size(76, 24);
                        this.label3.TabIndex = 9;
                        this.label3.Text = "Fecha";
                        this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // panel1
                        // 
                        this.panel1.Controls.Add(this.EtiquetaFecha1);
                        this.panel1.Controls.Add(this.EntradaPlanCuotas);
                        this.panel1.Controls.Add(this.Label14);
                        this.panel1.Controls.Add(this.EntradaPlanInteres);
                        this.panel1.Location = new System.Drawing.Point(85, 63);
                        this.panel1.Name = "panel1";
                        this.panel1.Size = new System.Drawing.Size(260, 24);
                        this.panel1.TabIndex = 4;
                        // 
                        // tableLayoutPanel1
                        // 
                        this.tableLayoutPanel1.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.tableLayoutPanel1.ColumnCount = 2;
                        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
                        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
                        this.tableLayoutPanel1.Controls.Add(this.EntradaFechas, 1, 5);
                        this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 2);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaCliente, 1, 4);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaEstado, 1, 3);
                        this.tableLayoutPanel1.Controls.Add(this.Label16, 0, 0);
                        this.tableLayoutPanel1.Controls.Add(this.Label15, 0, 1);
                        this.tableLayoutPanel1.Controls.Add(this.Label11, 0, 3);
                        this.tableLayoutPanel1.Controls.Add(this.Label1, 0, 4);
                        this.tableLayoutPanel1.Controls.Add(this.label3, 0, 5);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaFormaDePago, 1, 0);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaPlan, 1, 1);
                        this.tableLayoutPanel1.Location = new System.Drawing.Point(24, 24);
                        this.tableLayoutPanel1.Name = "tableLayoutPanel1";
                        this.tableLayoutPanel1.RowCount = 6;
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        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(544, 288);
                        this.tableLayoutPanel1.TabIndex = 0;
                        // 
                        // EntradaFechas
                        // 
                        this.EntradaFechas.AutoSize = true;
                        this.EntradaFechas.Location = new System.Drawing.Point(85, 153);
                        this.EntradaFechas.MuestraFuturos = false;
                        this.EntradaFechas.Name = "EntradaFechas";
                        this.EntradaFechas.Size = new System.Drawing.Size(455, 30);
                        this.EntradaFechas.TabIndex = 10;
                        // 
                        // Filtros
                        // 
                        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
                        this.ClientSize = new System.Drawing.Size(594, 375);
                        this.Controls.Add(this.tableLayoutPanel1);
                        this.Name = "Filtros";
                        this.Text = "Tarjetas: Filtros";
                        this.Controls.SetChildIndex(this.tableLayoutPanel1, 0);
                        this.panel1.ResumeLayout(false);
                        this.tableLayoutPanel1.ResumeLayout(false);
                        this.ResumeLayout(false);

                }
Exemple #6
0
                private void InitializeComponent()
                {
                        this.EntradaCliente = new Lcc.Entrada.CodigoDetalle();
                        this.Label2 = new Lui.Forms.Label();
                        this.Label1 = new Lui.Forms.Label();
                        this.EntradaVendedor = new Lcc.Entrada.CodigoDetalle();
                        this.Label5 = new Lui.Forms.Label();
                        this.EntradaSucursal = new Lcc.Entrada.CodigoDetalle();
                        this.label7 = new Lui.Forms.Label();
                        this.tableLayoutPanel1 = new Lui.Forms.TableLayoutPanel();
                        this.EntradaFechas = new Lcc.Entrada.RangoFechas();
                        this.tableLayoutPanel1.SuspendLayout();
                        this.SuspendLayout();
                        // 
                        // OkButton
                        // 
                        this.OkButton.Location = new System.Drawing.Point(394, 8);
                        // 
                        // CancelCommandButton
                        // 
                        this.CancelCommandButton.Location = new System.Drawing.Point(514, 8);
                        // 
                        // EntradaCliente
                        // 
                        this.EntradaCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaCliente.AutoSize = true;
                        this.EntradaCliente.CanCreate = false;
                        this.EntradaCliente.Filter = "";
                        this.EntradaCliente.Location = new System.Drawing.Point(133, 31);
                        this.EntradaCliente.MaxLength = 200;
                        this.EntradaCliente.Name = "EntradaCliente";
                        this.EntradaCliente.ReadOnly = false;
                        this.EntradaCliente.Required = false;
                        this.EntradaCliente.Size = new System.Drawing.Size(448, 22);
                        this.EntradaCliente.TabIndex = 5;
                        this.EntradaCliente.NombreTipo = "Lbl.Personas.Persona";
                        this.EntradaCliente.Text = "0";
                        // 
                        // Label2
                        // 
                        this.Label2.Location = new System.Drawing.Point(3, 28);
                        this.Label2.Name = "Label2";
                        this.Label2.Size = new System.Drawing.Size(124, 24);
                        this.Label2.TabIndex = 4;
                        this.Label2.Text = "Cliente";
                        this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // Label1
                        // 
                        this.Label1.Location = new System.Drawing.Point(3, 84);
                        this.Label1.Name = "Label1";
                        this.Label1.Size = new System.Drawing.Size(124, 24);
                        this.Label1.TabIndex = 8;
                        this.Label1.Text = "Fecha";
                        this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // EntradaVendedor
                        // 
                        this.EntradaVendedor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaVendedor.AutoSize = true;
                        this.EntradaVendedor.CanCreate = false;
                        this.EntradaVendedor.Filter = "(tipo&4)=4";
                        this.EntradaVendedor.Location = new System.Drawing.Point(133, 59);
                        this.EntradaVendedor.MaxLength = 200;
                        this.EntradaVendedor.Name = "EntradaVendedor";
                        this.EntradaVendedor.ReadOnly = false;
                        this.EntradaVendedor.Required = false;
                        this.EntradaVendedor.Size = new System.Drawing.Size(448, 22);
                        this.EntradaVendedor.TabIndex = 7;
                        this.EntradaVendedor.NombreTipo = "Lbl.Personas.Persona";
                        this.EntradaVendedor.Text = "0";
                        // 
                        // Label5
                        // 
                        this.Label5.Location = new System.Drawing.Point(3, 56);
                        this.Label5.Name = "Label5";
                        this.Label5.Size = new System.Drawing.Size(124, 24);
                        this.Label5.TabIndex = 6;
                        this.Label5.Text = "Vendedor";
                        this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // EntradaSucursal
                        // 
                        this.EntradaSucursal.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaSucursal.AutoSize = true;
                        this.EntradaSucursal.CanCreate = false;
                        this.EntradaSucursal.Filter = "";
                        this.EntradaSucursal.Location = new System.Drawing.Point(133, 3);
                        this.EntradaSucursal.MaxLength = 200;
                        this.EntradaSucursal.Name = "EntradaSucursal";
                        this.EntradaSucursal.ReadOnly = false;
                        this.EntradaSucursal.Required = false;
                        this.EntradaSucursal.Size = new System.Drawing.Size(448, 22);
                        this.EntradaSucursal.TabIndex = 3;
                        this.EntradaSucursal.NombreTipo = "Lbl.Entidades.Sucursal";
                        this.EntradaSucursal.Text = "0";
                        // 
                        // label7
                        // 
                        this.label7.Location = new System.Drawing.Point(3, 0);
                        this.label7.Name = "label7";
                        this.label7.Size = new System.Drawing.Size(124, 24);
                        this.label7.TabIndex = 2;
                        this.label7.Text = "Sucursal";
                        this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                        // 
                        // tableLayoutPanel1
                        // 
                        this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.tableLayoutPanel1.ColumnCount = 2;
                        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
                        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
                        this.tableLayoutPanel1.Controls.Add(this.EntradaSucursal, 1, 0);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaCliente, 1, 1);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaVendedor, 1, 2);
                        this.tableLayoutPanel1.Controls.Add(this.EntradaFechas, 1, 3);
                        this.tableLayoutPanel1.Controls.Add(this.label7, 0, 0);
                        this.tableLayoutPanel1.Controls.Add(this.Label2, 0, 1);
                        this.tableLayoutPanel1.Controls.Add(this.Label5, 0, 2);
                        this.tableLayoutPanel1.Controls.Add(this.Label1, 0, 3);
                        this.tableLayoutPanel1.Location = new System.Drawing.Point(24, 24);
                        this.tableLayoutPanel1.Name = "tableLayoutPanel1";
                        this.tableLayoutPanel1.RowCount = 5;
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
                        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(584, 280);
                        this.tableLayoutPanel1.TabIndex = 0;
                        // 
                        // EntradaFechas
                        // 
                        this.EntradaFechas.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
                        this.EntradaFechas.AutoSize = true;
                        this.EntradaFechas.Font = new System.Drawing.Font("Bitstream Vera Sans", 9.75F);
                        this.EntradaFechas.Location = new System.Drawing.Point(133, 87);
                        this.EntradaFechas.MuestraFuturos = false;
                        this.EntradaFechas.Name = "EntradaFechas";
                        this.EntradaFechas.ReadOnly = false;
                        this.EntradaFechas.Size = new System.Drawing.Size(448, 33);
                        this.EntradaFechas.TabIndex = 9;
                        // 
                        // Filtros
                        // 
                        this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
                        this.ClientSize = new System.Drawing.Size(634, 374);
                        this.Controls.Add(this.tableLayoutPanel1);
                        this.Name = "Filtros";
                        this.Controls.SetChildIndex(this.tableLayoutPanel1, 0);
                        this.tableLayoutPanel1.ResumeLayout(false);
                        this.tableLayoutPanel1.PerformLayout();
                        this.ResumeLayout(false);

                }
Exemple #7
0
                public void FromFilters(Lazaro.Pres.Filters.FilterCollection filters)
                {
                        this.SuspendLayout();
                        this.TablaFiltros.SuspendLayout();
                        this.ColFiltros = filters;
                        this.TablaFiltros.RowCount = filters.Count;

                        while (TablaFiltros.RowStyles.Count < TablaFiltros.RowCount)
                                TablaFiltros.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.AutoSize));

                        int i = 0;
                        foreach (Lazaro.Pres.Filters.IFilter Filtro in this.ColFiltros) {
                                Label Etiqueta = new Label();
                                Etiqueta.Name = "etiqueta" + i.ToString();
                                Etiqueta.Text = Filtro.Label;
                                Etiqueta.TextAlign = System.Drawing.ContentAlignment.TopLeft;
                                Etiqueta.Margin = new System.Windows.Forms.Padding(0, 4, 4, 0);
                                Etiqueta.Dock = DockStyle.Fill;
                                this.TablaFiltros.Controls.Add(Etiqueta, 0, i);

                                Control Entrada;
                                if (Filtro is Lazaro.Pres.Filters.NumericRangeFilter) {
                                        Lcc.Entrada.RangoNumerico EntradaRangoNumerico = new Lcc.Entrada.RangoNumerico();
                                        Lazaro.Pres.Filters.NumericRangeFilter FiltroNumerico = Filtro as Lazaro.Pres.Filters.NumericRangeFilter;
                                        EntradaRangoNumerico.DecimalPlaces = FiltroNumerico.DecimalPlaces;
                                        EntradaRangoNumerico.Valule1 = System.Convert.ToDecimal(FiltroNumerico.Value);
                                        EntradaRangoNumerico.Valule2 = System.Convert.ToDecimal(FiltroNumerico.Value2);
                                        EntradaRangoNumerico.Dock = DockStyle.Top;
                                        Entrada = EntradaRangoNumerico;
                                } else if (Filtro is Lazaro.Pres.Filters.SetFilter) {
                                        Lazaro.Pres.Filters.SetFilter FiltroSet = Filtro as Lazaro.Pres.Filters.SetFilter;
                                        Lui.Forms.ComboBox EntradaSet = new Lui.Forms.ComboBox();
                                        EntradaSet.SetData = FiltroSet.SetData;
                                        EntradaSet.TextKey = FiltroSet.CurrentValue;
                                        EntradaSet.Size = new System.Drawing.Size(200, 24);
                                        EntradaSet.AlwaysExpanded = EntradaSet.SetData != null && (EntradaSet.SetData.Length <= 4 || TablaFiltros.RowCount <= 6);
                                        EntradaSet.AutoSize = EntradaSet.AlwaysExpanded;
                                        EntradaSet.Dock = DockStyle.Top;
                                        Entrada = EntradaSet;
                                } else if (Filtro is Lazaro.Pres.Filters.DateRangeFilter) {
                                        Lazaro.Pres.Filters.DateRangeFilter FiltroFechas = Filtro as Lazaro.Pres.Filters.DateRangeFilter;
                                        Lcc.Entrada.RangoFechas EntradaRangoFechas = new Lcc.Entrada.RangoFechas();
                                        EntradaRangoFechas.Rango = FiltroFechas.DateRange;
                                        EntradaRangoFechas.Size = new System.Drawing.Size(160, 46);
                                        EntradaRangoFechas.AutoSize = true;
                                        EntradaRangoFechas.Dock = DockStyle.Top;
                                        Entrada = EntradaRangoFechas;
                                } else if (Filtro is Lazaro.Pres.Filters.RelationFilter) {
                                        Lazaro.Pres.Filters.RelationFilter FiltroRelacion = Filtro as Lazaro.Pres.Filters.RelationFilter;
                                        Lcc.Entrada.CodigoDetalle EntradaRelacion = new Lcc.Entrada.CodigoDetalle();
                                        EntradaRelacion.Required = false;
                                        EntradaRelacion.Size = new System.Drawing.Size(160, 24);
                                        EntradaRelacion.Relation = FiltroRelacion.Relation;
                                        if (FiltroRelacion.Filter != null)
                                                EntradaRelacion.Filter = FiltroRelacion.Filter.ToString();
                                        EntradaRelacion.Elemento = (Lbl.IElementoDeDatos)FiltroRelacion.Elemento;
                                        EntradaRelacion.Dock = DockStyle.Top;
                                        Entrada = EntradaRelacion;
                                } else {
                                        Entrada = new Label();
                                        Entrada.Text = Filtro.GetType().ToString();
                                        Etiqueta.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
                                }

                                Entrada.Name = "entrada" + i.ToString();
                                Filtro.Control = Entrada;

                                this.TablaFiltros.Controls.Add(Entrada, 1, i);
                                i++;
                        }

                        this.TablaFiltros.ResumeLayout();
                        this.ResumeLayout();
                }