From 77dc57dda2745ea352281bebdd4c13acb92d86f8 Mon Sep 17 00:00:00 2001 From: fedpo Date: Sun, 4 Aug 2024 22:26:19 +0100 Subject: [PATCH] rehecho el form pedidosorden --- Vista/FrmPedidoPresupuesto.Designer.cs | 225 ++++++++++++++++++ ...Presupuesto.cs => FrmPedidoPresupuesto.cs} | 14 +- ...upuesto.resx => FrmPedidoPresupuesto.resx} | 2 +- Vista/FrmPedidosDePresupuestos.cs | 2 +- Vista/FrmPresupuesto.Designer.cs | 181 -------------- Vista/Vista.csproj.user | 2 +- 6 files changed, 232 insertions(+), 194 deletions(-) create mode 100644 Vista/FrmPedidoPresupuesto.Designer.cs rename Vista/{FrmPresupuesto.cs => FrmPedidoPresupuesto.cs} (62%) rename Vista/{FrmPresupuesto.resx => FrmPedidoPresupuesto.resx} (99%) delete mode 100644 Vista/FrmPresupuesto.Designer.cs diff --git a/Vista/FrmPedidoPresupuesto.Designer.cs b/Vista/FrmPedidoPresupuesto.Designer.cs new file mode 100644 index 0000000..d6c2cef --- /dev/null +++ b/Vista/FrmPedidoPresupuesto.Designer.cs @@ -0,0 +1,225 @@ +namespace Vista +{ + partial class FrmPedidoPresupuesto + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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; + } +} \ No newline at end of file diff --git a/Vista/FrmPresupuesto.cs b/Vista/FrmPedidoPresupuesto.cs similarity index 62% rename from Vista/FrmPresupuesto.cs rename to Vista/FrmPedidoPresupuesto.cs index 8a8571a..62237a6 100644 --- a/Vista/FrmPresupuesto.cs +++ b/Vista/FrmPedidoPresupuesto.cs @@ -10,9 +10,9 @@ using System.Windows.Forms; namespace Vista { - public partial class FrmPresupuesto : Form + public partial class FrmPedidoPresupuesto : Form { - public FrmPresupuesto() + public FrmPedidoPresupuesto() { InitializeComponent(); } @@ -23,15 +23,9 @@ namespace Vista form.ShowDialog(); } - private void button2_Click(object sender, EventArgs e) + private void btnCerrar_Click(object sender, EventArgs e) { - Close(); - } - - private void button1_Click(object sender, EventArgs e) - { - //guardar - Close(); + this.Close(); } } } diff --git a/Vista/FrmPresupuesto.resx b/Vista/FrmPedidoPresupuesto.resx similarity index 99% rename from Vista/FrmPresupuesto.resx rename to Vista/FrmPedidoPresupuesto.resx index af32865..a395bff 100644 --- a/Vista/FrmPresupuesto.resx +++ b/Vista/FrmPedidoPresupuesto.resx @@ -18,7 +18,7 @@ System.Resources.ResXResourceReader, System.Windows.Forms, ... System.Resources.ResXResourceWriter, System.Windows.Forms, ... this is my long stringthis is a comment - Blue + Blue [base64 mime encoded serialized .NET Framework object] diff --git a/Vista/FrmPedidosDePresupuestos.cs b/Vista/FrmPedidosDePresupuestos.cs index ccba083..350af44 100644 --- a/Vista/FrmPedidosDePresupuestos.cs +++ b/Vista/FrmPedidosDePresupuestos.cs @@ -24,7 +24,7 @@ namespace Vista } private void BtnAdd_Click(object sender, EventArgs e) { - var form = new FrmPresupuesto(); + var form = new FrmPedidoPresupuesto(); form.ShowDialog(); ActualizarGrilla(); } diff --git a/Vista/FrmPresupuesto.Designer.cs b/Vista/FrmPresupuesto.Designer.cs deleted file mode 100644 index b5b57f8..0000000 --- a/Vista/FrmPresupuesto.Designer.cs +++ /dev/null @@ -1,181 +0,0 @@ -namespace Vista -{ - partial class FrmPresupuesto - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - 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; - } -} \ No newline at end of file diff --git a/Vista/Vista.csproj.user b/Vista/Vista.csproj.user index 19b2365..b49843b 100644 --- a/Vista/Vista.csproj.user +++ b/Vista/Vista.csproj.user @@ -29,7 +29,7 @@ Form - + Form