📄 constr_setparam.aspx.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_SetParam : NetCMS.Web.UI.ManagePage
{
Constr con = new Constr();
protected void Page_Load(object sender, EventArgs e)
{
Response.CacheControl = "no-cache";
}
protected void Button1_Click(object sender, EventArgs e)
{
rootPublic rd = new rootPublic();
if (Page.IsValid)
{
string PCId = NetCMS.Common.Rand.Number(12);
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();
DataTable dt = con.sel_userConstr(4);
int cutb = dt.Rows.Count;
string PCIds = "";
if (cutb > 0)
{
PCIds = dt.Rows[0]["PCId"].ToString();
}
if (PCIds != PCId)
{
if (con.add_sysParmConstr(PCId, ConstrPayName, gpoint, ipoint, moneys1, Gunit) == 0)
{
rd.SaveUserAdminLogs(1, 1, UserNum, "稿酬设置", "添加失败");
PageError("添加失败,可能有重复名称", "");
}
else
{
rd.SaveUserAdminLogs(1, 1, UserNum, "稿酬设置", "添加成功");
PageRight("添加成功", "Constr_SetParamlist.aspx");
}
}
else
{
PageError("对不起建立失败有可能是编号重复", "");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -