Example #1
0
 public ActionResult Edit([Bind(Include = "id_task,title,descr,asigned_to,id_list")] Task task)
 {
     if (ModelState.IsValid)
     {
         TasksBLL.Update(task);
         return(RedirectToAction("Index"));
     }
     ViewBag.id_list = new SelectList(db.List, "id_list", "name_list", task.id_list);
     return(View(task));
 }
Example #2
0
 private void btnError_Click(object sender, EventArgs e)
 {
     try
     {
         Tasks task = _tasksBLL.Get(TaskId);
         task.StatusID = 2;
         if (_tasksBLL.Update(task))
         {
             MessageBox.Show("Hatalı İş Yazılım Geliştirme Departmanına Yollandı.");
         }
         else
         {
             MessageBox.Show("İş Yazılım Geliştirme Tarafına Yollanamadı.");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #3
0
        public IHttpActionResult PutTask(int id, Task task)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != task.id_task)
            {
                return(BadRequest());
            }

            TasksBLL.Update(task);

            return(StatusCode(HttpStatusCode.NoContent));
        }
Example #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         Tasks task = _taskBLL.Get(TaskId);
         task.EmployeeID = _employee.EmployeeID;
         if (_taskBLL.Update(task))
         {
             MessageBox.Show("İşi Üstünüze Aldınız.");
         }
         else
         {
             MessageBox.Show("İşi Üstünüze alamadınız!");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void btnFinishedTask_Click(object sender, EventArgs e)
 {
     try
     {
         Tasks task = _tasksBll.Get(TaskId);
         task.StatusID = 3;
         if (_tasksBll.Update(task))
         {
             MessageBox.Show("Bitirilen İş Değerlendirilmek Üzere Testera Gönderildi");
         }
         else
         {
             MessageBox.Show("İş Testera Aktarılamadı!");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         Tasks task = _tasksBLL.Get(TaskId);
         task.EmployeeID = employee.EmployeeID;
         task.StatusID   = 3;
         if (_tasksBLL.Update(task))
         {
             GetProject();
             GetTask(ProjectId);
             MessageBox.Show("İş Analiz Edilmiş Üzerinize Alınmıştır. İşin Yeni durumu Geliştirilecek olup Yazılım Geliştiriciler Artık İşe Müdahale edebilir.");
         }
         else
         {
             MessageBox.Show("İş Üzerinize Alınamayıp Durumu Değiştirilememiştir!");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                int idleTaskID = (int)dgvIdleTask.SelectedRows[0].Cells["TaskID"].Value;

                int status = rdbBeDeveloped.Checked == true ? 2 : 3;

                Tasks tasks = _tasksBLL.Get(idleTaskID);
                tasks.StatusID = status;
                if (_tasksBLL.Update(tasks))
                {
                    GetProjects();
                    MessageBox.Show("İşin Durumu Güncellenmiştir");
                }
                else
                {
                    MessageBox.Show("İşin Durumu Güncellenememiştir!");
                }
            }
            catch (Exception)
            {
            }
        }