protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Page.User.Identity.Name)) { Response.Redirect("/Login.aspx?ReturnUrl=" + Server.UrlEncode(Request.RawUrl)); } if (!Page.IsPostBack) { this.ViewState["LoginMemberName"] = Page.User.Identity.Name; //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别 ZoneSelectControl1.CityID = model3.CityID.ToString().Trim(); //市 ZoneSelectControl1.ProvinceID = model3.ProvinceID.ToString().Trim(); //省 ZoneSelectControl1.CountyID = model3.CountyID.ToString().Trim(); //县 //显示联络人信息 InitInfoContact(); BindSetCapital(); // 绑定融资金额 Xmyxqxx(); //项目有效期限 } //以下是取得上传文件信息 this.FilesUploadControl1.InfoType = "Project"; this.FilesUploadControl1.NoneCount = 5; this.FilesUploadControl1.Count = 5; }
public void databind2() { DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); model2 = obj2.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); if (dt1.Rows.Count > 0) { txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } lbNickName.Text = dt1.Rows[0]["NickName"].ToString(); txtCompany.Text = dt1.Rows[0]["CompanyName"].ToString(); txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString(); txtContactName.Text = dt1.Rows[0]["ContactName"].ToString(); this.ViewState["tag"] = "add"; if (model2 != null) { txtMobile.Text = model2.Mobile; txtAddress.Text = model2.Address; txtPostCode.Text = model2.PostCode; this.ViewState["tag"] = "update"; } } }
//初始化联络人信息 private void InitInfoContact() { string loginName = Page.User.Identity.Name; DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + loginName + "'", "LoginName"); Tz888.BLL.Register.common bll = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model = new Tz888.Model.Register.OrgContactModel(); model = bll.getContactModel(loginName); if (model == null) { return; } txtCompanyName.Value = model.OrganizationName.Trim(); txtLinkMan.Value = model.Name.Trim(); txtMobile.Value = model.Mobile.Trim(); //telArea1.Value = model.TelCountryCode.Trim(); //国际号 //txtTelStateCode.Value = model.TelStateCode.Trim(); //区号 //txtTel.Value = model.TelNum.Trim(); //电话号 txtWebSite.Value = model.Website.Trim(); txtEmail.Value = model.Email.Trim(); txtAddress.Value = model.address.Trim(); // txtCareer.Value = model.Career.Trim(); if (dt1.Rows.Count > 0) { if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); telArea1.Value = tel[0].ToString(); txtTelStateCode.Value = tel[1].ToString(); txtTel.Value = tel[2].ToString(); } catch { telArea1.Value = "+86"; txtTelStateCode.Value = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTel.Value = dt1.Rows[0]["Tel"].ToString(); } } } Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); string name = Page.User.Identity.Name; model3 = obj3.GetModel(" LoginName='" + name + "'"); this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别 ZoneSelectControl1.CityID = model3.CityID.ToString().Trim(); //市 ZoneSelectControl1.ProvinceID = model3.ProvinceID.ToString().Trim(); //省 ZoneSelectControl1.CountyID = model3.CountyID.ToString().Trim(); //县 }
/// <summary> /// 加载用户联系信息 /// </summary> public void InitInfoContact() { string Lname = Page.User.Identity.Name; this.ViewState["LoginMemberName"] = Page.User.Identity.Name; DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + Lname + "'", "LoginName"); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别 ZoneSelectControl1.CityID = model3.CityID.ToString().Trim(); //市 ZoneSelectControl1.ProvinceID = model3.ProvinceID.ToString().Trim(); //省 ZoneSelectControl1.CountyID = model3.CountyID.ToString().Trim(); //县 Tz888.Model.Register.OrgContactModel org = new Tz888.Model.Register.OrgContactModel(); Tz888.BLL.Info.MarchantInfoBLL mar = new Tz888.BLL.Info.MarchantInfoBLL(); org = mar.SelLoginName(Page.User.Identity.Name); // org = mar.SelLoginName("dishi"); this.txtCompanyName.Text = org.OrganizationName; this.txtName.Text = org.Name; //this.txtPosition.Text = org.Position; //this.txtTelCountry.Text = org.TelCountryCode; //this.txtTelZoneCode.Text = org.TelStateCode; //this.txtTelNumber.Text = org.TelNum; this.txtMobile.Text = org.Mobile; this.txtEmail.Text = org.Email; this.txtAddress.Text = org.address; if (dt1.Rows.Count > 0) { if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { ///------------------------------ ///--design by AdSystem_20090620 ///------------------------------ bool isBuy = false; string viewid = "0"; string loginName = ""; if (Request.QueryString["v"] != null && Request.QueryString["v"].ToString() != "") { viewid = Request.QueryString["v"].ToString().Trim(); } if (Request.QueryString["LoginName"] != null && Request.QueryString["LoginName"].ToString() != "") { loginName = Request.QueryString["LoginName"].ToString().Trim(); } AdSystem.Logic loc = new AdSystem.Logic(); isBuy = loc.ViewInfo_IsBuy(Convert.ToInt64(viewid), loginName); if (!isBuy) { Response.Write("<script language=javascript>alert('您没有查看的权限,查询此信息需要花费1元,请先购买!');window.close();</script>"); return; } //要传的值 ManageTypeID = 1001 LoginName if (Request.QueryString["LoginName"] != null) { // ManageTypeID=Request.QueryString["ManageTypeID"] ; LoginName = Request.QueryString["LoginName"].ToString().Trim(); //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); //会员登陆信息 Tz888.SQLServerDAL.Conn obj4 = new Tz888.SQLServerDAL.Conn(); // DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='"+LoginName+"'"); //会员发布信息 // DataTable dt5 = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1000, 1, 0, 1, "LoginName='" + LoginName + "' "); DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + LoginName + "'", "LoginName"); model2 = obj2.getContactModel(LoginName); model3 = obj3.GetModel("LoginName='" + LoginName + "'"); if (dt1.Rows.Count > 0) { #region 信息绑定 lbRealName.Text = dt1.Rows[0]["RealName"].ToString() == "" ? dt1.Rows[0]["NickName"].ToString() : dt1.Rows[0]["RealName"].ToString();; lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); lbNickName.Text = dt1.Rows[0]["NickName"].ToString(); lblNickName2.Text = dt1.Rows[0]["NickName"].ToString(); HyperLink1.NavigateUrl = "http://member.topfo.com/helper/FriendManager/FriendFore.aspx?name=" + lbLoginName.Text; HyperLink2.NavigateUrl = "http://member.topfo.com/InnerInfo/SendView.aspx?name=" + lbNickName.Text; switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim()) { case "1001": lbManageType.Text = "个人会员"; break; case "1003": lbManageType.Text = "企业会员"; break; case "1004": lbManageType.Text = "政府会员"; break; default: break; } switch (dt1.Rows[0]["MemberGradeID"].ToString().Trim()) { case "1001": GradeDiv.Visible = false; break; case "1002": GradeDiv.Visible = true; break; default: break; } string req = dt1.Rows[0]["RequirInfo"].ToString().Trim(); string[] strReq = req.Split(','); string strRequar = ""; for (int i = 0; i < strReq.Length; i++) { switch (strReq[i].Trim()) { case "1001": strRequar += "政府招商 "; break; case "1002": strRequar += "企业招商 "; break; case "1003": strRequar += "项目融资 "; break; case "1004": strRequar += "项目投资 "; break; case "1005": strRequar += "创业合作 "; break; case "1006": strRequar += "产品供求 "; break; default: break; } } lbRequar.Text = strRequar;//会员意向 lbRegTime.Text = dt1.Rows[0]["RegisterTime"].ToString(); } if (model2 != null) { lbCareer.Text = model2.Career; lbOrganizationName.Text = model2.OrganizationName != "" ? model2.OrganizationName : "暂无"; lbtAddress.Text = model2.address != "" ? model2.address : "暂无"; lbSite.Text = model2.Website != "" ? model2.Website : "暂无"; } int rowCount = Convert.ToInt32(obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='" + LoginName + "'").Rows[0][0]); if (rowCount > 0) { DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 0, 1, "LoginName='" + LoginName + "'"); lbLoginCount.Text = rowCount.ToString(); lbLoginB.Text = dt4.Rows[0]["LoginTime"].ToString(); } else { lbLoginCount.Text = "1"; lbLoginB.Text = DateTime.Now.ToShortDateString(); } lbPublishCount.Text = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1, 1, 1, 1, "LoginName='" + LoginName + "' ").Rows[0][0].ToString(); if (model3 != null) { lbSex.Text = model3.Sex ? "(女)" : "(男)"; try { imgHead.ImageUrl = model3.HeadPortrait.ToString() != "" ? ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait.ToString() : @"../images/publish/noneimg.gif"; } catch { imgHead.ImageUrl = @"../images/publish/noneimg.gif"; } lbTel.Text = model3.Tel; lbMoble.Text = model3.Mobile; lbFax.Text = model3.FAX; } else { imgHead.ImageUrl = @"../images/publish/noneimg.gif"; } } else { Tz888.Common.MessageBox.Show(this.Page, "请求出错"); } #endregion }
protected void Page_Load(object sender, EventArgs e) { //btnOk.Attributes.Add("onclick", "return chkPost();"); this.ViewState["LoginMemberName"] = "262734254ee"; //Page.User.Identity.Name; this.ViewState["HeadPortrait"] = ""; //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); if (!IsPostBack) { #region 加载获取信息 this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别 ZoneSelectControl1.CityID = model3.CityID.ToString().Trim(); //市 ZoneSelectControl1.ProvinceID = model3.ProvinceID.ToString().Trim(); //省 ZoneSelectControl1.CountyID = model3.CountyID.ToString().Trim(); //县 txtAddress.Text = model3.Address.ToString(); //联系地址 txtEmail.Text = model3.Email.ToString(); //邮箱 txtContactName.Text = model3.MemberName.ToString(); //联系人姓名 txtMobile.Text = model3.Mobile.ToString(); //手机号码 txtPostCode.Text = model3.PostCode.ToString().Trim(); //邮编 txtNickName.Text = model3.NickName.ToString(); //昵称 DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString()); if (dt1.Rows.Count > 0) { //txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString().Trim(); if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } lbManageType.Text = ShenFen(dt1.Rows[0]["ManageTypeID"].ToString().Trim()); txtCompany.Text = dt1.Rows[0]["CompanyName"].ToString(); txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString(); if (model2 != null) { txtCompany.Text = model2.OrganizationName; } this.ViewState["tag"] = "update"; } else { this.ViewState["tag"] = "add"; } #endregion } }
protected void Page_Load(object sender, EventArgs e) { ///------------------------------ ///--design by AdSystem_20090620 ///------------------------------ bool isBuy = false; string viewid = "0"; string loginName = ""; if (Request.QueryString["v"] != null && Request.QueryString["v"].ToString() != "") { viewid = Request.QueryString["v"].ToString().Trim(); } if (Request.QueryString["LoginName"] != null && Request.QueryString["LoginName"].ToString() != "") { loginName = Request.QueryString["LoginName"].ToString().Trim(); } AdSystem.Logic loc = new AdSystem.Logic(); isBuy = loc.ViewInfo_IsBuy(Convert.ToInt64(viewid), loginName); if (!isBuy) { Response.Write("<script language=javascript>alert('您没有查看的权限,查询此信息需要花费1元,请先购买!');window.close();</script>"); return; } //要传的值 ManageTypeID = 1003 LoginName if (Request.QueryString["LoginName"] != null) { LoginName = Request.QueryString["LoginName"].ToString(); //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + LoginName + "'", "LoginName"); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); model2 = obj2.getContactModel(LoginName); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + LoginName + "'"); //会员登陆信息 Tz888.SQLServerDAL.Conn obj4 = new Tz888.SQLServerDAL.Conn(); // DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 10000, 1, 0, 1, "LoginName='" + LoginName + "'"); //会员发布信息 // DataTable dt5 = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1000, 1, 0, 1, "LoginName='" + LoginName + "'"); //公司登记信息 Tz888.BLL.Register.EnterpriseRegisterBLL obj6 = new Tz888.BLL.Register.EnterpriseRegisterBLL(); DataTable dt6 = obj6.getEnterpriseModel(LoginName); //公司附加信息 // DataTable dt7 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='kittycat'"); if (dt1 != null) { #region 信息绑定 lbRealName.Text = dt1.Rows[0]["RealName"].ToString() == "" ? dt1.Rows[0]["NickName"].ToString() : dt1.Rows[0]["RealName"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); lbNickName.Text = dt1.Rows[0]["NickName"].ToString(); lblNickName2.Text = dt1.Rows[0]["NickName"].ToString(); HyperLink1.NavigateUrl = "http://member.topfo.com/helper/FriendManager/FriendFore.aspx?name=" + lbLoginName.Text; HyperLink2.NavigateUrl = "http://member.topfo.com/InnerInfo/SendView.aspx?name=" + lbNickName.Text; switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim()) { case "1001": lbManageType.Text = "个人会员"; break; case "1003": lbManageType.Text = "企业会员"; break; case "1004": lbManageType.Text = "政府会员"; break; default: break; } switch (dt1.Rows[0]["MemberGradeID"].ToString().Trim()) { case "1001": GradeDiv.Visible = false; break; case "1002": GradeDiv.Visible = true; break; default: GradeDiv.Visible = false; break; } string req = dt1.Rows[0]["RequirInfo"].ToString(); string[] strReq = req.Split(','); string strRequar = ""; for (int i = 0; i < strReq.Length; i++) { switch (strReq[i].Trim()) { case "1001": strRequar += "政府招商 "; break; case "1002": strRequar += "企业招商 "; break; case "1003": strRequar += "项目融资 "; break; case "1004": strRequar += "项目投资 "; break; case "1005": strRequar += "创业合作 "; break; case "1006": strRequar += "产品供求 "; break; default: break; } } lbRequar.Text = strRequar;//会员意向 lbRegTime.Text = dt1.Rows[0]["RegisterTime"].ToString(); if (model3 != null) { lbSex.Text = model3.Sex ? "(女)" : "(男)"; imgHead.ImageUrl = model3.HeadPortrait.ToString() != "" ? ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait.ToString() : "../images/MemberData/nopic.gif"; } if (model2 != null) { lbCareer.Text = model2.Career; lbOrganizationName.Text = model2.OrganizationName != "" ? model2.OrganizationName : "暂无"; lbtAddress.Text = model2.address != "" ? model2.address : "暂无"; string tel = model2.TelCountryCode + model2.TelStateCode + model2.TelNum; lbTel.Text = tel != "" ? tel : "暂无"; lbMoble.Text = model2.Mobile != "" ? model2.Mobile : "暂无"; string fax = model2.FaxCountryCode + model2.FaxStateCode + model2.FaxNum; lbFax.Text = fax != "" ? fax : "暂无"; lbSite.Text = model2.Website != "" ? model2.Website : "暂无"; } int rowCount = Convert.ToInt32(obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='" + LoginName + "'").Rows[0][0]); if (rowCount > 0) { DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 0, 1, "LoginName='" + LoginName + "'"); lbLoginCount.Text = rowCount.ToString(); lbLoginB.Text = dt4.Rows[0]["LoginTime"].ToString(); } else { lbLoginCount.Text = "1"; lbLoginB.Text = DateTime.Now.ToShortDateString(); } lbPublishCount.Text = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1, 1, 1, 1, "LoginName='" + LoginName + "' ").Rows[0][0].ToString(); if (dt6 != null) { string strMP = dt6.Rows[0]["MainProduct"].ToString(); string MainProduct = ""; if (strMP.Trim() != "") { MainProduct = strMP.Remove(strMP.Length - 1); } lbMainProduct.Text = MainProduct != "" ? MainProduct : "暂无"; string str = dt6.Rows[0]["Industrylist"].ToString(); string[] strList = str.Split(','); Tz888.BLL.Common.IndustryBLL obj7 = new Tz888.BLL.Common.IndustryBLL(); string strIndustry = ""; for (int i = 0; i < strList.Length; i++) { if (strList[i] != "") { strIndustry += obj7.GetNameByID(strList[i]) + " "; } } lbIndustryModels.Text = strIndustry != "" ? strIndustry : "暂无"; // 2已审核(已审基本信息),0未审核、1审核通过、3审核不通过、4退款 if (dt6.Rows[0]["AuditingStatus"].ToString() == "1") { //查询认证信息 DataTable ddt6 = obj4.GetList("OrgAuditTab", "*", "AuditingDate", 1, 1, 0, 1, "LoginName='" + LoginName + "'"); lbAuditingStatus.Text = ddt6.Rows[0]["AuditingDate"].ToString() + "通过认证"; } else { lbAuditingStatus.Text = "暂未通过认证"; } lbExhibitionHall.Text = dt6.Rows[0]["ExhibitionHall"].ToString() != "" ? "http://www." + dt6.Rows[0]["ExhibitionHall"].ToString() + ".co.tz888.cn " : "暂无"; } /// 资源类型 /// 0 -其他文档 /// 1 -图片 /// 2 -视频 /// <summary> /// 资源性质 /// 0 --其他 /// 1--立项批文 ///2--商业计划书 ///3 --项目视频展播 /// 附:(公司登记附件 4-8) ///4营业执照 ///5税务登记证(国税) ///6税务登记证(地税) ///7荣誉和证书 ///8其它 if (Page.User.IsInRole("GT1001")) //普通会员 { spanRM.Visible = false; } else { DataTable dtmr4 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=4"); if (dtmr4 != null) { lbResourceType4.Text = dtmr4.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传"; } else { lbResourceType4.Text = "暂无"; } DataTable dtmr56 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=5 OR ResourceType=6"); if (dtmr56 != null) { lbResourceType56.Text = dtmr56.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传"; } else { lbResourceType56.Text = "暂无"; } DataTable dtmr7 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=7"); if (dtmr7 != null) { lbResourceType7.Text = dtmr7.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传"; } else { lbResourceType7.Text = "暂无"; } } } #endregion } else { Tz888.Common.MessageBox.Show(this.Page, "请求出错"); } }
protected void Page_Load(object sender, EventArgs e) { //btnOk.Attributes.Add("onclick", "return chkPost();"); //this.ViewState["LoginMemberName"] = Page.User.Identity.Name; this.ViewState["LoginMemberName"] = "xiongmaozi"; this.ViewState["HeadPortrait"] = ""; //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); if (!IsPostBack) { DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString()); if (dt1.Rows.Count > 0) { txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } txtNickName.Text = dt1.Rows[0]["NickName"].ToString(); txtCompany.Text = dt1.Rows[0]["CompanyName"].ToString(); txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString(); txtContactName.Text = dt1.Rows[0]["ContactName"].ToString(); if (model2 != null) { txtMobile.Text = model2.Mobile; txtAddress.Text = model2.address; txtPostCode.Text = model2.PostCode; } this.ViewState["tag"] = "update"; } else { this.ViewState["tag"] = "add"; } } }
protected void Page_Load(object sender, EventArgs e) { //btnOk.Attributes.Add("onclick", "return chkPost();"); this.ViewState["LoginMemberName"] = Page.User.Identity.Name; this.ViewState["HeadPortrait"] = ""; //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); //判断是个人会员还是企业会员 Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL(); string propertyid = dal1.GetPropertyID(Page.User.Identity.Name.Trim()); if (propertyid == "1") { lbManageType.Text = "项目方 (个人)"; } if (!IsPostBack) { DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString()); if (dt1.Rows.Count > 0) { txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } lbNickName.Text = dt1.Rows[0]["NickName"].ToString(); txtCompany.Text = dt1.Rows[0]["CompanyName"].ToString(); txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString(); txtContactName.Text = dt1.Rows[0]["ContactName"].ToString(); if (model2 != null) { txtMobile.Text = model2.Mobile; txtAddress.Text = model2.address; txtPostCode.Text = model2.PostCode; } ///--------------------------------- ///design by ww (20090526) ///--------------------------------- if (model3 != null) { //modelInfo3.Address = txtAddress.Text; //modelInfo3.Birthday = DateTime.Now; //modelInfo3.Email = txtEmail.Text; //modelInfo3.Mobile = txtMobile.Text; //modelInfo3.NickName = lbNickName.Text; //modelInfo3.PostCode = txtPostCode.Text; txtAddress.Text = model3.Address.ToString(); txtEmail.Text = model3.Email.ToString(); txtMobile.Text = model3.Mobile.ToString(); lbNickName.Text = model3.NickName.ToString(); txtPostCode.Text = model3.PostCode.ToString(); txtContactName.Text = model3.MemberName; } this.ViewState["tag"] = "update"; } else { this.ViewState["tag"] = "add"; } } }
protected void Page_Load(object sender, EventArgs e) { btnOk.Attributes.Add("onclick", "return chkPost();"); this.ViewState["LoginMemberName"] = Page.User.Identity.Name; this.ViewState["HeadPortrait"] = ""; //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); ////头像 //if (model3 != null) //{ // rblSex.SelectedValue = model3.Sex.ToString(); // if (model3.HeadPortrait != "" && model3.HeadPortrait != null) // { // FileUploader1.Img = ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait; // FileUploader1.ButtonName = "修改"; // FileUploader1.MaxPics = 0; // FileUploader1.IsUp = "0";//是否通过控件上传 // // this.ViewState["HeadPortrait"] = model3.HeadPortrait; // this.ViewState["HeadPortrait"] = model3.HeadPortrait; // } // else // { // FileUploader1.Img = "../images/MemberData/nopic.gif"; // FileUploader1.ButtonName = "修改"; // FileUploader1.MaxPics = 1; // FileUploader1.IsUp = "0";//是否通过控件上传 // } //} if (!IsPostBack) { DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString()); if (dt1.Rows.Count > 0) { #region 信息绑定 txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim()) { case "1001": lbManageType.Text = "个人会员"; ChkLstRequirInfo.Items[0].Enabled = false; Label1.Text = "公司网址"; hlView.NavigateUrl = "MemberMessage_P.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); HyperLink1.NavigateUrl = "MemberMessage_P.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); break; case "1003": lbManageType.Text = "企业会员"; ChkLstRequirInfo.Items[0].Enabled = false; Label1.Text = "公司网址"; hlView.NavigateUrl = "MemberMessage_E.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); HyperLink1.NavigateUrl = "MemberMessage_E.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); break; case "1004": lbManageType.Text = "政府会员"; ChkLstRequirInfo.Items[1].Enabled = false; ChkLstRequirInfo.Items[2].Enabled = false; ChkLstRequirInfo.Items[3].Enabled = false; ChkLstRequirInfo.Items[4].Enabled = false; ChkLstRequirInfo.Items[5].Enabled = false; Label1.Text = "机构网址"; hlView.NavigateUrl = "MemberMessage_G.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); HyperLink1.NavigateUrl = "MemberMessage_G.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString(); break; default: break; } this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); string[] code = dt1.Rows[0]["RequirInfo"].ToString().Split(new char[] { ',' }, 6); foreach (ListItem li in ChkLstRequirInfo.Items) { for (int i = 0; i < code.Length; i++) { if (li.Value == code[i].Trim()) { li.Selected = true; } } } if (dt1.Rows[0]["Tel"] != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();//因以前数据格式不同原因,没有用‘-’分格 } } lbNickName.Text = dt1.Rows[0]["NickName"].ToString(); txtMemberName.Text = dt1.Rows[0]["RealName"].ToString(); //公司,机构登记 公司网址 if (Page.User.IsInRole("MT1004"))//机构 { Tz888.BLL.Register.GovernmentRegisterBLL obj = new Tz888.BLL.Register.GovernmentRegisterBLL(); DataTable dtGov = obj.getGovernmentModel(this.ViewState["LoginMemberName"].ToString()); if (dtGov == null) { Label2.Text = "<span class='hui'> 您还没有登记您的机构信息<a href='/Register/GovernmentRegister.aspx'>立即登记</a></span>"; Label3.Text = "<span class='hui'>如果您的机构还没有网站</span><a href='http://co.topfo.com/manager/intro.aspx' target='blank'>请点此建立您的网上展厅</a>"; } else { Label3.Text = "<span class='hui'>您的展厅地址为:www." + dtGov.Rows[0]["ExhibitionHall"].ToString().Trim() + ".co.tz888.cn <span class='hui'>,如果您的公司还没有网站,可用此网址。</span> "; } } else if (Page.User.IsInRole("MT1003")) //企业 { Tz888.BLL.Register.EnterpriseRegisterBLL obj = new Tz888.BLL.Register.EnterpriseRegisterBLL(); DataTable dtEnt = obj.getEnterpriseModel(this.ViewState["LoginMemberName"].ToString()); if (dtEnt == null) { Label2.Text = "<span class='hui'> 您还没有登记您的公司信息<a href='/Register/EnterpriseRegister.aspx'>立即登记</a></span>"; Label3.Text = "<span class='hui'>如果您的公司还没有网站</span><a href='http://co.topfo.com/Manager/intro.aspx' target='blank'>请点此建立您的网上展厅</a>"; } else { Label3.Text = "<span class='hui'>您的展厅地址为:www." + dtEnt.Rows[0]["ExhibitionHall"].ToString().Trim() + ".co.tz888.cn <span class='hui'>,如果您的公司还没有网站,可用此网址。</span> "; } } else if (Page.User.IsInRole("MT1001")) //个人 { Label2.Text = ""; } if (model2 != null) { txtOrganizationName.Text = model2.OrganizationName; txtMobile.Text = model2.Mobile; txtFaxCountry.Text = model2.FaxCountryCode; txtFaxZoneCode.Text = model2.FaxStateCode; txtFaxNumber.Text = model2.FaxNum; txtAddress.Text = model2.address; txtPostCode.Text = model2.PostCode; } else { } #endregion this.ViewState["tag"] = "update"; } else { this.ViewState["tag"] = "add"; } } //会员是否存在 AjaxPro.Utility.RegisterTypeForAjax(typeof(Tz888.Common.Ajax.AjaxMethod)); }
private void BindShow() { this.ViewState["LoginMemberName"] = "wa"; this.ViewState["HeadPortrait"] = ""; //注册信息 Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common obj2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL obj3 = new Tz888.BLL.Register.MemberInfoBLL(); model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'"); //判断是个人会员还是企业会员 Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL(); string propertyid = dal1.GetPropertyID("wa"); this.radiotype.Items.FindByValue(propertyid.Trim()).Selected = true; if (propertyid == "1") { lbManageType.Text = "项目方 (个人)"; } else { lbManageType.Text = "项目方 (企业)"; } DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName"); this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString(); model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString()); if (dt1.Rows.Count > 0) { txtEmail.Text = dt1.Rows[0]["Email"].ToString(); lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString(); if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "") { try { string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-'); txtTelCountry.Text = tel[0].ToString(); txtTelZoneCode.Text = tel[1].ToString(); txtTelNumber.Text = tel[2].ToString(); } catch { txtTelCountry.Text = "+86"; txtTelZoneCode.Text = ""; //因以前数据格式不同原因,没有用‘-’分格 txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString(); } } txtNickName.Text = dt1.Rows[0]["NickName"].ToString(); txtCompany.Text = dt1.Rows[0]["CompanyName"].ToString(); txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString(); txtContactName.Text = dt1.Rows[0]["ContactName"].ToString(); if (model2 != null) { txtMobile.Text = model2.Mobile; txtAddress.Text = model2.address; txtPostCode.Text = model2.PostCode; } ///--------------------------------- ///design by ww (20090526) ///--------------------------------- if (model3 != null) { //modelInfo3.Address = txtAddress.Text; //modelInfo3.Birthday = DateTime.Now; //modelInfo3.Email = txtEmail.Text; //modelInfo3.Mobile = txtMobile.Text; //modelInfo3.NickName = txtNickName.Text; //modelInfo3.PostCode = txtPostCode.Text; txtAddress.Text = model3.Address.ToString(); txtEmail.Text = model3.Email.ToString(); txtMobile.Text = model3.Mobile.ToString(); txtNickName.Text = model3.NickName.ToString(); txtPostCode.Text = model3.PostCode.ToString(); txtContactName.Text = model3.MemberName; } this.ViewState["tag"] = "update"; } else { this.ViewState["tag"] = "add"; } }