Пример #1
0
    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, "设置成功!");
        }
    }
Пример #2
0
    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();         
        }
    }