Exemplo n.º 1
0
 public static int SaveHisHeader(HisHeader FH)
 {
     _context = new NCPDPContext(new DbContextOptionsBuilder <NCPDPContext>().Options);
     _context.HisHeaders.Add(FH);
     _context.SaveChanges();
     return(FH.FileID);
 }
Exemplo n.º 2
0
        public static void UpdateHisHeader(HisHeader hh)
        {
            _context = new NCPDPContext(new DbContextOptionsBuilder <NCPDPContext>().Options);
            HisHeader header = _context.HisHeaders.Find(hh.FileID);

            header.Total_Gross_Amount_Due   = hh.Total_Gross_Amount_Due;
            header.Total_Net_Amount_Due     = hh.Total_Net_Amount_Due;
            header.Total_Patient_Pay_Amount = hh.Total_Patient_Pay_Amount;
            header.Total_Record_Count       = hh.Total_Record_Count;
            _context.SaveChanges();
        }