Example #1
0
 private void BtnO_Eliminar_Click(object sender, EventArgs e)
 {
     B_ObjObjective = new B_Objective();
     B_ObjObjective.B_DeleteObjective(CreateObjetive());
     O_LoadDataGridView();
     O_CleanData();
 }
Example #2
0
        //TabControl Objetivos
        private void BtnO_Agregar_Click(object sender, EventArgs e)
        {
            B_ObjObjective = new B_Objective();
            bool ActiveObjective = (CmbxO_Activo.Text == "Activo") ? true : false;

            ObjObjetive               = new E_Objetivo();
            ObjObjetive.Objetivo      = TxtObjetivo.Text = TxtObjetivo.Text.Trim();
            ObjObjetive.IdIndicador   = Convert.ToInt32(CmbxO_Indicador.SelectedValue);
            ObjObjetive.IdPerspectiva = Convert.ToInt32(CmbxO_Perspectiva.SelectedValue);
            ObjObjetive.Activo        = ActiveObjective;
            if (B_ObjObjective.B_CreateObjetive(ObjObjetive))
            {
                //MessageBox.Show("Objetivo registrado correctamente");
                O_LoadDataGridView();
                O_CleanData();
                LoadCmbxM_Objectives();
                LoadCmbxCOObjectives();
            }
            else
            {
                MessageBox.Show("Objetivo no registrado");
            }
            //LoadDataGridView();
            //CleanData();
        }
Example #3
0
 private void BtnO_Modificar_Click(object sender, EventArgs e)
 {
     B_ObjObjective = new B_Objective();
     B_ObjObjective.B_UpdateObjective(CreateObjetive());
     O_LoadDataGridView();
     O_CleanData();
 }
Example #4
0
        public async void LoadCmbxO_Indicators()
        {
            B_ObjObjective = new B_Objective();

            CmbxO_Indicador.DisplayMember = "Indicador";
            CmbxO_Indicador.ValueMember   = "IdIndicador";
            CmbxO_Indicador.DataSource    = await B_ObjObjective.B_GetO_Indicators(IdBalancedScorecard);
        }
Example #5
0
 public async void O_LoadDataGridView()
 {
     ListObjective  = new List <ObjeDg>();
     B_ObjObjective = new B_Objective();
     foreach (E_ObjectivesDg item in await B_ObjObjective.QueryToObjectiveDg(IdBalancedScorecard))
     {
         ObjeDg ResultDg = new ObjeDg();
         ResultDg.IdObjetive  = item.IdObjective;
         ResultDg.Perspective = item.Perspective;
         ResultDg.Objective   = item.Objetive;
         ResultDg.Indicator   = item.Indicator;
         ResultDg.Value       = item.Value;
         ResultDg.MaxMin      = item.MaxMin;
         ResultDg.Active      = (item.Active == true) ? "Si" : "No";
         ListObjective.Add(ResultDg);
     }
     DtgvObjectives.DataSource = ListObjective.ToList();
 }