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); }