예제 #1
0
 public FRM_Task_Table()
 {
     InitializeComponent();
     try
     {
         dgvTasks.DataSource = ClassTasks.selectTaskNotExecute(FRM_Main.Emp_id);
     }
     catch (Exception) { }
 }
예제 #2
0
 private void btnTaskNotExecute_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.notEXE;
     dgvTasks.DataSource     = ClassTasks.selectTaskNotExecute(FRM_Main.Emp_id);
     btnUpdateReport.Enabled = false;
 }
예제 #3
0
        private void btnAddReport_Click(object sender, EventArgs e)
        {
            if (rtxtDailyReport.Text.Equals(""))
            {
                MessageBox.Show("لا يمكن اضافة تقرير فارغ");
            }
            else
            {
                int i = ClassTasks.AddReportToTask(rtxtDailyReport.Text, DateTime.Now, int.Parse(txtTaskID.Text));
                dgvNotes.DataSource = ClassTasks.selectReportByID(int.Parse(txtTaskID.Text));
                int Upd_status = ClassTasks.update_Status(int.Parse(txtTaskID.Text), FRM_Main.ToDoEXE, DateTime.Now);

                rtxtDailyReport.Text = "";
                MessageBox.Show("تم حفظ التقرير بنجاح");
                dgvTasks.DataSource = ClassTasks.selectTaskNotExecute(FRM_Main.Emp_id);
            }
        }