public void ViewSpend(DateTime dt1, DateTime dt2) { totalSpend = 0; listSpend = spendService.GetSpendList(dt1.Date, dt2.Date); for (int i = 0; i < listSpend.Count; i++) { totalSpend += listSpend[i].金额; } }