Beispiel #1
0
        /// <summary>
        /// 线路区域对应的有效线路(地接社)
        /// </summary>
        /// <returns></returns>
        public IList <EyouSoft.Model.TourStructure.AreaStatInfo> GetCurrentUserRouteByAreaStats()
        {
            string companyId = new EyouSoft.Security.Membership.Utility().GetCurrentUserCompanyId();

            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }

            IList <EyouSoft.Model.TourStructure.AreaStatInfo> stats = dal.GetRouteByAreaStats(companyId, new EyouSoft.Security.Membership.Utility().GetCurrentUserArea());

            if (stats != null && stats.Count > 0)
            {
                foreach (EyouSoft.Model.TourStructure.AreaStatInfo tmp in stats)
                {
                    EyouSoft.Model.SystemStructure.SysArea areaInfo = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance().GetSysAreaModel(tmp.AreaId);

                    if (areaInfo != null)
                    {
                        tmp.AreaName = areaInfo.AreaName;
                    }
                }
            }

            return(stats);
        }
Beispiel #2
0
        /// <summary>
        /// 到期时期还有1周
        /// </summary>
        /// <returns></returns>
        public int GetExpirePowder()
        {
            string companyId = new EyouSoft.Security.Membership.Utility().GetCurrentUserCompanyId();

            if (string.IsNullOrEmpty(companyId))
            {
                return(0);
            }

            return(dal.GetExpirePowder(companyId));
        }