Example #1
0
        public BusinessZoneInfo GetBusinessZoneInfo(int pBusinessZoneID, int pAppID)
        {
            var bentity  = this._currentDAO.GetByID(pBusinessZoneID);
            var dao      = new AppVersionDAO(this.CurrentUserInfo);
            var aEntitys = dao.GetLatestVersion(pBusinessZoneID, pAppID);
            var binfo    = new BusinessZoneInfo()
            {
                BusinessZoneCode = bentity.BusinessZoneCode,
                BusinessZoneID   = bentity.BusinessZoneID.Value,
                BusinessZoneName = bentity.BusinessZoneName,
                ServiceURL       = bentity.ServiceUrl
            };

            if (aEntitys.Length > 0)
            {
                binfo.VersionInfo = new AppVersionInfo()
                {
                    AppID       = aEntitys[0].AppID.Value,
                    Description = aEntitys[0].Description,
                    Version     = aEntitys[0].Version
                }
            }
            ;
            return(binfo);
        }
    }
Example #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public AppVersionBLL(BasicUserInfo pUserInfo)
 {
     this._currentDAO = new AppVersionDAO(pUserInfo);
 }