예제 #1
0
 public bool insertPhieuNhap(string mpn, DateTime ngay)
 {
     try
     {
         phieunhap p = new phieunhap();
         p.mapn = mpn;
         p.ngaynhap = ngay;
         p.trangthai = false;
         p.Active = true;
         db.phieunhaps.InsertOnSubmit(p);
         db.SubmitChanges();
         return true;
     }
     catch
     {
         return false;
     }
 }
 partial void Updatephieunhap(phieunhap instance);
 partial void Deletephieunhap(phieunhap instance);
 partial void Insertphieunhap(phieunhap instance);