private void WriteUserHistoryDB()
 {
     //リスト反転
     //this.HistoryList.Reverse();
     //CalcuValue();
     DataBaseAccess.WhiteUserHistorySql(this.ReadHistoryList);
     CsvWriter.WriteResultCsv(this.ReadHistoryList);
 }
Exemple #2
0
        void testDB()
        {
            List <ICCard> ReadHistoryList = new List <ICCard>();
            var           date            = "2020-04-12";

            for (int i = 0; i < 15; i++)
            {
                var s = new Suica()
                {
                    Date           = date,
                    Terminal       = "出金",
                    Process        = "出金",
                    Payment        = 500,
                    Deposit        = 0,
                    Balance        = 0,
                    InStationName  = "",
                    OutStationName = "",
                    IDm            = "TestIDM",

                    TransactionID = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff tt" + i)
                };
                ReadHistoryList.Add(s);
                s = new Suica()
                {
                    Date           = date,
                    Terminal       = "入金",
                    Process        = "入金",
                    Payment        = 0,
                    Deposit        = 100,
                    Balance        = 0,
                    InStationName  = "",
                    OutStationName = "",
                    IDm            = "TestIDM",
                    TransactionID  = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss.fff" + i)
                };
                ReadHistoryList.Add(s);
            }
            DataBaseAccess.WhiteUserHistorySql(ReadHistoryList);
        }