primer form de informe listo
This commit is contained in:
@@ -155,6 +155,7 @@
|
||||
Controls.Add(btnBuscar);
|
||||
Name = "FrmInformeFacturaPorFecha";
|
||||
Text = "Informe: Facturas";
|
||||
WindowState = FormWindowState.Maximized;
|
||||
((System.ComponentModel.ISupportInitialize)dgvFactura).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)dgvDetalles).EndInit();
|
||||
ResumeLayout(false);
|
||||
|
||||
@@ -183,6 +183,7 @@
|
||||
Controls.Add(btnBusqueda);
|
||||
Name = "FrmInformeFacturasPorCliente";
|
||||
Text = "Informe: Clientes";
|
||||
WindowState = FormWindowState.Maximized;
|
||||
((System.ComponentModel.ISupportInitialize)dgvDetalle).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)dgvFactura).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)dgvCliente).EndInit();
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
{
|
||||
dgvProductos = new DataGridView();
|
||||
label1 = new Label();
|
||||
textBox1 = new TextBox();
|
||||
label2 = new Label();
|
||||
((System.ComponentModel.ISupportInitialize)dgvProductos).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
@@ -37,6 +39,8 @@
|
||||
//
|
||||
dgvProductos.AllowUserToAddRows = false;
|
||||
dgvProductos.AllowUserToDeleteRows = false;
|
||||
dgvProductos.AllowUserToResizeColumns = false;
|
||||
dgvProductos.AllowUserToResizeRows = false;
|
||||
dgvProductos.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
dgvProductos.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||
dgvProductos.Location = new Point(12, 28);
|
||||
@@ -56,15 +60,37 @@
|
||||
label1.TabIndex = 5;
|
||||
label1.Text = "Productos Más Vendidos";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
textBox1.Enabled = false;
|
||||
textBox1.Location = new Point(773, 28);
|
||||
textBox1.Multiline = true;
|
||||
textBox1.Name = "textBox1";
|
||||
textBox1.Size = new Size(194, 59);
|
||||
textBox1.TabIndex = 7;
|
||||
textBox1.Text = "Se muestra en orden los productos más vendidos a los menos vendidos";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new Point(773, 9);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new Size(51, 15);
|
||||
label2.TabIndex = 8;
|
||||
label2.Text = "Leyenda";
|
||||
//
|
||||
// FrmInformeProductosMasVendidos
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(780, 509);
|
||||
ClientSize = new Size(1137, 509);
|
||||
Controls.Add(label2);
|
||||
Controls.Add(textBox1);
|
||||
Controls.Add(label1);
|
||||
Controls.Add(dgvProductos);
|
||||
Name = "FrmInformeProductosMasVendidos";
|
||||
Text = "Informe: Productos";
|
||||
WindowState = FormWindowState.Maximized;
|
||||
((System.ComponentModel.ISupportInitialize)dgvProductos).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
@@ -74,5 +100,7 @@
|
||||
|
||||
private DataGridView dgvProductos;
|
||||
private Label label1;
|
||||
private TextBox textBox1;
|
||||
private Label label2;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Controladora;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -15,6 +16,12 @@ namespace Vista.Informes
|
||||
public FrmInformeProductosMasVendidos()
|
||||
{
|
||||
InitializeComponent();
|
||||
IniciarTabla();
|
||||
}
|
||||
|
||||
private void IniciarTabla()
|
||||
{
|
||||
dgvProductos.DataSource = ControladoraInformes.Instance.MostrarProductosMasVendidos();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user