Exemple #1
0
        protected void GetCompanyByLine()
        {
            int             areaid      = Utils.GetInt(Utils.GetQueryStringValue("argument"));
            QueryNewCompany Searchmodel = new QueryNewCompany();

            if (areaid != 0)
            {
                Searchmodel.AreaId = areaid;
            }
            IList <CompanyDetailInfo> list = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetAllCompany(0, Searchmodel);
            StringBuilder             strb = new StringBuilder("{tolist:[");

            foreach (Company item in list)
            {
                strb.Append("{\"ID\":\"" + item.ID + "\",\"CompanyName\":\"" + item.CompanyName + "\"},");
            }
            Response.Clear();
            Response.Write(strb.ToString().TrimEnd(',') + "]}");
            Response.End();
        }
Exemple #2
0
        /// <summary>
        /// 获取推荐品牌列表(无线路区域)
        /// </summary>
        private void GetPinPai()
        {
            QueryNewCompany CompanySearch = new QueryNewCompany();

            CompanySearch.CompanyTypes = new CompanyType?[] { CompanyType.专线 };
            CompanySearch.B2BDisplay   = CompanyB2BDisplay.侧边推荐;
            CompanySearch.OrderIndex   = 3;
            IList <CompanyDetailInfo> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetAllCompany(6, CompanySearch);

            if (CompanyList != null && CompanyList.Count > 0)
            {
                this.rptPinPaiList.DataSource = CompanyList;
                this.rptPinPaiList.DataBind();
            }
            else
            {
                this.lbPinPai.Visible = true;
                this.lbPinPai.Text    = "暂无品牌";
            }
        }
Exemple #3
0
        /// <summary>
        /// 绑定商家会员列表
        /// </summary>
        protected void BindPersonalMemberList()
        {
            int    recordCount     = 0;
            int    ProvinceId      = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("ProvinceId"));
            int    CityId          = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("CityId"));
            int    CountyId        = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("CountyId"));
            string BusinessMemName = Utils.InputText(Utils.GetQueryStringValue("BusinessMemName"));
            string Lineid          = Utils.InputText(Utils.GetQueryStringValue("Lineid"));

            //单位类型
            int intCompanyType = -1;

            CompanyType?[] listCompanyType = new CompanyType?[] { null };
            if (Utils.GetQueryStringValue("CompanyType") != "")
            {
                intCompanyType = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("CompanyType"));
                if (intCompanyType != 0)
                {
                    listCompanyType[0] = (CompanyType)intCompanyType;
                }
            }
            //公司等级
            int intCompanyLev = -1;

            if (Utils.GetQueryStringValue("CompanyLev") != "")
            {
                intCompanyLev = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("CompanyLev"));
            }

            int intB2B = -1;

            if (Utils.GetQueryStringValue("B2B") != "")
            {
                intB2B = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("B2B"));
            }

            int intB2C = -1;

            if (Utils.GetQueryStringValue("B2C") != "")
            {
                intB2C = EyouSoft.Common.Function.StringValidate.GetIntValue(Utils.GetQueryStringValue("B2C"));
            }

            EyouSoft.Model.CompanyStructure.QueryNewCompany SearchModel = new QueryNewCompany();
            if (ProvinceId > 0)
            {
                SearchModel.PorvinceId = ProvinceId;
            }
            if (CityId > 0)
            {
                SearchModel.CityId = CityId;
            }
            if (CountyId > 0)
            {
                SearchModel.CountyId = CountyId;
            }
            if (BusinessMemName != "公司名、地址、简称、品牌")
            {
                SearchModel.KeyWord = BusinessMemName;
            }

            if (listCompanyType[0] != null && listCompanyType.Length > 0)
            {
                SearchModel.CompanyTypes = listCompanyType;
            }

            if (intCompanyLev > -1)
            {
                SearchModel.CompanyLev = (CompanyLev)intCompanyLev;
            }

            if (intB2B > -1)
            {
                SearchModel.B2BDisplay = (CompanyB2BDisplay)intB2B;
            }

            if (intB2C > -1)
            {
                SearchModel.B2CDisplay = (CompanyB2CDisplay)intB2C;
            }

            if (Lineid != "0")
            {
                SearchModel.AreaId = Utils.GetInt(Lineid);
            }
            SearchModel.IsShowNoCheck = true;

            IList <CompanyAndUserInfo> listCompanyanduserinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetAllCompany(PageSize, PageIndex, ref recordCount, SearchModel);

            if (listCompanyanduserinfo.Count > 0)
            {
                this.ExporPageInfoSelect1.intPageSize    = PageSize;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.CurrencyPage   = PageIndex;
                this.ExporPageInfoSelect1.HrefType       = Adpost.Common.ExporPage.HrefTypeEnum.JsHref;
                this.ExporPageInfoSelect1.AttributesEventAdd("onclick", "BusinessMemManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "BusinessMemManage.LoadData(this);", 0);
                this.repList.DataSource = listCompanyanduserinfo;
                this.repList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#C7DEEB\" class=\"table_basic\">");
                strEmptyText.Append("<tr>");
                strEmptyText.Append("<th nowrap=\"nowrap\">编号</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">经营范围</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">单位名称</th><th nowrap=\"nowrap\">地区</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">管理员</th><th nowrap=\"nowrap\">收费</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">注册</th nowrap=\"nowrap\"><th>最近</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">登录</th><th nowrap=\"nowrap\">会员等级</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">功能</th><th nowrap=\"nowrap\">查看</th>");
                strEmptyText.Append("<tr align='center'><td  align='center' colspan='20' height='100px'>暂无信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr>");
                strEmptyText.Append("<th nowrap=\"nowrap\">编号</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">经营范围</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">单位名称</th><th nowrap=\"nowrap\">地区</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">管理员</th><th nowrap=\"nowrap\">收费</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">注册</th nowrap=\"nowrap\"><th>最近</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">登录</th><th nowrap=\"nowrap\">会员等级</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">功能</th><th nowrap=\"nowrap\">查看</th>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repList.EmptyText = strEmptyText.ToString();
            }
            listCompanyType        = null;
            SearchModel            = null;
            listCompanyanduserinfo = null;
        }