示例#1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //get list from database
            WebService.WebService ws = new WebService.WebService();
            DateTime today           = DateTime.Now;

            transactions = ws.getSummary(today, today);
            ComputeSummary cs = new ComputeSummary();

            cs.getSummary(transactions, TodayTextView);
        }
示例#2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            //get transanctions from the database
            WebService.WebService ws = new WebService.WebService();
            DateHolder            ds = new DateHolder();
            DateTime startDate       = ds.GetStartDate();
            DateTime endDate         = ds.GetEndDate();

            Console.Out.WriteLine("getStartDate = " + startDate);
            transactions = ws.getSummary(startDate, endDate);
            ComputeSummary cs = new ComputeSummary();

            cs.getSummary(transactions, SelectedDateTextView);
        }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     try
     {
         DateTime              dt           = DateTime.Today.AddDays(-1);
         List <Transaction>    transactions = new List <Transaction>();
         WebService.WebService ws           = new WebService.WebService();
         transactions = ws.getSummary(dt, dt);
         ComputeSummary cs = new ComputeSummary();
         cs.getSummary(transactions, yesterdaySummaryTextView);
     }
     catch (Exception e)
     {
         Console.Out.WriteLine(e);
     }
 }
示例#4
0
        //button that gets the information after the pickers are selected
        partial void SearchButton_TouchUpInside(UIButton sender)
        {
            List <Transaction> transactions = new List <Transaction>();

            if ((StartDateTextField.Text != "") && (EndDateTextField.Text != "") &&
                (SourceTextField.Text != "") && (DestinationTextField.Text != "") &&
                (CustomerTextField.Text != ""))
            {
                Transaction transaction = new Transaction(StartDateTextField.Text,
                                                          EndDateTextField.Text, SourceTextField.Text,
                                                          DestinationTextField.Text, CustomerTextField.Text);
                // gets the transactions from the database based on selections
                WebService.WebService ws = new WebService.WebService();
                transactions = ws.GetSelectedTransactions(transaction);

                FillTextView(transactions);
            }
        }