コード例 #1
0
 private void btnTaskToDo_Click(object sender, EventArgs e)
 {
     txtReportID.Text        = txtReportDate.Text = rtxtReportDiscreption.Text = "";
     dgvNotes.DataSource     = null;
     txtTaskID.Text          = txtTitle.Text = rtxtDiscreption.Text = txtDateCreated.Text = txtNameCreated.Text = TaskFilePass = "";
     btnAddReport.Enabled    = btnConfirmAndExe.Enabled = btnClickHere.Enabled = false;
     btnClicked              = FRM_Main.ToDoEXE;
     dgvTasks.DataSource     = ClassTasks.selectTaskToDoNowExecute(FRM_Main.Emp_id);
     btnUpdateReport.Enabled = false;
 }
コード例 #2
0
        private void btnConfirmAndExe_Click(object sender, EventArgs e)
        {
            int i = ClassTasks.update_Status(int.Parse(txtTaskID.Text), FRM_Main.DoneEXE, DateTime.Now);

            txtReportID.Text     = txtReportDate.Text = rtxtReportDiscreption.Text = "";
            dgvNotes.DataSource  = null;
            txtTaskID.Text       = txtTitle.Text = rtxtDiscreption.Text = txtDateCreated.Text = txtNameCreated.Text = TaskFilePass = "";
            btnAddReport.Enabled = btnConfirmAndExe.Enabled = btnClickHere.Enabled = false;
            dgvTasks.DataSource  = ClassTasks.selectTaskToDoNowExecute(FRM_Main.Emp_id);
            MessageBox.Show("تم الانتهاء من هذه المهمة و ترحيلها الى قائمة المهام المنجزة");
        }