예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BankAccountBalanceList = _bankAccounts.GetBalanceList();
                GetBankAccounts();

                var yearlist = new List <int>();
                for (var i = 2007; i <= (DateTime.Now.Year - GlobalConfig.KeepYear); i++)
                {
                    yearlist.Add(i);
                }
                DDL_Years.DataSource = yearlist.OrderByDescending(y => y);
                DDL_Years.DataBind();
                DDL_Years.Items.Add(new ListItem(GlobalConfig.KeepYear + "年内数据", "0"));
                DDL_Years.SelectedValue = "0";
                YearsSelectedIndex();

                span_TotalMoney.InnerText = "总计金额:" + _bankAccounts.GetBankAccountsAllNonceBalance().ToString("N") + "元";
            }
        }