protected void Button1_ServerClick(object sender, EventArgs e) { string infochk = SelectedValueString(infocheck1) + SelectedValueString(infocheck2) + SelectedValueString(infocheck3); string dzchk = SelectedValueString(dzchk1) + SelectedValueString(dzchk2) + SelectedValueString(dzchk3); string InfoValiChk = SelectedValueString(InfoValiChk1) + SelectedValueString(InfoValiChk2) + SelectedValueString(InfoValiChk3); string memberValiChk = SelectedValueString(memberValiChk1) + SelectedValueString(memberValiChk2) + SelectedValueString(memberValiChk3); string addfriendchk = SelectedValueString(addfriendchk1) + SelectedValueString(addfriendchk2) + SelectedValueString(addfriendchk3); string commentchk = SelectedValueString(commentchk1) + SelectedValueString(commentchk2) + SelectedValueString(commentchk3); string rebackchk = SelectedValueString(rebackchk1) + SelectedValueString(rebackchk2) + SelectedValueString(rebackchk3); string ppchk = SelectedValueString(ppchk1) + SelectedValueString(ppchk2) + SelectedValueString(ppchk3); string buychk = SelectedValueString(buychk1) + SelectedValueString(buychk2) + SelectedValueString(buychk3); string czchk = SelectedValueString(czchk1) + SelectedValueString(czchk2) + SelectedValueString(czchk3); Tz888.BLL.UserParameters bll = new Tz888.BLL.UserParameters(); Tz888.Model.UserParameters model = new Tz888.Model.UserParameters(); model.LoginName = loginname; model.InfoCheckNotice = infochk; model.SubscribeNotice = dzchk; model.InfoExpiredNotice = InfoValiChk; model.VipExpiredNotice = memberValiChk; model.FriendAddNotice = addfriendchk; model.InfoCommentNotice = commentchk; model.RebackNotice = rebackchk; model.PayNotice = buychk; model.StrikeNotice = czchk; model.InfoMatchingNotice = ppchk; model.NoticeEmail = txtEmail.Value.Trim(); model.NoticeMobile = txtMobile.Value.Trim(); bool b = bll.NoticeTypeSet(model); if (b) { Tz888.Common.MessageBox.Show(this.Page, "设置成功!"); } }
protected void Button1_ServerClick(object sender, EventArgs e) { dzchk = SelectedValueString(dzchk1) + SelectedValueString(dzchk2) + SelectedValueString(dzchk3); Tz888.BLL.UserParameters bll = new Tz888.BLL.UserParameters(); Tz888.Model.UserParameters model = new Tz888.Model.UserParameters(); model.LoginName = Page.User.Identity.Name; model.InfoMatchingNotice = dzchk; model.NoticeEmail = txtEmail.Value.Trim(); model.NoticeMobile = txtMobile.Value.Trim() ; bool b = bll.NoticeTypeSet(model); if (b) { Tz888.Common.MessageBox.Show(this.Page,"设置成功!"); this.Hidden1.Value = "1"; bind(); } }
protected void btnEnter_ServerClick(object sender, EventArgs e) { Tz888.Model.SubscribeGetSet model = new Tz888.Model.SubscribeGetSet(); Tz888.BLL.SubscribeSet dal = new Tz888.BLL.SubscribeSet(); List <Tz888.Model.Common.IndustryModel> industryModel = new List <Tz888.Model.Common.IndustryModel>(); //融资行业实体列表 List <Tz888.Model.Info.CapitalInfoAreaModel> AreaModel = new List <Tz888.Model.Info.CapitalInfoAreaModel>(); //投资区域信息实体列表 bool b = false; //if (isGet.Checked) //{ if (chkNeed.SelectedValue == "") { lblMsg.Text = "请至少选择一个受众对象"; return; } if (cbkMobile.Checked && txtMobile.Value == "") { Label1.Text = "手机号不能为空"; return; } model.IsGet = 1; model.LoginName = loginname; model.objectGradeID = rabGradeID.SelectedValue; string needtype = ""; for (int i = 0; i < chkNeed.Items.Count; i++) { if (chkNeed.Items[i].Selected) { needtype += chkNeed.Items[i].Value.ToString() + ","; } } model.objectNeed = needtype; AreaModel = this.ZoneControl.CapitalInfoAreaModels; //industryModel = this.IndustryControl.IndustryModels; //区域 for (int i = 0; i < AreaModel.Count; i++) { model.CountryCode += AreaModel[i].CountryCode + ","; model.ProvinceID += AreaModel[i].ProvinceID + ","; model.CityID += AreaModel[i].CityID + ","; model.CountyID += AreaModel[i].CountyID + ","; } string industry = "";//行业 for (int j = 0; j < industryModel.Count; j++) { industry += industryModel[j].IndustryBID + ","; } model.Industry = industry; string reveivetype = ""; #region //for (int i = 0; i < chkGetType.Items.Count; i++) //{ // if (chkGetType.Items[i].Selected) // { // reveivetype += chkGetType.Items[i].Value.ToString() + ","; // } //} #endregion if (cbkEmail.Checked) { reveivetype += "1,2,"; } if (cbkMobile.Checked) { reveivetype += "3"; } model.ReveiveType = reveivetype;//接收方式 b = dal.ReceivedSet(model); if (b) { Tz888.BLL.UserParameters noticenNO = new Tz888.BLL.UserParameters(); bool notice = noticenNO.NoticeSet(loginname, ViewState["Email"].ToString(), txtMobile.Value.Trim()); Tz888.Common.MessageBox.ShowAndHref("设置成功!", Request.Url.ToString()); } }