Ejemplo n.º 1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            int _tempnum;

            SysConfig.Instance.Update("RegisterOpen", ddlRegisterOpen.SelectedValue);
            SysConfig.Instance.Update("RequiredAudit", ddlRequiredAudit.SelectedValue);
            SysConfig.Instance.Update("AllowUserloginByEmail", rbl_AllowUserloginByEmail.SelectedValue);
            SysConfig.Instance.Update("AllowUserloginByPhone", rbl_AllowUserloginByPhone.SelectedValue);
            SysConfig.Instance.Update("ActivationByEmail", rbl_ActivationByEmail.SelectedValue);

            SysConfig.Instance.Update("LoginMsgForlock", this.txtLoginMsgForlock.Text.Trim());
            SysConfig.Instance.Update("LoginMsgForUnCheck", this.txtLoginMsgForUnCheck.Text.Trim());
            SysConfig.Instance.Update("LoginMsgForCheckfail", this.txtLoginMsgForCheckfail.Text.Trim());

            SysConfig.Instance.Update("PhoneAuthenticate", rbl_PhoneAuthenticate.SelectedValue);

            if (int.TryParse(txtSmsMaxSendTimes.Text.Trim(), out _tempnum))
            {
                SysConfig.Instance.Update("SmsMaxSendTimes", txtSmsMaxSendTimes.Text.Trim());
            }

            SysConfig.Instance.Update("DefaultUserLevel", ddlDefaultUserLevel.SelectedValue);
            SysConfig.Instance.Update("DefaultCardVersion", ddlcardversion.SelectedValue);

            if (int.TryParse(txtDefaultCPSDrate.Text.Trim(), out _tempnum))
            {
                SysConfig.Instance.Update("DefaultCPSDrate", txtDefaultCPSDrate.Text.Trim());
            }

            WebUtility.ClearCache("SYSCONFIG");

            ShowMessageBox("操作成功");
        }
Ejemplo n.º 2
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            SysConfig.Instance.Update("AppKey", this.txtAppKey.Text.Trim());
            SysConfig.Instance.Update("AppSecret", this.txtAppSecret.Text.Trim());

            SysConfig.Instance.Update("AliDCode_logo_name", this.txtlogo_name.Text.Trim());
            SysConfig.Instance.Update("AliDCode_goods_info_name", this.txtgoods_info_name.Text.Trim());
            SysConfig.Instance.Update("AliDCode_goods_info_desc", this.txtgoods_info_desc.Text.Trim());


            WebUtility.ClearCache("SYSCONFIG");

            ShowMessageBox("操作成功");
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            ObjectInfo.Domain = (this.txtDomain.Text.ToLower());
            ObjectInfo.PayUrl = (this.txtPayUrl.Text.ToLower());
            ObjectInfo.Footer = (this.txtFooter.Text);
            ObjectInfo.Name   = (this.txtName.Text);
            ObjectInfo.Phone  = (this.txtPhone.Text);
            ObjectInfo.Jsqq   = (this.txtJSQQ.Text);
            ObjectInfo.Kfqq   = (this.txtKFQQ.Text);
            ObjectInfo.Code   = (this.txtCode.Text);

            ObjectInfo.apibankname    = this.txtapibankname.Text.Trim();
            ObjectInfo.apibankversion = this.txtapibankversion.Text.Trim();
            ObjectInfo.apicardname    = this.txtapicardname.Text.Trim();
            ObjectInfo.apicardversion = this.txtapicardversion.Text.Trim();


            if (this.txtName.Text == "")
            {
                AlertAndRedirect("网站名称不能为空!");
                return;
            }
            if (this.txtDomain.Text == "")
            {
                AlertAndRedirect("域名不能为空!");
                return;
            }
            if (this.txtPhone.Text == "")
            {
                AlertAndRedirect("联系电话不能为空!");
                return;
            }
            if (WebInfoFactory.Update(ObjectInfo))
            {
                SysConfig.Instance.Update("WebSiteTitleSuffix", this.txtTitleSuffix.Text.Trim());
                SysConfig.Instance.Update("KeyWords", this.txtWebSiteKey.Text.Trim());
                SysConfig.Instance.Update("Description", this.txtWebSitedescription.Text.Trim());

                SysConfig.Instance.Update("OpenWithdraw", rbl_isopenCash.SelectedValue);
                SysConfig.Instance.Update("ColseWithdrawReason", this.txtclosecashReason.Text.Trim());
                SysConfig.Instance.Update("DefaultScheme", ddlDefaultScheme.SelectedValue);

                int times = 0;

                WebUtility.ClearCache("SYSCONFIG");
                AlertAndRedirect("更新成功!", "siteinfo.aspx");
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            decimal _tempdt;
            int     _tempnum;

            if (decimal.TryParse(txtMinTranATM.Text.Trim(), out _tempdt))
            {
                SysConfig.Instance.Update("MinTranATM", this.txtMinTranATM.Text.Trim());
            }
            if (decimal.TryParse(txtMaxTranATM.Text.Trim(), out _tempdt))
            {
                SysConfig.Instance.Update("MaxTranATM", this.txtMaxTranATM.Text.Trim());
            }

            if (int.TryParse(txtExpiresTime.Text.Trim(), out _tempnum))
            {
                SysConfig.Instance.Update("ExpiresTime", this.txtExpiresTime.Text.Trim());
            }

            SysConfig.Instance.Update("CheckUrlReferrer", rbl_CheckUrlReferrer.SelectedValue);
            SysConfig.Instance.Update("OrderPrefix", this.txtOrderPrefix.Text.Trim());
            SysConfig.Instance.Update("CheckUserOrderNo", this.rbl_CheckUserOrderNo.SelectedValue);



            SysConfig.Instance.Update("RiskWarning_Bank", this.ckb_rw_bank.Checked?"1":"0");
            SysConfig.Instance.Update("RiskWarning_Alipay", this.ckb_rw_alipay.Checked?"1":"0");
            SysConfig.Instance.Update("RiskWarning_AliCode", this.ckb_rw_alicode.Checked?"1":"0");
            SysConfig.Instance.Update("RiskWarning_WXpay", this.ckb_rw_wxpay.Checked?"1":"0");

            SysConfig.Instance.Update("Debuglog", this.rbl_Debuglog.SelectedValue);

            if (int.TryParse(txtRefCount.Text.Trim(), out _tempnum))
            {
                SysConfig.Instance.Update("RefCount", this.txtRefCount.Text.Trim());
            }
            SysConfig.Instance.Update("WithoutRef", this.rbl_WithoutRef.SelectedValue);
            SysConfig.Instance.Update("OpenDeduct", this.rblOpenDeduct.SelectedValue);

            WebUtility.ClearCache("SYSCONFIG");

            ShowMessageBox("操作成功");
        }