Exemple #1
0
        protected string GetFromSourceName(string bankAccountsId)
        {
            if (TargetId == _reckoningElseFilialeid || TargetId == Guid.Empty)
            {
                return("-");
            }
            var selectSalePlatformInfo = CacheCollection.SalePlatform.Get(TargetId);

            if (selectSalePlatformInfo != null)
            {
                return(RTVWebSite.SelectedNode.Text);
            }
            if (bankAccountsId.Length != 0)
            {
                var bankList = _bankAccountDaoWrite.GetListByBankAccountId(new Guid(bankAccountsId));
                foreach (var bankAccountsInfo in bankList)
                {
                    if (bankAccountsInfo.TargetId != TargetId)
                    {
                        var info = CacheCollection.SalePlatform.Get(bankAccountsInfo.TargetId);
                        if (info != null)
                        {
                            return(info.Name);
                        }
                    }
                }
            }
            return("-");
        }
Exemple #2
0
 /// <summary>
 /// 根据资金帐号ID获取已关联公司账号的数据集合(即关联BankAccountBinding)
 /// </summary>
 /// <param name="bankaccountid"></param>
 /// <returns></returns>
 public IList <BankAccountInfo> GetList(Guid bankaccountid)
 {
     return(_bankAccountDao.GetListByBankAccountId(bankaccountid));
 }