/// <summary> /// ���ݼ���������û���Ϣ /// </summary> /// <param name="activationcode">������</param> /// <returns></returns> public XYECOM.Model.UserRegInfo GetUserCode(string activationcode) { SqlParameter[] param = new SqlParameter[] { new SqlParameter ("@strWhere"," where U_ActivationCode='"+activationcode.ToString ()+"'"), new SqlParameter ("@strTableName","u_user"), new SqlParameter ("@strOrder","") }; XYECOM.Model.UserRegInfo eu = null; using (SqlDataReader dr = XYECOM.Core.Data.SqlHelper.ExecuteReader(CommandType.StoredProcedure, "XYP_SelectByWhere", param)) { if (dr.Read()) { eu = new XYECOM.Model.UserRegInfo(); eu.Answer = dr["U_Answer"].ToString(); eu.LoginName = dr["U_Name"].ToString(); eu.ClickNum = Core.MyConvert.GetInt32(dr["U_ClickNum"].ToString()); eu.Email = dr["U_Email"].ToString(); eu.HTMLPage = dr["U_HtmlPage"].ToString(); eu.UserId = Core.MyConvert.GetInt32(dr["U_ID"].ToString()); eu.Mark = Core.MyConvert.GetInt32(dr["U_Mark"].ToString()); eu.LoginName = dr["U_Name"].ToString(); eu.Password = dr["U_PassWord"].ToString(); eu.Question = dr["U_Question"].ToString(); eu.RegDate = Core.MyConvert.GetDateTime(dr["U_RegDate"].ToString()); eu.Cred = Core.MyConvert.GetInt32(dr["U_Cred"].ToString()); eu.MessageNum = Core.MyConvert.GetInt32(dr["U_MessageNum"].ToString()); eu.NoMessgeNum = Core.MyConvert.GetInt32(dr["U_NoMessgeNum"].ToString()); if (dr["U_Puach"].ToString().ToLower() == "true") eu.IsPuach = true; else eu.IsPuach = false; if (dr["U_Vouch"].ToString().ToLower() == "true") eu.IsVouch = true; else eu.IsVouch = false; if (dr["U_TempName"].ToString() != "") eu.TemplateName = dr["U_TempName"].ToString(); else eu.TemplateName = "default"; eu.CommonErr = Core.MyConvert.GetInt32(dr["U_CommonErr"].ToString()); eu.MaliceErr = Core.MyConvert.GetInt32(dr["U_MaliceErr"].ToString()); eu.InFormation = Core.MyConvert.GetInt32(dr["U_InFormation"].ToString()); if (dr["U_Activation"].ToString().ToLower() == "true") eu.IsActivation = true; else eu.IsActivation = false; } } return eu; }
/// <summary> /// ��SqlDataReader �ж�ȡ���� /// </summary> /// <param name="reader"></param> /// <returns></returns> private XYECOM.Model.UserRegInfo ReadData(SqlDataReader reader) { XYECOM.Model.UserRegInfo info = null; if (reader.Read()) { info = new XYECOM.Model.UserRegInfo(); info.Answer = reader["U_Answer"].ToString(); info.LoginName = reader["U_Name"].ToString(); info.ClickNum = Core.MyConvert.GetInt32(reader["U_ClickNum"].ToString()); info.Email = reader["U_Email"].ToString(); info.HTMLPage = reader["U_HtmlPage"].ToString(); info.UserId = Core.MyConvert.GetInt32(reader["U_ID"].ToString()); info.Mark = Core.MyConvert.GetInt32(reader["U_Mark"].ToString()); info.LoginName = reader["U_Name"].ToString(); info.Password = reader["U_PassWord"].ToString(); info.Question = reader["U_Question"].ToString(); info.RegDate = Core.MyConvert.GetDateTime(reader["U_RegDate"].ToString()); info.GradeId = Core.MyConvert.GetInt32(reader["UG_ID"].ToString()); info.Cred = Core.MyConvert.GetInt32(reader["U_Cred"].ToString()); info.MessageNum = Core.MyConvert.GetInt32(reader["U_MessageNum"].ToString()); info.NoMessgeNum = Core.MyConvert.GetInt32(reader["U_NoMessgeNum"].ToString()); if (reader["U_TempName"].ToString() != "") info.TemplateName = reader["U_TempName"].ToString(); else info.TemplateName = "default"; info.CommonErr = Core.MyConvert.GetInt32(reader["U_CommonErr"].ToString()); info.MaliceErr = Core.MyConvert.GetInt32(reader["U_MaliceErr"].ToString()); info.InFormation = Core.MyConvert.GetInt32(reader["U_InFormation"].ToString()); info.IsPuach = Core.MyConvert.GetBoolean(reader["U_Puach"].ToString()); info.IsVouch = Core.MyConvert.GetBoolean(reader["U_Vouch"].ToString()); info.IsActivation = Core.MyConvert.GetBoolean(reader["U_Activation"].ToString()); if (reader["userAuditingState"].ToString().Equals("")) { info.AuditingState = XYECOM.Model.AuditingState.Null; } else if (reader["userAuditingState"].ToString().Equals("1")) { info.AuditingState = XYECOM.Model.AuditingState.Passed; } else { info.AuditingState = XYECOM.Model.AuditingState.NoPass; } info.IsHasImage = false; if (reader["UserIsHasImage"].ToString().Equals("1")) { info.IsHasImage = true; } info.AccountId = Core.MyConvert.GetInt32(reader["AccountId"].ToString()); info.CreditIntegral = Core.MyConvert.GetDecimal(reader["CreditIntegral"].ToString()); info.CreditLeavl = new CreditLeavlAccess().GetItemByPoint(info.CreditIntegral); info.IsPrimary = Core.MyConvert.GetBoolean(reader["IsPrimary"].ToString()); info.LayerName = reader["LayerName"].ToString(); info.LayerId = reader["LayerId"].ToString(); info.Description = reader["Description"].ToString(); info.DelState = Core.MyConvert.GetInt32(reader["DelState"].ToString()); info.Telphone = reader["Telphone"].ToString(); info.OtherContact = reader["OtherContact"].ToString(); string strSex = reader["Sex"].ToString(); if (!string.IsNullOrEmpty(strSex)) { info.Sex = bool.Parse(strSex); } info.IdNumber = reader["IdNumber"].ToString(); info.AreaId = Core.MyConvert.GetInt32(reader["AreaId"].ToString()); info.IsExport = Core.MyConvert.GetBoolean(reader["IsExport"].ToString()); ; info.UserType = Core.MyConvert.GetInt32(reader["UserType"].ToString()); info.IdentityNumber = reader["IdentityNumber"].ToString(); info.CompanyId = Core.MyConvert.GetInt32(reader["CompanyId"].ToString()); info.PartManagerTel = reader["PartManagerTel"].ToString(); info.PartManagerName = reader["PartManagerName"].ToString(); } return info; }
/// <summary> /// ��SqlDataReader �ж�ȡ���� /// </summary> /// <param name="reader"></param> /// <returns></returns> private XYECOM.Model.UserRegInfo ReadData(SqlDataReader reader) { XYECOM.Model.UserRegInfo info = null; if (reader.Read()) { info = new XYECOM.Model.UserRegInfo(); info.Answer = reader["U_Answer"].ToString(); info.LoginName = reader["U_Name"].ToString(); info.ClickNum = Core.MyConvert.GetInt32(reader["U_ClickNum"].ToString()); info.Email = reader["U_Email"].ToString(); info.HTMLPage = reader["U_HtmlPage"].ToString(); info.UserId = Core.MyConvert.GetInt32(reader["U_ID"].ToString()); info.Mark = Core.MyConvert.GetInt32(reader["U_Mark"].ToString()); info.LoginName = reader["U_Name"].ToString(); info.Password = reader["U_PassWord"].ToString(); info.Question = reader["U_Question"].ToString(); info.RegDate = Core.MyConvert.GetDateTime(reader["U_RegDate"].ToString()); info.GradeId = Core.MyConvert.GetInt32(reader["UG_ID"].ToString()); info.GradeInfo = new UserGrade().GetItem(info.GradeId); info.GradePopedomInfo = new UserGradePopedom().GetItem(info.GradeId); info.Cred = Core.MyConvert.GetInt32(reader["U_Cred"].ToString()); info.MessageNum = Core.MyConvert.GetInt32(reader["U_MessageNum"].ToString()); info.NoMessgeNum = Core.MyConvert.GetInt32(reader["U_NoMessgeNum"].ToString()); info.Type = Core.MyConvert.GetBoolean(reader["U_Flag"].ToString()); if (reader["U_TempName"].ToString() != "") info.TemplateName = reader["U_TempName"].ToString(); else info.TemplateName = "default"; info.CommonErr = Core.MyConvert.GetInt32(reader["U_CommonErr"].ToString()); info.MaliceErr = Core.MyConvert.GetInt32(reader["U_MaliceErr"].ToString()); info.InFormation = Core.MyConvert.GetInt32(reader["U_InFormation"].ToString()); info.IsPuach = Core.MyConvert.GetBoolean(reader["U_Puach"].ToString()); info.IsVouch = Core.MyConvert.GetBoolean(reader["U_Vouch"].ToString()); info.IsActivation = Core.MyConvert.GetBoolean(reader["U_Activation"].ToString()); if (reader["userAuditingState"].ToString().Equals("")) { info.AuditingState = XYECOM.Model.AuditingState.Null; } else if (reader["userAuditingState"].ToString().Equals("1")) { info.AuditingState = XYECOM.Model.AuditingState.Passed; } else { info.AuditingState = XYECOM.Model.AuditingState.NoPass; } info.IsHasImage = false; if (reader["UserIsHasImage"].ToString().Equals("1")) { info.IsHasImage = true; } info.AccountId = Core.MyConvert.GetInt32(reader["AccountId"].ToString()); info.CreditIntegral = Core.MyConvert.GetDecimal(reader["CreditIntegral"].ToString()); info.CreditLeavl = new CreditLeavlAccess().GetItemByPoint(info.CreditIntegral); } return info; }
protected void btnReg_Click(object sender, EventArgs e) { string loginName = string.Empty; string companyName = string.Empty; string pwd = string.Empty; int areaId = Core.MyConvert.GetInt32(this.city.Value.Trim()); string email = string.Empty; string chief = string.Empty; int selIndex = this.MultiView1.ActiveViewIndex; Model.UserType userType = XYECOM.Model.UserType.CreditorEnterprise; loginName = txtUserName.Text.Trim(); pwd = txtPwd1.Text.Trim(); email = txtEmail.Text.Trim(); switch (selIndex + 1) { case 1: userType = XYECOM.Model.UserType.CreditorEnterprise; companyName = this.txtCompanyName.Text.Trim(); chief = this.txtCompanyChief.Text.Trim(); break; case 2: userType = XYECOM.Model.UserType.CreditorIndividual; break; case 3: userType = XYECOM.Model.UserType.Layer; companyName = this.txtLawyerCompanyName.Text.Trim(); break; case 4: userType = XYECOM.Model.UserType.NotLayer; break; } Model.UserRegInfo regInfo = new XYECOM.Model.UserRegInfo(); regInfo.LoginName = loginName; regInfo.Password = Core.SecurityUtil.MD5(pwd, XYECOM.Configuration.Security.Instance.Md5value); regInfo.Email = email; regInfo.RegDate = DateTime.Now; regInfo.UserType = (int)userType; regInfo.AreaId = areaId; regInfo.Answer = string.Empty; regInfo.Question = string.Empty; regInfo.IsPrimary = true; XYECOM.Model.UserInfo userInfo = new XYECOM.Model.UserInfo(); userInfo.Email = email; userInfo.AreaId = areaId; userInfo.Name = companyName; userInfo.LinkMan = chief; userInfo.Address = string.Empty; userInfo.Address = string.Empty; userInfo.BuyPro = string.Empty; userInfo.License = string.Empty; userInfo.Character = string.Empty; userInfo.EmployeeTotal = string.Empty; userInfo.HomePage = string.Empty; userInfo.Synopsis = string.Empty; userInfo.Postcode = string.Empty; //userInfo.RegAreaId userInfo.Mobile = string.Empty; //userInfo.UserTypeId userInfo.Sex = true; userInfo.Section = string.Empty; userInfo.Post = string.Empty; userInfo.SupplyOrBuy = 3; userInfo.SupplyPro = string.Empty; userInfo.BuyPro = string.Empty; userInfo.Mode = string.Empty; userInfo.RegisteredCapital = decimal.Zero; userInfo.RegYear = 1; userInfo.Address = string.Empty; userInfo.MainProduct = string.Empty; userInfo.MoneyType = string.Empty; userInfo.IM = string.Empty; userInfo.Telephone = string.Empty; userInfo.Fax = string.Empty; userInfo.TradeIds = string.Empty; long userId = 0; string message = string.Empty; Model.ResisterUserReturnValue value = new Business.UserReg().Register(regInfo, userInfo, pwd, out userId); if (value == XYECOM.Model.ResisterUserReturnValue.UserNameExists) message = "注册失败,用户名已经被占用"; if (value == XYECOM.Model.ResisterUserReturnValue.EmailExists) message = "注册失败,邮箱已经被占用"; if (value == XYECOM.Model.ResisterUserReturnValue.Failed) message = "注册失败,异常错误,请检查各项数据"; if (value == XYECOM.Model.ResisterUserReturnValue.ForbidName) message = "注册失败,此用户名禁止注册"; if (!string.IsNullOrEmpty(message)) { GotoMsgBoxPageForDynamicPage(message, 5, "/register.aspx"); return; } string gotoUrl = ""; if (userType == XYECOM.Model.UserType.CreditorEnterprise || userType == Model.UserType.CreditorIndividual) { gotoUrl = "/Creditor/index.aspx"; } else { gotoUrl = "Server/index.aspx"; } message = "注册成功,系统将自动进入会员中心..."; GotoMsgBoxPageForDynamicPage(message, 1, gotoUrl); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); seo.Robots = true; if (!pageinfo.IsPost) { //���ɵĶ���ֵ�����ڿ���ɾ�� es = offerinfo; ed = machininginfo; ibi = investmentinfo; esi = serviceinfo; string infoFlag = XYECOM.Core.XYRequest.GetQueryString("flag"); int lngInfoId = XYECOM.Core.MyConvert.GetInt32(XYECOM.Core.XYRequest.GetQueryString("infoid")); if (lngInfoId <= 0 || infoFlag == "") { ShowErrorMsg("��Ϣ�����ڻ��ѱ�ɾ����"); return; } XYECOM.Configuration.SEOInfo seoInfo = null; module = moduleConfig.GetItem(infoFlag); //���������� string descTableName = ""; //����������࣬��Ҫ����SEO string allClassName = ""; //��Ϣ����Id long sortId =0; //����Ϣ if (module.EName.Equals("offer") || module.PEName.Equals("offer")) { pageinfo.ModuleFlag = "offer"; linkmodule = "buyoffer"; descTableName = "i_Supply"; offerinfo = new XYECOM.Business.Supply().GetItem(lngInfoId); if (offerinfo == null || offerinfo.AuditingState != XYECOM.Model.AuditingState.Passed) { ShowErrorMsg("��Ϣ�����ڻ�δͨ����ˣ�"); return; } //���˹ؼ��� FilterKeyWord(offerinfo); sortId = offerinfo.SortID; curInfoUserId = offerinfo.UserID; seoInfo = SEO.GetInfoPageSEO(module.EName); if (seoInfo != null) { seo.Title = seoInfo.Title.Replace("{keyword}", offerinfo.Title); seo.Description = seoInfo.Description.Replace("{keyword}", offerinfo.Title); seo.Keywords = seoInfo.Keywords.Replace("{keyword}", offerinfo.SortName); if (seoInfo.IsMatch) { allClassName = GetAllClassNameForSEO(infoFlag, offerinfo.SortID); seo.Title += "_" + allClassName; seo.Description += "," + allClassName; seo.Keywords += "," + allClassName.Replace("_",","); } } if (seo.Title.Equals("")){ seo.Title = offerinfo.Title; } titleinfo = "�Ҷ�����" + config.WebName + "�����ġ�" + offerinfo.Title + "���ܸ���Ȥ"; fieldbody = GetFiledInnerHTML(offerinfo.SortID, module.EName, offerinfo.FieldID); } //�ӹ���Ϣ if (module.EName.Equals("venture") || module.PEName.Equals("venture")) { pageinfo.ModuleFlag = "venture"; linkmodule = "buymachining"; descTableName = "i_Demand"; machininginfo = new XYECOM.Business.Demand().GetItem(lngInfoId); if (machininginfo == null || machininginfo.AuditingState != XYECOM.Model.AuditingState.Passed) { ShowErrorMsg("��Ϣ�����ڻ�δͨ����ˣ�"); return; } //���˹ؼ��� FilterKeyWord(machininginfo); sortId = machininginfo.TypeId; curInfoUserId = machininginfo.UserID; seoInfo = SEO.GetInfoPageSEO(module.EName); if (seoInfo != null) { seo.Title = seoInfo.Title.Replace("{keyword}", machininginfo.Title); seo.Description = seoInfo.Description.Replace("{keyword}", machininginfo.Title); seo.Keywords = seoInfo.Keywords.Replace("{keyword}", machininginfo.SortName); if (seoInfo.IsMatch) { allClassName = GetAllClassNameForSEO(infoFlag, machininginfo.TypeId); seo.Title += "_" + allClassName; seo.Description += "," + allClassName; seo.Keywords += "," + allClassName.Replace("_",","); } } if (seo.Title.Equals("")){seo.Title = machininginfo.Title;} titleinfo = "�Ҷ�����" + config.WebName + "�����ġ�" + machininginfo.Title + "���ܸ���Ȥ"; fieldbody = GetFiledInnerHTML(machininginfo.TypeId, module.EName, machininginfo.FieldID); } //������Ϣ if (module.EName.Equals("investment") || module.PEName.Equals("investment")) { pageinfo.ModuleFlag = "investment"; linkmodule = "buyinvestment"; descTableName ="i_InviteBusinessmanInfo"; investmentinfo = new XYECOM.Business.InviteBusinessmanInfo().GetItem(lngInfoId); if(investmentinfo ==null || investmentinfo.AuditingState != XYECOM.Model.AuditingState.Passed) { ShowErrorMsg("��Ϣ�����ڻ�δͨ����ˣ�"); return; } //���˹ؼ��� FilterKeyWord(investmentinfo); sortId = investmentinfo.SortID; curInfoUserId = investmentinfo.UserID; seoInfo = SEO.GetInfoPageSEO(module.EName); if (seoInfo != null) { seo.Title = seoInfo.Title.Replace("{keyword}", investmentinfo.Title); seo.Description = seoInfo.Description.Replace("{keyword}", investmentinfo.Title); seo.Keywords = seoInfo.Keywords.Replace("{keyword}", investmentinfo.SortName); if (seoInfo.IsMatch) { allClassName = GetAllClassNameForSEO(infoFlag, investmentinfo.SortID); seo.Title += "_" + allClassName; seo.Description += "," + allClassName; seo.Keywords += "," + allClassName.Replace("_",","); } } if (seo.Title.Equals("")){seo.Title = investmentinfo.Title;} titleinfo = "�Ҷ�����" + config.WebName + "�����ġ�" + investmentinfo.Title + "���ܸ���Ȥ"; fieldbody = GetFiledInnerHTML(investmentinfo.SortID, module.EName, investmentinfo.FieldID); } //������Ϣ if (module.EName.Equals("service") || module.PEName.Equals("service")) { pageinfo.ModuleFlag = "service"; linkmodule = "buyservice"; descTableName ="i_Surrogate"; serviceinfo = new XYECOM.Business.ServiceInfo().GetItem(lngInfoId); if (serviceinfo == null || serviceinfo.AuditingState != XYECOM.Model.AuditingState.Passed) { ShowErrorMsg("��Ϣ�����ڻ�δͨ����ˣ�"); return; } //���˹ؼ��� FilterKeyWord(serviceinfo); sortId = serviceinfo.SortID; curInfoUserId = serviceinfo.UserID; seoInfo = SEO.GetInfoPageSEO(module.EName); if (seoInfo != null) { seo.Title = seoInfo.Title.Replace("{keyword}", serviceinfo.Title); seo.Description = seoInfo.Description.Replace("{keyword}", serviceinfo.Title); seo.Keywords = seoInfo.Keywords.Replace("{keyword}", serviceinfo.SortName); if (seoInfo.IsMatch) { allClassName = GetAllClassNameForSEO(infoFlag, serviceinfo.SortID); seo.Title += "_" + allClassName; seo.Description += "," + allClassName; seo.Keywords += "," + allClassName.Replace("_",","); } } if (seo.Title.Equals("")){seo.Title = serviceinfo.Title;} titleinfo = "�Ҷ�����" + config.WebName + "�����ġ�" + serviceinfo.Title + "���ܸ���Ȥ"; fieldbody = GetFiledInnerHTML(serviceinfo.SortID, module.EName, serviceinfo.FieldID); } UpdateNavigation(module.EName, sortId); offerinfo.SellBuy = machininginfo.SellBuy = investmentinfo.SellBuy = serviceinfo.SellBuy = "buy"; if (lngInfoId > 0) { dtimg = XYECOM.Core.Function.GetDataTable(" where DescTabID=" + lngInfoId + " and DescTabName='"+descTableName+"' and At_Index > 1 ", " ", "XYV_Attachment"); } if (SEO.IsAppendWebName) { seo.Title = seo.Title + "_" + webInfo.WebName; seo.Description = seo.Description + "," + webInfo.WebName; seo.Keywords = seo.Keywords + "," + webInfo.WebName; } infoid = lngInfoId +""; dtm = GetExpressMessage(module.EName); //�û���Ϣ if (curInfoUserId > 0) { XYECOM.Business.UserInfo ui = new XYECOM.Business.UserInfo(); eui = ui.GetItem(Convert.ToInt64(curInfoUserId)); try { areaname = eui.AreaInfo.FullNameAll; } catch { } XYECOM.Business.UserReg ur = new XYECOM.Business.UserReg(); eu = ur.GetItem(Convert.ToInt64(curInfoUserId)); uinformation = eu.InFormation * 2; yearnum = DateTime.Compare(DateTime.Now, eu.RegDate).ToString(); } } }
/// <summary> /// ע�����û� /// </summary> /// <param name="userName">�û���¼��</param> /// <param name="password">�û�����</param> /// <param name="question">�һ���������</param> /// <param name="answer">�һ������</param> /// <param name="email">����</param> /// <param name="userType">�û�����</param> /// <param name="unitName">��ҵ���ƣ����Ϊ���ˣ�����Ϊ�գ�</param> /// <param name="linkman">��ϵ��</param> /// <param name="telephone">�̶��绰</param> /// <param name="mobile">�ֻ�</param> /// <param name="userId">ע��ɹ������û���ID</param> /// <returns></returns> public Model.ResisterUserReturnValue Register(string userName, string password, string question, string answer, string email, Model.UserType userType, string unitName, string linkman, string telephone, string mobile, out long userId) { userId = 0; #region �û�ע����Ϣ XYECOM.Model.UserRegInfo userRegInfo = new XYECOM.Model.UserRegInfo(); userRegInfo.LoginName = userName; userRegInfo.Password = XYECOM.Core.SecurityUtil.MD5(password, XYECOM.Configuration.Security.Instance.Md5value); userRegInfo.Answer = answer; userRegInfo.Question = question; userRegInfo.RegDate = DateTime.Now; userRegInfo.Email = email; #endregion XYECOM.Model.UserInfo userInfo = null; #region �����ҵ�û���Ϣ userInfo = new XYECOM.Model.UserInfo(); userInfo.Address = ""; userInfo.Character = ""; userInfo.HomePage = ""; userInfo.License = ""; userInfo.LinkMan = linkman; userInfo.Mobile = mobile; userInfo.Name = unitName; userInfo.EmployeeTotal = ""; userInfo.Postcode = ""; userInfo.Synopsis = ""; userInfo.UserTypeId = 0; userInfo.BuyPro = ""; userInfo.Post = ""; userInfo.Section = ""; userInfo.SupplyPro = ""; userInfo.SupplyOrBuy = 0; userInfo.Mode = ""; userInfo.RegisteredCapital = 0; userInfo.RegYear = 0; userInfo.Address = ""; userInfo.Mode = ""; userInfo.MainProduct = ""; userInfo.MoneyType = ""; userInfo.IM = ""; userInfo.Telephone = telephone; userInfo.Fax = ""; userInfo.TradeIds = ""; #endregion return Register(userRegInfo, userInfo, password, out userId); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!pageinfo.IsPost) { //this.pageinfo.OnLoadEvents +="GetClickNum();"; eb = brandinfo; moduleflag = "brand"; linkmodule = "brand"; pageinfo.ModuleFlag = moduleflag; if (XYECOM.Core.XYRequest.GetQueryString("infoid") != "") { dtm = GetExpressMessage("brand"); seo.Robots = true; infoid = XYECOM.Core.XYRequest.GetQueryString("infoid"); dtimg = XYECOM.Core.Function.GetDataTable(" where DescTabID=" + XYECOM.Core.XYRequest.GetQueryString("infoid") + " and DescTabName='u_Barnd' and At_Index > 1 ", " ", "XYV_Attachment"); XYECOM.Business.Brand b = new XYECOM.Business.Brand(); brandinfo = b.GetItem(Convert.ToInt64(XYECOM.Core.XYRequest.GetQueryString("infoid"))); if (brandinfo != null) { //���˹ؼ��� FilterKeyWord(brandinfo); seo.Title = brandinfo.Title; curInfoUserId = brandinfo.UserID; UpdateNavigation("brand",brandinfo.SortID); XYECOM.Configuration.SEOInfo seoInfo = SEO.GetInfoPageSEO("brand"); if (seoInfo!=null) { seo.Title = seoInfo.Title.Replace("{keyword}", brandinfo.Title); seo.Description = seoInfo.Description.Replace("{keyword}", brandinfo.Title); seo.Keywords = seoInfo.Keywords.Replace("{keyword}", brandinfo.Title); if (seoInfo.IsMatch) { string allClassName = GetAllClassNameForSEO("brand", brandinfo.SortID); seo.Title += "_" + allClassName; seo.Description += "_" + allClassName; seo.Keywords += "," + allClassName.Replace("_",","); } } if (seo.Title.Equals("")) seo.Title = brandinfo.Title; if (SEO.IsAppendWebName) { seo.Title = seo.Title + "_" + webInfo.WebName; seo.Description = seo.Description + "," + webInfo.WebName; seo.Keywords = seo.Keywords + "," + webInfo.WebName; } uids = brandinfo.UserID.ToString(); titleinfo = "�Ҷ�����" + config.WebName + "�����ġ�" + brandinfo.Title + "���ܸ���Ȥ"; eui = new XYECOM.Business.UserInfo().GetItem(brandinfo.UserID); eu = new XYECOM.Business.UserReg().GetItem(brandinfo.UserID); } } if (curInfoUserId > 0) { string onLoadText = "GetClickNum('" + linkmodule + "','" + pageinfo.ModuleFlag + "','" + infoid + "','" + curInfoUserId + "')"; string attachScript = "GetClickNum('" + linkmodule + "','" + pageinfo.ModuleFlag + "','" + infoid + "','" + curInfoUserId + "','0')"; attachScript = attachScript.Replace("'", "\\'"); this.pageinfo.OnLoadEvents += onLoadText + ";attachScript('LoginUpdate','" + attachScript + "');"; } } }