protected void btnOk_Click(object sender, EventArgs e) { string zone = txtTelCountry.Text.ToString().Trim(); string country = txtTelZoneCode.Text.ToString().Trim(); string tel = txtTelNumber.Text.ToString().Trim(); string phone = zone + "-" + country + "-" + tel; //注册信息 //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common(); //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL objInfo3 = new Tz888.BLL.Register.MemberInfoBLL(); string LoginName = this.ViewState["LoginMemberName"].ToString(); string MemberName = txtCompany.Text.Trim(); //bool Sex = Convert.ToBoolean(rblSex.SelectedValue); string NickName = lbNickName.Text; string Address = txtAddress.Text; string PostCode = txtPostCode.Text; string Mobile = txtMobile.Text; string ManageTypeID = this.ViewState["ManageTypeID"].ToString(); modelInfo3.LoginName = LoginName; //登录名 modelInfo3.CountryCode = ZoneSelectControl1.CountryID.ToString().Trim(); modelInfo3.CityID = ZoneSelectControl1.CityID.ToString().Trim(); modelInfo3.ProvinceID = ZoneSelectControl1.ProvinceID.ToString().Trim(); modelInfo3.CountyID = ZoneSelectControl1.CountyID.ToString().Trim(); modelInfo3.MemberName = txtContactName.Text.Trim(); //联系人姓名 modelInfo3.Address = txtAddress.Text; //地址 modelInfo3.Birthday = DateTime.Now; //日期 modelInfo3.Email = txtEmail.Text; //邮箱 modelInfo3.Mobile = txtMobile.Text; //手机 modelInfo3.NickName = lbNickName.Text; //昵称 modelInfo3.PostCode = txtPostCode.Text; //邮编 modelInfo3.Tel = phone.Trim(); //电话 modelInfo3.ContactName = txtCompany.Text.ToString().Trim(); //招商机构名称 modelInfo3.ContactTitle = txtContactTitle.Text.ToString().Trim(); //职位 int int1 = 0; long int2 = 0; //判断会员信息表里是否己存在,并更新注册表 if (this.ViewState["tag"].ToString() == "add") { int1 = objInfo3.MemberMessage_Insert(modelInfo3); } else if (this.ViewState["tag"].ToString() == "update") { int1 = objInfo3.MemberMessage_Update(modelInfo3); } //判断登记联系人表里是否己存在 //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2); if (int1 > 0) { Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!"); } }
protected void btnOk_Click(object sender, EventArgs e) { //注册信息 //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common(); //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL objInfo3 = new Tz888.BLL.Register.MemberInfoBLL(); string LoginName = this.ViewState["LoginMemberName"].ToString(); string MemberName = txtCompany.Text.Trim(); //bool Sex = Convert.ToBoolean(rblSex.SelectedValue); string NickName = lbNickName.Text; string Address = txtAddress.Text; string PostCode = txtPostCode.Text; string Mobile = txtMobile.Text; string ManageTypeID = this.ViewState["ManageTypeID"].ToString(); modelInfo3.Address = txtAddress.Text; modelInfo3.Birthday = DateTime.Now; modelInfo3.Email = txtEmail.Text; modelInfo3.Mobile = txtMobile.Text; modelInfo3.NickName = lbNickName.Text; modelInfo3.PostCode = txtPostCode.Text; int int1 = 0; long int2 = 0; //判断会员信息表里是否己存在,并更新注册表 if (this.ViewState["tag"].ToString() == "add") { int1 = objInfo3.MemberMessage_Insert(modelInfo3); } else if (this.ViewState["tag"].ToString() == "update") { int1 = objInfo3.MemberMessage_Update(modelInfo3); } //判断登记联系人表里是否己存在 //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2); if (int1 > 0) { Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!"); } }
public void update2() { string LoginName = this.ViewState["LoginMemberName"].ToString(); string MemberName = txtCompany.Text.Trim(); //bool Sex = Convert.ToBoolean(rblSex.SelectedValue); string NickName = lbNickName.Text; string Address = txtAddress.Text; string PostCode = txtPostCode.Text; string Mobile = txtMobile.Text; string ManageTypeID = this.ViewState["ManageTypeID"].ToString(); string TelStr = txtTelCountry.Text.Trim() + "-" + txtTelZoneCode.Text.Trim() + "-" + txtTelNumber.Text.Trim(); string ContactTitle = txtContactTitle.Text.Trim(); string ContactName = txtContactName.Text.Trim(); model2.LoginName = lbLoginName.Text.Trim(); model2.Tel = TelStr.Trim(); model2.ContactName = txtContactName.Text.Trim(); model2.ContactTitle = txtContactTitle.Text.Trim(); model2.MemberName = txtCompany.Text.Trim(); model2.Address = txtAddress.Text; model2.Birthday = DateTime.Now; model2.Email = txtEmail.Text; model2.Mobile = txtMobile.Text; model2.NickName = lbNickName.Text; model2.PostCode = txtPostCode.Text; int int1 = 0; //判断会员信息表里是否己存在,并更新注册表 if (this.ViewState["tag"].ToString() == "add") { int1 = obj2.MemberMessage_Insert(model2); } else if (this.ViewState["tag"].ToString() == "update") { int1 = obj2.MemberMessage_Update(model2); } //判断登记联系人表里是否己存在 //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2); if (int1 > 0) { Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!"); } }
protected void btnOk_Click(object sender, EventArgs e) { //注册信息 Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common(); Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL objInfo3 = new Tz888.BLL.Register.MemberInfoBLL(); #region 信息赋值 string LoginName = this.ViewState["LoginMemberName"].ToString(); string MemberName = txtMemberName.Text.Trim(); bool Sex = Convert.ToBoolean(rblSex.SelectedValue); string NickName = lbNickName.Text; string Address = txtAddress.Text; string PostCode = txtPostCode.Text; string Mobile = txtMobile.Text; string ManageTypeID = this.ViewState["ManageTypeID"].ToString(); #region 注册信息 modelInfo3.MemberID = 0; modelInfo3.LoginName = this.ViewState["LoginMemberName"].ToString(); modelInfo3.MemberName = MemberName; modelInfo3.Sex = Sex; modelInfo3.NickName = NickName; modelInfo3.Birthday = DateTime.Now; modelInfo3.CertificateID = ""; modelInfo3.CertificateNumber = ""; modelInfo3.CountryCode = ""; modelInfo3.ProvinceID = ""; modelInfo3.CountyID = ""; modelInfo3.Address = Address; modelInfo3.PostCode = PostCode; modelInfo3.Tel = txtTelCountry.Text + "-" + txtTelZoneCode.Text + "-" + txtTelNumber.Text; modelInfo3.Mobile = txtMobile.Text; modelInfo3.FAX = txtFaxCountry.Text + "-" + txtFaxZoneCode.Text + "-" + txtFaxNumber.Text; modelInfo3.Email = txtEmail.Text; modelInfo3.IsSecurity = false; modelInfo3.ManageTypeID = ManageTypeID; string strRequirInfo = ""; foreach (ListItem li in ChkLstRequirInfo.Items) { if (li.Selected && li.Enabled) { strRequirInfo = strRequirInfo + li.Value.ToString().Trim() + ","; } } if (strRequirInfo == "") { Tz888.Common.MessageBox.Show(this.Page, "请选择您的用户意向。"); } modelInfo3.RequirInfo = strRequirInfo; modelInfo3.RequirInfoDesc = ""; //保存头像 string Pic1 = ""; try { string[] UploadImgFileName = FileUploader1.SaveImages("MemberHead"); if (UploadImgFileName.Length > 0) { Pic1 = UploadImgFileName[0]; } } catch (Exception aa) { //// Response.Write(aa.ToString()); //return; } if (this.ViewState["HeadPortrait"] != null && this.ViewState["HeadPortrait"].ToString() != "") { modelInfo3.HeadPortrait = Pic1 != "" ? Pic1 : this.ViewState["HeadPortrait"].ToString(); } else { modelInfo3.HeadPortrait = Pic1 != "" ? Pic1 : ""; } this.ViewState["HeadPortrait"] = modelInfo3.HeadPortrait; // Response.Write(Session["HeadPortrait"].ToString()); FileUploader1.Img = ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + modelInfo3.HeadPortrait; FileUploader1.ButtonName = "修改"; FileUploader1.MaxPics = 1; FileUploader1.IsUp = "0";//是否通过控件上传 #endregion #region 公司登记信息 modelInfo2.ContactID = 0; modelInfo2.LoginName = this.ViewState["LoginMemberName"].ToString(); modelInfo2.OrganizationName = txtOrganizationName.Text; modelInfo2.Name = LoginName; modelInfo2.Career = tbCareer.Text; modelInfo2.TelCountryCode = txtTelCountry.Text; modelInfo2.TelStateCode = txtTelZoneCode.Text; modelInfo2.TelNum = txtTelNumber.Text; modelInfo2.FaxCountryCode = txtFaxCountry.Text; modelInfo2.FaxStateCode = txtFaxZoneCode.Text; modelInfo2.FaxNum = txtFaxNumber.Text; modelInfo2.Email = txtEmail.Text; modelInfo2.Mobile = txtMobile.Text; modelInfo2.address = txtAddress.Text; modelInfo2.PostCode = txtPostCode.Text; modelInfo2.Website = txtWebSite.Text; modelInfo2.IsDel = false; modelInfo2.remark = ""; #endregion #endregion int int1 = 0; long int2 = 0; //判断会员信息表里是否己存在,并更新注册表 if (this.ViewState["tag"].ToString() == "add") { int1 = objInfo3.MemberMessage_Insert(modelInfo3); } else if (this.ViewState["tag"].ToString() == "update") { int1 = objInfo3.MemberMessage_Update(modelInfo3); } //判断登记联系人表里是否己存在 int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2); if (int1 > 0 && int2 > 0) { Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!"); } }
protected void btnOk_Click(object sender, EventArgs e) { //注册信息 //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL(); //登记联系人 //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common(); //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel(); //会员信息表 Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel(); Tz888.BLL.Register.MemberInfoBLL objInfo3 = new Tz888.BLL.Register.MemberInfoBLL(); string LoginName = this.ViewState["LoginMemberName"].ToString(); string MemberName = txtCompany.Text.Trim(); //bool Sex = Convert.ToBoolean(rblSex.SelectedValue); string NickName = txtNickName.Text; string Address = txtAddress.Text; string PostCode = txtPostCode.Text; string Mobile = txtMobile.Text; string ManageTypeID = this.ViewState["ManageTypeID"].ToString(); ///--------------------------------- ///design by ww (20090526) ///--------------------------------- modelInfo3.LoginName = LoginName; modelInfo3.MemberName = MemberName; modelInfo3.Tel = txtTelCountry.Text.Trim() + "-" + txtTelZoneCode.Text.Trim() + "-" + txtTelNumber.Text.Trim(); //modelInfo3.RequirInfo = txtContactTitle.Text;//职位 modelInfo3.Address = txtAddress.Text; modelInfo3.Birthday = DateTime.Now; modelInfo3.Email = txtEmail.Text; modelInfo3.Mobile = txtMobile.Text; modelInfo3.NickName = txtNickName.Text; modelInfo3.PostCode = txtPostCode.Text; modelInfo3.MemberName = txtContactName.Text; int int1 = 0; //判断会员信息表里是否己存在,并更新注册表 if (this.ViewState["tag"].ToString() == "add") { int1 = objInfo3.MemberMessage_Insert(modelInfo3); } else if (this.ViewState["tag"].ToString() == "update") { int1 = objInfo3.MemberMessage_Update(modelInfo3); } Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL(); int resultproperty = dal1.UpdateLoginPropertyID(this.ViewState["LoginMemberName"].ToString(), Convert.ToInt32(this.radiotype.SelectedValue), 2003); //判断登记联系人表里是否己存在 //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2); if (int1 > 0 && resultproperty > 0) { Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!"); } }