⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constr_setparamup.aspx.cs

📁 最好用的站点内容管理系统 全部源代码都有
💻 CS
字号:
//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NetCMS.Content;
using NetCMS.Content.Common;

public partial class manage_Contribution_Constr_SetParamup : NetCMS.Web.UI.ManagePage
{
    Constr con = new Constr();
    protected void Page_Load(object sender, EventArgs e)
    {

        string PCIdup =Request.QueryString["PCId"];
        DataTable dt = con.sel_ConstrInfo(PCIdup,5);

        this.ConstrPayName.Text = dt.Rows[0]["ConstrPayName"].ToString();
        this.moneys.Text = dt.Rows[0]["money"].ToString();
        this.ipoint.Text = dt.Rows[0]["iPoint"].ToString();
        this.gpoint.Text = dt.Rows[0]["gPoint"].ToString();
        if (dt.Rows[0]["Gunit"].ToString() != "")
        {
            for (int s = 0; s < this.Gunit.Items.Count - 1; s++)
            {
                if (this.Gunit.Items[s].Text == dt.Rows[0]["Gunit"].ToString())
                {
                    this.Gunit.Items[s].Selected = true;
                }
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        rootPublic rd = new rootPublic();
        string PCIdup = Request.QueryString["PCId"];
        string ConstrPayName = Request.Form["ConstrPayName"].ToString();
        int moneys1 = int.Parse(Request.Form["moneys"].ToString());
        string ipoint = Request.Form["ipoint"].ToString();
        string gpoint =Request.Form["gpoint"].ToString();
        string Gunit = this.Gunit.SelectedItem.ToString();
        if (con.update_sysParmConstr(ConstrPayName, gpoint, ipoint, moneys1, Gunit, PCIdup) == 0)
        {
            rd.SaveUserAdminLogs(1, 1, UserNum, "稿酬设置", "更新失败");
            PageError("添加失败<br>", "");
        }
        else
        {
            rd.SaveUserAdminLogs(1, 1, UserNum, "稿酬设置", "更新成功");
            PageRight("添加成功", "Constr_SetParamlist.aspx");
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -