public void Update(long IdPhieuChitiet, long IdPhieu, DateTime NgayHethan, int IdThuoc, decimal GiaNhap, decimal GiaBan, decimal?DonGia, decimal?PhuthuDungtuyen, decimal?PhuthuTraituyen, int SoLuong, string SoLo, int?ChietKhau, decimal ThanhTien, decimal Vat, long?IdThuockho, long?IdChuyen, string MaNhacungcap, string KieuThuocvattu, short?ThangDu, decimal?GiaBhyt, DateTime?NgayNhap, string SoDky, string SoQdinhthau) { TPhieutrathuocKholeVekhochanChitiet item = new TPhieutrathuocKholeVekhochanChitiet(); item.MarkOld(); item.IsLoaded = true; item.IdPhieuChitiet = IdPhieuChitiet; item.IdPhieu = IdPhieu; item.NgayHethan = NgayHethan; item.IdThuoc = IdThuoc; item.GiaNhap = GiaNhap; item.GiaBan = GiaBan; item.DonGia = DonGia; item.PhuthuDungtuyen = PhuthuDungtuyen; item.PhuthuTraituyen = PhuthuTraituyen; item.SoLuong = SoLuong; item.SoLo = SoLo; item.ChietKhau = ChietKhau; item.ThanhTien = ThanhTien; item.Vat = Vat; item.IdThuockho = IdThuockho; item.IdChuyen = IdChuyen; item.MaNhacungcap = MaNhacungcap; item.KieuThuocvattu = KieuThuocvattu; item.ThangDu = ThangDu; item.GiaBhyt = GiaBhyt; item.NgayNhap = NgayNhap; item.SoDky = SoDky; item.SoQdinhthau = SoQdinhthau; item.Save(UserName); }
public bool Destroy(object IdPhieuChitiet) { return(TPhieutrathuocKholeVekhochanChitiet.Destroy(IdPhieuChitiet) == 1); }