public void Update(long IdThuockho, int IdKho, int IdThuoc, DateTime NgayHethan, decimal GiaNhap, decimal GiaBan, int SoLuong, decimal Vat, string SoLo, string MaNhacungcap, int?SttBan, long?IdChuyen, DateTime?NgayNhap, decimal?GiaBhyt, decimal?PhuthuDungtuyen, decimal?PhuthuTraituyen, byte?ChophepKetutruc, byte?ChophepKedon, string KieuThuocvattu, string SoDky, string SoQdinhthau) { TThuockho item = new TThuockho(); item.MarkOld(); item.IsLoaded = true; item.IdThuockho = IdThuockho; item.IdKho = IdKho; item.IdThuoc = IdThuoc; item.NgayHethan = NgayHethan; item.GiaNhap = GiaNhap; item.GiaBan = GiaBan; item.SoLuong = SoLuong; item.Vat = Vat; item.SoLo = SoLo; item.MaNhacungcap = MaNhacungcap; item.SttBan = SttBan; item.IdChuyen = IdChuyen; item.NgayNhap = NgayNhap; item.GiaBhyt = GiaBhyt; item.PhuthuDungtuyen = PhuthuDungtuyen; item.PhuthuTraituyen = PhuthuTraituyen; item.ChophepKetutruc = ChophepKetutruc; item.ChophepKedon = ChophepKedon; item.KieuThuocvattu = KieuThuocvattu; item.SoDky = SoDky; item.SoQdinhthau = SoQdinhthau; item.Save(UserName); }
public bool Destroy(object IdThuockho) { return(TThuockho.Destroy(IdThuockho) == 1); }
public bool Delete(object IdThuockho) { return(TThuockho.Delete(IdThuockho) == 1); }