/// <summary>
        /// 获取注册系统集合。
        /// </summary>
        /// <param name="appName">应用系统名称。</param>
        /// <returns></returns>
        public AppSystemCollection AppRegister(string appName)
        {
            lock (this)
            {
                AppSystemCollection collection = new AppSystemCollection();
                DataTable dtResult = new DataTable();
                dtResult.Columns.Add("AppID");
                dtResult.Columns.Add("AppName");

                DataTable dtSource = this.securityRegsiterEntity.GetAllRecord(string.Format("SystemName like '%{0}%'", appName));
                if (dtSource != null)
                {
                    DataRow dr = null;
                    foreach (DataRow row in dtSource.Rows)
                    {
                        dr = dtResult.NewRow();
                        dr[0] = row["SystemID"];
                        dr[1] = row["SystemName"];
                        dtResult.Rows.Add(dr);
                    }
                }

                if (dtResult.Rows.Count > 0)
                {
                    collection.InitAssignment(dtResult);
                }
                return collection;
            }
        }
 /// <summary>
 /// 获取注册系统集合。
 /// </summary>
 /// <param name="appName">应用系统名称。</param>
 /// <returns></returns>
 public AppSystemCollection AppRegister(string appName)
 {
     AppSystemCollection collection = new AppSystemCollection();
     try
     {
         Poxy.AppSystem[] apps = this.service.AppRegister(appName);
         if (apps != null)
         {
             foreach (Poxy.AppSystem app in apps)
             {
                 Security.AppSystem appSystem = new Security.AppSystem();
                 appSystem.AppID = app.AppID;
                 appSystem.AppName = app.AppName;
                 collection.Add(appSystem);
             }
         }
     }
     catch (Exception e)
     {
         this.log.CreateErrorLog(e.Message);
         throw e;
     }
     return collection;
 }