예제 #1
0
        private void FormMenu_Load(object sender, EventArgs e)
        {
            if (perfil == "Administrador")
            {
                pictureBox6.Visible = true;
                label6.Visible      = true;
                pictureBox1.Visible = true;
                label1.Visible      = true;
                pictureBox2.Visible = true;
                label2.Visible      = true;
                pictureBox5.Visible = true;
                label5.Visible      = true;
                pictureBox3.Visible = true;
                label3.Visible      = true;
            }
            if (perfil == "Secretaria")
            {
                pictureBox6.Visible  = true;
                label6.Visible       = true;
                pictureBox1.Visible  = true;
                label1.Visible       = true;
                pictureBox2.Visible  = true;
                label2.Visible       = true;
                pictureBox3.Visible  = false;
                label3.Visible       = false;
                pictureBox5.Visible  = false;
                label5.Visible       = false;
                pictureBox1.Location = new Point(74, 90);
                label1.Location      = new Point(80, 67);
                pictureBox2.Location = new Point(427, 90);
                label2.Location      = new Point(446, 67);
                this.Size            = new Size(577, 337);
            }
            if (perfil == "Cajero")
            {
                pictureBox6.Visible  = true;
                label6.Visible       = true;
                pictureBox1.Visible  = true;
                label1.Visible       = true;
                pictureBox2.Visible  = true;
                label2.Visible       = true;
                pictureBox3.Visible  = true;
                label5.Visible       = false;
                pictureBox3.Location = new Point(74, 90);
                label3.Location      = new Point(80, 67);
                this.Size            = new Size(418, 421);
            }
            PPerfil instancia = new PPerfil();

            label4.Text = instancia.devolverPerfil();

            PCedula instancia22 = new PCedula();

            label7.Text = instancia22.compartir();
        }
예제 #2
0
        private void PinventarioPren_Load(object sender, EventArgs e)
        {
            PPerfil instancia1 = new PPerfil();

            label5.Text = instancia1.devolverPerfil();

            PCedula instancia2 = new PCedula();

            label4.Text = instancia2.compartir();

            LGestionArticulo instancia3 = new LGestionArticulo();
            DataTable        tabla      = new DataTable();

            tabla = instancia3.LConsultar();//invocacion
            dataGridView2.DataSource = tabla;
            if (tabla.Rows.Count == 0)
            {
                MessageBox.Show("Sin datos de consulta");
            }
        }
예제 #3
0
        private void PRegistroempleado_Load(object sender, EventArgs e)
        {
            PPerfil instancia1 = new PPerfil();

            label12.Text = instancia1.devolverPerfil();

            PCedula instancia2 = new PCedula();

            label13.Text = instancia2.compartir();

            LGestionUsuario instancia3 = new LGestionUsuario();
            DataTable       tabla      = new DataTable();

            tabla           = instancia3.Lconsultar();//invocacion
            dgb1.DataSource = tabla;
            if (tabla.Rows.Count == 0)
            {
                MessageBox.Show("Sin datos de consulta");
            }
        }
예제 #4
0
        private void PGestionfactura_Load(object sender, EventArgs e)
        {
            PPerfil instancia1 = new PPerfil();

            label1.Text = instancia1.devolverPerfil();

            PCedula instancia2 = new PCedula();

            label4.Text = instancia2.compartir();

            LGestionFactura instancia4 = new LGestionFactura();
            DataTable       tabla      = new DataTable();

            tabla = instancia4.Lconsultar();//invocacion
            dataGridView1.DataSource = tabla;
            if (tabla.Rows.Count == 0)
            {
                MessageBox.Show("Sin datos de consulta");
            }
        }