crud de variante terminado, tal vez con detalles

This commit is contained in:
Carlos Sandoval
2024-06-24 23:15:03 -06:00
parent a9c9bd2c05
commit a610343abe
24 changed files with 288 additions and 227 deletions
+33 -43
View File
@@ -48,10 +48,9 @@
// txtPrecio
//
this.txtPrecio.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtPrecio.Location = new System.Drawing.Point(251, 252);
this.txtPrecio.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPrecio.Location = new System.Drawing.Point(188, 205);
this.txtPrecio.Name = "txtPrecio";
this.txtPrecio.Size = new System.Drawing.Size(399, 30);
this.txtPrecio.Size = new System.Drawing.Size(300, 26);
this.txtPrecio.TabIndex = 37;
//
// label2
@@ -60,20 +59,18 @@
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Transparent;
this.label2.Location = new System.Drawing.Point(245, 209);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Location = new System.Drawing.Point(184, 170);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(89, 29);
this.label2.Size = new System.Drawing.Size(69, 24);
this.label2.TabIndex = 38;
this.label2.Text = "Precio:";
//
// txtNombre
//
this.txtNombre.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtNombre.Location = new System.Drawing.Point(251, 162);
this.txtNombre.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtNombre.Location = new System.Drawing.Point(188, 132);
this.txtNombre.Name = "txtNombre";
this.txtNombre.Size = new System.Drawing.Size(399, 30);
this.txtNombre.Size = new System.Drawing.Size(300, 26);
this.txtNombre.TabIndex = 35;
//
// label1
@@ -82,20 +79,18 @@
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(245, 121);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Location = new System.Drawing.Point(184, 98);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(107, 29);
this.label1.Size = new System.Drawing.Size(84, 24);
this.label1.TabIndex = 36;
this.label1.Text = "Nombre:";
//
// txtCantidad
//
this.txtCantidad.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtCantidad.Location = new System.Drawing.Point(251, 337);
this.txtCantidad.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtCantidad.Location = new System.Drawing.Point(188, 274);
this.txtCantidad.Name = "txtCantidad";
this.txtCantidad.Size = new System.Drawing.Size(399, 30);
this.txtCantidad.Size = new System.Drawing.Size(300, 26);
this.txtCantidad.TabIndex = 39;
//
// label3
@@ -104,21 +99,20 @@
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Transparent;
this.label3.Location = new System.Drawing.Point(245, 294);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Location = new System.Drawing.Point(184, 239);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(115, 29);
this.label3.Size = new System.Drawing.Size(92, 24);
this.label3.TabIndex = 40;
this.label3.Text = "Cantidad:";
this.label3.Text = "Volumen:";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.button1.Location = new System.Drawing.Point(251, 393);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button1.Location = new System.Drawing.Point(188, 319);
this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(103, 46);
this.button1.Size = new System.Drawing.Size(77, 37);
this.button1.TabIndex = 42;
this.button1.Text = "Subir";
this.button1.UseVisualStyleBackColor = true;
@@ -130,20 +124,18 @@
this.lbImg.BackColor = System.Drawing.Color.Transparent;
this.lbImg.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbImg.ForeColor = System.Drawing.Color.Transparent;
this.lbImg.Location = new System.Drawing.Point(360, 399);
this.lbImg.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbImg.Location = new System.Drawing.Point(270, 324);
this.lbImg.Name = "lbImg";
this.lbImg.Size = new System.Drawing.Size(99, 29);
this.lbImg.Size = new System.Drawing.Size(78, 24);
this.lbImg.TabIndex = 41;
this.lbImg.Text = "Imagen:";
//
// txtPrecioCompra
//
this.txtPrecioCompra.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtPrecioCompra.Location = new System.Drawing.Point(251, 487);
this.txtPrecioCompra.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPrecioCompra.Location = new System.Drawing.Point(188, 396);
this.txtPrecioCompra.Name = "txtPrecioCompra";
this.txtPrecioCompra.Size = new System.Drawing.Size(399, 30);
this.txtPrecioCompra.Size = new System.Drawing.Size(300, 26);
this.txtPrecioCompra.TabIndex = 43;
//
// label4
@@ -152,10 +144,9 @@
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Transparent;
this.label4.Location = new System.Drawing.Point(245, 455);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Location = new System.Drawing.Point(184, 370);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(181, 29);
this.label4.Size = new System.Drawing.Size(141, 24);
this.label4.TabIndex = 44;
this.label4.Text = "Precio Compra:";
//
@@ -164,10 +155,10 @@
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.pictureBox2.Image = global::compabetov2.Properties.Resources.check1;
this.pictureBox2.Location = new System.Drawing.Point(353, 540);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox2.Location = new System.Drawing.Point(265, 439);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(100, 69);
this.pictureBox2.Size = new System.Drawing.Size(75, 56);
this.pictureBox2.TabIndex = 46;
this.pictureBox2.TabStop = false;
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
@@ -177,10 +168,10 @@
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.pictureBox1.Image = global::compabetov2.Properties.Resources.cancel1;
this.pictureBox1.Location = new System.Drawing.Point(459, 540);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBox1.Location = new System.Drawing.Point(344, 439);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(100, 69);
this.pictureBox1.Size = new System.Drawing.Size(75, 56);
this.pictureBox1.TabIndex = 45;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
@@ -191,21 +182,20 @@
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.Transparent;
this.label5.Location = new System.Drawing.Point(13, 9);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Location = new System.Drawing.Point(10, 7);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(193, 29);
this.label5.Size = new System.Drawing.Size(152, 24);
this.label5.TabIndex = 47;
this.label5.Text = "Agregar Variante";
//
// addvariante
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(104)))), ((int)(((byte)(255)))));
this.BackgroundImage = global::compabetov2.Properties.Resources.Form;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(897, 622);
this.ClientSize = new System.Drawing.Size(673, 505);
this.ControlBox = false;
this.Controls.Add(this.label5);
this.Controls.Add(this.pictureBox2);
@@ -222,7 +212,7 @@
this.Controls.Add(this.label1);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "addvariante";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();