示例#1
0
        /// <summary>
        /// get chaxun info
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.GysStructure.MLBChaXunInfo GetChaXunInfo()
        {
            var info = new EyouSoft.Model.GysStructure.MLBChaXunInfo();

            info.GysName = Utils.GetQueryStringValue("txtUnitName");
            info.GysId   = Utils.GetQueryStringValue("gysid");
            return(info);
        }
示例#2
0
        /// <summary>
        /// get chaxun info
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.GysStructure.MLBChaXunInfo GetChaXunInfo()
        {
            var info = new EyouSoft.Model.GysStructure.MLBChaXunInfo();

            info.ProvinceId = Utils.GetIntNull(Utils.GetQueryStringValue("ddlProvice"));
            info.CityId     = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCity"));
            info.GysName    = Utils.GetQueryStringValue("txtshopname");
            info.GysId      = Utils.GetQueryStringValue("gysid");

            return(info);
        }
示例#3
0
        /// <summary>
        /// 获取查询信息
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.GysStructure.MLBChaXunInfo GetChaXunInfo()
        {
            var info = new EyouSoft.Model.GysStructure.MLBChaXunInfo();

            info.ProvinceId   = Utils.GetIntNull(Utils.GetQueryStringValue("ddlProvice"));
            info.CityId       = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCity"));
            info.GysName      = Utils.GetQueryStringValue("HotleName");
            info.CanGuanCaiXi = (EyouSoft.Model.EnumType.SourceStructure.SourceCuisine?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.SourceStructure.SourceCuisine), Utils.GetQueryStringValue("ddlCuisine"));
            info.GysId        = Utils.GetQueryStringValue("gysid");

            return(info);
        }
示例#4
0
        /// <summary>
        /// get chaxun info
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.GysStructure.MLBChaXunInfo GetChaXunInfo()
        {
            var info = new EyouSoft.Model.GysStructure.MLBChaXunInfo();

            info.ProvinceId    = Utils.GetIntNull(Utils.GetQueryStringValue("ddlProvice"));
            info.CityId        = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCity"));
            info.GysName       = Utils.GetQueryStringValue("txtWineName");
            info.JiuDianXingJi = (EyouSoft.Model.EnumType.SourceStructure.HotelStar?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.SourceStructure.HotelStar), Utils.GetQueryStringValue("selectstar"));
            //if (info.JiuDianXingJi.HasValue && info.JiuDianXingJi.Value == EyouSoft.Model.EnumType.SourceStructure.HotelStar.未选择) info.JiuDianXingJi = null;
            info.GysId = Utils.GetQueryStringValue("gysid");

            return(info);
        }
示例#5
0
文件: BGys.cs 项目: windygu/XiaZhou
        /// <summary>
        /// 获取供应商-地接社列表信息集合
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="pageSize">页记录数</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="chaXun">查询实体</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.GysStructure.MLBDiJieSheInfo> GetDiJieShes(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.GysStructure.MLBChaXunInfo chaXun)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }

            bool isOnlySelf = false;

            int[] depts = null;

            depts = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.资源管理_地接社, out isOnlySelf);

            var items = dal.GetDiJieShes(companyId, pageSize, pageIndex, ref recordCount, chaXun, isOnlySelf, LoginUserId, depts);

            if (items != null && items.Count > 0)
            {
                var citybll = new EyouSoft.BLL.ComStructure.BComCity();
                foreach (var item in items)
                {
                    item.CPCD = citybll.GetCPCD(companyId, item.CPCD.CountryId, item.CPCD.ProvinceId, item.CPCD.CityId, item.CPCD.DistrictId);
                }
            }

            return(items);
        }