public void Update(long Id, string BacSyDieuTri, string Buong, string DiaChi, bool?GioiTinh, string Giuong, string IdBacSyDieuTri, short?IdKhoa, string Khoa, string MaBenhNhan, bool?NoiTru, string Phong, string TenBenhNhan, short?Tuoi, string Sophieu, DateTime?TestDate, string Datra, bool?DichVu, int?IdDoiTuongBenhNhan, string MaLanKham)
        {
            TblHisLisPatientInfoVnio item = new TblHisLisPatientInfoVnio();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.BacSyDieuTri = BacSyDieuTri;

            item.Buong = Buong;

            item.DiaChi = DiaChi;

            item.GioiTinh = GioiTinh;

            item.Giuong = Giuong;

            item.IdBacSyDieuTri = IdBacSyDieuTri;

            item.IdKhoa = IdKhoa;

            item.Khoa = Khoa;

            item.MaBenhNhan = MaBenhNhan;

            item.NoiTru = NoiTru;

            item.Phong = Phong;

            item.TenBenhNhan = TenBenhNhan;

            item.Tuoi = Tuoi;

            item.Sophieu = Sophieu;

            item.TestDate = TestDate;

            item.Datra = Datra;

            item.DichVu = DichVu;

            item.IdDoiTuongBenhNhan = IdDoiTuongBenhNhan;

            item.MaLanKham = MaLanKham;

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