Descargo cambios1

This commit is contained in:
Michael Robles
2024-01-08 14:43:16 -07:00
15 changed files with 418 additions and 426 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+53 -229
View File
@@ -28,9 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.lblfecha = new System.Windows.Forms.Label();
this.lblhora = new System.Windows.Forms.Label(); this.lblhora = new System.Windows.Forms.Label();
this.txtnombreproducto = new System.Windows.Forms.TextBox();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox7 = new System.Windows.Forms.PictureBox(); this.pictureBox7 = new System.Windows.Forms.PictureBox();
@@ -39,54 +37,24 @@
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button();
this.txtprecioproducto = new System.Windows.Forms.TextBox(); this.btnAgregarStock = new System.Windows.Forms.Button();
this.txtstockproducto = new System.Windows.Forms.TextBox(); this.stockPanel = new System.Windows.Forms.FlowLayoutPanel();
this.txtdescripcionproducto = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.flowLayoutPanel1.SuspendLayout(); this.flowLayoutPanel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// lblfecha
//
this.lblfecha.AutoSize = true;
this.lblfecha.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F);
this.lblfecha.ForeColor = System.Drawing.Color.Navy;
this.lblfecha.Location = new System.Drawing.Point(747, 127);
this.lblfecha.Name = "lblfecha";
this.lblfecha.Size = new System.Drawing.Size(159, 58);
this.lblfecha.TabIndex = 11;
this.lblfecha.Text = "label2";
this.lblfecha.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// lblhora // lblhora
// //
this.lblhora.AutoSize = true; this.lblhora.AutoSize = true;
this.lblhora.Font = new System.Drawing.Font("Microsoft Sans Serif", 60F); this.lblhora.Font = new System.Drawing.Font("Microsoft Sans Serif", 60F);
this.lblhora.ForeColor = System.Drawing.Color.MediumBlue; this.lblhora.ForeColor = System.Drawing.Color.MediumBlue;
this.lblhora.Location = new System.Drawing.Point(933, 9); this.lblhora.Location = new System.Drawing.Point(700, 7);
this.lblhora.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblhora.Name = "lblhora"; this.lblhora.Name = "lblhora";
this.lblhora.Size = new System.Drawing.Size(318, 113); this.lblhora.Size = new System.Drawing.Size(238, 91);
this.lblhora.TabIndex = 10; this.lblhora.TabIndex = 10;
this.lblhora.Text = "label1"; this.lblhora.Text = "Stock";
//
// txtnombreproducto
//
this.txtnombreproducto.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnombreproducto.Location = new System.Drawing.Point(497, 350);
this.txtnombreproducto.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtnombreproducto.Name = "txtnombreproducto";
this.txtnombreproducto.Size = new System.Drawing.Size(480, 55);
this.txtnombreproducto.TabIndex = 12;
// //
// flowLayoutPanel1 // flowLayoutPanel1
// //
@@ -98,26 +66,26 @@
this.flowLayoutPanel1.Controls.Add(this.button4); this.flowLayoutPanel1.Controls.Add(this.button4);
this.flowLayoutPanel1.Controls.Add(this.button5); this.flowLayoutPanel1.Controls.Add(this.button5);
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061); this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 862);
this.flowLayoutPanel1.TabIndex = 8; this.flowLayoutPanel1.TabIndex = 8;
// //
// panel2 // panel2
// //
this.panel2.BackColor = System.Drawing.Color.Transparent; this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.pictureBox7); this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Location = new System.Drawing.Point(3, 2); this.panel2.Location = new System.Drawing.Point(2, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel2.Margin = new System.Windows.Forms.Padding(2);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(312, 263); this.panel2.Size = new System.Drawing.Size(234, 214);
this.panel2.TabIndex = 8; this.panel2.TabIndex = 8;
// //
// pictureBox7 // pictureBox7
// //
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu; this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
this.pictureBox7.Location = new System.Drawing.Point(64, 34); this.pictureBox7.Location = new System.Drawing.Point(48, 28);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.pictureBox7.Margin = new System.Windows.Forms.Padding(2);
this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(190, 197); this.pictureBox7.Size = new System.Drawing.Size(190, 197);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -133,11 +101,11 @@
this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button1.Image = global::compabetov2.Properties.Resources.Menui1; this.button1.Image = global::compabetov2.Properties.Resources.Menui1;
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button1.Location = new System.Drawing.Point(3, 269); this.button1.Location = new System.Drawing.Point(2, 220);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button1.Margin = new System.Windows.Forms.Padding(2);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(312, 114); this.button1.Size = new System.Drawing.Size(234, 93);
this.button1.TabIndex = 8; this.button1.TabIndex = 8;
this.button1.Text = "Menú"; this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false; this.button1.UseVisualStyleBackColor = false;
@@ -152,11 +120,11 @@
this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi; this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi;
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button2.Location = new System.Drawing.Point(3, 387); this.button2.Location = new System.Drawing.Point(2, 317);
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button2.Margin = new System.Windows.Forms.Padding(2);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(312, 114); this.button2.Size = new System.Drawing.Size(234, 93);
this.button2.TabIndex = 9; this.button2.TabIndex = 9;
this.button2.Text = "Estadisticas"; this.button2.Text = "Estadisticas";
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -171,11 +139,11 @@
this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button3.Image = global::compabetov2.Properties.Resources.productoi; this.button3.Image = global::compabetov2.Properties.Resources.productoi;
this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button3.Location = new System.Drawing.Point(3, 505); this.button3.Location = new System.Drawing.Point(2, 414);
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button3.Margin = new System.Windows.Forms.Padding(2);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(312, 114); this.button3.Size = new System.Drawing.Size(234, 93);
this.button3.TabIndex = 10; this.button3.TabIndex = 10;
this.button3.Text = "Productos"; this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false; this.button3.UseVisualStyleBackColor = false;
@@ -189,11 +157,11 @@
this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button4.Image = global::compabetov2.Properties.Resources.reportesi; this.button4.Image = global::compabetov2.Properties.Resources.reportesi;
this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button4.Location = new System.Drawing.Point(3, 623); this.button4.Location = new System.Drawing.Point(2, 511);
this.button4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button4.Margin = new System.Windows.Forms.Padding(2);
this.button4.Name = "button4"; this.button4.Name = "button4";
this.button4.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button4.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(312, 114); this.button4.Size = new System.Drawing.Size(234, 93);
this.button4.TabIndex = 11; this.button4.TabIndex = 11;
this.button4.Text = "Reportes"; this.button4.Text = "Reportes";
this.button4.UseVisualStyleBackColor = false; this.button4.UseVisualStyleBackColor = false;
@@ -207,177 +175,45 @@
this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button5.Image = global::compabetov2.Properties.Resources.sesionc; this.button5.Image = global::compabetov2.Properties.Resources.sesionc;
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button5.Location = new System.Drawing.Point(3, 741); this.button5.Location = new System.Drawing.Point(2, 608);
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button5.Margin = new System.Windows.Forms.Padding(2);
this.button5.Name = "button5"; this.button5.Name = "button5";
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(312, 114); this.button5.Size = new System.Drawing.Size(234, 93);
this.button5.TabIndex = 12; this.button5.TabIndex = 12;
this.button5.Text = "Salir"; this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = false; this.button5.UseVisualStyleBackColor = false;
// //
// txtprecioproducto // btnAgregarStock
// //
this.txtprecioproducto.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.btnAgregarStock.Location = new System.Drawing.Point(744, 147);
this.txtprecioproducto.Location = new System.Drawing.Point(1031, 350); this.btnAgregarStock.Name = "btnAgregarStock";
this.txtprecioproducto.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnAgregarStock.Size = new System.Drawing.Size(100, 23);
this.txtprecioproducto.Name = "txtprecioproducto"; this.btnAgregarStock.TabIndex = 12;
this.txtprecioproducto.Size = new System.Drawing.Size(171, 55); this.btnAgregarStock.Text = "Agregar stock";
this.txtprecioproducto.TabIndex = 13; this.btnAgregarStock.UseVisualStyleBackColor = true;
this.btnAgregarStock.Click += new System.EventHandler(this.button6_Click_1);
// //
// txtstockproducto // stockPanel
// //
this.txtstockproducto.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.stockPanel.Location = new System.Drawing.Point(394, 199);
this.txtstockproducto.Location = new System.Drawing.Point(1239, 350); this.stockPanel.Name = "stockPanel";
this.txtstockproducto.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.stockPanel.Size = new System.Drawing.Size(834, 518);
this.txtstockproducto.Name = "txtstockproducto"; this.stockPanel.TabIndex = 13;
this.txtstockproducto.Size = new System.Drawing.Size(171, 55);
this.txtstockproducto.TabIndex = 14;
//
// txtdescripcionproducto
//
this.txtdescripcionproducto.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtdescripcionproducto.Location = new System.Drawing.Point(497, 502);
this.txtdescripcionproducto.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txtdescripcionproducto.Multiline = true;
this.txtdescripcionproducto.Name = "txtdescripcionproducto";
this.txtdescripcionproducto.Size = new System.Drawing.Size(705, 443);
this.txtdescripcionproducto.TabIndex = 15;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label1.ForeColor = System.Drawing.Color.Navy;
this.label1.Location = new System.Drawing.Point(497, 287);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(334, 39);
this.label1.TabIndex = 16;
this.label1.Text = "Nombre del producto";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label2.ForeColor = System.Drawing.Color.Navy;
this.label2.Location = new System.Drawing.Point(1021, 272);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(114, 39);
this.label2.TabIndex = 17;
this.label2.Text = "Precio";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label3.ForeColor = System.Drawing.Color.Navy;
this.label3.Location = new System.Drawing.Point(1229, 272);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(102, 39);
this.label3.TabIndex = 18;
this.label3.Text = "Stock";
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label4.ForeColor = System.Drawing.Color.Navy;
this.label4.Location = new System.Drawing.Point(497, 439);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(392, 39);
this.label4.TabIndex = 19;
this.label4.Text = "Descripción del producto";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// button6
//
this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button6.Location = new System.Drawing.Point(1239, 502);
this.button6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(171, 70);
this.button6.TabIndex = 20;
this.button6.Text = "Agregar";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button7.Location = new System.Drawing.Point(1239, 622);
this.button7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(171, 70);
this.button7.TabIndex = 21;
this.button7.Text = "Buscar";
this.button7.UseVisualStyleBackColor = true;
//
// button8
//
this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button8.Location = new System.Drawing.Point(1239, 756);
this.button8.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(171, 70);
this.button8.TabIndex = 22;
this.button8.Text = "Editar";
this.button8.UseVisualStyleBackColor = true;
//
// button9
//
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button9.Location = new System.Drawing.Point(1239, 875);
this.button9.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(171, 70);
this.button9.TabIndex = 23;
this.button9.Text = "Eliminar";
this.button9.UseVisualStyleBackColor = true;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"cerveza",
"cigarros",
"sabritas",
"aguas"});
this.comboBox1.Location = new System.Drawing.Point(1153, 198);
this.comboBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(160, 24);
this.comboBox1.TabIndex = 24;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
// //
// inventario // inventario
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1924, 1055); this.ClientSize = new System.Drawing.Size(1370, 749);
this.Controls.Add(this.comboBox1); this.Controls.Add(this.stockPanel);
this.Controls.Add(this.button9); this.Controls.Add(this.btnAgregarStock);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
this.Controls.Add(this.button6);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtdescripcionproducto);
this.Controls.Add(this.txtstockproducto);
this.Controls.Add(this.txtprecioproducto);
this.Controls.Add(this.txtnombreproducto);
this.Controls.Add(this.lblfecha);
this.Controls.Add(this.lblhora); this.Controls.Add(this.lblhora);
this.Controls.Add(this.flowLayoutPanel1); this.Controls.Add(this.flowLayoutPanel1);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "inventario"; this.Name = "inventario";
this.Text = "inventario"; this.Text = "inventario";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.inventario_Load);
this.flowLayoutPanel1.ResumeLayout(false); this.flowLayoutPanel1.ResumeLayout(false);
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.panel2.PerformLayout(); this.panel2.PerformLayout();
@@ -397,20 +233,8 @@
private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5; private System.Windows.Forms.Button button5;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Label lblfecha;
private System.Windows.Forms.Label lblhora; private System.Windows.Forms.Label lblhora;
private System.Windows.Forms.TextBox txtnombreproducto; private System.Windows.Forms.Button btnAgregarStock;
private System.Windows.Forms.TextBox txtprecioproducto; private System.Windows.Forms.FlowLayoutPanel stockPanel;
private System.Windows.Forms.TextBox txtstockproducto;
private System.Windows.Forms.TextBox txtdescripcionproducto;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.ComboBox comboBox1;
} }
} }
+148 -4
View File
@@ -1,22 +1,138 @@
using compabetov2.database; using compabetov2.database;
using compabetov2.database.modelos; using compabetov2.database.modelos;
using compabetov2.Properties;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox;
namespace compabetov2 namespace compabetov2
{ {
public partial class inventario : Form public partial class inventario : Form
{ {
private List<Producto> productos;
public inventario() public inventario()
{ {
InitializeComponent(); InitializeComponent();
llenarPanel();
}
private void llenarPanel()
{
productos = service.conseguirProductos();
foreach (Producto producto in productos)
{
TableLayoutPanel filaLayout = new TableLayoutPanel();
filaLayout.RowCount = 1;
filaLayout.ColumnCount = 2;
filaLayout.Height = 100;
filaLayout.Width = 830;
filaLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
filaLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
filaLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
TableLayoutPanel informacionProducto = new TableLayoutPanel();
informacionProducto.RowCount = 1;
informacionProducto.ColumnCount = 2;
informacionProducto.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F));
informacionProducto.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 80F));
informacionProducto.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
informacionProducto.Dock = DockStyle.Fill;
Label idProducto = new Label();
idProducto.Text = producto.idProducto.ToString();
idProducto.BackColor = Color.FromArgb(82, 82, 82);
idProducto.ForeColor = Color.White;
idProducto.AutoSize = true;
idProducto.Dock = DockStyle.Left;
PictureBox imagen = new PictureBox();
string rutaImg = Path.Combine(Application.StartupPath, "Resources", producto.img);
imagen.Image = Image.FromFile(rutaImg);
imagen.Dock = DockStyle.Fill;
imagen.BackgroundImageLayout = ImageLayout.Stretch;
imagen.SizeMode = PictureBoxSizeMode.Zoom;
imagen.Controls.Add(idProducto);
Label nombreStock = new Label();
nombreStock.Text = producto.nombre + " - Stock: " + producto.stock.ToString();
nombreStock.Font = new Font(nombreStock.Font.FontFamily, 16);
nombreStock.Dock = DockStyle.Fill;
nombreStock.TextAlign = ContentAlignment.MiddleCenter;
//panel de agregar stock
TableLayoutPanel agregarPanel = new TableLayoutPanel();
agregarPanel.Dock = DockStyle.Fill;
agregarPanel.RowCount = 1;
agregarPanel.ColumnCount = 3;
agregarPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 60F));
agregarPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F));
agregarPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20F));
agregarPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
TextBox txtStockAgregar = new TextBox();
txtStockAgregar.Text = "0";
txtStockAgregar.Height = 60;
txtStockAgregar.Width = 200;
txtStockAgregar.Anchor = AnchorStyles.None;
txtStockAgregar.Font = new Font(txtStockAgregar.Font.FontFamily, 17);
Button btnMenos = new Button();
btnMenos.Text = "-";
btnMenos.Width = 60;
btnMenos.Height = 60;
btnMenos.Font = new Font(btnMenos.Font.FontFamily, 30);
btnMenos.ForeColor = Color.White;
btnMenos.FlatStyle = FlatStyle.Flat;
btnMenos.FlatAppearance.BorderSize = 0;
btnMenos.BackColor = Color.FromArgb(33, 90, 255);
btnMenos.Anchor = AnchorStyles.None;
btnMenos.Click += new EventHandler(delegate (object sender, EventArgs e)
{
int numeroContador = int.Parse(txtStockAgregar.Text);
txtStockAgregar.Text = (numeroContador - 1).ToString();
});
Button btnMas = new Button();
btnMas.Text = "+";
btnMas.Width = 60;
btnMas.Height = 60;
btnMas.Font = new Font(btnMas.Font.FontFamily, 30);
btnMas.ForeColor = Color.White;
btnMas.BackColor = Color.FromArgb(33, 90, 255);
btnMas.FlatStyle = FlatStyle.Flat;
btnMas.FlatAppearance.BorderSize = 0;
btnMas.Anchor = AnchorStyles.None;
btnMas.Click += new EventHandler(delegate (object sender, EventArgs e)
{
int numeroContador = int.Parse(txtStockAgregar.Text);
txtStockAgregar.Text = (numeroContador + 1).ToString();
});
informacionProducto.Controls.Add(imagen,0,0);
informacionProducto.Controls.Add(nombreStock,1,0);
agregarPanel.Controls.Add(txtStockAgregar, 0, 0);
agregarPanel.Controls.Add(btnMenos, 1, 0);
agregarPanel.Controls.Add(btnMas, 2, 0);
filaLayout.Controls.Add(informacionProducto, 0, 0);
filaLayout.Controls.Add(agregarPanel, 1, 0);
stockPanel.Controls.Add(filaLayout);
}
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
@@ -30,7 +146,7 @@ namespace compabetov2
private void button6_Click(object sender, EventArgs e) private void button6_Click(object sender, EventArgs e)
{ {
Categoria categoria = new Categoria(comboBox1.SelectedIndex + 1); /*Categoria categoria = new Categoria(comboBox1.SelectedIndex + 1);
Producto producto = new Producto( Producto producto = new Producto(
0, 0,
txtnombreproducto.Text, txtnombreproducto.Text,
@@ -42,17 +158,45 @@ namespace compabetov2
if (service.insertarProducto(producto)) { if (service.insertarProducto(producto)) {
} }*/
} }
private void inventario_Load(object sender, EventArgs e)
private void button6_Click_1(object sender, EventArgs e)
{ {
List<Producto> stockNuevo = new List<Producto>();
foreach(Control control in stockPanel.Controls)
{
TableLayoutPanel informacionProducto = control.Controls[0] as TableLayoutPanel;
TableLayoutPanel agregarPanel = control.Controls[1] as TableLayoutPanel;
//id
Label lbIdProducto = informacionProducto.Controls[0].Controls[0] as Label;
int idProducto = int.Parse(lbIdProducto.Text);
//stock a agregar
TextBox txtStock = agregarPanel.Controls[0] as TextBox;
int stock = int.Parse(txtStock.Text);
Producto productoStockNuuevo = new Producto(idProducto,"","",0,"",stock, null);
stockNuevo.Add(productoStockNuuevo);
} }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) string mensajeConfirmacion = "Se aumentara el stock a los\nsiguientes productos\n";
for(int i = 0; i < stockNuevo.Count; i++)
{ {
if (stockNuevo[i].stock > 0)
{
mensajeConfirmacion += productos[i].nombre + ": " + stockNuevo[i].stock + "\n";
}
}
DialogResult result = MessageBox.Show(mensajeConfirmacion, "Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
// Código para realizar la acción
}
} }
} }
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+174 -145
View File
@@ -60,10 +60,10 @@
this.dtpnacimientopersonal = new System.Windows.Forms.DateTimePicker(); this.dtpnacimientopersonal = new System.Windows.Forms.DateTimePicker();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label();
this.button9 = new System.Windows.Forms.Button(); this.btnEliminar = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button(); this.btnEditar = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button(); this.btnModificar = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button(); this.btnAgregar = new System.Windows.Forms.Button();
this.label12 = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -79,6 +79,7 @@
this.referencia = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.referencia = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fecha_nac = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.fecha_nac = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.telefono = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.telefono = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnNuevo = new System.Windows.Forms.Button();
this.empleadoBindingSource = new System.Windows.Forms.BindingSource(this.components); this.empleadoBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.conexionBindingSource = new System.Windows.Forms.BindingSource(this.components); this.conexionBindingSource = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
@@ -92,8 +93,8 @@
// pictureBox7 // pictureBox7
// //
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu; this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
this.pictureBox7.Location = new System.Drawing.Point(64, 34); this.pictureBox7.Location = new System.Drawing.Point(48, 28);
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.pictureBox7.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(190, 197); this.pictureBox7.Size = new System.Drawing.Size(190, 197);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -104,10 +105,10 @@
// //
this.panel2.BackColor = System.Drawing.Color.Transparent; this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.Controls.Add(this.pictureBox7); this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Location = new System.Drawing.Point(3, 2); this.panel2.Location = new System.Drawing.Point(2, 2);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(312, 263); this.panel2.Size = new System.Drawing.Size(234, 214);
this.panel2.TabIndex = 8; this.panel2.TabIndex = 8;
// //
// button1 // button1
@@ -119,11 +120,11 @@
this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button1.Image = global::compabetov2.Properties.Resources.Menui1; this.button1.Image = global::compabetov2.Properties.Resources.Menui1;
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button1.Location = new System.Drawing.Point(3, 269); this.button1.Location = new System.Drawing.Point(2, 220);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button1.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button1.Size = new System.Drawing.Size(312, 114); this.button1.Size = new System.Drawing.Size(234, 93);
this.button1.TabIndex = 8; this.button1.TabIndex = 8;
this.button1.Text = "Menú"; this.button1.Text = "Menú";
this.button1.UseVisualStyleBackColor = false; this.button1.UseVisualStyleBackColor = false;
@@ -137,11 +138,11 @@
this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi; this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi;
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button2.Location = new System.Drawing.Point(3, 387); this.button2.Location = new System.Drawing.Point(2, 317);
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button2.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button2.Size = new System.Drawing.Size(312, 114); this.button2.Size = new System.Drawing.Size(234, 93);
this.button2.TabIndex = 9; this.button2.TabIndex = 9;
this.button2.Text = "Estadisticas"; this.button2.Text = "Estadisticas";
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@@ -156,11 +157,11 @@
this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button3.Image = global::compabetov2.Properties.Resources.productoi; this.button3.Image = global::compabetov2.Properties.Resources.productoi;
this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button3.Location = new System.Drawing.Point(3, 505); this.button3.Location = new System.Drawing.Point(2, 414);
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button3.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button3.Size = new System.Drawing.Size(312, 114); this.button3.Size = new System.Drawing.Size(234, 93);
this.button3.TabIndex = 10; this.button3.TabIndex = 10;
this.button3.Text = "Productos"; this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false; this.button3.UseVisualStyleBackColor = false;
@@ -174,11 +175,11 @@
this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button4.Image = global::compabetov2.Properties.Resources.reportesi; this.button4.Image = global::compabetov2.Properties.Resources.reportesi;
this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button4.Location = new System.Drawing.Point(3, 623); this.button4.Location = new System.Drawing.Point(2, 511);
this.button4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button4.Name = "button4"; this.button4.Name = "button4";
this.button4.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button4.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button4.Size = new System.Drawing.Size(312, 114); this.button4.Size = new System.Drawing.Size(234, 93);
this.button4.TabIndex = 11; this.button4.TabIndex = 11;
this.button4.Text = "Reportes"; this.button4.Text = "Reportes";
this.button4.UseVisualStyleBackColor = false; this.button4.UseVisualStyleBackColor = false;
@@ -192,11 +193,11 @@
this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.button5.Image = global::compabetov2.Properties.Resources.sesionc; this.button5.Image = global::compabetov2.Properties.Resources.sesionc;
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.button5.Location = new System.Drawing.Point(3, 741); this.button5.Location = new System.Drawing.Point(2, 608);
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button5.Name = "button5"; this.button5.Name = "button5";
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0); this.button5.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
this.button5.Size = new System.Drawing.Size(312, 114); this.button5.Size = new System.Drawing.Size(234, 93);
this.button5.TabIndex = 12; this.button5.TabIndex = 12;
this.button5.Text = "Salir"; this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = false; this.button5.UseVisualStyleBackColor = false;
@@ -210,91 +211,91 @@
this.flowLayoutPanel1.Controls.Add(this.button3); this.flowLayoutPanel1.Controls.Add(this.button3);
this.flowLayoutPanel1.Controls.Add(this.button4); this.flowLayoutPanel1.Controls.Add(this.button4);
this.flowLayoutPanel1.Controls.Add(this.button5); this.flowLayoutPanel1.Controls.Add(this.button5);
this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, -2); this.flowLayoutPanel1.Location = new System.Drawing.Point(-2, -2);
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061); this.flowLayoutPanel1.Size = new System.Drawing.Size(243, 862);
this.flowLayoutPanel1.TabIndex = 8; this.flowLayoutPanel1.TabIndex = 8;
// //
// txtnombrepersonal // txtnombrepersonal
// //
this.txtnombrepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtnombrepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnombrepersonal.Location = new System.Drawing.Point(493, 347); this.txtnombrepersonal.Location = new System.Drawing.Point(370, 282);
this.txtnombrepersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtnombrepersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnombrepersonal.Name = "txtnombrepersonal"; this.txtnombrepersonal.Name = "txtnombrepersonal";
this.txtnombrepersonal.Size = new System.Drawing.Size(299, 55); this.txtnombrepersonal.Size = new System.Drawing.Size(225, 45);
this.txtnombrepersonal.TabIndex = 13; this.txtnombrepersonal.TabIndex = 13;
// //
// txtapellidopersonal // txtapellidopersonal
// //
this.txtapellidopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtapellidopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtapellidopersonal.Location = new System.Drawing.Point(819, 347); this.txtapellidopersonal.Location = new System.Drawing.Point(614, 282);
this.txtapellidopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtapellidopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtapellidopersonal.Name = "txtapellidopersonal"; this.txtapellidopersonal.Name = "txtapellidopersonal";
this.txtapellidopersonal.Size = new System.Drawing.Size(299, 55); this.txtapellidopersonal.Size = new System.Drawing.Size(225, 45);
this.txtapellidopersonal.TabIndex = 14; this.txtapellidopersonal.TabIndex = 14;
// //
// txtnointpersonal // txtnointpersonal
// //
this.txtnointpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtnointpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnointpersonal.Location = new System.Drawing.Point(493, 572); this.txtnointpersonal.Location = new System.Drawing.Point(370, 465);
this.txtnointpersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtnointpersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnointpersonal.Name = "txtnointpersonal"; this.txtnointpersonal.Name = "txtnointpersonal";
this.txtnointpersonal.Size = new System.Drawing.Size(299, 55); this.txtnointpersonal.Size = new System.Drawing.Size(225, 45);
this.txtnointpersonal.TabIndex = 20; this.txtnointpersonal.TabIndex = 20;
// //
// txtnoextpersonal // txtnoextpersonal
// //
this.txtnoextpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtnoextpersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtnoextpersonal.Location = new System.Drawing.Point(1464, 452); this.txtnoextpersonal.Location = new System.Drawing.Point(1098, 367);
this.txtnoextpersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtnoextpersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtnoextpersonal.Name = "txtnoextpersonal"; this.txtnoextpersonal.Name = "txtnoextpersonal";
this.txtnoextpersonal.Size = new System.Drawing.Size(299, 55); this.txtnoextpersonal.Size = new System.Drawing.Size(225, 45);
this.txtnoextpersonal.TabIndex = 19; this.txtnoextpersonal.TabIndex = 19;
// //
// txtcodigopersonal // txtcodigopersonal
// //
this.txtcodigopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtcodigopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcodigopersonal.Location = new System.Drawing.Point(1141, 452); this.txtcodigopersonal.Location = new System.Drawing.Point(856, 367);
this.txtcodigopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtcodigopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcodigopersonal.Name = "txtcodigopersonal"; this.txtcodigopersonal.Name = "txtcodigopersonal";
this.txtcodigopersonal.Size = new System.Drawing.Size(299, 55); this.txtcodigopersonal.Size = new System.Drawing.Size(225, 45);
this.txtcodigopersonal.TabIndex = 18; this.txtcodigopersonal.TabIndex = 18;
// //
// txtcoloniapersonal // txtcoloniapersonal
// //
this.txtcoloniapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtcoloniapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcoloniapersonal.Location = new System.Drawing.Point(816, 452); this.txtcoloniapersonal.Location = new System.Drawing.Point(612, 367);
this.txtcoloniapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtcoloniapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcoloniapersonal.Name = "txtcoloniapersonal"; this.txtcoloniapersonal.Name = "txtcoloniapersonal";
this.txtcoloniapersonal.Size = new System.Drawing.Size(299, 55); this.txtcoloniapersonal.Size = new System.Drawing.Size(225, 45);
this.txtcoloniapersonal.TabIndex = 17; this.txtcoloniapersonal.TabIndex = 17;
// //
// txtcallepersonal // txtcallepersonal
// //
this.txtcallepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtcallepersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtcallepersonal.Location = new System.Drawing.Point(1141, 347); this.txtcallepersonal.Location = new System.Drawing.Point(856, 282);
this.txtcallepersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtcallepersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtcallepersonal.Name = "txtcallepersonal"; this.txtcallepersonal.Name = "txtcallepersonal";
this.txtcallepersonal.Size = new System.Drawing.Size(299, 55); this.txtcallepersonal.Size = new System.Drawing.Size(225, 45);
this.txtcallepersonal.TabIndex = 24; this.txtcallepersonal.TabIndex = 24;
// //
// txttelefonopersonal // txttelefonopersonal
// //
this.txttelefonopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txttelefonopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txttelefonopersonal.Location = new System.Drawing.Point(1464, 550); this.txttelefonopersonal.Location = new System.Drawing.Point(1098, 447);
this.txttelefonopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txttelefonopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txttelefonopersonal.Name = "txttelefonopersonal"; this.txttelefonopersonal.Name = "txttelefonopersonal";
this.txttelefonopersonal.Size = new System.Drawing.Size(299, 55); this.txttelefonopersonal.Size = new System.Drawing.Size(225, 45);
this.txttelefonopersonal.TabIndex = 23; this.txttelefonopersonal.TabIndex = 23;
// //
// txtreferenciapersonal // txtreferenciapersonal
// //
this.txtreferenciapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F); this.txtreferenciapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F);
this.txtreferenciapersonal.Location = new System.Drawing.Point(816, 550); this.txtreferenciapersonal.Location = new System.Drawing.Point(612, 447);
this.txtreferenciapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.txtreferenciapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtreferenciapersonal.Name = "txtreferenciapersonal"; this.txtreferenciapersonal.Name = "txtreferenciapersonal";
this.txtreferenciapersonal.Size = new System.Drawing.Size(299, 55); this.txtreferenciapersonal.Size = new System.Drawing.Size(225, 45);
this.txtreferenciapersonal.TabIndex = 21; this.txtreferenciapersonal.TabIndex = 21;
// //
// label1 // label1
@@ -302,9 +303,10 @@
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label1.ForeColor = System.Drawing.Color.Navy; this.label1.ForeColor = System.Drawing.Color.Navy;
this.label1.Location = new System.Drawing.Point(496, 302); this.label1.Location = new System.Drawing.Point(372, 245);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(138, 39); this.label1.Size = new System.Drawing.Size(110, 31);
this.label1.TabIndex = 25; this.label1.TabIndex = 25;
this.label1.Text = "Nombre"; this.label1.Text = "Nombre";
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -315,9 +317,10 @@
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label2.ForeColor = System.Drawing.Color.Navy; this.label2.ForeColor = System.Drawing.Color.Navy;
this.label2.Location = new System.Drawing.Point(811, 306); this.label2.Location = new System.Drawing.Point(608, 249);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(140, 39); this.label2.Size = new System.Drawing.Size(110, 31);
this.label2.TabIndex = 26; this.label2.TabIndex = 26;
this.label2.Text = "Apellido"; this.label2.Text = "Apellido";
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -327,9 +330,10 @@
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label3.ForeColor = System.Drawing.Color.Navy; this.label3.ForeColor = System.Drawing.Color.Navy;
this.label3.Location = new System.Drawing.Point(1460, 306); this.label3.Location = new System.Drawing.Point(1095, 249);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(353, 39); this.label3.Size = new System.Drawing.Size(283, 31);
this.label3.TabIndex = 27; this.label3.TabIndex = 27;
this.label3.Text = "Fecha de contratación"; this.label3.Text = "Fecha de contratación";
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -337,20 +341,20 @@
// dtpfechapersonal // dtpfechapersonal
// //
this.dtpfechapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.dtpfechapersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.dtpfechapersonal.Location = new System.Drawing.Point(1467, 359); this.dtpfechapersonal.Location = new System.Drawing.Point(1100, 292);
this.dtpfechapersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.dtpfechapersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.dtpfechapersonal.Name = "dtpfechapersonal"; this.dtpfechapersonal.Name = "dtpfechapersonal";
this.dtpfechapersonal.Size = new System.Drawing.Size(296, 36); this.dtpfechapersonal.Size = new System.Drawing.Size(223, 30);
this.dtpfechapersonal.TabIndex = 28; this.dtpfechapersonal.TabIndex = 28;
// //
// cbestadopersonal // cbestadopersonal
// //
this.cbestadopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 26F); this.cbestadopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 26F);
this.cbestadopersonal.FormattingEnabled = true; this.cbestadopersonal.FormattingEnabled = true;
this.cbestadopersonal.Location = new System.Drawing.Point(493, 452); this.cbestadopersonal.Location = new System.Drawing.Point(370, 367);
this.cbestadopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.cbestadopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbestadopersonal.Name = "cbestadopersonal"; this.cbestadopersonal.Name = "cbestadopersonal";
this.cbestadopersonal.Size = new System.Drawing.Size(160, 59); this.cbestadopersonal.Size = new System.Drawing.Size(121, 47);
this.cbestadopersonal.TabIndex = 29; this.cbestadopersonal.TabIndex = 29;
// //
// label4 // label4
@@ -358,9 +362,10 @@
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label4.ForeColor = System.Drawing.Color.Navy; this.label4.ForeColor = System.Drawing.Color.Navy;
this.label4.Location = new System.Drawing.Point(507, 407); this.label4.Location = new System.Drawing.Point(380, 331);
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(123, 39); this.label4.Size = new System.Drawing.Size(99, 31);
this.label4.TabIndex = 30; this.label4.TabIndex = 30;
this.label4.Text = "Estado"; this.label4.Text = "Estado";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -370,9 +375,10 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label5.ForeColor = System.Drawing.Color.Navy; this.label5.ForeColor = System.Drawing.Color.Navy;
this.label5.Location = new System.Drawing.Point(819, 411); this.label5.Location = new System.Drawing.Point(614, 334);
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(134, 39); this.label5.Size = new System.Drawing.Size(106, 31);
this.label5.TabIndex = 31; this.label5.TabIndex = 31;
this.label5.Text = "Colonia"; this.label5.Text = "Colonia";
this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -382,9 +388,10 @@
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label6.ForeColor = System.Drawing.Color.Navy; this.label6.ForeColor = System.Drawing.Color.Navy;
this.label6.Location = new System.Drawing.Point(1140, 411); this.label6.Location = new System.Drawing.Point(855, 334);
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(230, 39); this.label6.Size = new System.Drawing.Size(183, 31);
this.label6.TabIndex = 32; this.label6.TabIndex = 32;
this.label6.Text = "Codigo Postal"; this.label6.Text = "Codigo Postal";
this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -394,9 +401,10 @@
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label7.ForeColor = System.Drawing.Color.Navy; this.label7.ForeColor = System.Drawing.Color.Navy;
this.label7.Location = new System.Drawing.Point(1457, 406); this.label7.Location = new System.Drawing.Point(1093, 330);
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(128, 39); this.label7.Size = new System.Drawing.Size(103, 31);
this.label7.TabIndex = 33; this.label7.TabIndex = 33;
this.label7.Text = "No. Ext"; this.label7.Text = "No. Ext";
this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -406,9 +414,10 @@
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label8.ForeColor = System.Drawing.Color.Navy; this.label8.ForeColor = System.Drawing.Color.Navy;
this.label8.Location = new System.Drawing.Point(485, 526); this.label8.Location = new System.Drawing.Point(364, 427);
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(117, 39); this.label8.Size = new System.Drawing.Size(95, 31);
this.label8.TabIndex = 34; this.label8.TabIndex = 34;
this.label8.Text = "No. Int"; this.label8.Text = "No. Int";
this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -418,9 +427,10 @@
this.label9.AutoSize = true; this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label9.ForeColor = System.Drawing.Color.Navy; this.label9.ForeColor = System.Drawing.Color.Navy;
this.label9.Location = new System.Drawing.Point(819, 510); this.label9.Location = new System.Drawing.Point(614, 414);
this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label9.Name = "label9"; this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(182, 39); this.label9.Size = new System.Drawing.Size(146, 31);
this.label9.TabIndex = 35; this.label9.TabIndex = 35;
this.label9.Text = "Referencia"; this.label9.Text = "Referencia";
this.label9.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label9.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -428,10 +438,10 @@
// dtpnacimientopersonal // dtpnacimientopersonal
// //
this.dtpnacimientopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.dtpnacimientopersonal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.dtpnacimientopersonal.Location = new System.Drawing.Point(1141, 560); this.dtpnacimientopersonal.Location = new System.Drawing.Point(856, 455);
this.dtpnacimientopersonal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.dtpnacimientopersonal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.dtpnacimientopersonal.Name = "dtpnacimientopersonal"; this.dtpnacimientopersonal.Name = "dtpnacimientopersonal";
this.dtpnacimientopersonal.Size = new System.Drawing.Size(296, 36); this.dtpnacimientopersonal.Size = new System.Drawing.Size(223, 30);
this.dtpnacimientopersonal.TabIndex = 36; this.dtpnacimientopersonal.TabIndex = 36;
// //
// label10 // label10
@@ -439,9 +449,10 @@
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label10.ForeColor = System.Drawing.Color.Navy; this.label10.ForeColor = System.Drawing.Color.Navy;
this.label10.Location = new System.Drawing.Point(1133, 510); this.label10.Location = new System.Drawing.Point(850, 414);
this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(339, 39); this.label10.Size = new System.Drawing.Size(270, 31);
this.label10.TabIndex = 37; this.label10.TabIndex = 37;
this.label10.Text = "Fecha de Nacimiento"; this.label10.Text = "Fecha de Nacimiento";
this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -451,68 +462,72 @@
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label11.ForeColor = System.Drawing.Color.Navy; this.label11.ForeColor = System.Drawing.Color.Navy;
this.label11.Location = new System.Drawing.Point(1479, 510); this.label11.Location = new System.Drawing.Point(1109, 414);
this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(150, 39); this.label11.Size = new System.Drawing.Size(120, 31);
this.label11.TabIndex = 38; this.label11.TabIndex = 38;
this.label11.Text = "Telefono"; this.label11.Text = "Telefono";
this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter;
// //
// button9 // btnEliminar
// //
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnEliminar.Enabled = false;
this.button9.Location = new System.Drawing.Point(1377, 698); this.btnEliminar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button9.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnEliminar.Location = new System.Drawing.Point(1033, 567);
this.button9.Name = "button9"; this.btnEliminar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button9.Size = new System.Drawing.Size(171, 70); this.btnEliminar.Name = "btnEliminar";
this.button9.TabIndex = 42; this.btnEliminar.Size = new System.Drawing.Size(128, 57);
this.button9.Text = "Eliminar"; this.btnEliminar.TabIndex = 42;
this.button9.UseVisualStyleBackColor = true; this.btnEliminar.Text = "Eliminar";
this.btnEliminar.UseVisualStyleBackColor = true;
// //
// button8 // btnEditar
// //
this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnEditar.Enabled = false;
this.button8.Location = new System.Drawing.Point(1177, 698); this.btnEditar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button8.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnEditar.Location = new System.Drawing.Point(883, 567);
this.button8.Name = "button8"; this.btnEditar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button8.Size = new System.Drawing.Size(171, 70); this.btnEditar.Name = "btnEditar";
this.button8.TabIndex = 41; this.btnEditar.Size = new System.Drawing.Size(128, 57);
this.button8.Text = "Editar"; this.btnEditar.TabIndex = 41;
this.button8.UseVisualStyleBackColor = true; this.btnEditar.Text = "Editar";
this.button8.Click += new System.EventHandler(this.button8_Click); this.btnEditar.UseVisualStyleBackColor = true;
this.btnEditar.Click += new System.EventHandler(this.button8_Click);
// //
// button7 // btnModificar
// //
this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnModificar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button7.Location = new System.Drawing.Point(977, 698); this.btnModificar.Location = new System.Drawing.Point(581, 567);
this.button7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnModificar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button7.Name = "button7"; this.btnModificar.Name = "btnModificar";
this.button7.Size = new System.Drawing.Size(171, 70); this.btnModificar.Size = new System.Drawing.Size(128, 57);
this.button7.TabIndex = 40; this.btnModificar.TabIndex = 40;
this.button7.Text = "Buscar"; this.btnModificar.Text = "Modificar";
this.button7.UseVisualStyleBackColor = true; this.btnModificar.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click); this.btnModificar.Click += new System.EventHandler(this.button7_Click);
// //
// button6 // btnAgregar
// //
this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button6.Location = new System.Drawing.Point(779, 698); this.btnAgregar.Location = new System.Drawing.Point(730, 567);
this.button6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnAgregar.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button6.Name = "button6"; this.btnAgregar.Name = "btnAgregar";
this.button6.Size = new System.Drawing.Size(171, 70); this.btnAgregar.Size = new System.Drawing.Size(128, 57);
this.button6.TabIndex = 39; this.btnAgregar.TabIndex = 39;
this.button6.Text = "Agregar"; this.btnAgregar.Text = "Agregar";
this.button6.UseVisualStyleBackColor = true; this.btnAgregar.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click); this.btnAgregar.Click += new System.EventHandler(this.button6_Click);
// //
// label12 // label12
// //
this.label12.AutoSize = true; this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F); this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F);
this.label12.ForeColor = System.Drawing.Color.Navy; this.label12.ForeColor = System.Drawing.Color.Navy;
this.label12.Location = new System.Drawing.Point(1133, 306); this.label12.Location = new System.Drawing.Point(850, 249);
this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label12.Name = "label12"; this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(96, 39); this.label12.Size = new System.Drawing.Size(76, 31);
this.label12.TabIndex = 43; this.label12.TabIndex = 43;
this.label12.Text = "Calle"; this.label12.Text = "Calle";
this.label12.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.label12.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@@ -534,13 +549,13 @@
this.referencia, this.referencia,
this.fecha_nac, this.fecha_nac,
this.telefono}); this.telefono});
this.dataGridView1.Location = new System.Drawing.Point(344, 92); this.dataGridView1.Location = new System.Drawing.Point(258, 75);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 51; this.dataGridView1.RowHeadersWidth = 51;
this.dataGridView1.Size = new System.Drawing.Size(1467, 185); this.dataGridView1.Size = new System.Drawing.Size(1100, 150);
this.dataGridView1.TabIndex = 44; this.dataGridView1.TabIndex = 44;
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick); this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dataGridView1.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowEnter);
// //
// Id // Id
// //
@@ -633,6 +648,18 @@
this.telefono.Name = "telefono"; this.telefono.Name = "telefono";
this.telefono.Width = 125; this.telefono.Width = 125;
// //
// btnNuevo
//
this.btnNuevo.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnNuevo.Location = new System.Drawing.Point(437, 567);
this.btnNuevo.Margin = new System.Windows.Forms.Padding(2);
this.btnNuevo.Name = "btnNuevo";
this.btnNuevo.Size = new System.Drawing.Size(128, 57);
this.btnNuevo.TabIndex = 45;
this.btnNuevo.Text = "Nuevo";
this.btnNuevo.UseVisualStyleBackColor = true;
this.btnNuevo.Click += new System.EventHandler(this.btnNuevo_Click);
//
// empleadoBindingSource // empleadoBindingSource
// //
this.empleadoBindingSource.DataSource = typeof(compabetov2.database.modelos.Empleado); this.empleadoBindingSource.DataSource = typeof(compabetov2.database.modelos.Empleado);
@@ -643,15 +670,16 @@
// //
// personal // personal
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1827, 910); this.ClientSize = new System.Drawing.Size(1370, 678);
this.Controls.Add(this.btnNuevo);
this.Controls.Add(this.dataGridView1); this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.label12); this.Controls.Add(this.label12);
this.Controls.Add(this.button9); this.Controls.Add(this.btnEliminar);
this.Controls.Add(this.button8); this.Controls.Add(this.btnEditar);
this.Controls.Add(this.button7); this.Controls.Add(this.btnModificar);
this.Controls.Add(this.button6); this.Controls.Add(this.btnAgregar);
this.Controls.Add(this.label11); this.Controls.Add(this.label11);
this.Controls.Add(this.label10); this.Controls.Add(this.label10);
this.Controls.Add(this.dtpnacimientopersonal); this.Controls.Add(this.dtpnacimientopersonal);
@@ -676,7 +704,7 @@
this.Controls.Add(this.txtapellidopersonal); this.Controls.Add(this.txtapellidopersonal);
this.Controls.Add(this.txtnombrepersonal); this.Controls.Add(this.txtnombrepersonal);
this.Controls.Add(this.flowLayoutPanel1); this.Controls.Add(this.flowLayoutPanel1);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "personal"; this.Name = "personal";
this.Text = "personal"; this.Text = "personal";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
@@ -726,10 +754,10 @@
private System.Windows.Forms.DateTimePicker dtpnacimientopersonal; private System.Windows.Forms.DateTimePicker dtpnacimientopersonal;
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11; private System.Windows.Forms.Label label11;
private System.Windows.Forms.Button button9; private System.Windows.Forms.Button btnEliminar;
private System.Windows.Forms.Button button8; private System.Windows.Forms.Button btnEditar;
private System.Windows.Forms.Button button7; private System.Windows.Forms.Button btnModificar;
private System.Windows.Forms.Button button6; private System.Windows.Forms.Button btnAgregar;
private System.Windows.Forms.Label label12; private System.Windows.Forms.Label label12;
private System.Windows.Forms.DataGridView dataGridView1; private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.BindingSource conexionBindingSource; private System.Windows.Forms.BindingSource conexionBindingSource;
@@ -747,5 +775,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn referencia; private System.Windows.Forms.DataGridViewTextBoxColumn referencia;
private System.Windows.Forms.DataGridViewTextBoxColumn fecha_nac; private System.Windows.Forms.DataGridViewTextBoxColumn fecha_nac;
private System.Windows.Forms.DataGridViewTextBoxColumn telefono; private System.Windows.Forms.DataGridViewTextBoxColumn telefono;
private System.Windows.Forms.Button btnNuevo;
} }
} }
+36 -2
View File
@@ -20,6 +20,7 @@ namespace compabetov2
llenarGrid(); llenarGrid();
} }
private void label1_Click(object sender, EventArgs e) private void label1_Click(object sender, EventArgs e)
{ {
@@ -48,7 +49,6 @@ namespace compabetov2
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{ {
} }
private void llenarGrid() private void llenarGrid()
@@ -72,6 +72,7 @@ namespace compabetov2
empleado.fecha_nac, empleado.fecha_nac,
empleado.telefono); empleado.telefono);
} }
dataGridView1.Enabled = false;
} }
private void personal_Load(object sender, EventArgs e) private void personal_Load(object sender, EventArgs e)
@@ -81,12 +82,45 @@ namespace compabetov2
private void button7_Click(object sender, EventArgs e) private void button7_Click(object sender, EventArgs e)
{ {
btnEditar.Enabled = true;
btnEliminar.Enabled = true;
dataGridView1.Enabled = true;
btnAgregar.Enabled = false;
} }
private void button8_Click(object sender, EventArgs e) private void button8_Click(object sender, EventArgs e)
{ {
} }
private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
DataGridViewRow row = dataGridView1.Rows[e.RowIndex] as DataGridViewRow;
if(row.Cells[1].Value != null && row.Cells[0].Value != null)
{
txtnombrepersonal.Text = row.Cells[1].Value.ToString();
txtapellidopersonal.Text = row.Cells[2].Value.ToString();
dtpfechapersonal.Text = row.Cells[3].Value.ToString();
cbestadopersonal.Text = row.Cells[4].Value.ToString();
txtcallepersonal.Text = row.Cells[5].Value.ToString();
txtcoloniapersonal.Text = row.Cells[6].Value.ToString();
txtcodigopersonal.Text = row.Cells[7].Value.ToString();
txtnoextpersonal.Text = row.Cells[8].Value.ToString();
txtnointpersonal.Text = row.Cells[9].Value.ToString();
txtreferenciapersonal.Text = row.Cells[10].Value.ToString();
dtpnacimientopersonal.Text = row.Cells[11].Value.ToString();
txttelefonopersonal.Text = row.Cells[12].Value.ToString();
}
}
private void btnNuevo_Click(object sender, EventArgs e)
{
btnEditar.Enabled = false;
btnEliminar.Enabled = false;
btnAgregar.Enabled = true;
dataGridView1.Enabled = false;
}
} }
} }
-39
View File
@@ -156,45 +156,6 @@
<metadata name="telefono.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="telefono.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Nombre.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Apellidos.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fecha_con.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="estado.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="calle.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="calonia.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="no_ext.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="no_int.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="referencia.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fecha_nac.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="telefono.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="empleadoBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="empleadoBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>197, 17</value> <value>197, 17</value>
</metadata> </metadata>
+1 -1
View File
@@ -67,7 +67,7 @@ namespace compabetov2
pic.Controls.Add(id); pic.Controls.Add(id);
Label precio = new Label(); Label precio = new Label();
precio.Text = "$5";// + producto.precion.ToString(); precio.Text = "$" + producto.precion.ToString() + " - " + producto.nombre;
precio.BackColor = Color.FromArgb(82, 82, 82); precio.BackColor = Color.FromArgb(82, 82, 82);
precio.ForeColor = Color.White; precio.ForeColor = Color.White;
precio.Width = 40; precio.Width = 40;