Falta lo amarillo
This commit is contained in:
Generated
+12
-12
@@ -406,30 +406,30 @@
|
|||||||
this.Controls.Add(this.lbImg);
|
this.Controls.Add(this.lbImg);
|
||||||
this.Controls.Add(this.pictureBox2);
|
this.Controls.Add(this.pictureBox2);
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.pictureBox1);
|
||||||
this.Controls.Add(this.label12);
|
|
||||||
this.Controls.Add(this.cbEstado);
|
this.Controls.Add(this.cbEstado);
|
||||||
this.Controls.Add(this.label11);
|
|
||||||
this.Controls.Add(this.txtTelefono);
|
this.Controls.Add(this.txtTelefono);
|
||||||
this.Controls.Add(this.label10);
|
|
||||||
this.Controls.Add(this.dtFechaCon);
|
this.Controls.Add(this.dtFechaCon);
|
||||||
this.Controls.Add(this.label9);
|
|
||||||
this.Controls.Add(this.dtFechaNac);
|
this.Controls.Add(this.dtFechaNac);
|
||||||
this.Controls.Add(this.label8);
|
|
||||||
this.Controls.Add(this.label7);
|
|
||||||
this.Controls.Add(this.txtReferencia);
|
this.Controls.Add(this.txtReferencia);
|
||||||
this.Controls.Add(this.txtNoInt);
|
this.Controls.Add(this.txtNoInt);
|
||||||
this.Controls.Add(this.label6);
|
|
||||||
this.Controls.Add(this.txtNoExt);
|
this.Controls.Add(this.txtNoExt);
|
||||||
this.Controls.Add(this.label5);
|
|
||||||
this.Controls.Add(this.txtCp);
|
this.Controls.Add(this.txtCp);
|
||||||
this.Controls.Add(this.label4);
|
|
||||||
this.Controls.Add(this.txtColonia);
|
this.Controls.Add(this.txtColonia);
|
||||||
this.Controls.Add(this.label3);
|
|
||||||
this.Controls.Add(this.txtCalle);
|
this.Controls.Add(this.txtCalle);
|
||||||
this.Controls.Add(this.label2);
|
|
||||||
this.Controls.Add(this.label1);
|
|
||||||
this.Controls.Add(this.txtApellido);
|
this.Controls.Add(this.txtApellido);
|
||||||
this.Controls.Add(this.txtNombre);
|
this.Controls.Add(this.txtNombre);
|
||||||
|
this.Controls.Add(this.label12);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
this.DoubleBuffered = true;
|
this.DoubleBuffered = true;
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Name = "AgregarEmpleado1";
|
this.Name = "AgregarEmpleado1";
|
||||||
|
|||||||
Generated
+4
-5
@@ -1,4 +1,4 @@
|
|||||||
namespace compabetov2.Empleados
|
namespace compabetov2
|
||||||
{
|
{
|
||||||
partial class AgregarLogin1
|
partial class AgregarLogin1
|
||||||
{
|
{
|
||||||
@@ -186,20 +186,19 @@
|
|||||||
this.ControlBox = false;
|
this.ControlBox = false;
|
||||||
this.Controls.Add(this.label5);
|
this.Controls.Add(this.label5);
|
||||||
this.Controls.Add(this.label4);
|
this.Controls.Add(this.label4);
|
||||||
this.Controls.Add(this.label3);
|
|
||||||
this.Controls.Add(this.label2);
|
|
||||||
this.Controls.Add(this.label1);
|
|
||||||
this.Controls.Add(this.pictureBox2);
|
this.Controls.Add(this.pictureBox2);
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.pictureBox1);
|
||||||
this.Controls.Add(this.cbTipo);
|
this.Controls.Add(this.cbTipo);
|
||||||
this.Controls.Add(this.txtContraConf);
|
this.Controls.Add(this.txtContraConf);
|
||||||
this.Controls.Add(this.txtContra);
|
this.Controls.Add(this.txtContra);
|
||||||
this.Controls.Add(this.txtNombre);
|
this.Controls.Add(this.txtNombre);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
this.DoubleBuffered = true;
|
this.DoubleBuffered = true;
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Name = "AgregarLogin1";
|
this.Name = "AgregarLogin1";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Load += new System.EventHandler(this.AgregarLogin1_Load);
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using compabetov2.database.modelos;
|
using compabetov2.database;
|
||||||
using compabetov2.database;
|
using compabetov2.database.modelos;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@@ -10,23 +10,55 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace compabetov2.Empleados
|
namespace compabetov2
|
||||||
{
|
{
|
||||||
public partial class AgregarLogin1 : Form
|
public partial class AgregarLogin1: Form
|
||||||
{
|
{
|
||||||
personal ventanaPadre;
|
personal ventanaPadre;
|
||||||
int idEmpleado;
|
int idEmpleado;
|
||||||
public AgregarLogin1()
|
public AgregarLogin1(personal ventanaPadre, int idEmpleado)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.ventanaPadre = ventanaPadre;
|
this.ventanaPadre = ventanaPadre;
|
||||||
this.idEmpleado = idEmpleado;
|
this.idEmpleado = idEmpleado;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnAceptar_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AgregarLogin1_Load(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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AgregarLogin_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -61,8 +93,8 @@ namespace compabetov2.Empleados
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pictureBox1_Click(object sender, EventArgs e)
|
private void pictureBox1_Click(object sender, EventArgs e) {
|
||||||
{
|
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+14
-14
@@ -361,7 +361,7 @@
|
|||||||
this.lbImg.BackColor = System.Drawing.Color.Transparent;
|
this.lbImg.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.lbImg.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.lbImg.Font = new System.Drawing.Font("Poppins", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.lbImg.ForeColor = System.Drawing.Color.Transparent;
|
this.lbImg.ForeColor = System.Drawing.Color.Transparent;
|
||||||
this.lbImg.Location = new System.Drawing.Point(141, 543);
|
this.lbImg.Location = new System.Drawing.Point(653, 530);
|
||||||
this.lbImg.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
this.lbImg.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.lbImg.Name = "lbImg";
|
this.lbImg.Name = "lbImg";
|
||||||
this.lbImg.Size = new System.Drawing.Size(113, 40);
|
this.lbImg.Size = new System.Drawing.Size(113, 40);
|
||||||
@@ -371,7 +371,7 @@
|
|||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
this.button1.Font = new System.Drawing.Font("Poppins", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.button1.Font = new System.Drawing.Font("Poppins", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.button1.Location = new System.Drawing.Point(26, 541);
|
this.button1.Location = new System.Drawing.Point(660, 564);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
this.button1.Size = new System.Drawing.Size(103, 46);
|
this.button1.Size = new System.Drawing.Size(103, 46);
|
||||||
this.button1.TabIndex = 29;
|
this.button1.TabIndex = 29;
|
||||||
@@ -392,30 +392,30 @@
|
|||||||
this.Controls.Add(this.lbImg);
|
this.Controls.Add(this.lbImg);
|
||||||
this.Controls.Add(this.pictureBox2);
|
this.Controls.Add(this.pictureBox2);
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.pictureBox1);
|
||||||
this.Controls.Add(this.label12);
|
|
||||||
this.Controls.Add(this.cbEstado);
|
this.Controls.Add(this.cbEstado);
|
||||||
this.Controls.Add(this.label11);
|
|
||||||
this.Controls.Add(this.txtTelefono);
|
this.Controls.Add(this.txtTelefono);
|
||||||
this.Controls.Add(this.label10);
|
|
||||||
this.Controls.Add(this.dtFechaCon);
|
this.Controls.Add(this.dtFechaCon);
|
||||||
this.Controls.Add(this.label9);
|
|
||||||
this.Controls.Add(this.dtFechaNac);
|
this.Controls.Add(this.dtFechaNac);
|
||||||
this.Controls.Add(this.label8);
|
|
||||||
this.Controls.Add(this.label7);
|
|
||||||
this.Controls.Add(this.txtReferencia);
|
this.Controls.Add(this.txtReferencia);
|
||||||
this.Controls.Add(this.txtNoInt);
|
this.Controls.Add(this.txtNoInt);
|
||||||
this.Controls.Add(this.label6);
|
|
||||||
this.Controls.Add(this.txtNoExt);
|
this.Controls.Add(this.txtNoExt);
|
||||||
this.Controls.Add(this.label5);
|
|
||||||
this.Controls.Add(this.txtCp);
|
this.Controls.Add(this.txtCp);
|
||||||
this.Controls.Add(this.label4);
|
|
||||||
this.Controls.Add(this.txtColonia);
|
this.Controls.Add(this.txtColonia);
|
||||||
this.Controls.Add(this.label3);
|
|
||||||
this.Controls.Add(this.txtCalle);
|
this.Controls.Add(this.txtCalle);
|
||||||
this.Controls.Add(this.label2);
|
|
||||||
this.Controls.Add(this.label1);
|
|
||||||
this.Controls.Add(this.txtApellido);
|
this.Controls.Add(this.txtApellido);
|
||||||
this.Controls.Add(this.txtNombre);
|
this.Controls.Add(this.txtNombre);
|
||||||
|
this.Controls.Add(this.label12);
|
||||||
|
this.Controls.Add(this.label11);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
this.DoubleBuffered = true;
|
this.DoubleBuffered = true;
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Name = "EditarEmpleado1";
|
this.Name = "EditarEmpleado1";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using compabetov2.database;
|
using compabetov2.database;
|
||||||
using compabetov2.database.modelos;
|
using compabetov2.database.modelos;
|
||||||
|
using compabetov2.Empleados;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@@ -105,7 +106,7 @@ namespace compabetov2
|
|||||||
btnEditar.ForeColor = Color.White;
|
btnEditar.ForeColor = Color.White;
|
||||||
btnEditar.Click += new EventHandler(delegate (object sender, EventArgs e)
|
btnEditar.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
EditarEmpleado editarEmpleado = new EditarEmpleado(empleado,this);
|
EditarEmpleado1 editarEmpleado = new EditarEmpleado1(empleado,this);
|
||||||
editarEmpleado.Show();
|
editarEmpleado.Show();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -140,7 +141,7 @@ namespace compabetov2
|
|||||||
|
|
||||||
btnLogin.Click += new EventHandler(delegate (object sender, EventArgs e)
|
btnLogin.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AgregarLogin agregarLogin = new AgregarLogin(this, empleado.idempleado);
|
AgregarLogin1 agregarLogin = new AgregarLogin1(this, empleado.idempleado);
|
||||||
agregarLogin.Show();
|
agregarLogin.Show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -220,8 +221,11 @@ namespace compabetov2
|
|||||||
|
|
||||||
private void btnAgregar_Click(object sender, EventArgs e)
|
private void btnAgregar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AgregarEmpleado agregarEmpleado = new AgregarEmpleado(this);
|
AgregarEmpleado1 agregarEmpleado = new AgregarEmpleado1(this);
|
||||||
agregarEmpleado.Show();
|
agregarEmpleado.Show();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
c506c9a4722d6b00cf81dc1234eccc10baea5625c04c57095cc6ec95193a0f16
|
c3fae808d3f85efa42b7f49a590857079d7d8c73d25abc018ba096b666adc8e2
|
||||||
|
|||||||
@@ -118,3 +118,7 @@ C:\Users\carsu\source\repos\compabetoOG\bin\Debug\SqlServerTypes\x64\SqlServerSp
|
|||||||
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\SqlServerTypes\x86\msvcr120.dll
|
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\SqlServerTypes\x86\msvcr120.dll
|
||||||
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\SqlServerTypes\x86\SqlServerSpatial140.dll
|
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\SqlServerTypes\x86\SqlServerSpatial140.dll
|
||||||
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\Microsoft.SqlServer.Types.dll
|
C:\Users\carsu\source\repos\compabetoOG\bin\Debug\Microsoft.SqlServer.Types.dll
|
||||||
|
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.Empleados.AgregarEmpleado1.resources
|
||||||
|
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.Empleados.AgregarLogin1.resources
|
||||||
|
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.Empleados.EditarEmpleado1.resources
|
||||||
|
C:\Users\Googl\Documents\compabetoOG\obj\Debug\compabetov2.AgregarLogin1.resources
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user