38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
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;
|
|
|
|
public partial class Work_RiChengView : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|
//绑定页面数据
|
|
ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
|
|
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|
this.Label1.Text = Model.TitleStr;
|
|
this.Label6.Text = Model.ContentStr;
|
|
this.Label5.Text = Model.TypeStr;
|
|
this.Label7.Text = Model.GongXiangWho;
|
|
this.Label2.Text = Model.TimeStart.ToString();
|
|
this.Label3.Text = Model.TimeEnd.ToString();
|
|
this.Label4.Text = Model.TimeTiXing.ToString().Split(' ')[0];
|
|
}
|
|
}
|
|
protected void Button1_Click(object sender, EventArgs e)
|
|
{
|
|
Button TempBtn = (Button)sender;
|
|
ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPAnPai set GongXiangWho='" + TempBtn.Text.ToString() + "' where ID=" + Request.QueryString["ID"].ToString());
|
|
Response.Redirect("RiCheng.aspx");
|
|
}
|
|
}
|