示例#1
0
 //---Xử lý hẹn khám xét nghiệm
 public bool AddHen(HenXN bn)
 {
     try
     {
         db.HenXNs.InsertOnSubmit(bn);
         db.SubmitChanges();
     }
     catch (Exception ex)
     {
         return(false);
     }
     return(true);
 }
示例#2
0
        public bool XoaLichHen(int id) // Xóa lịch hẹn sau khi thêm XN
        {
            HenXN hen = db.HenXNs.Where(x => x.ID == id).SingleOrDefault();

            db.HenXNs.DeleteOnSubmit(hen);
            try
            {
                db.SubmitChanges();
            }
            catch (Exception ex)
            { return(false); }
            return(true);
        }
示例#3
0
 private void detach_HenXNs(HenXN entity)
 {
     this.SendPropertyChanging();
     entity.BenhNhan = null;
 }
示例#4
0
 private void attach_HenXNs(HenXN entity)
 {
     this.SendPropertyChanging();
     entity.BenhNhan = this;
 }
示例#5
0
 partial void DeleteHenXN(HenXN instance);
示例#6
0
 partial void UpdateHenXN(HenXN instance);
示例#7
0
 partial void InsertHenXN(HenXN instance);