fix:无损检测单录入树节点显示点口名称
This commit is contained in:
parent
4a7dec7a03
commit
790a4d7dfa
|
|
@ -310,12 +310,16 @@ namespace FineUIPro.Web.HJGL.NDT
|
||||||
}
|
}
|
||||||
foreach (var trust in trusts)
|
foreach (var trust in trusts)
|
||||||
{
|
{
|
||||||
|
string code = string.Empty;
|
||||||
|
Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId);
|
||||||
|
var pointBatch = PointBatchService.GetPointBatchById(batch.PointBatchId);
|
||||||
|
code = "DK-" + pointBatch.PointBatchCode.Substring(pointBatch.PointBatchCode.Length - 4) + "【" + string.Format("{0:yyyy-MM-dd}", pointBatch.StartDate) + "】" + "【" + UnitService.GetUnitNameByUnitId(pointBatch.UnitId) + "】";
|
||||||
|
|
||||||
TreeNode newNode = new TreeNode();
|
TreeNode newNode = new TreeNode();
|
||||||
string code = trust.TrustBatchCode;
|
//string code = trust.TrustBatchCode;
|
||||||
// 未检测委托红色显示
|
// 未检测委托红色显示
|
||||||
if (BLL.Batch_NDEService.GetNDEViewByTrustBatchId(trust.TrustBatchId) == null)
|
if (BLL.Batch_NDEService.GetNDEViewByTrustBatchId(trust.TrustBatchId) == null)
|
||||||
{
|
{
|
||||||
Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId);
|
|
||||||
if (batch != null && batch.IsClosed == true)
|
if (batch != null && batch.IsClosed == true)
|
||||||
{
|
{
|
||||||
newNode.Text = code;
|
newNode.Text = code;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue