diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo index ba2fcff..c85cc84 100644 Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ diff --git a/.vs/compabetov2.csproj.dtbcache.json b/.vs/compabetov2.csproj.dtbcache.json index ead3680..8efc107 100644 --- a/.vs/compabetov2.csproj.dtbcache.json +++ b/.vs/compabetov2.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG","ProjectFileName":"compabetov2.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"cuentas.cs"},{"SourceFile":"cuentas.Designer.cs"},{"SourceFile":"database\\conexion.cs"},{"SourceFile":"database\\DAO.cs"},{"SourceFile":"database\\modelos\\Categoria.cs"},{"SourceFile":"database\\modelos\\Cliente.cs"},{"SourceFile":"database\\modelos\\Empleado.cs"},{"SourceFile":"database\\modelos\\Producto.cs"},{"SourceFile":"database\\modelos\\usuario.cs"},{"SourceFile":"database\\service.cs"},{"SourceFile":"envios.cs"},{"SourceFile":"envios.Designer.cs"},{"SourceFile":"inventario.cs"},{"SourceFile":"inventario.Designer.cs"},{"SourceFile":"login.cs"},{"SourceFile":"login.Designer.cs"},{"SourceFile":"MenuPrincipal.cs"},{"SourceFile":"MenuPrincipal.Designer.cs"},{"SourceFile":"mermas.cs"},{"SourceFile":"mermas.Designer.cs"},{"SourceFile":"personal.cs"},{"SourceFile":"personal.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"vender.cs"},{"SourceFile":"vender.Designer.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.SqlServer.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.DataAnnotations.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\\lib\\net46\\System.Data.SQLite.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.EF6.1.0.118.0\\lib\\net46\\System.Data.SQLite.EF6.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.Linq.1.0.118.0\\lib\\net46\\System.Data.SQLite.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.exe","OutputItemRelativePath":"compabetov2.exe"},{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.pdb","OutputItemRelativePath":"compabetov2.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG","ProjectFileName":"compabetov2.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"AgregarEmpleado.cs"},{"SourceFile":"AgregarEmpleado.Designer.cs"},{"SourceFile":"cuentas.cs"},{"SourceFile":"cuentas.Designer.cs"},{"SourceFile":"database\\conexion.cs"},{"SourceFile":"database\\DAO.cs"},{"SourceFile":"database\\modelos\\Categoria.cs"},{"SourceFile":"database\\modelos\\Cliente.cs"},{"SourceFile":"database\\modelos\\Empleado.cs"},{"SourceFile":"database\\modelos\\Producto.cs"},{"SourceFile":"database\\modelos\\usuario.cs"},{"SourceFile":"database\\service.cs"},{"SourceFile":"EditarEmpleado.cs"},{"SourceFile":"EditarEmpleado.Designer.cs"},{"SourceFile":"envios.cs"},{"SourceFile":"envios.Designer.cs"},{"SourceFile":"inventario.cs"},{"SourceFile":"inventario.Designer.cs"},{"SourceFile":"login.cs"},{"SourceFile":"login.Designer.cs"},{"SourceFile":"MenuPrincipal.cs"},{"SourceFile":"MenuPrincipal.Designer.cs"},{"SourceFile":"mermas.cs"},{"SourceFile":"mermas.Designer.cs"},{"SourceFile":"personal.cs"},{"SourceFile":"personal.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"vender.cs"},{"SourceFile":"vender.Designer.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\EntityFramework.6.4.4\\lib\\net45\\EntityFramework.SqlServer.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.DataAnnotations.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\\lib\\net46\\System.Data.SQLite.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.EF6.1.0.118.0\\lib\\net46\\System.Data.SQLite.EF6.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\packages\\System.Data.SQLite.Linq.1.0.118.0\\lib\\net46\\System.Data.SQLite.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.exe","OutputItemRelativePath":"compabetov2.exe"},{"OutputItemFullPath":"C:\\Users\\carsu\\source\\repos\\compabetoOG\\bin\\Debug\\compabetov2.pdb","OutputItemRelativePath":"compabetov2.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file 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/AgregarLogin.Designer.cs b/AgregarLogin.Designer.cs new file mode 100644 index 0000000..d3b063d --- /dev/null +++ b/AgregarLogin.Designer.cs @@ -0,0 +1,199 @@ +namespace compabetov2 +{ + partial class AgregarLogin + { + /// + /// 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.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.tableLayoutPanel1.SuspendLayout(); + this.flowLayoutPanel1.SuspendLayout(); + this.flowLayoutPanel2.SuspendLayout(); + this.flowLayoutPanel3.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.flowLayoutPanel1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel2, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel3, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 3); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 4; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.07914F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.92086F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 84F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 72F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(584, 311); + this.tableLayoutPanel1.TabIndex = 0; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Controls.Add(this.label1); + this.flowLayoutPanel1.Controls.Add(this.textBox1); + 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(578, 73); + this.flowLayoutPanel1.TabIndex = 0; + // + // flowLayoutPanel2 + // + this.flowLayoutPanel2.Controls.Add(this.label2); + this.flowLayoutPanel2.Controls.Add(this.textBox2); + this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 82); + this.flowLayoutPanel2.Name = "flowLayoutPanel2"; + this.flowLayoutPanel2.Size = new System.Drawing.Size(578, 69); + this.flowLayoutPanel2.TabIndex = 1; + // + // flowLayoutPanel3 + // + this.flowLayoutPanel3.Controls.Add(this.label3); + this.flowLayoutPanel3.Controls.Add(this.textBox3); + this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + this.flowLayoutPanel3.Location = new System.Drawing.Point(3, 157); + this.flowLayoutPanel3.Name = "flowLayoutPanel3"; + this.flowLayoutPanel3.Size = new System.Drawing.Size(578, 78); + this.flowLayoutPanel3.TabIndex = 2; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 3; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80.65844F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 19.34156F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 91F)); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 241); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 1; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(578, 67); + this.tableLayoutPanel2.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(178, 24); + this.label1.TabIndex = 0; + this.label1.Text = "Nombre de usuario:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, 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(103, 24); + this.label2.TabIndex = 0; + this.label2.Text = "contraseña"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(3, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(106, 13); + this.label3.TabIndex = 0; + this.label3.Text = "confirmar contraseña"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(3, 27); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(100, 20); + this.textBox1.TabIndex = 1; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(3, 27); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(100, 20); + this.textBox2.TabIndex = 1; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(3, 16); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(100, 20); + this.textBox3.TabIndex = 1; + // + // AgregarLogin + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 311); + this.Controls.Add(this.tableLayoutPanel1); + this.Name = "AgregarLogin"; + this.Text = "AgregarLogin"; + this.tableLayoutPanel1.ResumeLayout(false); + this.flowLayoutPanel1.ResumeLayout(false); + this.flowLayoutPanel1.PerformLayout(); + this.flowLayoutPanel2.ResumeLayout(false); + this.flowLayoutPanel2.PerformLayout(); + this.flowLayoutPanel3.ResumeLayout(false); + this.flowLayoutPanel3.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.TextBox textBox3; + } +} \ No newline at end of file diff --git a/AgregarLogin.cs b/AgregarLogin.cs new file mode 100644 index 0000000..a785e88 --- /dev/null +++ b/AgregarLogin.cs @@ -0,0 +1,20 @@ +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 AgregarLogin : Form + { + public AgregarLogin() + { + InitializeComponent(); + } + } +} diff --git a/AgregarLogin.resx b/AgregarLogin.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/AgregarLogin.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..e132c68 --- /dev/null +++ b/EditarEmpleado.Designer.cs @@ -0,0 +1,632 @@ +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; + this.button1.Click += new System.EventHandler(this.button1_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(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; + this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click); + // + // 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..2a7b5ea --- /dev/null +++ b/EditarEmpleado.cs @@ -0,0 +1,78 @@ +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 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) + { + + } + + + private void button1_Click(object sender, EventArgs e) + { + Empleado empleadoNuevo = new Empleado( + empleado.idempleado, + txtNombre.Text, + txtApellido.Text, + txtCalle.Text, + dtFechaCon.Text, + cbEstado.Text, + txtColonia.Text, + txtCp.Text, + txtNoExt.Text, + txtNoInt.Text, + txtReferencia.Text, + dtFechaNac.Text, + txtTelefono.Text); + if (service.actualizarEmpleado(empleadoNuevo)) + { + ventanaPadre.llenarPanel(); + } + + } + + private void btnCancelar_Click(object sender, EventArgs e) + { + this.Close(); + + } + } +} 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/data.db b/bin/Debug/data.db index 8054df2..de0f016 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..771ce99 100644 --- a/compabetov2.csproj +++ b/compabetov2.csproj @@ -103,6 +103,18 @@ + + Form + + + AgregarEmpleado.cs + + + Form + + + AgregarLogin.cs + Form @@ -117,6 +129,12 @@ + + Form + + + EditarEmpleado.cs + Form @@ -161,9 +179,18 @@ vender.cs + + AgregarEmpleado.cs + + + AgregarLogin.cs + cuentas.cs + + EditarEmpleado.cs + envios.cs diff --git a/database/DAO.cs b/database/DAO.cs index 68fddac..a12f461 100644 --- a/database/DAO.cs +++ b/database/DAO.cs @@ -151,10 +151,9 @@ namespace compabetov2.database { conexion.Open(); - string sql = "UPDATE Empleado SET " + - "VALUES (@nombre, @apellidos, @calle, @fecha_contratacion, @estado, @colonia, @cp, @no_ext, @no_int, @referencia, @fecha_nac, @telefono)"; - - + string sql = "UPDATE Empleado SET nombre = @nombre, apellidos = @apellidos, calle = @calle, fecha_contratacion = @fecha_contratacion, " + + "estado = @estado, colonia = @colonia, cp = @cp, no_ext = @no_ext, no_int = @no_int, referencia = @referencia, " + + "fecha_nac = @fecha_nac, telefono = @telefono WHERE idempleado = @idempleado;"; using (SQLiteCommand command = new SQLiteCommand(sql, conexion)) { @@ -170,6 +169,7 @@ namespace compabetov2.database command.Parameters.AddWithValue("@referencia", empleado.referencia); command.Parameters.AddWithValue("@fecha_nac", empleado.fecha_nac); command.Parameters.AddWithValue("@telefono", empleado.telefono); + command.Parameters.AddWithValue("@idempleado", empleado.idempleado); int filasAfectadas = command.ExecuteNonQuery(); @@ -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)) { @@ -490,18 +490,19 @@ namespace compabetov2.database conexion.Open(); string[] consultas = new string[] { - "DROP TABLE IF EXISTS Login", "DROP TABLE IF EXISTS Empleado", + "DROP TABLE IF EXISTS Login", "DROP TABLE IF EXISTS Producto", "DROP TABLE IF EXISTS Categoria", "DROP TABLE IF EXISTS Cliente", + "CREATE TABLE Login (idlogin INTEGER PRIMARY KEY AUTOINCREMENT, tipo TEXT NOT NULL, usuario TEXT NOT NULL, "+ + "contra TEXT NOT NULL)", + "CREATE TABLE Empleado (idempleado INTEGER PRIMARY KEY AUTOINCREMENT, nombre TEXT NOT NULL, "+ "apellidos TEXT NOT NULL, calle TEXT NOT NULL, fecha_contratacion TEXT NOT NULL,estado TEXT NOT NULL, colonia TEXT NOT NULL, cp TEXT NOT NULL, no_ext TEXT NOT NULL," + - "no_int TEXT NOT NULL, referencia TEXT NOT NULL, fecha_nac TEXT NOT NULL, telefono TEXT NOT NULL)", - - "CREATE TABLE Login (idlogin INTEGER PRIMARY KEY AUTOINCREMENT, tipo TEXT NOT NULL, usuario TEXT NOT NULL, "+ - "contra TEXT NOT NULL, fk_idempleado INTEGER NOT NULL, FOREIGN KEY (fk_idempleado) REFERENCES Empleado (idempleado))", + "no_int TEXT NOT NULL, referencia TEXT NOT NULL, fecha_nac TEXT NOT NULL, telefono TEXT NOT NULL, fk_idLogin INTEGER," + + "FOREIGN KEY (fk_idLogin) REFERENCES Login(idlogin))", "CREATE TABLE Categoria (idcategoria INTEGER PRIMARY KEY AUTOINCREMENT, nombre TEXT NOT NULL, descripcion TEXT NOT NULL)", @@ -513,8 +514,9 @@ namespace compabetov2.database "calle TEXT NOT NULL, colonia TEXT NOT NULL, cp TEXT NOT NULL, no_ext TEXT NOT NULL, no_int TEXT NOT NULL, referencia TEXT NOT NULL, " + "telefono TEXT NOT NULL, telefono_extra TEXT NOT NULL)", - "INSERT INTO Empleado ( nombre, apellidos, calle, fecha_contratacion,estado, colonia, cp, no_ext,no_int, referencia, fecha_nac, telefono) VALUES('jefe', '', '', '', '', '', '', '', '', '', '', '');", - "INSERT INTO Login ( tipo, usuario, contra, fk_idempleado) VALUES('admin', 'admin', '12345', 1);" + "INSERT INTO Login ( tipo, usuario, contra) VALUES('admin', 'admin', '12345');", + "INSERT INTO Empleado ( nombre, apellidos, calle, fecha_contratacion,estado, colonia, cp, no_ext,no_int, referencia, fecha_nac, telefono,fk_idLogin) VALUES('jefe', '', '', '', '', '', '', '', '', '', '', '',1);", + }; foreach (string consulta in consultas) diff --git a/database/modelos/Empleado.cs b/database/modelos/Empleado.cs index 03a1e58..544f750 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; @@ -21,8 +21,9 @@ namespace compabetov2.database.modelos public string referencia; public string fecha_nac; public string telefono; + public int? fkIdLogin; - public Empleado(int idempeado = -1, string nombre ="", string apellidos = "", string calle = "", string fecha_contratacion = "", string estado = "", string colonia = "", string cp = "", string no_ext = "", string no_int = "", string referencia = "", string fecha_nac = "", string telefono ="") + public Empleado(int idempeado = -1, string nombre ="", string apellidos = "", string calle = "", string fecha_contratacion = "", string estado = "", string colonia = "", string cp = "", string no_ext = "", string no_int = "", string referencia = "", string fecha_nac = "", string telefono ="",int? fkIdLogin = null) { this.idempleado = idempeado; this.nombre = nombre; @@ -37,6 +38,25 @@ namespace compabetov2.database.modelos this.referencia = referencia; this.fecha_nac=fecha_nac; this.telefono = telefono; + this.fkIdLogin = fkIdLogin; + } + + public bool CompareEmpleado(Empleado emp2) + { + if (nombre != emp2.nombre) return false; + if (apellidos != emp2.apellidos) return false; + if (calle != emp2.calle) return false; + if (fecha_contratacion != emp2.fecha_contratacion) return false; + if (estado != emp2.estado) return false; + if (colonia != emp2.colonia) return false; + if (cp != emp2.cp) return false; + if (no_ext != emp2.no_ext) return false; + if (no_int != emp2.no_int) return false; + if (referencia != emp2.referencia) return false; + if (fecha_nac != emp2.fecha_nac) return false; + if (telefono != emp2.telefono) return false; + + return true; } } } diff --git a/database/service.cs b/database/service.cs index 05a81e9..4d3c199 100644 --- a/database/service.cs +++ b/database/service.cs @@ -105,8 +105,11 @@ namespace compabetov2.database while (reader.Read()) { + long fkIdLogin = reader.GetInt64(0); + + long id = reader.GetInt64(0); Empleado empleado = new Empleado( - int.Parse(reader["idempleado"].ToString()), + Convert.ToInt32(id), reader["nombre"].ToString(), reader["apellidos"].ToString(), reader["calle"].ToString(), @@ -118,8 +121,9 @@ namespace compabetov2.database reader["no_int"].ToString(), reader["referencia"].ToString(), reader["fecha_nac"].ToString(), - reader["telefono"].ToString() - ); + reader["telefono"].ToString(), + Convert.ToInt32(fkIdLogin) + ) ; empleados.Add(empleado); } return empleados; @@ -136,5 +140,10 @@ namespace compabetov2.database { return DAO.eliminarEmpleadoDAO(idEmpleado); } + + public static bool actualizarEmpleado(Empleado empleado) + { + return DAO.actualizarEmpleadoDAO(empleado); + } } } diff --git a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache index 7ea0549..7b50727 100644 --- a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache +++ b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache @@ -1 +1,5 @@ +<<<<<<< HEAD c1cf5d87017027705d6c2ec0d3ad2a8c7ff08f19 +======= +5d59b1013627d47320299052a443bf2f5f938b5e44e9ca7b957196b5427dd7b6 +>>>>>>> 58838e4ed1242ca0331f346a14f3dfa8c9379ee8 diff --git a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt index 08b0e48..cee5f43 100644 --- a/obj/Debug/compabetov2.csproj.FileListAbsolute.txt +++ b/obj/Debug/compabetov2.csproj.FileListAbsolute.txt @@ -88,3 +88,6 @@ 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 +C:\Users\carsu\source\repos\compabetoOG\obj\Debug\compabetov2.AgregarLogin.resources 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..f1c8a6f 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(); @@ -35,8 +35,8 @@ namespace compabetov2 empleadoLayout.ColumnCount = 2; empleadoLayout.Height = 100; empleadoLayout.Width = 900; - empleadoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 60F)); - empleadoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 40F)); + empleadoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + empleadoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); empleadoLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); empleadoLayout.BorderStyle = BorderStyle.FixedSingle; @@ -68,11 +68,12 @@ namespace compabetov2 TableLayoutPanel panelBotones = new TableLayoutPanel(); panelBotones.RowCount = 1; - panelBotones.ColumnCount = 3; + panelBotones.ColumnCount = 4; panelBotones.Dock = DockStyle.Fill; - panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); - panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); - panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F)); + panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); + panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); + panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); + panelBotones.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); Button btnVer = new Button(); btnVer.Text = "Ver"; @@ -98,6 +99,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,10 +119,25 @@ namespace compabetov2 "Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { - // Código para continuar aquí + service.eliminarEmpleado(empleado.idempleado); + llenarPanel(); } }); + Button btnLogin = new Button(); + btnLogin.Text = "Login"; + btnLogin.BackColor = Color.Red; + btnLogin.Dock = DockStyle.Fill; + btnLogin.FlatStyle = FlatStyle.Flat; + btnLogin.FlatAppearance.BorderSize = 0; + btnLogin.Font = new Font(btnVer.Font.FontFamily, 16); + btnLogin.ForeColor = Color.White; + btnLogin.Click += new EventHandler(delegate (object sender, EventArgs e) + { + + }); + + infoEmpleado.Controls.Add(imgEmpleado,0,0); infoEmpleado.Controls.Add(nombreEmpleado,1,0); @@ -124,6 +145,7 @@ namespace compabetov2 panelBotones.Controls.Add(btnVer,0,0); panelBotones.Controls.Add(btnEditar,1,0); panelBotones.Controls.Add(btnEliminar,2,0); + panelBotones.Controls.Add(btnLogin,3,0); empleadoLayout.Controls.Add(infoEmpleado,0,0); empleadoLayout.Controls.Add(panelBotones,1,0); @@ -177,5 +199,11 @@ namespace compabetov2 { } + + private void btnAgregar_Click(object sender, EventArgs e) + { + AgregarEmpleado agregarEmpleado = new AgregarEmpleado(this); + agregarEmpleado.Show(); + } } }