public void Insert(int?PatientId, string PatientCode, int?PaymentTypeId, int?IdDvu, string TenDvu, string Dvt, int?SoLuong, decimal?DonGia, decimal?PhuThu, decimal?Bhct, decimal?Bnct, int?IdPhieu, int?IdPhieuCt, int?IsPayment, int PaymentStatus, string NguoiTao, DateTime?NgayTao, DateTime?NgayDky, int?IdKhoa, int?XacNhan, int?NoiTru, string MaKieuDvu, int?IdGoiDvu, string MaKieuTtoan, DateTime?PaymentDate, int?TrongGoi, int?IdLoaiDvu, int?SoPhieuRavien, int?PaymentId, int?DaThien, string TenHienThi, byte?HienThi, short?IdBsyCdinh, short?IdKhoaCdinh, decimal?TienBnTra)
        {
            TTongChiphi item = new TTongChiphi();

            item.PatientId = PatientId;

            item.PatientCode = PatientCode;

            item.PaymentTypeId = PaymentTypeId;

            item.IdDvu = IdDvu;

            item.TenDvu = TenDvu;

            item.Dvt = Dvt;

            item.SoLuong = SoLuong;

            item.DonGia = DonGia;

            item.PhuThu = PhuThu;

            item.Bhct = Bhct;

            item.Bnct = Bnct;

            item.IdPhieu = IdPhieu;

            item.IdPhieuCt = IdPhieuCt;

            item.IsPayment = IsPayment;

            item.PaymentStatus = PaymentStatus;

            item.NguoiTao = NguoiTao;

            item.NgayTao = NgayTao;

            item.NgayDky = NgayDky;

            item.IdKhoa = IdKhoa;

            item.XacNhan = XacNhan;

            item.NoiTru = NoiTru;

            item.MaKieuDvu = MaKieuDvu;

            item.IdGoiDvu = IdGoiDvu;

            item.MaKieuTtoan = MaKieuTtoan;

            item.PaymentDate = PaymentDate;

            item.TrongGoi = TrongGoi;

            item.IdLoaiDvu = IdLoaiDvu;

            item.SoPhieuRavien = SoPhieuRavien;

            item.PaymentId = PaymentId;

            item.DaThien = DaThien;

            item.TenHienThi = TenHienThi;

            item.HienThi = HienThi;

            item.IdBsyCdinh = IdBsyCdinh;

            item.IdKhoaCdinh = IdKhoaCdinh;

            item.TienBnTra = TienBnTra;


            item.Save(UserName);
        }
 public bool Delete(object Id)
 {
     return(TTongChiphi.Delete(Id) == 1);
 }
 public bool Destroy(object Id)
 {
     return(TTongChiphi.Destroy(Id) == 1);
 }
示例#4
0
        public void Insert(int? PatientId,string PatientCode,int? PaymentTypeId,int? IdDvu,string TenDvu,string Dvt,int? SoLuong,decimal? DonGia,decimal? PhuThu,decimal? Bhct,decimal? Bnct,int? IdPhieu,int? IdPhieuCt,int? IsPayment,int PaymentStatus,string NguoiTao,DateTime? NgayTao,DateTime? NgayDky,int? IdKhoa,int? XacNhan,int? NoiTru,string MaKieuDvu,int? IdGoiDvu,string MaKieuTtoan,DateTime? PaymentDate,int? TrongGoi,int? IdLoaiDvu,int? SoPhieuRavien,int? PaymentId,int? DaThien,string TenHienThi,byte? HienThi,short? IdBsyCdinh,short? IdKhoaCdinh,decimal? TienBnTra)
        {
            TTongChiphi item = new TTongChiphi();

            item.PatientId = PatientId;

            item.PatientCode = PatientCode;

            item.PaymentTypeId = PaymentTypeId;

            item.IdDvu = IdDvu;

            item.TenDvu = TenDvu;

            item.Dvt = Dvt;

            item.SoLuong = SoLuong;

            item.DonGia = DonGia;

            item.PhuThu = PhuThu;

            item.Bhct = Bhct;

            item.Bnct = Bnct;

            item.IdPhieu = IdPhieu;

            item.IdPhieuCt = IdPhieuCt;

            item.IsPayment = IsPayment;

            item.PaymentStatus = PaymentStatus;

            item.NguoiTao = NguoiTao;

            item.NgayTao = NgayTao;

            item.NgayDky = NgayDky;

            item.IdKhoa = IdKhoa;

            item.XacNhan = XacNhan;

            item.NoiTru = NoiTru;

            item.MaKieuDvu = MaKieuDvu;

            item.IdGoiDvu = IdGoiDvu;

            item.MaKieuTtoan = MaKieuTtoan;

            item.PaymentDate = PaymentDate;

            item.TrongGoi = TrongGoi;

            item.IdLoaiDvu = IdLoaiDvu;

            item.SoPhieuRavien = SoPhieuRavien;

            item.PaymentId = PaymentId;

            item.DaThien = DaThien;

            item.TenHienThi = TenHienThi;

            item.HienThi = HienThi;

            item.IdBsyCdinh = IdBsyCdinh;

            item.IdKhoaCdinh = IdKhoaCdinh;

            item.TienBnTra = TienBnTra;

            item.Save(UserName);
        }