Exemple #1
0
 private void Log(Terminals_Day_Totals model)
 {
     using (TerminalData context = new TerminalData())
     {
         context.InsertTritonDayTotals(model);
     }
 }
Exemple #2
0
        public void LogTritonDayTotal(HostTotalModel atm, string atmId)
        {
            Terminals_Day_Totals dayTotals = new Terminals_Day_Totals
            {
                tran_gid        = atmId,
                terminal_id     = atm.TerminalId,
                business_date   = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
                settlement_code = atm.TransactionCode,
                processed_date  = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
                num_of_cw       = atm.NoOfWithdrawals,
                num_of_tf       = atm.NoOfTransfers,
                num_of_bi       = atm.NoOfInquiries,
                total_dispensed = atm.Settlement / 100m
            };

            Log(dayTotals);
        }
Exemple #3
0
 public void InsertTritonDayTotals(Terminals_Day_Totals dayTotals)
 {
     Connection.Execute(dayTotals.ToString());
 }