1
This commit is contained in:
@@ -282,8 +282,27 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
||||
this.txtTabler.Text = BLL.Person_PersonsService.GetPersonsNameById(trust.Tabler);
|
||||
}
|
||||
this.txtReport.Text = trust.ReportNo;
|
||||
this.txtReportDate.Text = GetHotProessReportDate(trust.HotProessTrustId);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 读取热处理报告日期,新增字段未纳入 DBML 时通过参数化 SQL 获取。
|
||||
/// </summary>
|
||||
private string GetHotProessReportDate(string hotProessTrustId)
|
||||
{
|
||||
if (string.IsNullOrEmpty(hotProessTrustId))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
string strSql = @"SELECT ReportDate FROM HJGL_HotProess_Trust WHERE HotProessTrustId=@HotProessTrustId";
|
||||
DataTable dt = SQLHelper.GetDataTableRunText(strSql, new SqlParameter("@HotProessTrustId", hotProessTrustId));
|
||||
if (dt.Rows.Count > 0 && dt.Rows[0]["ReportDate"] != DBNull.Value)
|
||||
{
|
||||
return string.Format("{0:yyyy-MM-dd}", dt.Rows[0]["ReportDate"]);
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 清空文本
|
||||
@@ -298,6 +317,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
||||
this.txtProessEquipment.Text = string.Empty;
|
||||
this.txtTabler.Text = string.Empty;
|
||||
this.txtReport.Text = string.Empty;
|
||||
this.txtReportDate.Text = string.Empty;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
@@ -462,4 +482,4 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user