public string hi()
        {
            ChaseProcessor cp = new ChaseHelper.ChaseProcessor(@"c:\a2\f.csv", @"c:\a2\bills.json");

            cp.loadData();
            cp.daysDiscrete(-30);
            string s = JsonConvert.SerializeObject(cp.dailySpendingList, Formatting.Indented);

            return(s);
            //[  cp.dailySpendingList.ToList()
        }
Пример #2
0
        static void Main(string[] args)
        {
            string configFolder = args[0];

            Dictionary <string, string> settings = Utils.Jsoner.dnr(configFolder);


            ChaseProcessor cp = new ChaseProcessor
                                (
                settings["baseFolder"],
                settings["csv"],
                settings["bills"]
                                );

            cp.loadData();


            var cw = new ChaseWriter(cp);

            cw.
            //cp.getLatestBills();



            Console.WriteLine(cp.sb.ToString());
            Utils.Filer.writeAllText(@"c:\github\chaseFiles\" + Dater.TimeStamp() + "Bills.txt", cp.sb.ToString());

            Console.WriteLine("any key for general report");
            Console.ReadLine();

            cp.sb = new System.Text.StringBuilder();

            cp.runMainReport(true);


            Console.WriteLine(cp.sb.ToString());
            Utils.Filer.writeAllText(@"c:\github\chaseFiles" + Dater.TimeStamp() + "Mainreport.txt", cp.sb.ToString());
        }