2024-05-12 11:10:50 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.UI;
|
|
|
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
|
|
|
|
|
namespace FineUIPro.Web.WelderManage
|
|
|
|
|
{
|
|
|
|
|
public partial class AnalysisEdit : PageBase
|
|
|
|
|
{
|
|
|
|
|
#region 定义项
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 合格项目id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string WelderQualifiedProjectId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["WelderQualifiedProjectId"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["WelderQualifiedProjectId"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 焊工id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string WED_ID
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["WED_ID"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["WED_ID"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
|
|
|
|
this.WelderQualifiedProjectId = Request.Params["WelderQualifiedProjectId"];
|
|
|
|
|
this.WED_ID = Request.Params["WED_ID"];
|
|
|
|
|
if (!string.IsNullOrEmpty(this.WelderQualifiedProjectId))
|
|
|
|
|
{
|
|
|
|
|
var welderQualifiedProject = BLL.WelderQualifiedService.GetWelderQualifiedProjectById(this.WelderQualifiedProjectId);
|
|
|
|
|
if (welderQualifiedProject != null)
|
|
|
|
|
{
|
|
|
|
|
this.WED_ID = welderQualifiedProject.WelderId;
|
|
|
|
|
this.txtQualifiedProjectCode.Text = welderQualifiedProject.QualifiedProjectCode;
|
2024-05-12 11:19:50 +08:00
|
|
|
|
|
2024-05-12 11:10:50 +08:00
|
|
|
|
this.txtExamProject.Text = welderQualifiedProject.ExamProject;
|
|
|
|
|
txtRemark.Text = welderQualifiedProject.Remark;
|
|
|
|
|
drpIsPass.SelectedValue = welderQualifiedProject.IsPass == true ? "是" : "否";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Model.Welder_Welder welder = BLL.WelderService.GetWelderById(this.WED_ID);
|
|
|
|
|
if (welder != null)
|
|
|
|
|
{
|
|
|
|
|
this.lbWedlerName.Text = welder.WelderName;
|
|
|
|
|
this.lbWedlerCode.Text = welder.WelderCode;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void btnSave_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|