11
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
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;
|
||||
//if (welderQualifiedProject.LimitDate.HasValue)
|
||||
//{
|
||||
// this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", welderQualifiedProject.LimitDate);
|
||||
//}
|
||||
this.txtCertificateNo.Text = welderQualifiedProject.CertificateNo;
|
||||
if (welderQualifiedProject.CheckDate.HasValue)
|
||||
{
|
||||
this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", welderQualifiedProject.CheckDate);
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user