Ejemplo n.º 1
0
 private void btn_pass_Click(object sender, EventArgs e)
 {
     if (MessageBoxEx.Show("确定审批通过?", "操作确认", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
     {
         TaskCache.updateTaskState(taskInfoId, (int)TaskStateEnum.Passed);
         MainFormAdapter.reloadTaskApproval();
         this.Close();
     }
 }
Ejemplo n.º 2
0
        private void btn_reject_Click(object sender, EventArgs e)
        {
            TaskReject tr = new AviationSafetyExperiment.TaskReject();

            if (tr.ShowDialog() == DialogResult.OK)
            {
                string remark = tr.rejectReason;
                TaskCache.updateTaskState(taskInfoId, (int)TaskStateEnum.Rejected, remark);
                MainFormAdapter.reloadTaskApproval();
                this.Close();
            }
        }