Ejemplo n.º 1
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);
     }
 }
Ejemplo n.º 2
0
        public IHttpActionResult GetTask(int id)
        {
            Task task = TasksBLL.Get(id);

            if (task == null)
            {
                return(NotFound());
            }

            return(Ok(task));
        }
Ejemplo n.º 3
0
        // GET: Tasks/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Task task = TasksBLL.Get(id);

            if (task == null)
            {
                return(HttpNotFound());
            }
            return(View(task));
        }
Ejemplo n.º 4
0
        // GET: Tasks/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Task task = TasksBLL.Get(id);

            if (task == null)
            {
                return(HttpNotFound());
            }
            ViewBag.id_list = new SelectList(db.List, "id_list", "name_list", task.id_list);
            return(View(task));
        }
Ejemplo n.º 5
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);
     }
 }
Ejemplo n.º 6
0
 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);
     }
 }
Ejemplo n.º 7
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)
            {
            }
        }
Ejemplo n.º 9
0
 // GET: api/Tasks
 public IQueryable <Task> GetTask()
 {
     return(TasksBLL.Get());
 }