WebUI/present/presentadd.aspx.cs
(完整代码) 2KBnamespace hyst.present
{
using DBUtility;
using Model;
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class presentadd : Page
{
private BaseClass bc = new BaseClass();
protected Button Button2;
protected DropDownList ddlifuser;
protected HtmlForm form1;
protected FileUpload fup;
protected HtmlHead Head1;
protected HiddenField hf;
protected HtmlInputText txtcout;
protected HtmlInputText txtjifen;
protected HtmlInputText txtname;
protected HtmlInputText txtnum;
protected void Button2_Click(object sender, EventArgs e)
{
string sqladd = "insert into present(gNum,gName,gJifen,gState,gImg,gSnum,gDate,gCount) values";
string name10 = sqladd;
sqladd = name10 + "('" + this.txtnum.Value + "','" + this.txtname.Value + "','" + this.txtjifen.Value + "','" + this.ddlifuser.SelectedValue + "','" + this.hf.Value + "','" + PublicMethod.GetSessionValue("shopnum") + "','" + DateTime.Now.ToString() + "','" + this.txtcout.Value + "')";
this.bc.execsql(sqladd);
base.ClientScript.RegisterStartupScript(base.ClientScript.GetType(), "myscript", "<script> $.ligerDialog.success('添加成功!');</script>");
string strr = string.Concat(new object[] { "礼品编号:", this.txtnum.Value, ",礼品名称:", this.txtname.Value, ",兑换积分:", this.txtjifen.Value, ",兑换数量", this.txtcout, ",活动店铺:", PublicMethod.GetSessionValue("shopname") });
string strl = " insert into WorkNote(Wn_Person,Wn_Time,Wn_type,wn_dianpu,wn_ip,wn_Remark) values ('" + PublicMethod.GetSessionValue("names") + "','" + DateTime.Now.ToString() + "','新增礼品','" + PublicMethod.GetSessionValue("shopnum") + "','" + Userinfo.getIPAddress() + "','" + strr + "')";
this.bc.execsql(strl);
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
