public void Insert(int IdKho, int IdThuoc, long IdDonthuoc, long IdChitietDonthuoc, int SoluongThua) { TThuocThua item = new TThuocThua(); item.IdKho = IdKho; item.IdThuoc = IdThuoc; item.IdDonthuoc = IdDonthuoc; item.IdChitietDonthuoc = IdChitietDonthuoc; item.SoluongThua = SoluongThua; item.Save(UserName); }
public void Update(int IdKho, int IdThuoc, long IdDonthuoc, long IdChitietDonthuoc, int SoluongThua) { TThuocThua item = new TThuocThua(); item.MarkOld(); item.IsLoaded = true; item.IdKho = IdKho; item.IdThuoc = IdThuoc; item.IdDonthuoc = IdDonthuoc; item.IdChitietDonthuoc = IdChitietDonthuoc; item.SoluongThua = SoluongThua; item.Save(UserName); }
public bool Destroy(object IdKho) { return(TThuocThua.Destroy(IdKho) == 1); }
public bool Delete(object IdKho) { return(TThuocThua.Delete(IdKho) == 1); }