示例#1
0
        //where s.SauInHoanThanh == null && s.BoPhan == "SAU IN"  || s.BoPhan == "OFFSET" || s.BoPhan == "KỸ THUẬT SỐ"
        public void check()
        {
            var db  = new MyDBContextDataContext();
            var lst = (from s in db.LoadData_DonSanXuat_QuanLyDonHang_NghiepVu() where s.NghiepVu_XuongDon == null select s).ToList();

            foreach (var item in lst)
            {
                if (item.NghiepVu_XuongDon != null)
                {
                    item.NghiepVu_XuongDon = "True";
                }
                if (item.ThietKeNhan != null)
                {
                    item.ThietKeNhan = "True";
                }
                if (item.ThietKeHoanThanh != null)
                {
                    item.ThietKeHoanThanh = "True";
                }
                if (item.HoanThanh != null)
                {
                    item.HoanThanh = "True";
                }
            }
            procQuanLyDonhang_ViewGridControl.DataSource = lst;
            //procQuanLyDonhang_ViewGridControl.DataSource = dsxCtr.LoadData_DonSanXuat_QuanLyDonHang_NghiepVu();
        }
示例#2
0
 private void hiendonhang_CheckedChanged(object sender, EventArgs e)
 {
     if (hiendonhang.Checked == true)
     {
         btnThuHoiDon.Enabled = true;
         btnXacNhan.Enabled   = false;
         var db  = new MyDBContextDataContext();
         var lst = db.LoadData_DonSanXuat_QuanLyDonHang_NghiepVu().ToList();
         foreach (var item in lst)
         {
             if (item.NghiepVu_XuongDon != null)
             {
                 item.NghiepVu_XuongDon = "True";
             }
             if (item.ThietKeNhan != null)
             {
                 item.ThietKeNhan = "True";
             }
             if (item.ThietKeHoanThanh != null)
             {
                 item.ThietKeHoanThanh = "True";
             }
             if (item.HoanThanh != null)
             {
                 item.HoanThanh = "True";
             }
         }
         procQuanLyDonhang_ViewGridControl.DataSource = lst;
     }
     else
     {
         frmNghiepVu_Load(sender, e);
         btnXacNhan.Enabled = true;
     }
 }
示例#3
0
 private void procQuanLyDonhang_ViewGridControl_Click(object sender, EventArgs e)
 {
     try
     {
         databinding();
         var db  = new MyDBContextDataContext();
         var lst = (from s in db.LoadData_DonSanXuat_QuanLyDonHang_NghiepVu() where s.IDQuanLyDonHang == sCDTextEdit.Text select s).Single();
         xacnhan.Text = lst.NghiepVu_XuongDon;
     }
     catch { }
 }