habilitacion y deshabilitacion de botones en personal

This commit is contained in:
carlos
2024-01-07 17:51:59 -06:00
parent e26af85c23
commit 210203da3e
10 changed files with 211 additions and 187 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
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;
} }
} }
+37 -3
View File
@@ -17,8 +17,9 @@ namespace compabetov2
public personal() public personal()
{ {
InitializeComponent(); InitializeComponent();
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>