コード例 #1
0
 private void btn_Click(object sender, EventArgs e)
 {
     work.EmployeeID = (int)cmb.SelectedValue;
     if (_workBLL.Update(work))
     {
         MessageBox.Show("İş Çalışana yönlendirilmiştir");
         this.Close();
         WorkList();
     }
 }
コード例 #2
0
        private void işiÜzerineAlToolStripMenuItem_Click(object sender, EventArgs e)
        {
            work.ID = (int)dgvWork.SelectedRows[0].Cells["ID"].Value;
            work    = _workBLL.Get(work.ID);
            DateTime date = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);

            if (work.StartDate == new DateTime(0001, 01, 01))
            {
                work.StartDate = date;
            }
            work.WorkStatusID = 7;
            if (_workBLL.Update(work))
            {
                MessageBox.Show("İş tarafınızca başlatılmıştır");
                Project project = new Project();
                project = _projectBLL.Get(work.ProjectID);
                if (project.StartDate == null)
                {
                    project.StartDate = work.StartDate;
                    _projectBLL.Update(project);
                }
            }
        }