提交代码
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.TestRun.Feeding
|
||||
{
|
||||
public partial class SubInspectTermEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string TermItemId
|
||||
{
|
||||
get { return (string)ViewState["TermItemId"]; }
|
||||
set { ViewState["TermItemId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分组主键
|
||||
/// </summary>
|
||||
public string GroupName
|
||||
{
|
||||
get { return (string)ViewState["GroupName"]; }
|
||||
set { ViewState["GroupName"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查项名称
|
||||
/// </summary>
|
||||
public string WorkInspectName
|
||||
{
|
||||
get { return (string)ViewState["WorkInspectName"]; }
|
||||
set { ViewState["WorkInspectName"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 装置主键
|
||||
/// </summary>
|
||||
public string InstallationId
|
||||
{
|
||||
get { return (string)ViewState["InstallationId"]; }
|
||||
set { ViewState["InstallationId"] = value; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.TermItemId = Request.Params["TermItemId"];
|
||||
this.GroupName = Request.Params["GroupName"];
|
||||
this.WorkInspectName = Request.Params["WorkInspectName"];
|
||||
this.InstallationId = Request.Params["InstallationId"];
|
||||
PageInit();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 默认绑定
|
||||
/// </summary>
|
||||
public void PageInit()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(this.TermItemId))
|
||||
{
|
||||
txtWorkInspectName.Text = this.WorkInspectName;
|
||||
ddlGroup.SelectedValue = this.GroupName;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string groupName = this.ddlGroup.SelectedValue;
|
||||
var requestStr = this.TermItemId + "|" + this.txtWorkInspectName.Text + "|" + groupName + "|" + this.InstallationId;
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(requestStr) + ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowNotify(ex.Message, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user