Exemplo n.º 1
0
        private void btnSubmitSemi_Click(object sender, EventArgs e)
        {
            //Compute Elim and Load Record
            PreElimination score = new PreElimination();

            Compute_PreElim();

            for (int i = 0; i < dgvSemiFinal.Rows.Count; i++)
            {
                score.Can_no           = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[1].Value.ToString());
                score.Beauty_face_body = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[2].Value.ToString());
                score.Talent           = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[3].Value.ToString());
                score.Swimsuit         = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[4].Value.ToString());
                score.Gown             = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[5].Value.ToString());
                score.Overall_impact   = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[6].Value.ToString());
                score.Total            = string.Format("{0:0.00}", dgvSemiFinal.Rows[i].Cells[7].Value.ToString());

                //MessageBox.Show(dgvSemiFinal.Rows[i].Cells[7].Value.ToString());
                score.Update();
            }

            util.LoadDataTable(dgvSemiFinal, "pre_elim");
            Desgin_Elimination();
            MessageBox.Show("Recorde Updated!", "Tabulation System", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Exemplo n.º 2
0
 private void Submit_Over_All()
 {
     //Submit Score to database
     for (int i = 0; i < dgvPreElim.Rows.Count; i++)
     {
         for (int y = 21; y <= 21; y++)
         {
             PreElimination elim = new PreElimination();
             elim.Can_no         = dgvPreElim.Rows[i].Cells[1].Value.ToString();
             elim.Overall_impact = dgvPreElim.Rows[i].Cells[y].Value.ToString();
             elim.Update_Over_All();
         }
     }
 }
Exemplo n.º 3
0
 private void Submit_LongGown()
 {
     //Submit Score to database
     for (int i = 0; i < dgvPreElim.Rows.Count; i++)
     {
         for (int y = 20; y <= 20; y++)
         {
             PreElimination elim = new PreElimination();
             elim.Can_no = dgvPreElim.Rows[i].Cells[1].Value.ToString();
             elim.Gown   = dgvPreElim.Rows[i].Cells[y].Value.ToString();
             elim.Update_Long_Gown();
         }
     }
 }