Example #1
0
 private void tsmiPuestos_Click(object sender, EventArgs e)
 {
     using (frmPuestos frmpuestos = new frmPuestos())
     {
         frmpuestos.MdiParent = this;
         frmpuestos.Show();
     }
 }
        //****************************************************************************************************
        //************** P U E S T O S ***********************************************************************
        //****************************************************************************************************
        private void puestoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                frmPuestos child = new frmPuestos();

                this.validaFormsDuplicados(child.GetType());

                child.MdiParent = this;

                child.Show();
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message, "Activos", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Example #3
0
        private void btnAgregaPuestoAlta_Click(object sender, EventArgs e)
        {
            try
            {
                frmPuestos form = new frmPuestos();

                form.ShowDialog();

                List <Modelos.Puestos> puestos = this._catalogosNegocio.getPuestos("A");

                // llena el catalogo de sucursales disponibles
                this.cmbPuestoAlta.DisplayMember = "nom_suc";
                this.cmbPuestoAlta.ValueMember   = "idPuesto";
                this.cmbPuestoAlta.DataSource    = puestos;
                this.cmbPuestoAlta.SelectedIndex = -1;
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message, "Personas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }