예제 #1
0
        /// <summary>
        /// 获取地区列表
        /// </summary>
        /// <returns></returns>
        public List <Area> GetAreaList()
        {
            var areaList = new List <Area>();
            var list     = DqdmService.LoadEntities(x => true);

            if (list.Any())
            {
                areaList = list.Select(x => new Area {
                    Name = x.ProviceName, Code = x.DqCode
                }).ToList();
            }
            return(areaList);
        }
예제 #2
0
        /// <summary>
        /// 获取地区进项网址
        /// </summary>
        /// <returns></returns>
        public string GetNetLocation(string dqCode)
        {
            string ret = string.Empty;

            try
            {
                var entity = DqdmService.GetFirstEntity(x => x.DqCode == dqCode);
                if (entity != null)
                {
                    ret = entity.NetLocation;
                }
            }
            catch (Exception ex)
            {
                Logging.Log4NetHelper.Error(this, PRO_ReceiptsInvMgr.Resources.Message.GetDqNetLocationError, ex);
            }
            return(ret);
        }