private void Cargar_Listados()
        {
            DataTable Dt = new DataTable();

            Datos_Cargo Funcion_C = new Datos_Cargo();

            Funcion_C.Mostrar_Cargo(ref Dt);

            this.cbx_Cargo.DataSource = Dt;

            this.cbx_Cargo.DisplayMember = "Cargo";


            DataTable Dt2 = new DataTable();

            Datos_CC Funcion_CC = new Datos_CC();

            Funcion_CC.Mostrar_CC(ref Dt2);

            this.cbx_CC.DataSource = Dt2;

            this.cbx_CC.DisplayMember = "Centro_de_Costo";


            DataTable Dt3 = new DataTable();

            Datos_Super Funcion_S = new Datos_Super();

            Funcion_S.Mostrar_Supervisor(ref Dt3);

            this.cbx_Supervisor.DataSource = Dt3;

            this.cbx_Supervisor.DisplayMember = "Nombre_Completo";
        }
Exemple #2
0
        private void Mostrar_Cargo()
        {
            DataTable Dt = new DataTable();

            Datos_Cargo Funcion = new Datos_Cargo();

            Funcion.Mostrar_Cargo(ref Dt);

            this.DGV_Cargo.DataSource = Dt;

            Logica_DataTable.MultiLinea(ref this.DGV_Cargo);
        }
Exemple #3
0
        private void Buscar_Cargo()
        {
            DataTable Dt = new DataTable();

            Datos_Cargo Funcion = new Datos_Cargo();

            Funcion.Buscar_Cargo(ref Dt, this.txt_Cargo.Text);

            this.DGV_Cargo.DataSource = Dt;

            Logica_DataTable.MultiLinea(ref this.DGV_Cargo);
        }
Exemple #4
0
        private void Insertar_Cargo()
        {
            if (string.IsNullOrEmpty(this.txt_Cargo.Text) == false)
            {
                Logica_Cargo Parametros = new Logica_Cargo();

                Datos_Cargo Funcion = new Datos_Cargo();

                Parametros.Cargo = this.txt_Cargo.Text;

                if (Funcion.Insertar_Cargo(Parametros) == true)
                {
                    this.btn_Volver_Click(this, null);
                }
            }
            else
            {
                MessageBox.Show("Agregar un Cargo", "Falta el Cargo...", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }