public void Insert(long IdPhieu, DateTime NgayHethan, int IdThuoc, decimal GiaNhap, decimal GiaBan, decimal?DonGia, short ThangDu, int SoLuong, int?SluongChia, string SoLo, decimal?ChietKhau, decimal?ThanhTien, decimal?Vat, long?IdThuockho, long?IdChuyen, string MaNhacungcap, string MotaThem, string KieuThuocvattu, byte?CoBhyt, decimal?GiaBhyt, decimal?GiaBhytCu, decimal?GiaPhuthuDungtuyen, decimal?GiaPhuthuTraituyen, DateTime?NgayNhap, string SoDky, string SoQdinhthau)
        {
            TPhieuNhapxuatthuocChitiet item = new TPhieuNhapxuatthuocChitiet();

            item.IdPhieu = IdPhieu;

            item.NgayHethan = NgayHethan;

            item.IdThuoc = IdThuoc;

            item.GiaNhap = GiaNhap;

            item.GiaBan = GiaBan;

            item.DonGia = DonGia;

            item.ThangDu = ThangDu;

            item.SoLuong = SoLuong;

            item.SluongChia = SluongChia;

            item.SoLo = SoLo;

            item.ChietKhau = ChietKhau;

            item.ThanhTien = ThanhTien;

            item.Vat = Vat;

            item.IdThuockho = IdThuockho;

            item.IdChuyen = IdChuyen;

            item.MaNhacungcap = MaNhacungcap;

            item.MotaThem = MotaThem;

            item.KieuThuocvattu = KieuThuocvattu;

            item.CoBhyt = CoBhyt;

            item.GiaBhyt = GiaBhyt;

            item.GiaBhytCu = GiaBhytCu;

            item.GiaPhuthuDungtuyen = GiaPhuthuDungtuyen;

            item.GiaPhuthuTraituyen = GiaPhuthuTraituyen;

            item.NgayNhap = NgayNhap;

            item.SoDky = SoDky;

            item.SoQdinhthau = SoQdinhthau;


            item.Save(UserName);
        }
 public bool Destroy(object IdPhieuchitiet)
 {
     return(TPhieuNhapxuatthuocChitiet.Destroy(IdPhieuchitiet) == 1);
 }