public void Insert(int IdThuoc, short IdKho, string KieuThuocVt, int?SoluongDutru) { TDutruThuoc item = new TDutruThuoc(); item.IdThuoc = IdThuoc; item.IdKho = IdKho; item.KieuThuocVt = KieuThuocVt; item.SoluongDutru = SoluongDutru; item.Save(UserName); }
public void Update(int IdThuoc, short IdKho, string KieuThuocVt, int?SoluongDutru) { TDutruThuoc item = new TDutruThuoc(); item.MarkOld(); item.IsLoaded = true; item.IdThuoc = IdThuoc; item.IdKho = IdKho; item.KieuThuocVt = KieuThuocVt; item.SoluongDutru = SoluongDutru; item.Save(UserName); }
public bool Destroy(object IdThuoc) { return(TDutruThuoc.Destroy(IdThuoc) == 1); }
public bool Delete(object IdThuoc) { return(TDutruThuoc.Delete(IdThuoc) == 1); }