예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {  //获取访问的域名
            RequestDomin = Request.ServerVariables["SERVER_NAME"].ToLower();
            Requestfile  = Request.ServerVariables["Url"].ToLower();

            //通过域名查询商户号
            B2b_company_info companyinfo = B2bCompanyData.AdminDomainGetComId(RequestDomin);

            if (companyinfo != null)
            {
                comid = companyinfo.Com_id;
            }


            B2b_company         com        = B2bCompanyData.GetAllComMsg(comid);
            B2b_company_saleset comsetinfo = B2bCompanySaleSetData.GetDirectSellByComid(comid.ToString());

            if (com != null)
            {
                Com_name     = com.Com_name;
                Scenic_name  = com.Scenic_name;
                Scenic_intro = com.B2bcompanyinfo.Scenic_intro;

                if (comsetinfo != null)
                {
                    Logourl = comsetinfo.Logo;
                    if (Logourl != "")
                    {
                        Logourl = "<img src=\"" + FileSerivce.GetImgUrl(Logourl.ConvertTo <int>(0)) + "\" alt=\"" + Scenic_name + "\" height=\"80\" />";
                    }

                    Service_Phone = comsetinfo.Service_Phone;
                    if (Service_Phone != "")
                    {
                        Service_Phone = "客服电话:" + Service_Phone;
                    }

                    Copyright = comsetinfo.Copyright;
                }
            }
        }