rehecho el form pedidosorden
This commit is contained in:
225
Vista/FrmPedidoPresupuesto.Designer.cs
generated
Normal file
225
Vista/FrmPedidoPresupuesto.Designer.cs
generated
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
namespace Vista
|
||||||
|
{
|
||||||
|
partial class FrmPedidoPresupuesto
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
dgvProducto = new DataGridView();
|
||||||
|
ID = new Label();
|
||||||
|
label2 = new Label();
|
||||||
|
numericUpDown1 = new NumericUpDown();
|
||||||
|
btnGuardar = new Button();
|
||||||
|
btnCerrar = new Button();
|
||||||
|
btnAddProducto = new Button();
|
||||||
|
btnrmProducto = new Button();
|
||||||
|
dgvProveedor = new DataGridView();
|
||||||
|
dgvPedido = new DataGridView();
|
||||||
|
label1 = new Label();
|
||||||
|
label3 = new Label();
|
||||||
|
numericUpDown2 = new NumericUpDown();
|
||||||
|
label4 = new Label();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvProducto).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvProveedor).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvPedido).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown2).BeginInit();
|
||||||
|
SuspendLayout();
|
||||||
|
//
|
||||||
|
// dgvProducto
|
||||||
|
//
|
||||||
|
dgvProducto.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvProducto.Location = new Point(227, 26);
|
||||||
|
dgvProducto.Name = "dgvProducto";
|
||||||
|
dgvProducto.RowTemplate.Height = 25;
|
||||||
|
dgvProducto.Size = new Size(275, 249);
|
||||||
|
dgvProducto.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// ID
|
||||||
|
//
|
||||||
|
ID.AutoSize = true;
|
||||||
|
ID.Location = new Point(11, 26);
|
||||||
|
ID.Name = "ID";
|
||||||
|
ID.Size = new Size(18, 15);
|
||||||
|
ID.TabIndex = 2;
|
||||||
|
ID.Text = "ID";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
label2.AutoSize = true;
|
||||||
|
label2.Location = new Point(508, 8);
|
||||||
|
label2.Name = "label2";
|
||||||
|
label2.Size = new Size(55, 15);
|
||||||
|
label2.TabIndex = 3;
|
||||||
|
label2.Text = "Provedor";
|
||||||
|
//
|
||||||
|
// numericUpDown1
|
||||||
|
//
|
||||||
|
numericUpDown1.Location = new Point(78, 26);
|
||||||
|
numericUpDown1.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 });
|
||||||
|
numericUpDown1.Name = "numericUpDown1";
|
||||||
|
numericUpDown1.Size = new Size(120, 23);
|
||||||
|
numericUpDown1.TabIndex = 8;
|
||||||
|
//
|
||||||
|
// btnGuardar
|
||||||
|
//
|
||||||
|
btnGuardar.Location = new Point(11, 316);
|
||||||
|
btnGuardar.Name = "btnGuardar";
|
||||||
|
btnGuardar.Size = new Size(77, 26);
|
||||||
|
btnGuardar.TabIndex = 9;
|
||||||
|
btnGuardar.Text = "Guardar";
|
||||||
|
btnGuardar.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// btnCerrar
|
||||||
|
//
|
||||||
|
btnCerrar.Location = new Point(696, 316);
|
||||||
|
btnCerrar.Name = "btnCerrar";
|
||||||
|
btnCerrar.Size = new Size(81, 26);
|
||||||
|
btnCerrar.TabIndex = 10;
|
||||||
|
btnCerrar.Text = "Cancelar";
|
||||||
|
btnCerrar.UseVisualStyleBackColor = true;
|
||||||
|
btnCerrar.Click += btnCerrar_Click;
|
||||||
|
//
|
||||||
|
// btnAddProducto
|
||||||
|
//
|
||||||
|
btnAddProducto.Location = new Point(12, 246);
|
||||||
|
btnAddProducto.Name = "btnAddProducto";
|
||||||
|
btnAddProducto.Size = new Size(115, 29);
|
||||||
|
btnAddProducto.TabIndex = 11;
|
||||||
|
btnAddProducto.Text = "Agregar Producto";
|
||||||
|
btnAddProducto.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// btnrmProducto
|
||||||
|
//
|
||||||
|
btnrmProducto.Location = new Point(12, 281);
|
||||||
|
btnrmProducto.Name = "btnrmProducto";
|
||||||
|
btnrmProducto.Size = new Size(115, 29);
|
||||||
|
btnrmProducto.TabIndex = 12;
|
||||||
|
btnrmProducto.Text = "Eliminar Producto";
|
||||||
|
btnrmProducto.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// dgvProveedor
|
||||||
|
//
|
||||||
|
dgvProveedor.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvProveedor.Location = new Point(508, 26);
|
||||||
|
dgvProveedor.Name = "dgvProveedor";
|
||||||
|
dgvProveedor.RowTemplate.Height = 25;
|
||||||
|
dgvProveedor.Size = new Size(269, 249);
|
||||||
|
dgvProveedor.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// dgvPedido
|
||||||
|
//
|
||||||
|
dgvPedido.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
dgvPedido.Location = new Point(11, 67);
|
||||||
|
dgvPedido.Name = "dgvPedido";
|
||||||
|
dgvPedido.RowTemplate.Height = 25;
|
||||||
|
dgvPedido.Size = new Size(187, 171);
|
||||||
|
dgvPedido.TabIndex = 14;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
label1.AutoSize = true;
|
||||||
|
label1.Location = new Point(227, 8);
|
||||||
|
label1.Name = "label1";
|
||||||
|
label1.Size = new Size(56, 15);
|
||||||
|
label1.TabIndex = 15;
|
||||||
|
label1.Text = "Producto";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
label3.AutoSize = true;
|
||||||
|
label3.Location = new Point(11, 49);
|
||||||
|
label3.Name = "label3";
|
||||||
|
label3.Size = new Size(44, 15);
|
||||||
|
label3.TabIndex = 16;
|
||||||
|
label3.Text = "Pedido";
|
||||||
|
//
|
||||||
|
// numericUpDown2
|
||||||
|
//
|
||||||
|
numericUpDown2.Location = new Point(317, 281);
|
||||||
|
numericUpDown2.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 });
|
||||||
|
numericUpDown2.Name = "numericUpDown2";
|
||||||
|
numericUpDown2.Size = new Size(120, 23);
|
||||||
|
numericUpDown2.TabIndex = 17;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
label4.AutoSize = true;
|
||||||
|
label4.Location = new Point(227, 289);
|
||||||
|
label4.Name = "label4";
|
||||||
|
label4.Size = new Size(55, 15);
|
||||||
|
label4.TabIndex = 18;
|
||||||
|
label4.Text = "Cantidad";
|
||||||
|
//
|
||||||
|
// FrmPedidoPresupuesto
|
||||||
|
//
|
||||||
|
AcceptButton = btnGuardar;
|
||||||
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
|
CancelButton = btnCerrar;
|
||||||
|
ClientSize = new Size(794, 351);
|
||||||
|
Controls.Add(label4);
|
||||||
|
Controls.Add(numericUpDown2);
|
||||||
|
Controls.Add(label3);
|
||||||
|
Controls.Add(label1);
|
||||||
|
Controls.Add(dgvPedido);
|
||||||
|
Controls.Add(dgvProveedor);
|
||||||
|
Controls.Add(btnrmProducto);
|
||||||
|
Controls.Add(btnAddProducto);
|
||||||
|
Controls.Add(btnCerrar);
|
||||||
|
Controls.Add(btnGuardar);
|
||||||
|
Controls.Add(numericUpDown1);
|
||||||
|
Controls.Add(label2);
|
||||||
|
Controls.Add(ID);
|
||||||
|
Controls.Add(dgvProducto);
|
||||||
|
Name = "FrmPedidoPresupuesto";
|
||||||
|
Text = "Form1";
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvProducto).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvProveedor).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)dgvPedido).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit();
|
||||||
|
ResumeLayout(false);
|
||||||
|
PerformLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private DataGridView dgvProducto;
|
||||||
|
private Label ID;
|
||||||
|
private Label label2;
|
||||||
|
private NumericUpDown numericUpDown1;
|
||||||
|
private Button btnGuardar;
|
||||||
|
private Button btnCerrar;
|
||||||
|
private Button btnAddProducto;
|
||||||
|
private Button btnrmProducto;
|
||||||
|
private DataGridView dgvProveedor;
|
||||||
|
private DataGridView dgvPedido;
|
||||||
|
private Label label1;
|
||||||
|
private Label label3;
|
||||||
|
private NumericUpDown numericUpDown2;
|
||||||
|
private Label label4;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,9 +10,9 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace Vista
|
namespace Vista
|
||||||
{
|
{
|
||||||
public partial class FrmPresupuesto : Form
|
public partial class FrmPedidoPresupuesto : Form
|
||||||
{
|
{
|
||||||
public FrmPresupuesto()
|
public FrmPedidoPresupuesto()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
@@ -23,15 +23,9 @@ namespace Vista
|
|||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button2_Click(object sender, EventArgs e)
|
private void btnCerrar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Close();
|
this.Close();
|
||||||
}
|
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
//guardar
|
|
||||||
Close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -24,7 +24,7 @@ namespace Vista
|
|||||||
}
|
}
|
||||||
private void BtnAdd_Click(object sender, EventArgs e)
|
private void BtnAdd_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var form = new FrmPresupuesto();
|
var form = new FrmPedidoPresupuesto();
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
ActualizarGrilla();
|
ActualizarGrilla();
|
||||||
}
|
}
|
||||||
|
|||||||
181
Vista/FrmPresupuesto.Designer.cs
generated
181
Vista/FrmPresupuesto.Designer.cs
generated
@@ -1,181 +0,0 @@
|
|||||||
namespace Vista
|
|
||||||
{
|
|
||||||
partial class FrmPresupuesto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
dataGridView2 = new DataGridView();
|
|
||||||
ID = new Label();
|
|
||||||
label2 = new Label();
|
|
||||||
label3 = new Label();
|
|
||||||
dateTimePicker1 = new DateTimePicker();
|
|
||||||
comboBox1 = new ComboBox();
|
|
||||||
numericUpDown1 = new NumericUpDown();
|
|
||||||
button1 = new Button();
|
|
||||||
button2 = new Button();
|
|
||||||
button3 = new Button();
|
|
||||||
button4 = new Button();
|
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).BeginInit();
|
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit();
|
|
||||||
//
|
|
||||||
// dataGridView2
|
|
||||||
//
|
|
||||||
dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
||||||
dataGridView2.Location = new Point(407, 12);
|
|
||||||
dataGridView2.Name = "dataGridView2";
|
|
||||||
dataGridView2.RowTemplate.Height = 25;
|
|
||||||
dataGridView2.Size = new Size(475, 413);
|
|
||||||
dataGridView2.TabIndex = 1;
|
|
||||||
//
|
|
||||||
// ID
|
|
||||||
//
|
|
||||||
ID.AutoSize = true;
|
|
||||||
ID.Location = new Point(34, 197);
|
|
||||||
ID.Name = "ID";
|
|
||||||
ID.Size = new Size(18, 15);
|
|
||||||
ID.TabIndex = 2;
|
|
||||||
ID.Text = "ID";
|
|
||||||
//
|
|
||||||
// label2
|
|
||||||
//
|
|
||||||
label2.AutoSize = true;
|
|
||||||
label2.Location = new Point(34, 234);
|
|
||||||
label2.Name = "label2";
|
|
||||||
label2.Size = new Size(55, 15);
|
|
||||||
label2.TabIndex = 3;
|
|
||||||
label2.Text = "Provedor";
|
|
||||||
//
|
|
||||||
// label3
|
|
||||||
//
|
|
||||||
label3.AutoSize = true;
|
|
||||||
label3.Location = new Point(34, 270);
|
|
||||||
label3.Name = "label3";
|
|
||||||
label3.Size = new Size(38, 15);
|
|
||||||
label3.TabIndex = 4;
|
|
||||||
label3.Text = "Fecha";
|
|
||||||
//
|
|
||||||
// dateTimePicker1
|
|
||||||
//
|
|
||||||
dateTimePicker1.Location = new Point(100, 264);
|
|
||||||
dateTimePicker1.Name = "dateTimePicker1";
|
|
||||||
dateTimePicker1.Size = new Size(121, 23);
|
|
||||||
dateTimePicker1.TabIndex = 6;
|
|
||||||
//
|
|
||||||
// comboBox1
|
|
||||||
//
|
|
||||||
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
||||||
comboBox1.FormattingEnabled = true;
|
|
||||||
comboBox1.Location = new Point(100, 226);
|
|
||||||
comboBox1.Name = "comboBox1";
|
|
||||||
comboBox1.Size = new Size(121, 23);
|
|
||||||
comboBox1.TabIndex = 7;
|
|
||||||
//
|
|
||||||
// numericUpDown1
|
|
||||||
//
|
|
||||||
numericUpDown1.Location = new Point(101, 197);
|
|
||||||
numericUpDown1.Maximum = new decimal(new int[] { 1410065407, 2, 0, 0 });
|
|
||||||
numericUpDown1.Name = "numericUpDown1";
|
|
||||||
numericUpDown1.Size = new Size(120, 23);
|
|
||||||
numericUpDown1.TabIndex = 8;
|
|
||||||
//
|
|
||||||
// button1
|
|
||||||
//
|
|
||||||
button1.Location = new Point(34, 383);
|
|
||||||
button1.Name = "button1";
|
|
||||||
button1.Size = new Size(154, 42);
|
|
||||||
button1.TabIndex = 9;
|
|
||||||
button1.Text = "Guardar";
|
|
||||||
button1.UseVisualStyleBackColor = true;
|
|
||||||
|
|
||||||
//
|
|
||||||
// button2
|
|
||||||
//
|
|
||||||
button2.Location = new Point(247, 383);
|
|
||||||
button2.Name = "button2";
|
|
||||||
button2.Size = new Size(154, 42);
|
|
||||||
button2.TabIndex = 10;
|
|
||||||
button2.Text = "Cancelar";
|
|
||||||
button2.UseVisualStyleBackColor = true;
|
|
||||||
|
|
||||||
//
|
|
||||||
// button3
|
|
||||||
//
|
|
||||||
button3.Location = new Point(34, 42);
|
|
||||||
button3.Name = "button3";
|
|
||||||
button3.Size = new Size(128, 47);
|
|
||||||
button3.TabIndex = 11;
|
|
||||||
button3.Text = "Agregar Producto";
|
|
||||||
button3.UseVisualStyleBackColor = true;
|
|
||||||
|
|
||||||
//
|
|
||||||
// button4
|
|
||||||
//
|
|
||||||
button4.Location = new Point(34, 106);
|
|
||||||
button4.Name = "button4";
|
|
||||||
button4.Size = new Size(128, 47);
|
|
||||||
button4.TabIndex = 12;
|
|
||||||
button4.Text = "Eliminar Producto";
|
|
||||||
button4.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// FrmPresupuesto
|
|
||||||
//
|
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
|
||||||
ClientSize = new Size(925, 446);
|
|
||||||
Controls.Add(button4);
|
|
||||||
Controls.Add(button3);
|
|
||||||
Controls.Add(button2);
|
|
||||||
Controls.Add(button1);
|
|
||||||
Controls.Add(numericUpDown1);
|
|
||||||
Controls.Add(comboBox1);
|
|
||||||
Controls.Add(dateTimePicker1);
|
|
||||||
Controls.Add(label3);
|
|
||||||
Controls.Add(label2);
|
|
||||||
Controls.Add(ID);
|
|
||||||
Controls.Add(dataGridView2);
|
|
||||||
Name = "FrmPresupuesto";
|
|
||||||
Text = "Form1";
|
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView2).EndInit();
|
|
||||||
((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit();
|
|
||||||
ResumeLayout(false);
|
|
||||||
PerformLayout();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
private DataGridView dataGridView2;
|
|
||||||
private Label ID;
|
|
||||||
private Label label2;
|
|
||||||
private Label label3;
|
|
||||||
private DateTimePicker dateTimePicker1;
|
|
||||||
private ComboBox comboBox1;
|
|
||||||
private NumericUpDown numericUpDown1;
|
|
||||||
private Button button1;
|
|
||||||
private Button button2;
|
|
||||||
private Button button3;
|
|
||||||
private Button button4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<Compile Update="FrmPedidosDePresupuestos.cs">
|
<Compile Update="FrmPedidosDePresupuestos.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmPresupuesto.cs">
|
<Compile Update="FrmPedidoPresupuesto.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmProducto.cs">
|
<Compile Update="FrmProducto.cs">
|
||||||
|
|||||||
Reference in New Issue
Block a user