Mermas Design
This commit is contained in:
Generated
+723
@@ -0,0 +1,723 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class AgregarEmpleado
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnAgregar = new System.Windows.Forms.Button();
|
||||
this.btnCancelar = new System.Windows.Forms.Button();
|
||||
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.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.lbImg = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.tableLayoutPanel3.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.flowLayoutPanel2.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.tableLayoutPanel3, 0, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel2, 0, 1);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 3;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 91.73913F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 8.26087F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 81F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1219, 661);
|
||||
this.tableLayoutPanel1.TabIndex = 0;
|
||||
//
|
||||
// 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, 148F));
|
||||
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(4, 583);
|
||||
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
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(1211, 74);
|
||||
this.tableLayoutPanel3.TabIndex = 2;
|
||||
//
|
||||
// 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(906, 4);
|
||||
this.btnAgregar.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnAgregar.Name = "btnAgregar";
|
||||
this.btnAgregar.Size = new System.Drawing.Size(152, 66);
|
||||
this.btnAgregar.TabIndex = 0;
|
||||
this.btnAgregar.Text = "Agregar";
|
||||
this.btnAgregar.UseVisualStyleBackColor = true;
|
||||
this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click_1);
|
||||
//
|
||||
// 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(1066, 4);
|
||||
this.btnCancelar.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnCancelar.Name = "btnCancelar";
|
||||
this.btnCancelar.Size = new System.Drawing.Size(141, 66);
|
||||
this.btnCancelar.TabIndex = 1;
|
||||
this.btnCancelar.Text = "Cancelar";
|
||||
this.btnCancelar.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// 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, 27F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 27F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 27F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 27F));
|
||||
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(4, 4);
|
||||
this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
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, 87F));
|
||||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F));
|
||||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 74F));
|
||||
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 68F));
|
||||
this.tableLayoutPanel2.Size = new System.Drawing.Size(1211, 524);
|
||||
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(4, 4);
|
||||
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(597, 94);
|
||||
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(4, 0);
|
||||
this.lbNombre.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbNombre.Name = "lbNombre";
|
||||
this.lbNombre.Size = new System.Drawing.Size(87, 25);
|
||||
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(4, 29);
|
||||
this.txtNombre.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtNombre.Name = "txtNombre";
|
||||
this.txtNombre.Size = new System.Drawing.Size(516, 30);
|
||||
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(609, 4);
|
||||
this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
|
||||
this.flowLayoutPanel3.Size = new System.Drawing.Size(598, 94);
|
||||
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(4, 0);
|
||||
this.lbApellidos.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbApellidos.Name = "lbApellidos";
|
||||
this.lbApellidos.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtApellido.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtApellido.Name = "txtApellido";
|
||||
this.txtApellido.Size = new System.Drawing.Size(516, 30);
|
||||
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(4, 106);
|
||||
this.flowLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel4.Name = "flowLayoutPanel4";
|
||||
this.flowLayoutPanel4.Size = new System.Drawing.Size(597, 106);
|
||||
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(4, 0);
|
||||
this.lbCalle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbCalle.Name = "lbCalle";
|
||||
this.lbCalle.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtCalle.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtCalle.Name = "txtCalle";
|
||||
this.txtCalle.Size = new System.Drawing.Size(516, 30);
|
||||
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(4, 220);
|
||||
this.flowLayoutPanel5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel5.Name = "flowLayoutPanel5";
|
||||
this.flowLayoutPanel5.Size = new System.Drawing.Size(597, 79);
|
||||
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(4, 0);
|
||||
this.lbCp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbCp.Name = "lbCp";
|
||||
this.lbCp.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtCp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtCp.Name = "txtCp";
|
||||
this.txtCp.Size = new System.Drawing.Size(516, 30);
|
||||
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(4, 307);
|
||||
this.flowLayoutPanel6.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel6.Name = "flowLayoutPanel6";
|
||||
this.flowLayoutPanel6.Size = new System.Drawing.Size(597, 70);
|
||||
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(4, 0);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtNoInt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtNoInt.Name = "txtNoInt";
|
||||
this.txtNoInt.Size = new System.Drawing.Size(516, 30);
|
||||
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(4, 385);
|
||||
this.flowLayoutPanel7.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel7.Name = "flowLayoutPanel7";
|
||||
this.flowLayoutPanel7.Size = new System.Drawing.Size(597, 66);
|
||||
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(4, 0);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.dtFechaNac.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.dtFechaNac.Name = "dtFechaNac";
|
||||
this.dtFechaNac.Size = new System.Drawing.Size(516, 30);
|
||||
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(4, 459);
|
||||
this.flowLayoutPanel8.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel8.Name = "flowLayoutPanel8";
|
||||
this.flowLayoutPanel8.Size = new System.Drawing.Size(597, 61);
|
||||
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(4, 0);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(95, 25);
|
||||
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(107, 4);
|
||||
this.txtTelefono.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtTelefono.Name = "txtTelefono";
|
||||
this.txtTelefono.Size = new System.Drawing.Size(516, 29);
|
||||
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(609, 106);
|
||||
this.flowLayoutPanel9.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel9.Name = "flowLayoutPanel9";
|
||||
this.flowLayoutPanel9.Size = new System.Drawing.Size(598, 106);
|
||||
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(4, 0);
|
||||
this.lbColonia.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbColonia.Name = "lbColonia";
|
||||
this.lbColonia.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtColonia.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtColonia.Name = "txtColonia";
|
||||
this.txtColonia.Size = new System.Drawing.Size(516, 30);
|
||||
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(609, 220);
|
||||
this.flowLayoutPanel10.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel10.Name = "flowLayoutPanel10";
|
||||
this.flowLayoutPanel10.Size = new System.Drawing.Size(598, 79);
|
||||
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(4, 0);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtNoExt.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtNoExt.Name = "txtNoExt";
|
||||
this.txtNoExt.Size = new System.Drawing.Size(516, 30);
|
||||
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(609, 307);
|
||||
this.flowLayoutPanel11.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel11.Name = "flowLayoutPanel11";
|
||||
this.flowLayoutPanel11.Size = new System.Drawing.Size(598, 70);
|
||||
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(4, 0);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.txtReferencia.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtReferencia.Name = "txtReferencia";
|
||||
this.txtReferencia.Size = new System.Drawing.Size(516, 30);
|
||||
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(609, 385);
|
||||
this.flowLayoutPanel12.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel12.Name = "flowLayoutPanel12";
|
||||
this.flowLayoutPanel12.Size = new System.Drawing.Size(598, 66);
|
||||
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(4, 0);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(516, 25);
|
||||
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(4, 29);
|
||||
this.dtFechaCon.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.dtFechaCon.Name = "dtFechaCon";
|
||||
this.dtFechaCon.Size = new System.Drawing.Size(516, 30);
|
||||
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(609, 459);
|
||||
this.flowLayoutPanel13.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel13.Name = "flowLayoutPanel13";
|
||||
this.flowLayoutPanel13.Size = new System.Drawing.Size(598, 61);
|
||||
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(4, 0);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(73, 24);
|
||||
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(85, 4);
|
||||
this.cbEstado.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.cbEstado.Name = "cbEstado";
|
||||
this.cbEstado.Size = new System.Drawing.Size(516, 32);
|
||||
this.cbEstado.TabIndex = 1;
|
||||
this.cbEstado.Text = "Activo";
|
||||
//
|
||||
// flowLayoutPanel2
|
||||
//
|
||||
this.flowLayoutPanel2.AutoSize = true;
|
||||
this.flowLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.flowLayoutPanel2.Controls.Add(this.button1);
|
||||
this.flowLayoutPanel2.Controls.Add(this.lbImg);
|
||||
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel2.Location = new System.Drawing.Point(4, 536);
|
||||
this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
|
||||
this.flowLayoutPanel2.Size = new System.Drawing.Size(1211, 39);
|
||||
this.flowLayoutPanel2.TabIndex = 3;
|
||||
this.flowLayoutPanel2.Paint += new System.Windows.Forms.PaintEventHandler(this.flowLayoutPanel2_Paint_1);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button1.Location = new System.Drawing.Point(4, 4);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(200, 39);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Seleccionar Imagen";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// lbImg
|
||||
//
|
||||
this.lbImg.AutoSize = true;
|
||||
this.lbImg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbImg.Location = new System.Drawing.Point(212, 0);
|
||||
this.lbImg.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lbImg.Name = "lbImg";
|
||||
this.lbImg.Padding = new System.Windows.Forms.Padding(0, 12, 0, 0);
|
||||
this.lbImg.Size = new System.Drawing.Size(68, 32);
|
||||
this.lbImg.TabIndex = 1;
|
||||
this.lbImg.Text = "Imagen:";
|
||||
this.lbImg.Click += new System.EventHandler(this.label1_Click_1);
|
||||
//
|
||||
// AgregarEmpleado
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1219, 661);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.Name = "AgregarEmpleado";
|
||||
this.Text = "Agregar Empleado";
|
||||
this.Load += new System.EventHandler(this.AgregarEmpleado_Load);
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.tableLayoutPanel3.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.flowLayoutPanel2.ResumeLayout(false);
|
||||
this.flowLayoutPanel2.PerformLayout();
|
||||
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.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;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
|
||||
private System.Windows.Forms.Button btnAgregar;
|
||||
private System.Windows.Forms.Button btnCancelar;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label lbImg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
using compabetov2.database;
|
||||
using compabetov2.database.modelos;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
public partial class AgregarEmpleado : Form
|
||||
{
|
||||
private personal ventanaPersonal;
|
||||
private string imagenPath = "";
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void flowLayoutPanel2_Paint_1(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog();
|
||||
|
||||
openFileDialog1.Filter = "Archivos de imagen (*.jpg, *.jpeg, *.png, *.bmp)|*.jpg;*.jpeg;*.png;*.bmp";
|
||||
openFileDialog1.Title = "Seleccionar imagen";
|
||||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
imagenPath = openFileDialog1.FileName;
|
||||
lbImg.Text = $"Imagen: {Path.GetFileName(imagenPath)}";
|
||||
string destinationFolder = Path.Combine(Application.StartupPath, "Resources", "usuarios");
|
||||
//string destinationFile = Path.Combine(destinationFolder, Path.GetFileName(sourceFile));
|
||||
//File.Copy(sourceFile, destinationFile, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void label1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnAgregar_Click_1(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, Path.GetFileName(imagenPath));
|
||||
|
||||
if (service.insertarEmpleado(empleado))
|
||||
{
|
||||
if (!imagenPath.Equals("")) {
|
||||
string destinationFolder = Path.Combine(Application.StartupPath, "Resources", "usuarios");
|
||||
string destinationFile = Path.Combine(destinationFolder, Path.GetFileName(imagenPath));
|
||||
File.Copy(imagenPath, destinationFile, true);
|
||||
}
|
||||
|
||||
ventanaPersonal.llenarPanel();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+284
@@ -0,0 +1,284 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class AgregarLogin
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtNombre = new System.Windows.Forms.TextBox();
|
||||
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtContra = new System.Windows.Forms.TextBox();
|
||||
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtContraConf = new System.Windows.Forms.TextBox();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnAceptar = new System.Windows.Forms.Button();
|
||||
this.btnCancelar = new System.Windows.Forms.Button();
|
||||
this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.cbTipo = new System.Windows.Forms.ComboBox();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.flowLayoutPanel2.SuspendLayout();
|
||||
this.flowLayoutPanel3.SuspendLayout();
|
||||
this.tableLayoutPanel2.SuspendLayout();
|
||||
this.flowLayoutPanel4.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, 4);
|
||||
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.flowLayoutPanel4, 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 = 5;
|
||||
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, 82F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 71F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 73F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(354, 387);
|
||||
this.tableLayoutPanel1.TabIndex = 0;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.Controls.Add(this.label1);
|
||||
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(348, 76);
|
||||
this.flowLayoutPanel1.TabIndex = 0;
|
||||
//
|
||||
// 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.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.label1.Size = new System.Drawing.Size(178, 34);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Nombre de usuario:";
|
||||
//
|
||||
// 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, 37);
|
||||
this.txtNombre.Name = "txtNombre";
|
||||
this.txtNombre.Size = new System.Drawing.Size(345, 26);
|
||||
this.txtNombre.TabIndex = 1;
|
||||
//
|
||||
// flowLayoutPanel2
|
||||
//
|
||||
this.flowLayoutPanel2.Controls.Add(this.label2);
|
||||
this.flowLayoutPanel2.Controls.Add(this.txtContra);
|
||||
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 85);
|
||||
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
|
||||
this.flowLayoutPanel2.Size = new System.Drawing.Size(348, 72);
|
||||
this.flowLayoutPanel2.TabIndex = 1;
|
||||
//
|
||||
// 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.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.label2.Size = new System.Drawing.Size(103, 34);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "contraseña";
|
||||
//
|
||||
// txtContra
|
||||
//
|
||||
this.txtContra.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtContra.Location = new System.Drawing.Point(3, 37);
|
||||
this.txtContra.Name = "txtContra";
|
||||
this.txtContra.PasswordChar = '*';
|
||||
this.txtContra.Size = new System.Drawing.Size(345, 26);
|
||||
this.txtContra.TabIndex = 1;
|
||||
//
|
||||
// flowLayoutPanel3
|
||||
//
|
||||
this.flowLayoutPanel3.Controls.Add(this.label3);
|
||||
this.flowLayoutPanel3.Controls.Add(this.txtContraConf);
|
||||
this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel3.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flowLayoutPanel3.Location = new System.Drawing.Point(3, 163);
|
||||
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
|
||||
this.flowLayoutPanel3.Size = new System.Drawing.Size(348, 76);
|
||||
this.flowLayoutPanel3.TabIndex = 2;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, 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.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.label3.Size = new System.Drawing.Size(186, 34);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "confirmar contraseña";
|
||||
//
|
||||
// txtContraConf
|
||||
//
|
||||
this.txtContraConf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtContraConf.Location = new System.Drawing.Point(3, 37);
|
||||
this.txtContraConf.Name = "txtContraConf";
|
||||
this.txtContraConf.PasswordChar = '*';
|
||||
this.txtContraConf.Size = new System.Drawing.Size(342, 26);
|
||||
this.txtContraConf.TabIndex = 1;
|
||||
//
|
||||
// tableLayoutPanel2
|
||||
//
|
||||
this.tableLayoutPanel2.ColumnCount = 3;
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 63.52941F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 36.47059F));
|
||||
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 92F));
|
||||
this.tableLayoutPanel2.Controls.Add(this.btnAceptar, 1, 0);
|
||||
this.tableLayoutPanel2.Controls.Add(this.btnCancelar, 2, 0);
|
||||
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 316);
|
||||
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(348, 68);
|
||||
this.tableLayoutPanel2.TabIndex = 4;
|
||||
//
|
||||
// btnAceptar
|
||||
//
|
||||
this.btnAceptar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnAceptar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAceptar.Location = new System.Drawing.Point(165, 3);
|
||||
this.btnAceptar.Name = "btnAceptar";
|
||||
this.btnAceptar.Size = new System.Drawing.Size(87, 62);
|
||||
this.btnAceptar.TabIndex = 0;
|
||||
this.btnAceptar.Text = "Aceptar";
|
||||
this.btnAceptar.UseVisualStyleBackColor = true;
|
||||
this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click_1);
|
||||
//
|
||||
// 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(258, 3);
|
||||
this.btnCancelar.Name = "btnCancelar";
|
||||
this.btnCancelar.Size = new System.Drawing.Size(87, 62);
|
||||
this.btnCancelar.TabIndex = 1;
|
||||
this.btnCancelar.Text = "Cancelar";
|
||||
this.btnCancelar.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel4
|
||||
//
|
||||
this.flowLayoutPanel4.Controls.Add(this.label4);
|
||||
this.flowLayoutPanel4.Controls.Add(this.cbTipo);
|
||||
this.flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flowLayoutPanel4.Location = new System.Drawing.Point(3, 245);
|
||||
this.flowLayoutPanel4.Name = "flowLayoutPanel4";
|
||||
this.flowLayoutPanel4.Size = new System.Drawing.Size(348, 65);
|
||||
this.flowLayoutPanel4.TabIndex = 5;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
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(43, 20);
|
||||
this.label4.TabIndex = 0;
|
||||
this.label4.Text = "Tipo:";
|
||||
//
|
||||
// cbTipo
|
||||
//
|
||||
this.cbTipo.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.cbTipo.FormattingEnabled = true;
|
||||
this.cbTipo.Items.AddRange(new object[] {
|
||||
"admin",
|
||||
"empleado"});
|
||||
this.cbTipo.Location = new System.Drawing.Point(3, 23);
|
||||
this.cbTipo.Name = "cbTipo";
|
||||
this.cbTipo.Size = new System.Drawing.Size(121, 28);
|
||||
this.cbTipo.TabIndex = 1;
|
||||
this.cbTipo.Text = "empleado";
|
||||
//
|
||||
// AgregarLogin
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(354, 387);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.Name = "AgregarLogin";
|
||||
this.Text = "Crear Login";
|
||||
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.tableLayoutPanel2.ResumeLayout(false);
|
||||
this.flowLayoutPanel4.ResumeLayout(false);
|
||||
this.flowLayoutPanel4.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 txtNombre;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtContra;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox txtContraConf;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
||||
private System.Windows.Forms.Button btnAceptar;
|
||||
private System.Windows.Forms.Button btnCancelar;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox cbTipo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
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 AgregarLogin : Form
|
||||
{
|
||||
personal ventanaPadre;
|
||||
int idEmpleado;
|
||||
public AgregarLogin(personal ventanaPadre, int idEmpleado)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.ventanaPadre = ventanaPadre;
|
||||
this.idEmpleado = idEmpleado;
|
||||
}
|
||||
|
||||
private void btnAceptar_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnAceptar_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
string contra = txtContra.Text;
|
||||
string contraConf = txtContraConf.Text;
|
||||
if (contra.Equals(contraConf))
|
||||
{
|
||||
string tipo = cbTipo.Text;
|
||||
string nombre = txtNombre.Text;
|
||||
LoginModel loginModel = new LoginModel(nombre,contra,tipo, idEmpleado);
|
||||
if (service.verificarExistenciaLogin(loginModel))
|
||||
{
|
||||
if (service.crearLogin(loginModel,idEmpleado))
|
||||
{
|
||||
ventanaPadre.llenarPanel();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("El nombre de usuario ya existe","Error", MessageBoxButtons.OK,MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Las cotraseña no coinciden", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+675
@@ -0,0 +1,675 @@
|
||||
using compabetov2.database.modelos;
|
||||
using System.Security.Policy;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class EditarEmpleado
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
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.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.btnImg = new System.Windows.Forms.Button();
|
||||
this.lbImg = new System.Windows.Forms.Label();
|
||||
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.flowLayoutPanel2.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.tableLayoutPanel3, 0, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel2, 0, 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 = 3;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.64646F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.35354F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 70F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(800, 508);
|
||||
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, 386);
|
||||
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, 66);
|
||||
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, 139);
|
||||
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, 210);
|
||||
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, 273);
|
||||
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, 333);
|
||||
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, 66);
|
||||
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, 139);
|
||||
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, 210);
|
||||
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, 273);
|
||||
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, 333);
|
||||
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, 440);
|
||||
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, 65);
|
||||
this.tableLayoutPanel3.TabIndex = 3;
|
||||
//
|
||||
// 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, 59);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Editar";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||
//
|
||||
// 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, 59);
|
||||
this.btnCancelar.TabIndex = 1;
|
||||
this.btnCancelar.Text = "Cancelar";
|
||||
this.btnCancelar.UseVisualStyleBackColor = true;
|
||||
this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click_1);
|
||||
//
|
||||
// flowLayoutPanel2
|
||||
//
|
||||
this.flowLayoutPanel2.Controls.Add(this.btnImg);
|
||||
this.flowLayoutPanel2.Controls.Add(this.lbImg);
|
||||
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 395);
|
||||
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
|
||||
this.flowLayoutPanel2.Size = new System.Drawing.Size(794, 39);
|
||||
this.flowLayoutPanel2.TabIndex = 4;
|
||||
//
|
||||
// btnImg
|
||||
//
|
||||
this.btnImg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnImg.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnImg.Name = "btnImg";
|
||||
this.btnImg.Size = new System.Drawing.Size(148, 36);
|
||||
this.btnImg.TabIndex = 0;
|
||||
this.btnImg.Text = "Seleccionar imagen";
|
||||
this.btnImg.UseVisualStyleBackColor = true;
|
||||
this.btnImg.Click += new System.EventHandler(this.btnImg_Click);
|
||||
//
|
||||
// lbImg
|
||||
//
|
||||
this.lbImg.AutoSize = true;
|
||||
this.lbImg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lbImg.Location = new System.Drawing.Point(157, 0);
|
||||
this.lbImg.Name = "lbImg";
|
||||
this.lbImg.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
|
||||
this.lbImg.Size = new System.Drawing.Size(55, 26);
|
||||
this.lbImg.TabIndex = 1;
|
||||
this.lbImg.Text = "Imagen:";
|
||||
//
|
||||
// EditarEmpleado
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 508);
|
||||
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.flowLayoutPanel2.ResumeLayout(false);
|
||||
this.flowLayoutPanel2.PerformLayout();
|
||||
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;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
|
||||
private System.Windows.Forms.Button btnImg;
|
||||
private System.Windows.Forms.Label lbImg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
using compabetov2.database;
|
||||
using compabetov2.database.modelos;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
public partial class EditarEmpleado : Form
|
||||
{
|
||||
private Empleado empleado;
|
||||
private personal ventanaPadre;
|
||||
private string imagePath;
|
||||
public EditarEmpleado(Empleado empleado, personal ventanaPadre)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.empleado = empleado;
|
||||
this.ventanaPadre = ventanaPadre;
|
||||
imagePath = Path.Combine(Application.StartupPath, "Resources", "usuarios", empleado.img);
|
||||
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;
|
||||
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}";
|
||||
}
|
||||
|
||||
private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btnCancelar_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click_1(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,
|
||||
Path.GetFileName(imagePath));
|
||||
if (service.actualizarEmpleado(empleadoNuevo))
|
||||
{
|
||||
if (!empleado.img.Equals(empleadoNuevo.img))
|
||||
{
|
||||
string destinationFolder = Path.Combine(Application.StartupPath, "Resources", "usuarios");
|
||||
string destinationFile = Path.Combine(destinationFolder, Path.GetFileName(imagePath));
|
||||
File.Copy(imagePath, destinationFile, true);
|
||||
}
|
||||
ventanaPadre.llenarPanel();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
||||
private void btnCancelar_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnImg_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog();
|
||||
|
||||
openFileDialog1.Filter = "Archivos de imagen (*.jpg, *.jpeg, *.png, *.bmp)|*.jpg;*.jpeg;*.png;*.bmp";
|
||||
openFileDialog1.Title = "Seleccionar imagen";
|
||||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
imagePath = openFileDialog1.FileName;
|
||||
lbImg.Text = $"Imagen: {Path.GetFileName(imagePath)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+127
@@ -0,0 +1,127 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class ModificarContra
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txtContra = new System.Windows.Forms.TextBox();
|
||||
this.txtConfi = new System.Windows.Forms.TextBox();
|
||||
this.btnConfirmar = new System.Windows.Forms.Button();
|
||||
this.btnCancelar = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(13, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(96, 20);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Contraseña:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
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(8, 101);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(166, 20);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "Confirmar contraseña:";
|
||||
//
|
||||
// txtContra
|
||||
//
|
||||
this.txtContra.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtContra.Location = new System.Drawing.Point(12, 54);
|
||||
this.txtContra.Name = "txtContra";
|
||||
this.txtContra.PasswordChar = '*';
|
||||
this.txtContra.Size = new System.Drawing.Size(233, 26);
|
||||
this.txtContra.TabIndex = 2;
|
||||
this.txtContra.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||
//
|
||||
// txtConfi
|
||||
//
|
||||
this.txtConfi.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtConfi.Location = new System.Drawing.Point(12, 145);
|
||||
this.txtConfi.Name = "txtConfi";
|
||||
this.txtConfi.PasswordChar = '*';
|
||||
this.txtConfi.Size = new System.Drawing.Size(238, 26);
|
||||
this.txtConfi.TabIndex = 3;
|
||||
//
|
||||
// btnConfirmar
|
||||
//
|
||||
this.btnConfirmar.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnConfirmar.Location = new System.Drawing.Point(12, 210);
|
||||
this.btnConfirmar.Name = "btnConfirmar";
|
||||
this.btnConfirmar.Size = new System.Drawing.Size(92, 32);
|
||||
this.btnConfirmar.TabIndex = 4;
|
||||
this.btnConfirmar.Text = "Confirmar";
|
||||
this.btnConfirmar.UseVisualStyleBackColor = true;
|
||||
this.btnConfirmar.Click += new System.EventHandler(this.btnConfirmar_Click);
|
||||
//
|
||||
// btnCancelar
|
||||
//
|
||||
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(158, 210);
|
||||
this.btnCancelar.Name = "btnCancelar";
|
||||
this.btnCancelar.Size = new System.Drawing.Size(92, 32);
|
||||
this.btnCancelar.TabIndex = 5;
|
||||
this.btnCancelar.Text = "Cancelar";
|
||||
this.btnCancelar.UseVisualStyleBackColor = true;
|
||||
this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
|
||||
//
|
||||
// ModificarContra
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(262, 254);
|
||||
this.Controls.Add(this.btnCancelar);
|
||||
this.Controls.Add(this.btnConfirmar);
|
||||
this.Controls.Add(this.txtConfi);
|
||||
this.Controls.Add(this.txtContra);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "ModificarContra";
|
||||
this.Text = "ModificarContra";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtContra;
|
||||
private System.Windows.Forms.TextBox txtConfi;
|
||||
private System.Windows.Forms.Button btnConfirmar;
|
||||
private System.Windows.Forms.Button btnCancelar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
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 ModificarContra : Form
|
||||
{
|
||||
private Empleado empleado;
|
||||
public ModificarContra(Empleado empleado)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.empleado = empleado;
|
||||
}
|
||||
|
||||
private void btnConfirmar_Click(object sender, EventArgs e)
|
||||
{
|
||||
string contra = txtContra.Text;
|
||||
string contraConfi = txtConfi.Text;
|
||||
if (contra.Equals(contraConfi))
|
||||
{
|
||||
if (service.modificarContra(empleado, contra))
|
||||
{
|
||||
|
||||
Close();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Las contraseña no son iguales", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnCancelar_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+240
@@ -0,0 +1,240 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class personal
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.pictureBox7 = new System.Windows.Forms.PictureBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.personalPanel = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.lblhora = new System.Windows.Forms.Label();
|
||||
this.empleadoBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.conexionBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.btnAgregar = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.empleadoBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.conexionBindingSource)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBox7
|
||||
//
|
||||
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
|
||||
this.pictureBox7.Location = new System.Drawing.Point(64, 34);
|
||||
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.pictureBox7.Name = "pictureBox7";
|
||||
this.pictureBox7.Size = new System.Drawing.Size(190, 197);
|
||||
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox7.TabIndex = 8;
|
||||
this.pictureBox7.TabStop = false;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panel2.Controls.Add(this.pictureBox7);
|
||||
this.panel2.Location = new System.Drawing.Point(3, 2);
|
||||
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(312, 263);
|
||||
this.panel2.TabIndex = 8;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatAppearance.BorderSize = 0;
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button1.Image = global::compabetov2.Properties.Resources.Menui1;
|
||||
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button1.Location = new System.Drawing.Point(3, 269);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button1.Size = new System.Drawing.Size(312, 114);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Menú";
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatAppearance.BorderSize = 0;
|
||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi;
|
||||
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button2.Location = new System.Drawing.Point(3, 387);
|
||||
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button2.Size = new System.Drawing.Size(312, 114);
|
||||
this.button2.TabIndex = 9;
|
||||
this.button2.Text = "Estadisticas";
|
||||
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatAppearance.BorderSize = 0;
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button3.Image = global::compabetov2.Properties.Resources.productoi;
|
||||
this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button3.Location = new System.Drawing.Point(3, 505);
|
||||
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button3.Size = new System.Drawing.Size(312, 114);
|
||||
this.button3.TabIndex = 10;
|
||||
this.button3.Text = "Productos";
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatAppearance.BorderSize = 0;
|
||||
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button5.Image = global::compabetov2.Properties.Resources.sesionc;
|
||||
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button5.Location = new System.Drawing.Point(3, 623);
|
||||
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button5.Size = new System.Drawing.Size(312, 114);
|
||||
this.button5.TabIndex = 12;
|
||||
this.button5.Text = "Salir";
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.BackgroundImage = global::compabetov2.Properties.Resources.rec;
|
||||
this.flowLayoutPanel1.Controls.Add(this.panel2);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button1);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button2);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button3);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button5);
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, -2);
|
||||
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061);
|
||||
this.flowLayoutPanel1.TabIndex = 8;
|
||||
//
|
||||
// personalPanel
|
||||
//
|
||||
this.personalPanel.Location = new System.Drawing.Point(460, 308);
|
||||
this.personalPanel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.personalPanel.Name = "personalPanel";
|
||||
this.personalPanel.Size = new System.Drawing.Size(1212, 553);
|
||||
this.personalPanel.TabIndex = 9;
|
||||
this.personalPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.flowLayoutPanel3_Paint);
|
||||
//
|
||||
// lblhora
|
||||
//
|
||||
this.lblhora.AutoSize = true;
|
||||
this.lblhora.Font = new System.Drawing.Font("Microsoft Sans Serif", 60F);
|
||||
this.lblhora.ForeColor = System.Drawing.Color.MediumBlue;
|
||||
this.lblhora.Location = new System.Drawing.Point(868, 80);
|
||||
this.lblhora.Name = "lblhora";
|
||||
this.lblhora.Size = new System.Drawing.Size(445, 113);
|
||||
this.lblhora.TabIndex = 11;
|
||||
this.lblhora.Text = "Personal";
|
||||
this.lblhora.Click += new System.EventHandler(this.lblhora_Click);
|
||||
//
|
||||
// empleadoBindingSource
|
||||
//
|
||||
this.empleadoBindingSource.DataSource = typeof(compabetov2.database.modelos.Empleado);
|
||||
//
|
||||
// conexionBindingSource
|
||||
//
|
||||
this.conexionBindingSource.DataSource = typeof(compabetov2.database.Conexion);
|
||||
//
|
||||
// btnAgregar
|
||||
//
|
||||
this.btnAgregar.Location = new System.Drawing.Point(984, 220);
|
||||
this.btnAgregar.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnAgregar.Name = "btnAgregar";
|
||||
this.btnAgregar.Size = new System.Drawing.Size(167, 43);
|
||||
this.btnAgregar.TabIndex = 12;
|
||||
this.btnAgregar.Text = "Agregar";
|
||||
this.btnAgregar.UseVisualStyleBackColor = true;
|
||||
this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click);
|
||||
//
|
||||
// personal
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1827, 922);
|
||||
this.Controls.Add(this.btnAgregar);
|
||||
this.Controls.Add(this.lblhora);
|
||||
this.Controls.Add(this.personalPanel);
|
||||
this.Controls.Add(this.flowLayoutPanel1);
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.Name = "personal";
|
||||
this.Text = "personal";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.personal_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.empleadoBindingSource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.conexionBindingSource)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBox7;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||
private System.Windows.Forms.BindingSource conexionBindingSource;
|
||||
private System.Windows.Forms.BindingSource empleadoBindingSource;
|
||||
private System.Windows.Forms.FlowLayoutPanel personalPanel;
|
||||
private System.Windows.Forms.Label lblhora;
|
||||
private System.Windows.Forms.Button btnAgregar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,256 @@
|
||||
using compabetov2.database;
|
||||
using compabetov2.database.modelos;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
public partial class personal : Form
|
||||
{
|
||||
List<Empleado> empleados;
|
||||
private LoginModel loginPrincipal;
|
||||
public personal(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
llenarPanel();
|
||||
this.loginPrincipal = loginPrincipal;
|
||||
}
|
||||
|
||||
public void llenarPanel()
|
||||
{
|
||||
personalPanel.Controls.Clear();
|
||||
empleados = service.conseguirEmpleados();
|
||||
|
||||
foreach(Empleado empleado in empleados)
|
||||
{
|
||||
TableLayoutPanel empleadoLayout = new TableLayoutPanel();
|
||||
empleadoLayout.RowCount = 1;
|
||||
empleadoLayout.ColumnCount = 2;
|
||||
empleadoLayout.Height = 100;
|
||||
empleadoLayout.Width = 900;
|
||||
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;
|
||||
|
||||
TableLayoutPanel infoEmpleado = new TableLayoutPanel();
|
||||
infoEmpleado.RowCount = 1;
|
||||
infoEmpleado.ColumnCount = 2;
|
||||
infoEmpleado.Dock = DockStyle.Fill;
|
||||
|
||||
Label idEmpleado = new Label();
|
||||
idEmpleado.Text = empleado.idempleado.ToString();
|
||||
idEmpleado.BackColor = Color.FromArgb(82, 82, 82);
|
||||
idEmpleado.ForeColor = Color.White;
|
||||
idEmpleado.AutoSize = true;
|
||||
idEmpleado.Dock = DockStyle.Left;
|
||||
|
||||
PictureBox imgEmpleado = new PictureBox();
|
||||
imgEmpleado.Dock = DockStyle.Fill;
|
||||
string rutaImg = empleado.img.Equals("") ?
|
||||
Path.Combine(Application.StartupPath, "Resources", "usuarios", "usuarioAnonimo.png") :
|
||||
Path.Combine(Application.StartupPath, "Resources", "usuarios", empleado.img);
|
||||
imgEmpleado.Image = Image.FromFile(rutaImg);
|
||||
imgEmpleado.BackgroundImageLayout = ImageLayout.Stretch;
|
||||
imgEmpleado.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
imgEmpleado.Controls.Add(idEmpleado);
|
||||
|
||||
Label nombreEmpleado = new Label();
|
||||
nombreEmpleado.Dock = DockStyle.Fill;
|
||||
nombreEmpleado.Text = empleado.nombre;
|
||||
nombreEmpleado.Font = new Font(nombreEmpleado.Font.FontFamily, 16);
|
||||
nombreEmpleado.TextAlign = ContentAlignment.MiddleLeft;
|
||||
|
||||
TableLayoutPanel panelBotones = new TableLayoutPanel();
|
||||
panelBotones.RowCount = 1;
|
||||
panelBotones.ColumnCount = 4;
|
||||
panelBotones.Dock = DockStyle.Fill;
|
||||
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";
|
||||
btnVer.Dock = DockStyle.Fill;
|
||||
btnVer.FlatStyle = FlatStyle.Flat;
|
||||
btnVer.FlatAppearance.BorderSize = 0;
|
||||
btnVer.BackColor = Color.FromArgb(33, 90, 255);
|
||||
btnVer.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
btnVer.ForeColor = Color.White;
|
||||
btnVer.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
string informacion = $"Nombre: {empleado.nombre} {empleado.apellidos}\nCalle: {empleado.calle}\nColonia: {empleado.colonia}\n" +
|
||||
$"Codigo postal: {empleado.cp}\nNumero Exterior: {empleado.no_ext}\nNumero Interior: {empleado.no_int}\nReferencia: {empleado.referencia}" +
|
||||
$"\nFecha de nacimiento: {empleado.fecha_nac}\nTelefono: {empleado.telefono}";
|
||||
MessageBox.Show(informacion,"Informacion");
|
||||
});
|
||||
|
||||
Button btnEditar = new Button();
|
||||
btnEditar.Text = "Editar";
|
||||
btnEditar.Dock = DockStyle.Fill;
|
||||
btnEditar.FlatStyle = FlatStyle.Flat;
|
||||
btnEditar.FlatAppearance.BorderSize = 0;
|
||||
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";
|
||||
btnEliminar.BackColor = Color.Red;
|
||||
btnEliminar.Dock = DockStyle.Fill;
|
||||
btnEliminar.FlatStyle = FlatStyle.Flat;
|
||||
btnEliminar.FlatAppearance.BorderSize = 0;
|
||||
btnEliminar.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
btnEliminar.ForeColor = Color.White;
|
||||
btnEliminar.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = MessageBox.Show($"¿Está seguro de que desea eliminar a {empleado.nombre}?",
|
||||
"Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
if (service.eliminarEmpleado(empleado))
|
||||
{
|
||||
llenarPanel();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Button btnLogin = new Button();
|
||||
btnLogin.Text = "Login";
|
||||
btnLogin.Dock = DockStyle.Fill;
|
||||
btnLogin.FlatStyle = FlatStyle.Flat;
|
||||
btnLogin.FlatAppearance.BorderSize = 0;
|
||||
btnLogin.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
if(empleado.fkIdLogin == -1) {
|
||||
|
||||
btnLogin.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
AgregarLogin agregarLogin = new AgregarLogin(this, empleado.idempleado);
|
||||
agregarLogin.Show();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
btnLogin.BackColor = Color.Yellow;
|
||||
btnLogin.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
Confirmacion pregunta = new Confirmacion(empleado,this);
|
||||
pregunta.Show();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
infoEmpleado.Controls.Add(imgEmpleado,0,0);
|
||||
infoEmpleado.Controls.Add(nombreEmpleado,1,0);
|
||||
|
||||
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);
|
||||
personalPanel.Controls.Add(empleadoLayout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void label1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button6_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void personal_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button7_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void lblhora_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void flowLayoutPanel3_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnAgregar_Click(object sender, EventArgs e)
|
||||
{
|
||||
AgregarEmpleado agregarEmpleado = new AgregarEmpleado(this);
|
||||
agregarEmpleado.Show();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
// Cerrar el formulario de ventas
|
||||
this.Close();
|
||||
|
||||
// Verificar si ya hay una instancia del formulario principal
|
||||
MenuPrincipal menuprincipalForm = Application.OpenForms.OfType<MenuPrincipal>().FirstOrDefault();
|
||||
|
||||
if (menuprincipalForm == null)
|
||||
{
|
||||
// Si no hay una instancia, crear una nueva
|
||||
menuprincipalForm = new MenuPrincipal(loginPrincipal);
|
||||
|
||||
// Establecer el formulario principal como el formulario MDI padre
|
||||
menuprincipalForm.MdiParent = this.MdiParent;
|
||||
|
||||
// Mostrar el formulario principal
|
||||
menuprincipalForm.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Si ya hay una instancia, simplemente llevarlo al frente
|
||||
menuprincipalForm.BringToFront();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="empleadoBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>197, 17</value>
|
||||
</metadata>
|
||||
<metadata name="conexionBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>105</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Generated
+91
@@ -0,0 +1,91 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class Confirmacion
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(23, 25);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(342, 20);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "¿Desea modificar o eliminar el Inicio de sesion?";
|
||||
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
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(27, 67);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(209, 35);
|
||||
this.button1.TabIndex = 1;
|
||||
this.button1.Text = "Modificar contraseña";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button2.Location = new System.Drawing.Point(242, 67);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(123, 35);
|
||||
this.button2.TabIndex = 2;
|
||||
this.button2.Text = "Eliminar";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// Confirmacion
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(380, 114);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "Confirmacion";
|
||||
this.Text = "Confirmacion";
|
||||
this.Load += new System.EventHandler(this.preguntaLogin_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
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 Confirmacion : Form
|
||||
{
|
||||
private Empleado empleado;
|
||||
private personal ventanaPadre;
|
||||
public Confirmacion(Empleado empleado, personal ventanaPadre)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.empleado = empleado;
|
||||
this.ventanaPadre = ventanaPadre;
|
||||
}
|
||||
|
||||
private void preguntaLogin_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void label1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
ModificarContra modificarContra = new ModificarContra(empleado);
|
||||
modificarContra.Show();
|
||||
Close();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(service.eliminarLogin(empleado))
|
||||
{
|
||||
ventanaPadre.llenarPanel();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user