This commit is contained in:
2026-06-17 18:37:50 +08:00
parent 2736e8ad89
commit 75d7c48ff2
22 changed files with 286 additions and 10 deletions
@@ -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
}
}
}
}
}