ProjectUpdata.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:2k
- using System;
- using System.Data;
- using System.Data.SqlClient;
- using System.Configuration;
- using System.Text;
- 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 com.etong.BusinessRule.Zwf;
- public partial class SysManage_ProjectUpdata : System.Web.UI.Page
- {
- protected string Serialid = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- Response.Buffer = true;
- Response.ExpiresAbsolute = System.DateTime.Now;
- Response.Expires = 0;
- Response.CacheControl = "no-cache";
- Serialid = Request.QueryString["Serialid"].Trim();
- if (!IsPostBack)
- {
- if (Serialid == "" || Serialid==null)
- return;
- EtongZwf etongzwf = new EtongZwf();
- DataView dv = etongzwf.ProjectSearch(Convert.ToInt16(Serialid));
- this.TB_SerialName.Text = dv[0]["SerialName"].ToString().Trim();
- //this.TB_Decs.Text = dv[0]["UserDecs"].ToString().Trim();
-
- }
- BT_Cancel.Attributes.Add("onclick", "javascript:if(confirm('确定要退出吗?')) {window.close();return;} else {return;}");
- }
- protected void BT_Confirm_Click(object sender, EventArgs e)
- {
- string SerialName = this.TB_SerialName.Text.Trim();
- // string decs = this.TB_Decs.Text.Trim();
- EtongZwf etongzwf = new EtongZwf();
- bool returnvalue = false;
- returnvalue = etongzwf.ProjectUpdata(Convert.ToInt16(Serialid),SerialName);
- if (returnvalue)
- Response.Write("<script>alert('系统提示:修改记录成功!');window.close();</script>");
- else
- Response.Write("<script>alert('系统提示:修改记录不成功!');window.close();</script>");
- this.TB_SerialName.Text = "";
- this.TB_Decs.Text = "";
- }
- }