diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo
index 045ece8..fdf919f 100644
Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ
diff --git a/AgregarEmpleado.Designer.cs b/AgregarEmpleado.Designer.cs
new file mode 100644
index 0000000..ea60936
--- /dev/null
+++ b/AgregarEmpleado.Designer.cs
@@ -0,0 +1,629 @@
+namespace compabetov2
+{
+ partial class AgregarEmpleado
+ {
+ ///
+ /// 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()
+ {
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbNombre = new System.Windows.Forms.Label();
+ this.txtNombre = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel7 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel8 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel9 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel10 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel11 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel12 = new System.Windows.Forms.FlowLayoutPanel();
+ this.flowLayoutPanel13 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbApellidos = new System.Windows.Forms.Label();
+ this.txtApellido = new System.Windows.Forms.TextBox();
+ this.lbCalle = new System.Windows.Forms.Label();
+ this.txtCalle = new System.Windows.Forms.TextBox();
+ this.lbColonia = new System.Windows.Forms.Label();
+ this.txtColonia = new System.Windows.Forms.TextBox();
+ this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
+ this.btnAgregar = new System.Windows.Forms.Button();
+ this.btnCancelar = new System.Windows.Forms.Button();
+ this.lbCp = 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.label5 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.txtCp = new System.Windows.Forms.TextBox();
+ this.txtNoExt = new System.Windows.Forms.TextBox();
+ this.txtNoInt = new System.Windows.Forms.TextBox();
+ this.txtReferencia = new System.Windows.Forms.TextBox();
+ this.txtTelefono = new System.Windows.Forms.TextBox();
+ this.dtFechaCon = new System.Windows.Forms.DateTimePicker();
+ this.dtFechaNac = new System.Windows.Forms.DateTimePicker();
+ this.cbEstado = new System.Windows.Forms.ComboBox();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.flowLayoutPanel1.SuspendLayout();
+ this.flowLayoutPanel3.SuspendLayout();
+ this.flowLayoutPanel4.SuspendLayout();
+ this.flowLayoutPanel5.SuspendLayout();
+ this.flowLayoutPanel6.SuspendLayout();
+ this.flowLayoutPanel7.SuspendLayout();
+ this.flowLayoutPanel8.SuspendLayout();
+ this.flowLayoutPanel9.SuspendLayout();
+ this.flowLayoutPanel10.SuspendLayout();
+ this.flowLayoutPanel11.SuspendLayout();
+ this.flowLayoutPanel12.SuspendLayout();
+ this.flowLayoutPanel13.SuspendLayout();
+ this.tableLayoutPanel3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 3, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 84F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(800, 450);
+ this.tableLayoutPanel1.TabIndex = 0;
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.ColumnCount = 2;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel1, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel3, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel4, 0, 1);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel5, 0, 2);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel6, 0, 3);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel7, 0, 4);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel8, 0, 5);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel9, 1, 1);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel10, 1, 2);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel11, 1, 3);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel12, 1, 4);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel13, 1, 5);
+ this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 6;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 47.40741F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 52.59259F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 71F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 63F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 55F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(794, 372);
+ this.tableLayoutPanel2.TabIndex = 0;
+ //
+ // flowLayoutPanel1
+ //
+ this.flowLayoutPanel1.Controls.Add(this.lbNombre);
+ this.flowLayoutPanel1.Controls.Add(this.txtNombre);
+ this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3);
+ this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(391, 52);
+ this.flowLayoutPanel1.TabIndex = 0;
+ //
+ // lbNombre
+ //
+ this.lbNombre.AutoSize = true;
+ this.lbNombre.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbNombre.Location = new System.Drawing.Point(3, 0);
+ this.lbNombre.Name = "lbNombre";
+ this.lbNombre.Size = new System.Drawing.Size(69, 20);
+ this.lbNombre.TabIndex = 0;
+ this.lbNombre.Text = "Nombre:";
+ //
+ // 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(3, 23);
+ this.txtNombre.Name = "txtNombre";
+ this.txtNombre.Size = new System.Drawing.Size(388, 26);
+ this.txtNombre.TabIndex = 1;
+ //
+ // flowLayoutPanel3
+ //
+ this.flowLayoutPanel3.Controls.Add(this.lbApellidos);
+ this.flowLayoutPanel3.Controls.Add(this.txtApellido);
+ this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel3.Location = new System.Drawing.Point(400, 3);
+ this.flowLayoutPanel3.Name = "flowLayoutPanel3";
+ this.flowLayoutPanel3.Size = new System.Drawing.Size(391, 52);
+ this.flowLayoutPanel3.TabIndex = 1;
+ //
+ // flowLayoutPanel4
+ //
+ this.flowLayoutPanel4.Controls.Add(this.lbCalle);
+ this.flowLayoutPanel4.Controls.Add(this.txtCalle);
+ this.flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel4.Location = new System.Drawing.Point(3, 61);
+ this.flowLayoutPanel4.Name = "flowLayoutPanel4";
+ this.flowLayoutPanel4.Size = new System.Drawing.Size(391, 58);
+ this.flowLayoutPanel4.TabIndex = 2;
+ //
+ // flowLayoutPanel5
+ //
+ this.flowLayoutPanel5.Controls.Add(this.lbCp);
+ this.flowLayoutPanel5.Controls.Add(this.txtCp);
+ this.flowLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel5.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel5.Location = new System.Drawing.Point(3, 125);
+ this.flowLayoutPanel5.Name = "flowLayoutPanel5";
+ this.flowLayoutPanel5.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel5.TabIndex = 3;
+ //
+ // flowLayoutPanel6
+ //
+ this.flowLayoutPanel6.Controls.Add(this.label3);
+ this.flowLayoutPanel6.Controls.Add(this.txtNoInt);
+ this.flowLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel6.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel6.Location = new System.Drawing.Point(3, 196);
+ this.flowLayoutPanel6.Name = "flowLayoutPanel6";
+ this.flowLayoutPanel6.Size = new System.Drawing.Size(391, 57);
+ this.flowLayoutPanel6.TabIndex = 4;
+ //
+ // flowLayoutPanel7
+ //
+ this.flowLayoutPanel7.Controls.Add(this.label5);
+ this.flowLayoutPanel7.Controls.Add(this.dtFechaNac);
+ this.flowLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel7.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel7.Location = new System.Drawing.Point(3, 259);
+ this.flowLayoutPanel7.Name = "flowLayoutPanel7";
+ this.flowLayoutPanel7.Size = new System.Drawing.Size(391, 54);
+ this.flowLayoutPanel7.TabIndex = 5;
+ //
+ // flowLayoutPanel8
+ //
+ this.flowLayoutPanel8.Controls.Add(this.label7);
+ this.flowLayoutPanel8.Controls.Add(this.txtTelefono);
+ this.flowLayoutPanel8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel8.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel8.Location = new System.Drawing.Point(3, 319);
+ this.flowLayoutPanel8.Name = "flowLayoutPanel8";
+ this.flowLayoutPanel8.Size = new System.Drawing.Size(391, 50);
+ this.flowLayoutPanel8.TabIndex = 6;
+ //
+ // flowLayoutPanel9
+ //
+ this.flowLayoutPanel9.Controls.Add(this.lbColonia);
+ this.flowLayoutPanel9.Controls.Add(this.txtColonia);
+ this.flowLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel9.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel9.Location = new System.Drawing.Point(400, 61);
+ this.flowLayoutPanel9.Name = "flowLayoutPanel9";
+ this.flowLayoutPanel9.Size = new System.Drawing.Size(391, 58);
+ this.flowLayoutPanel9.TabIndex = 7;
+ //
+ // flowLayoutPanel10
+ //
+ this.flowLayoutPanel10.Controls.Add(this.label2);
+ this.flowLayoutPanel10.Controls.Add(this.txtNoExt);
+ this.flowLayoutPanel10.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel10.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel10.Location = new System.Drawing.Point(400, 125);
+ this.flowLayoutPanel10.Name = "flowLayoutPanel10";
+ this.flowLayoutPanel10.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel10.TabIndex = 8;
+ //
+ // flowLayoutPanel11
+ //
+ this.flowLayoutPanel11.Controls.Add(this.label4);
+ this.flowLayoutPanel11.Controls.Add(this.txtReferencia);
+ this.flowLayoutPanel11.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel11.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel11.Location = new System.Drawing.Point(400, 196);
+ this.flowLayoutPanel11.Name = "flowLayoutPanel11";
+ this.flowLayoutPanel11.Size = new System.Drawing.Size(391, 57);
+ this.flowLayoutPanel11.TabIndex = 9;
+ //
+ // flowLayoutPanel12
+ //
+ this.flowLayoutPanel12.Controls.Add(this.label6);
+ this.flowLayoutPanel12.Controls.Add(this.dtFechaCon);
+ this.flowLayoutPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel12.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel12.Location = new System.Drawing.Point(400, 259);
+ this.flowLayoutPanel12.Name = "flowLayoutPanel12";
+ this.flowLayoutPanel12.Size = new System.Drawing.Size(391, 54);
+ this.flowLayoutPanel12.TabIndex = 10;
+ //
+ // flowLayoutPanel13
+ //
+ this.flowLayoutPanel13.Controls.Add(this.label8);
+ this.flowLayoutPanel13.Controls.Add(this.cbEstado);
+ this.flowLayoutPanel13.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel13.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel13.Location = new System.Drawing.Point(400, 319);
+ this.flowLayoutPanel13.Name = "flowLayoutPanel13";
+ this.flowLayoutPanel13.Size = new System.Drawing.Size(391, 50);
+ this.flowLayoutPanel13.TabIndex = 11;
+ //
+ // lbApellidos
+ //
+ this.lbApellidos.AutoSize = true;
+ this.lbApellidos.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbApellidos.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbApellidos.Location = new System.Drawing.Point(3, 0);
+ this.lbApellidos.Name = "lbApellidos";
+ this.lbApellidos.Size = new System.Drawing.Size(388, 20);
+ this.lbApellidos.TabIndex = 0;
+ this.lbApellidos.Text = "Apellidos:";
+ this.lbApellidos.Click += new System.EventHandler(this.label1_Click);
+ //
+ // txtApellido
+ //
+ this.txtApellido.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtApellido.Location = new System.Drawing.Point(3, 23);
+ this.txtApellido.Name = "txtApellido";
+ this.txtApellido.Size = new System.Drawing.Size(388, 26);
+ this.txtApellido.TabIndex = 1;
+ //
+ // lbCalle
+ //
+ this.lbCalle.AutoSize = true;
+ this.lbCalle.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbCalle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbCalle.Location = new System.Drawing.Point(3, 0);
+ this.lbCalle.Name = "lbCalle";
+ this.lbCalle.Size = new System.Drawing.Size(388, 20);
+ this.lbCalle.TabIndex = 0;
+ this.lbCalle.Text = "Calle:";
+ //
+ // txtCalle
+ //
+ this.txtCalle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCalle.Location = new System.Drawing.Point(3, 23);
+ this.txtCalle.Name = "txtCalle";
+ this.txtCalle.Size = new System.Drawing.Size(388, 26);
+ this.txtCalle.TabIndex = 1;
+ //
+ // lbColonia
+ //
+ this.lbColonia.AutoSize = true;
+ this.lbColonia.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbColonia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbColonia.Location = new System.Drawing.Point(3, 0);
+ this.lbColonia.Name = "lbColonia";
+ this.lbColonia.Size = new System.Drawing.Size(388, 20);
+ this.lbColonia.TabIndex = 0;
+ this.lbColonia.Text = "Colonia:";
+ //
+ // txtColonia
+ //
+ this.txtColonia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtColonia.Location = new System.Drawing.Point(3, 23);
+ this.txtColonia.Name = "txtColonia";
+ this.txtColonia.Size = new System.Drawing.Size(388, 26);
+ this.txtColonia.TabIndex = 1;
+ //
+ // tableLayoutPanel3
+ //
+ this.tableLayoutPanel3.ColumnCount = 3;
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 84.94152F));
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.05848F));
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 109F));
+ this.tableLayoutPanel3.Controls.Add(this.btnAgregar, 1, 0);
+ this.tableLayoutPanel3.Controls.Add(this.btnCancelar, 2, 0);
+ this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 381);
+ this.tableLayoutPanel3.Name = "tableLayoutPanel3";
+ this.tableLayoutPanel3.RowCount = 1;
+ this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel3.Size = new System.Drawing.Size(794, 66);
+ this.tableLayoutPanel3.TabIndex = 1;
+ //
+ // btnAgregar
+ //
+ this.btnAgregar.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.btnAgregar.Location = new System.Drawing.Point(584, 3);
+ this.btnAgregar.Name = "btnAgregar";
+ this.btnAgregar.Size = new System.Drawing.Size(97, 60);
+ this.btnAgregar.TabIndex = 0;
+ this.btnAgregar.Text = "Agregar";
+ this.btnAgregar.UseVisualStyleBackColor = true;
+ this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click);
+ //
+ // btnCancelar
+ //
+ this.btnCancelar.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.btnCancelar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.btnCancelar.Location = new System.Drawing.Point(687, 3);
+ this.btnCancelar.Name = "btnCancelar";
+ this.btnCancelar.Size = new System.Drawing.Size(104, 60);
+ this.btnCancelar.TabIndex = 1;
+ this.btnCancelar.Text = "Cancelar";
+ this.btnCancelar.UseVisualStyleBackColor = true;
+ //
+ // lbCp
+ //
+ this.lbCp.AutoSize = true;
+ this.lbCp.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbCp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbCp.Location = new System.Drawing.Point(3, 0);
+ this.lbCp.Name = "lbCp";
+ this.lbCp.Size = new System.Drawing.Size(388, 20);
+ this.lbCp.TabIndex = 0;
+ this.lbCp.Text = "Codigo postal:";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.Location = new System.Drawing.Point(3, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(388, 20);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "Numero Exterior:";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.Location = new System.Drawing.Point(3, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(388, 20);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "Numero Interior:";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label4.Location = new System.Drawing.Point(3, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(388, 20);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "Referencia:";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label5.Location = new System.Drawing.Point(3, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(388, 20);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "Fecha de nacimiento:";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label6.Location = new System.Drawing.Point(3, 0);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(388, 20);
+ this.label6.TabIndex = 0;
+ this.label6.Text = "Fecha de contratacion:";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label7.Location = new System.Drawing.Point(3, 0);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(388, 20);
+ this.label7.TabIndex = 0;
+ this.label7.Text = "Telefono:";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label8.Location = new System.Drawing.Point(3, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(388, 18);
+ this.label8.TabIndex = 0;
+ this.label8.Text = "Estado:";
+ //
+ // txtCp
+ //
+ this.txtCp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCp.Location = new System.Drawing.Point(3, 23);
+ this.txtCp.Name = "txtCp";
+ this.txtCp.Size = new System.Drawing.Size(388, 26);
+ this.txtCp.TabIndex = 1;
+ //
+ // txtNoExt
+ //
+ this.txtNoExt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtNoExt.Location = new System.Drawing.Point(3, 23);
+ this.txtNoExt.Name = "txtNoExt";
+ this.txtNoExt.Size = new System.Drawing.Size(388, 26);
+ this.txtNoExt.TabIndex = 1;
+ //
+ // txtNoInt
+ //
+ this.txtNoInt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtNoInt.Location = new System.Drawing.Point(3, 23);
+ this.txtNoInt.Name = "txtNoInt";
+ this.txtNoInt.Size = new System.Drawing.Size(388, 26);
+ this.txtNoInt.TabIndex = 1;
+ //
+ // txtReferencia
+ //
+ this.txtReferencia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtReferencia.Location = new System.Drawing.Point(3, 23);
+ this.txtReferencia.Name = "txtReferencia";
+ this.txtReferencia.Size = new System.Drawing.Size(388, 26);
+ this.txtReferencia.TabIndex = 1;
+ //
+ // txtTelefono
+ //
+ this.txtTelefono.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtTelefono.Location = new System.Drawing.Point(3, 23);
+ this.txtTelefono.Name = "txtTelefono";
+ this.txtTelefono.Size = new System.Drawing.Size(388, 24);
+ this.txtTelefono.TabIndex = 1;
+ //
+ // dtFechaCon
+ //
+ this.dtFechaCon.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaCon.Location = new System.Drawing.Point(3, 23);
+ this.dtFechaCon.Name = "dtFechaCon";
+ this.dtFechaCon.Size = new System.Drawing.Size(388, 26);
+ this.dtFechaCon.TabIndex = 1;
+ //
+ // dtFechaNac
+ //
+ this.dtFechaNac.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaNac.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaNac.Location = new System.Drawing.Point(3, 23);
+ this.dtFechaNac.Name = "dtFechaNac";
+ this.dtFechaNac.Size = new System.Drawing.Size(388, 26);
+ this.dtFechaNac.TabIndex = 1;
+ //
+ // cbEstado
+ //
+ this.cbEstado.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cbEstado.FormattingEnabled = true;
+ this.cbEstado.Items.AddRange(new object[] {
+ "Activo",
+ "Inactivo"});
+ this.cbEstado.Location = new System.Drawing.Point(3, 21);
+ this.cbEstado.Name = "cbEstado";
+ this.cbEstado.Size = new System.Drawing.Size(388, 26);
+ this.cbEstado.TabIndex = 1;
+ this.cbEstado.Text = "Activo";
+ //
+ // AgregarEmpleado
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Name = "AgregarEmpleado";
+ this.Text = "Agregar Empleado";
+ this.Load += new System.EventHandler(this.AgregarEmpleado_Load);
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.flowLayoutPanel1.ResumeLayout(false);
+ this.flowLayoutPanel1.PerformLayout();
+ this.flowLayoutPanel3.ResumeLayout(false);
+ this.flowLayoutPanel3.PerformLayout();
+ this.flowLayoutPanel4.ResumeLayout(false);
+ this.flowLayoutPanel4.PerformLayout();
+ this.flowLayoutPanel5.ResumeLayout(false);
+ this.flowLayoutPanel5.PerformLayout();
+ this.flowLayoutPanel6.ResumeLayout(false);
+ this.flowLayoutPanel6.PerformLayout();
+ this.flowLayoutPanel7.ResumeLayout(false);
+ this.flowLayoutPanel7.PerformLayout();
+ this.flowLayoutPanel8.ResumeLayout(false);
+ this.flowLayoutPanel8.PerformLayout();
+ this.flowLayoutPanel9.ResumeLayout(false);
+ this.flowLayoutPanel9.PerformLayout();
+ this.flowLayoutPanel10.ResumeLayout(false);
+ this.flowLayoutPanel10.PerformLayout();
+ this.flowLayoutPanel11.ResumeLayout(false);
+ this.flowLayoutPanel11.PerformLayout();
+ this.flowLayoutPanel12.ResumeLayout(false);
+ this.flowLayoutPanel12.PerformLayout();
+ this.flowLayoutPanel13.ResumeLayout(false);
+ this.flowLayoutPanel13.PerformLayout();
+ this.tableLayoutPanel3.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
+ private System.Windows.Forms.Label lbNombre;
+ private System.Windows.Forms.TextBox txtNombre;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
+ private System.Windows.Forms.Label lbApellidos;
+ private System.Windows.Forms.TextBox txtApellido;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel5;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel6;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel7;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel8;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel9;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel10;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel11;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel12;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel13;
+ private System.Windows.Forms.Label lbCalle;
+ private System.Windows.Forms.TextBox txtCalle;
+ private System.Windows.Forms.Label lbColonia;
+ private System.Windows.Forms.TextBox txtColonia;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
+ private System.Windows.Forms.Button btnAgregar;
+ private System.Windows.Forms.Button btnCancelar;
+ private System.Windows.Forms.Label lbCp;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.TextBox txtCp;
+ private System.Windows.Forms.TextBox txtNoInt;
+ private System.Windows.Forms.DateTimePicker dtFechaNac;
+ private System.Windows.Forms.TextBox txtTelefono;
+ private System.Windows.Forms.TextBox txtNoExt;
+ private System.Windows.Forms.TextBox txtReferencia;
+ private System.Windows.Forms.DateTimePicker dtFechaCon;
+ private System.Windows.Forms.ComboBox cbEstado;
+ }
+}
\ No newline at end of file
diff --git a/AgregarEmpleado.cs b/AgregarEmpleado.cs
new file mode 100644
index 0000000..32c9f06
--- /dev/null
+++ b/AgregarEmpleado.cs
@@ -0,0 +1,64 @@
+using compabetov2.database;
+using compabetov2.database.modelos;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace compabetov2
+{
+ public partial class AgregarEmpleado : Form
+ {
+ private personal ventanaPersonal;
+ public AgregarEmpleado(personal ventanaPersonal)
+ {
+ InitializeComponent();
+ this.ventanaPersonal = ventanaPersonal;
+ }
+
+ private void label1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void flowLayoutPanel2_Paint(object sender, PaintEventArgs e)
+ {
+
+ }
+
+ private void btnAgregar_Click(object sender, EventArgs e)
+ {
+ string nombre = txtNombre.Text;
+ string apellidos = txtApellido.Text;
+ string calle = txtCalle.Text;
+ string fechaCon = dtFechaCon.Text;
+ string estado = cbEstado.Text;
+ string colonia = txtColonia.Text;
+ string cp = txtCp.Text;
+ string noExt = txtNoExt.Text;
+ string noInt = txtNoInt.Text;
+ string referencia = txtReferencia.Text;
+ string fechaNac = dtFechaNac.Text;
+ string telefono = txtTelefono.Text;
+
+ Empleado empleado = new Empleado(-1, nombre,apellidos,calle,fechaCon,estado,colonia
+ ,cp,noExt,noInt,referencia,fechaNac,telefono);
+
+ if (service.insertarEmpleado(empleado))
+ {
+ ventanaPersonal.llenarPanel();
+ MessageBox.Show($"Empleado {nombre} agreado", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+
+ private void AgregarEmpleado_Load(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/AgregarEmpleado.resx b/AgregarEmpleado.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/AgregarEmpleado.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/EditarEmpleado.Designer.cs b/EditarEmpleado.Designer.cs
new file mode 100644
index 0000000..29a29f5
--- /dev/null
+++ b/EditarEmpleado.Designer.cs
@@ -0,0 +1,630 @@
+using compabetov2.database.modelos;
+using System.Security.Policy;
+
+namespace compabetov2
+{
+ partial class EditarEmpleado
+ {
+ ///
+ /// 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()
+ {
+ this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+ this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
+ this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbNombre = new System.Windows.Forms.Label();
+ this.txtNombre = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbApellidos = new System.Windows.Forms.Label();
+ this.txtApellido = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbCalle = new System.Windows.Forms.Label();
+ this.txtCalle = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbCp = new System.Windows.Forms.Label();
+ this.txtCp = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label3 = new System.Windows.Forms.Label();
+ this.txtNoInt = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel7 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.dtFechaNac = new System.Windows.Forms.DateTimePicker();
+ this.flowLayoutPanel8 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label7 = new System.Windows.Forms.Label();
+ this.txtTelefono = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel9 = new System.Windows.Forms.FlowLayoutPanel();
+ this.lbColonia = new System.Windows.Forms.Label();
+ this.txtColonia = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel10 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtNoExt = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel11 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.txtReferencia = new System.Windows.Forms.TextBox();
+ this.flowLayoutPanel12 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.dtFechaCon = new System.Windows.Forms.DateTimePicker();
+ this.flowLayoutPanel13 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label8 = new System.Windows.Forms.Label();
+ this.cbEstado = new System.Windows.Forms.ComboBox();
+ this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
+ this.button1 = new System.Windows.Forms.Button();
+ this.btnCancelar = new System.Windows.Forms.Button();
+ this.tableLayoutPanel1.SuspendLayout();
+ this.tableLayoutPanel2.SuspendLayout();
+ this.flowLayoutPanel1.SuspendLayout();
+ this.flowLayoutPanel3.SuspendLayout();
+ this.flowLayoutPanel4.SuspendLayout();
+ this.flowLayoutPanel5.SuspendLayout();
+ this.flowLayoutPanel6.SuspendLayout();
+ this.flowLayoutPanel7.SuspendLayout();
+ this.flowLayoutPanel8.SuspendLayout();
+ this.flowLayoutPanel9.SuspendLayout();
+ this.flowLayoutPanel10.SuspendLayout();
+ this.flowLayoutPanel11.SuspendLayout();
+ this.flowLayoutPanel12.SuspendLayout();
+ this.flowLayoutPanel13.SuspendLayout();
+ this.tableLayoutPanel3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // tableLayoutPanel1
+ //
+ this.tableLayoutPanel1.ColumnCount = 1;
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
+ this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 3, 1);
+ this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel1.Name = "tableLayoutPanel1";
+ this.tableLayoutPanel1.RowCount = 2;
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 85.11111F));
+ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.88889F));
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(800, 460);
+ this.tableLayoutPanel1.TabIndex = 0;
+ this.tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint);
+ //
+ // tableLayoutPanel2
+ //
+ this.tableLayoutPanel2.ColumnCount = 2;
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel1, 0, 0);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel3, 1, 0);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel4, 0, 1);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel5, 0, 2);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel6, 0, 3);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel7, 0, 4);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel8, 0, 5);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel9, 1, 1);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel10, 1, 2);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel11, 1, 3);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel12, 1, 4);
+ this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel13, 1, 5);
+ this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
+ this.tableLayoutPanel2.Name = "tableLayoutPanel2";
+ this.tableLayoutPanel2.RowCount = 6;
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 47.40741F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 52.59259F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 71F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 63F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F));
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 55F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(794, 385);
+ this.tableLayoutPanel2.TabIndex = 1;
+ //
+ // flowLayoutPanel1
+ //
+ this.flowLayoutPanel1.Controls.Add(this.lbNombre);
+ this.flowLayoutPanel1.Controls.Add(this.txtNombre);
+ this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3);
+ this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(391, 58);
+ this.flowLayoutPanel1.TabIndex = 0;
+ //
+ // lbNombre
+ //
+ this.lbNombre.AutoSize = true;
+ this.lbNombre.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbNombre.Location = new System.Drawing.Point(3, 0);
+ this.lbNombre.Name = "lbNombre";
+ this.lbNombre.Size = new System.Drawing.Size(69, 20);
+ this.lbNombre.TabIndex = 0;
+ this.lbNombre.Text = "Nombre:";
+ //
+ // 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(3, 23);
+ this.txtNombre.Name = "txtNombre";
+ this.txtNombre.Size = new System.Drawing.Size(388, 26);
+ this.txtNombre.TabIndex = 1;
+ //
+ // flowLayoutPanel3
+ //
+ this.flowLayoutPanel3.Controls.Add(this.lbApellidos);
+ this.flowLayoutPanel3.Controls.Add(this.txtApellido);
+ this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel3.Location = new System.Drawing.Point(400, 3);
+ this.flowLayoutPanel3.Name = "flowLayoutPanel3";
+ this.flowLayoutPanel3.Size = new System.Drawing.Size(391, 58);
+ this.flowLayoutPanel3.TabIndex = 1;
+ //
+ // lbApellidos
+ //
+ this.lbApellidos.AutoSize = true;
+ this.lbApellidos.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbApellidos.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbApellidos.Location = new System.Drawing.Point(3, 0);
+ this.lbApellidos.Name = "lbApellidos";
+ this.lbApellidos.Size = new System.Drawing.Size(388, 20);
+ this.lbApellidos.TabIndex = 0;
+ this.lbApellidos.Text = "Apellidos:";
+ //
+ // txtApellido
+ //
+ this.txtApellido.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtApellido.Location = new System.Drawing.Point(3, 23);
+ this.txtApellido.Name = "txtApellido";
+ this.txtApellido.Size = new System.Drawing.Size(388, 26);
+ this.txtApellido.TabIndex = 1;
+ //
+ // flowLayoutPanel4
+ //
+ this.flowLayoutPanel4.Controls.Add(this.lbCalle);
+ this.flowLayoutPanel4.Controls.Add(this.txtCalle);
+ this.flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel4.Location = new System.Drawing.Point(3, 67);
+ this.flowLayoutPanel4.Name = "flowLayoutPanel4";
+ this.flowLayoutPanel4.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel4.TabIndex = 2;
+ //
+ // lbCalle
+ //
+ this.lbCalle.AutoSize = true;
+ this.lbCalle.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbCalle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbCalle.Location = new System.Drawing.Point(3, 0);
+ this.lbCalle.Name = "lbCalle";
+ this.lbCalle.Size = new System.Drawing.Size(388, 20);
+ this.lbCalle.TabIndex = 0;
+ this.lbCalle.Text = "Calle:";
+ //
+ // txtCalle
+ //
+ this.txtCalle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCalle.Location = new System.Drawing.Point(3, 23);
+ this.txtCalle.Name = "txtCalle";
+ this.txtCalle.Size = new System.Drawing.Size(388, 26);
+ this.txtCalle.TabIndex = 1;
+ //
+ // flowLayoutPanel5
+ //
+ this.flowLayoutPanel5.Controls.Add(this.lbCp);
+ this.flowLayoutPanel5.Controls.Add(this.txtCp);
+ this.flowLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel5.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel5.Location = new System.Drawing.Point(3, 138);
+ this.flowLayoutPanel5.Name = "flowLayoutPanel5";
+ this.flowLayoutPanel5.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel5.TabIndex = 3;
+ //
+ // lbCp
+ //
+ this.lbCp.AutoSize = true;
+ this.lbCp.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbCp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbCp.Location = new System.Drawing.Point(3, 0);
+ this.lbCp.Name = "lbCp";
+ this.lbCp.Size = new System.Drawing.Size(388, 20);
+ this.lbCp.TabIndex = 0;
+ this.lbCp.Text = "Codigo postal:";
+ //
+ // txtCp
+ //
+ this.txtCp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCp.Location = new System.Drawing.Point(3, 23);
+ this.txtCp.Name = "txtCp";
+ this.txtCp.Size = new System.Drawing.Size(388, 26);
+ this.txtCp.TabIndex = 1;
+ //
+ // flowLayoutPanel6
+ //
+ this.flowLayoutPanel6.Controls.Add(this.label3);
+ this.flowLayoutPanel6.Controls.Add(this.txtNoInt);
+ this.flowLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel6.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel6.Location = new System.Drawing.Point(3, 209);
+ this.flowLayoutPanel6.Name = "flowLayoutPanel6";
+ this.flowLayoutPanel6.Size = new System.Drawing.Size(391, 57);
+ this.flowLayoutPanel6.TabIndex = 4;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.Location = new System.Drawing.Point(3, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(388, 20);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "Numero Interior:";
+ //
+ // txtNoInt
+ //
+ this.txtNoInt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtNoInt.Location = new System.Drawing.Point(3, 23);
+ this.txtNoInt.Name = "txtNoInt";
+ this.txtNoInt.Size = new System.Drawing.Size(388, 26);
+ this.txtNoInt.TabIndex = 1;
+ //
+ // flowLayoutPanel7
+ //
+ this.flowLayoutPanel7.Controls.Add(this.label5);
+ this.flowLayoutPanel7.Controls.Add(this.dtFechaNac);
+ this.flowLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel7.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel7.Location = new System.Drawing.Point(3, 272);
+ this.flowLayoutPanel7.Name = "flowLayoutPanel7";
+ this.flowLayoutPanel7.Size = new System.Drawing.Size(391, 54);
+ this.flowLayoutPanel7.TabIndex = 5;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label5.Location = new System.Drawing.Point(3, 0);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(388, 20);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "Fecha de nacimiento:";
+ //
+ // dtFechaNac
+ //
+ this.dtFechaNac.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaNac.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaNac.Location = new System.Drawing.Point(3, 23);
+ this.dtFechaNac.Name = "dtFechaNac";
+ this.dtFechaNac.Size = new System.Drawing.Size(388, 26);
+ this.dtFechaNac.TabIndex = 1;
+ //
+ // flowLayoutPanel8
+ //
+ this.flowLayoutPanel8.Controls.Add(this.label7);
+ this.flowLayoutPanel8.Controls.Add(this.txtTelefono);
+ this.flowLayoutPanel8.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel8.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel8.Location = new System.Drawing.Point(3, 332);
+ this.flowLayoutPanel8.Name = "flowLayoutPanel8";
+ this.flowLayoutPanel8.Size = new System.Drawing.Size(391, 50);
+ this.flowLayoutPanel8.TabIndex = 6;
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label7.Location = new System.Drawing.Point(3, 0);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(388, 20);
+ this.label7.TabIndex = 0;
+ this.label7.Text = "Telefono:";
+ //
+ // txtTelefono
+ //
+ this.txtTelefono.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtTelefono.Location = new System.Drawing.Point(3, 23);
+ this.txtTelefono.Name = "txtTelefono";
+ this.txtTelefono.Size = new System.Drawing.Size(388, 24);
+ this.txtTelefono.TabIndex = 1;
+ //
+ // flowLayoutPanel9
+ //
+ this.flowLayoutPanel9.Controls.Add(this.lbColonia);
+ this.flowLayoutPanel9.Controls.Add(this.txtColonia);
+ this.flowLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel9.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel9.Location = new System.Drawing.Point(400, 67);
+ this.flowLayoutPanel9.Name = "flowLayoutPanel9";
+ this.flowLayoutPanel9.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel9.TabIndex = 7;
+ //
+ // lbColonia
+ //
+ this.lbColonia.AutoSize = true;
+ this.lbColonia.Dock = System.Windows.Forms.DockStyle.Top;
+ this.lbColonia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lbColonia.Location = new System.Drawing.Point(3, 0);
+ this.lbColonia.Name = "lbColonia";
+ this.lbColonia.Size = new System.Drawing.Size(388, 20);
+ this.lbColonia.TabIndex = 0;
+ this.lbColonia.Text = "Colonia:";
+ //
+ // txtColonia
+ //
+ this.txtColonia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtColonia.Location = new System.Drawing.Point(3, 23);
+ this.txtColonia.Name = "txtColonia";
+ this.txtColonia.Size = new System.Drawing.Size(388, 26);
+ this.txtColonia.TabIndex = 1;
+ //
+ // flowLayoutPanel10
+ //
+ this.flowLayoutPanel10.Controls.Add(this.label2);
+ this.flowLayoutPanel10.Controls.Add(this.txtNoExt);
+ this.flowLayoutPanel10.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel10.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel10.Location = new System.Drawing.Point(400, 138);
+ this.flowLayoutPanel10.Name = "flowLayoutPanel10";
+ this.flowLayoutPanel10.Size = new System.Drawing.Size(391, 65);
+ this.flowLayoutPanel10.TabIndex = 8;
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.Location = new System.Drawing.Point(3, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(388, 20);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "Numero Exterior:";
+ //
+ // txtNoExt
+ //
+ this.txtNoExt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtNoExt.Location = new System.Drawing.Point(3, 23);
+ this.txtNoExt.Name = "txtNoExt";
+ this.txtNoExt.Size = new System.Drawing.Size(388, 26);
+ this.txtNoExt.TabIndex = 1;
+ //
+ // flowLayoutPanel11
+ //
+ this.flowLayoutPanel11.Controls.Add(this.label4);
+ this.flowLayoutPanel11.Controls.Add(this.txtReferencia);
+ this.flowLayoutPanel11.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel11.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel11.Location = new System.Drawing.Point(400, 209);
+ this.flowLayoutPanel11.Name = "flowLayoutPanel11";
+ this.flowLayoutPanel11.Size = new System.Drawing.Size(391, 57);
+ this.flowLayoutPanel11.TabIndex = 9;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label4.Location = new System.Drawing.Point(3, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(388, 20);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "Referencia:";
+ //
+ // txtReferencia
+ //
+ this.txtReferencia.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtReferencia.Location = new System.Drawing.Point(3, 23);
+ this.txtReferencia.Name = "txtReferencia";
+ this.txtReferencia.Size = new System.Drawing.Size(388, 26);
+ this.txtReferencia.TabIndex = 1;
+ //
+ // flowLayoutPanel12
+ //
+ this.flowLayoutPanel12.Controls.Add(this.label6);
+ this.flowLayoutPanel12.Controls.Add(this.dtFechaCon);
+ this.flowLayoutPanel12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel12.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel12.Location = new System.Drawing.Point(400, 272);
+ this.flowLayoutPanel12.Name = "flowLayoutPanel12";
+ this.flowLayoutPanel12.Size = new System.Drawing.Size(391, 54);
+ this.flowLayoutPanel12.TabIndex = 10;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label6.Location = new System.Drawing.Point(3, 0);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(388, 20);
+ this.label6.TabIndex = 0;
+ this.label6.Text = "Fecha de contratacion:";
+ //
+ // dtFechaCon
+ //
+ this.dtFechaCon.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.dtFechaCon.Location = new System.Drawing.Point(3, 23);
+ this.dtFechaCon.Name = "dtFechaCon";
+ this.dtFechaCon.Size = new System.Drawing.Size(388, 26);
+ this.dtFechaCon.TabIndex = 1;
+ //
+ // flowLayoutPanel13
+ //
+ this.flowLayoutPanel13.Controls.Add(this.label8);
+ this.flowLayoutPanel13.Controls.Add(this.cbEstado);
+ this.flowLayoutPanel13.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.flowLayoutPanel13.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel13.Location = new System.Drawing.Point(400, 332);
+ this.flowLayoutPanel13.Name = "flowLayoutPanel13";
+ this.flowLayoutPanel13.Size = new System.Drawing.Size(391, 50);
+ this.flowLayoutPanel13.TabIndex = 11;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label8.Location = new System.Drawing.Point(3, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(388, 18);
+ this.label8.TabIndex = 0;
+ this.label8.Text = "Estado:";
+ //
+ // cbEstado
+ //
+ this.cbEstado.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cbEstado.FormattingEnabled = true;
+ this.cbEstado.Items.AddRange(new object[] {
+ "Activo",
+ "Inactivo"});
+ this.cbEstado.Location = new System.Drawing.Point(3, 21);
+ this.cbEstado.Name = "cbEstado";
+ this.cbEstado.Size = new System.Drawing.Size(388, 26);
+ this.cbEstado.TabIndex = 1;
+ this.cbEstado.Text = "Activo";
+ //
+ // tableLayoutPanel3
+ //
+ this.tableLayoutPanel3.ColumnCount = 3;
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 83.87574F));
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.12426F));
+ this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F));
+ this.tableLayoutPanel3.Controls.Add(this.button1, 1, 0);
+ this.tableLayoutPanel3.Controls.Add(this.btnCancelar, 2, 0);
+ this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 394);
+ this.tableLayoutPanel3.Name = "tableLayoutPanel3";
+ this.tableLayoutPanel3.RowCount = 1;
+ this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel3.Size = new System.Drawing.Size(794, 63);
+ this.tableLayoutPanel3.TabIndex = 2;
+ //
+ // button1
+ //
+ this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button1.Location = new System.Drawing.Point(576, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(104, 57);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "Editar";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // btnCancelar
+ //
+ this.btnCancelar.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.btnCancelar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.btnCancelar.Location = new System.Drawing.Point(686, 3);
+ this.btnCancelar.Name = "btnCancelar";
+ this.btnCancelar.Size = new System.Drawing.Size(105, 57);
+ this.btnCancelar.TabIndex = 1;
+ this.btnCancelar.Text = "Cancelar";
+ this.btnCancelar.UseVisualStyleBackColor = true;
+ //
+ // EditarEmpleado
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 460);
+ this.Controls.Add(this.tableLayoutPanel1);
+ this.Name = "EditarEmpleado";
+ this.Text = "Editar empleado";
+ this.tableLayoutPanel1.ResumeLayout(false);
+ this.tableLayoutPanel2.ResumeLayout(false);
+ this.flowLayoutPanel1.ResumeLayout(false);
+ this.flowLayoutPanel1.PerformLayout();
+ this.flowLayoutPanel3.ResumeLayout(false);
+ this.flowLayoutPanel3.PerformLayout();
+ this.flowLayoutPanel4.ResumeLayout(false);
+ this.flowLayoutPanel4.PerformLayout();
+ this.flowLayoutPanel5.ResumeLayout(false);
+ this.flowLayoutPanel5.PerformLayout();
+ this.flowLayoutPanel6.ResumeLayout(false);
+ this.flowLayoutPanel6.PerformLayout();
+ this.flowLayoutPanel7.ResumeLayout(false);
+ this.flowLayoutPanel7.PerformLayout();
+ this.flowLayoutPanel8.ResumeLayout(false);
+ this.flowLayoutPanel8.PerformLayout();
+ this.flowLayoutPanel9.ResumeLayout(false);
+ this.flowLayoutPanel9.PerformLayout();
+ this.flowLayoutPanel10.ResumeLayout(false);
+ this.flowLayoutPanel10.PerformLayout();
+ this.flowLayoutPanel11.ResumeLayout(false);
+ this.flowLayoutPanel11.PerformLayout();
+ this.flowLayoutPanel12.ResumeLayout(false);
+ this.flowLayoutPanel12.PerformLayout();
+ this.flowLayoutPanel13.ResumeLayout(false);
+ this.flowLayoutPanel13.PerformLayout();
+ this.tableLayoutPanel3.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
+ private System.Windows.Forms.Label lbNombre;
+ private System.Windows.Forms.TextBox txtNombre;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
+ private System.Windows.Forms.Label lbApellidos;
+ private System.Windows.Forms.TextBox txtApellido;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4;
+ private System.Windows.Forms.Label lbCalle;
+ private System.Windows.Forms.TextBox txtCalle;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel5;
+ private System.Windows.Forms.Label lbCp;
+ private System.Windows.Forms.TextBox txtCp;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel6;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox txtNoInt;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel7;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.DateTimePicker dtFechaNac;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel8;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.TextBox txtTelefono;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel9;
+ private System.Windows.Forms.Label lbColonia;
+ private System.Windows.Forms.TextBox txtColonia;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel10;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.TextBox txtNoExt;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel11;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.TextBox txtReferencia;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel12;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.DateTimePicker dtFechaCon;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel13;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.ComboBox cbEstado;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button btnCancelar;
+ }
+}
\ No newline at end of file
diff --git a/EditarEmpleado.cs b/EditarEmpleado.cs
new file mode 100644
index 0000000..4c70530
--- /dev/null
+++ b/EditarEmpleado.cs
@@ -0,0 +1,52 @@
+using compabetov2.database.modelos;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace compabetov2
+{
+ public partial class EditarEmpleado : Form
+ {
+ private Empleado empleado;
+ personal ventanaPadre;
+ public EditarEmpleado(Empleado empleado, personal ventanaPadre)
+ {
+ InitializeComponent();
+ this.empleado = empleado;
+ this.ventanaPadre = ventanaPadre;
+ llenarCampos();
+ }
+
+ private void llenarCampos()
+ {
+ txtNombre.Text = empleado.nombre;
+ txtApellido.Text = empleado.apellidos;
+ txtCalle.Text = empleado.calle;
+ txtColonia.Text = empleado.colonia;
+ txtCp.Text = empleado.cp;
+ txtNoExt.Text = empleado.no_ext;
+ txtNoInt.Text = empleado.no_int;
+ txtReferencia.Text = empleado.referencia;
+ txtTelefono.Text = empleado.telefono;
+ dtFechaCon.Text = empleado.fecha_contratacion;
+ dtFechaNac.Text = empleado.fecha_nac;
+ cbEstado.Text = empleado.estado;
+ }
+
+ private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
+ {
+
+ }
+
+ void CargarDatos(Empleado empleado)
+ {
+ this.empleado = empleado;
+ }
+ }
+}
diff --git a/EditarEmpleado.resx b/EditarEmpleado.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/EditarEmpleado.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe
index d5cd94e..e11840d 100644
Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ
diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb
index 8bdb528..3962c73 100644
Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ
diff --git a/bin/Debug/data.db b/bin/Debug/data.db
index 8054df2..0fff7e6 100644
Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ
diff --git a/compabetov2.csproj b/compabetov2.csproj
index b787e4c..6a339ff 100644
--- a/compabetov2.csproj
+++ b/compabetov2.csproj
@@ -103,6 +103,12 @@
+
+ Form
+
+
+ AgregarEmpleado.cs
+
Form
@@ -117,6 +123,12 @@
+
+ Form
+
+
+ EditarEmpleado.cs
+
Form
@@ -161,9 +173,15 @@
vender.cs
+
+ AgregarEmpleado.cs
+
cuentas.cs
+
+ EditarEmpleado.cs
+
envios.cs
diff --git a/database/DAO.cs b/database/DAO.cs
index 68fddac..1941e6d 100644
--- a/database/DAO.cs
+++ b/database/DAO.cs
@@ -193,7 +193,7 @@ namespace compabetov2.database
{
conexion.Open();
- string sql = "DELETE FROM Empleado WHERE idproducto = @idempleado";
+ string sql = "DELETE FROM Empleado WHERE idempleado = @idempleado";
using (SQLiteCommand command = new SQLiteCommand(sql, conexion))
{
diff --git a/database/modelos/Empleado.cs b/database/modelos/Empleado.cs
index 03a1e58..5d8327d 100644
--- a/database/modelos/Empleado.cs
+++ b/database/modelos/Empleado.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace compabetov2.database.modelos
{
- internal class Empleado
+ public class Empleado
{
public int idempleado;
public string nombre;
diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache
index 05a8049..5d5a78c 100644
Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache
index 8f1bb2d..766796f 100644
--- a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache
+++ b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-424f6d4f8bcbc47e89c98d2fa689cb77dffd9f6b5116717e9e8dca5ece3777d7
+0de1c424268dd16d06d975ef2c499f33dbd19721fb5a2d42d29e7a4ca4bce0d1
diff --git a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
index 08b0e48..2966be8 100644
--- a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
+++ b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt
@@ -88,3 +88,5 @@ C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.application
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.csproj.CopyComplete
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.exe
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.pdb
+C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.AgregarEmpleado.resources
+C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.EditarEmpleado.resources
diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache
index 344312f..0bc11f6 100644
Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ
diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe
index d5cd94e..e11840d 100644
Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ
diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb
index 8bdb528..3962c73 100644
Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ
diff --git a/personal.Designer.cs b/personal.Designer.cs
index 7404df3..537706c 100644
--- a/personal.Designer.cs
+++ b/personal.Designer.cs
@@ -222,6 +222,7 @@
this.btnAgregar.TabIndex = 12;
this.btnAgregar.Text = "Agregar";
this.btnAgregar.UseVisualStyleBackColor = true;
+ this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click);
//
// personal
//
diff --git a/personal.cs b/personal.cs
index 59e4423..0e54a25 100644
--- a/personal.cs
+++ b/personal.cs
@@ -23,7 +23,7 @@ namespace compabetov2
llenarPanel();
}
- private void llenarPanel()
+ public void llenarPanel()
{
personalPanel.Controls.Clear();
empleados = service.conseguirEmpleados();
@@ -98,6 +98,11 @@ namespace compabetov2
btnEditar.BackColor = Color.FromArgb(33, 90, 255);
btnEditar.Font = new Font(btnVer.Font.FontFamily, 16);
btnEditar.ForeColor = Color.White;
+ btnEditar.Click += new EventHandler(delegate (object sender, EventArgs e)
+ {
+ EditarEmpleado editarEmpleado = new EditarEmpleado(empleado,this);
+ editarEmpleado.Show();
+ });
Button btnEliminar = new Button();
btnEliminar.Text = "Eliminar";
@@ -113,7 +118,8 @@ namespace compabetov2
"Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
- // Código para continuar aquí
+ service.eliminarEmpleado(empleado.idempleado);
+ llenarPanel();
}
});
@@ -177,5 +183,11 @@ namespace compabetov2
{
}
+
+ private void btnAgregar_Click(object sender, EventArgs e)
+ {
+ AgregarEmpleado agregarEmpleado = new AgregarEmpleado(this);
+ agregarEmpleado.Show();
+ }
}
}