예제 #1
0
 public bool insertChiTiet(THAMDUDAIHOI data)
 {
     try
     {
         using (QLHTDOANVIENDataContext db = new QLHTDOANVIENDataContext())
         {
             db.THAMDUDAIHOIs.InsertOnSubmit(data);
             db.SubmitChanges();
             return(true);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message.ToString());
     }
     return(false);
 }
예제 #2
0
        public bool setStatus(Guid idDV, Guid idDH)
        {
            THAMDUDAIHOI data = new THAMDUDAIHOI();

            try
            {
                using (QLHTDOANVIENDataContext db = new QLHTDOANVIENDataContext())
                {
                    data = db.THAMDUDAIHOIs.Where(p => p.MASODH == idDH && p.MASODV == idDV).SingleOrDefault();
                    if (data != null)
                    {
                        data.TRANGTHAI = true;
                        db.SubmitChanges();
                        return(true);
                    }
                }
            }
            catch (Exception)
            {
            }
            return(false);
        }
예제 #3
0
 private void detach_THAMDUDAIHOIs(THAMDUDAIHOI entity)
 {
     this.SendPropertyChanging();
     entity.DOANVIEN = null;
 }
예제 #4
0
 partial void DeleteTHAMDUDAIHOI(THAMDUDAIHOI instance);
예제 #5
0
 partial void UpdateTHAMDUDAIHOI(THAMDUDAIHOI instance);
예제 #6
0
 partial void InsertTHAMDUDAIHOI(THAMDUDAIHOI instance);
예제 #7
0
 private void attach_THAMDUDAIHOIs(THAMDUDAIHOI entity)
 {
     this.SendPropertyChanging();
     entity.DAIHOI = this;
 }