private void bug_analysis_btn_update_Click(object sender, EventArgs e)
 {
     try
     {
         bug_update.Bug_id     = int.Parse(bug_ays_lbl_sel_id.Text.Trim());
         bug_update.Bug_reason = bug_ays_version_combo.SelectedIndex + 1;
         if (bug_update.Bug_reason == 0)
         {
             bug_update.Bug_reason = 1;
         }
         bug_update.Bug_analysis = bug_analysis_main_text.Text;
         bug_update.Bug_status   = 2;
         if (TableBug.Update_Bug(bug_update, TableBug.DEVOLOPER) == 1)
         {
             MessageBox.Show("提交成功");
             init_grid(global_status);
         }
         else
         {
             MessageBox.Show("提交系统维护中");
         }
     } catch (Exception ee)
     {
         MessageBox.Show("系统维护中");
     }
 }
Example #2
0
        private void bug_audit_btn_accompanished_Click(object sender, EventArgs e)
        {
            if (!is_enable)
            {
                MessageBox.Show("若要更新缺陷,请添加新的缺陷版本");
                return;
            }


            tableAuditBug.Bug_status = bug_cre_audit_status.SelectedIndex + 1;
            //tableAuditBug.Bug_description = bug_cre_audit_desc.Text;

            if (tableAuditBug.Bug_status == 3)
            {
                tableAuditBug.Bug_id = next_id_list[0];
                for (int i = 1; i < next_id_list.Count; i++)
                {
                    TableBug.Update_status_comp(next_id_list[i]);
                }
            }

            int result = TableBug.Update_Bug(tableAuditBug, TableBug.TESTER);

            if (result == 1)
            {
                MessageBox.Show("Bug审核完毕");
            }
            else if (result == 2)
            {
                MessageBox.Show("一个用例已经完成");
            }
            else if (result == 3)
            {
                MessageBox.Show("一个计划已经完成");
            }
            else if (result == 4)
            {
                MessageBox.Show("一个项目已经完成");
            }
            else
            {
                MessageBox.Show("系统维护中");
            }

            bug_cre_audit_desc.Clear();
            bug_cre_audit_analysis.Clear();
            bug_cre_audit_lbl_id.Text  = "";
            bug_audit_auditing_id.Text = "";
        }