permisos
This commit is contained in:
@@ -79,8 +79,6 @@ namespace compabetov2
|
||||
inventario inventario = new inventario(loginPrincipal);
|
||||
inventario.Show();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void lblfecha_Click(object sender, EventArgs e)
|
||||
@@ -99,19 +97,35 @@ namespace compabetov2
|
||||
|
||||
// Mostrar el formulario de ventas
|
||||
|
||||
|
||||
if (loginPrincipal.tipo.Equals("empleado"))
|
||||
{
|
||||
MessageBox.Show("Usted no tiene permisos de acceder a este apartado");
|
||||
}
|
||||
else
|
||||
{
|
||||
personal personal = new personal(loginPrincipal);
|
||||
|
||||
personal.Show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void pictureBox3_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (loginPrincipal.tipo.Equals("empleado"))
|
||||
{
|
||||
MessageBox.Show("Usted no tiene permisos de acceder a este apartado");
|
||||
}
|
||||
else
|
||||
{
|
||||
envios envios = new envios(loginPrincipal);
|
||||
|
||||
envios.Show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -120,7 +134,6 @@ namespace compabetov2
|
||||
{
|
||||
cuentas cuentas = new cuentas(loginPrincipal);
|
||||
cuentas.Show();
|
||||
;
|
||||
}
|
||||
|
||||
private void pictureBox6_Click(object sender, EventArgs e)
|
||||
@@ -170,11 +183,20 @@ namespace compabetov2
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (loginPrincipal.tipo.Equals("empleado"))
|
||||
{
|
||||
MessageBox.Show("Usted no tiene permisos de acceder a este apartado");
|
||||
}
|
||||
else
|
||||
{
|
||||
Estadiscticas estadiscticas = new Estadiscticas();
|
||||
estadiscticas.Show();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user