public ObservableCollection <AccountAndBalance> GetBalance() { ObservableCollection <AccountAndBalance> AccountList = new ObservableCollection <AccountAndBalance>(); foreach (FundsRegulatoryClient.JG_AccountManageSrv.JG_AccountManageInfo item in AccountClient.Selects()) { if (item.AM_UseFlag == "正常") { AccountAndBalance aab = new AccountAndBalance(); aab.AccountInfo = item; AccountList.Add(aab); } } return(AccountList); }
public override void FlushExecute() { this.AccountList = new ObservableCollection <AccountAndBalance>(); this.AccountList.Clear(); foreach (FundsRegulatoryClient.JG_AccountManageSrv.JG_AccountManageInfo item in AccountClient.Selects()) { if (item.AM_UseFlag == "正常") { AccountAndBalance aab = new AccountAndBalance(); aab.AccountInfo = item; this.AccountList.Add(aab); } } SeansonList = null; DayBalanceList = null; ////银行编号预制 00008 总行 //if (VMHelp.PointCode == "07") this.Models = client.Selects(); //else // //每个银行网点只能看到自己的银行 // this.Models = client.Select(new FundsRegulatoryClient.JG_AccountManageSrv.JG_AccountManageInfo() // { // AM_BankCode = VMHelp.PointCode // }); }