提交试车代码
This commit is contained in:
@@ -44,7 +44,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
this.TailTermId = Request["TailTermId"];
|
||||
this.QuestionEditImg = -1;
|
||||
this.RectifyEditImg = -1;
|
||||
this.RectifyEditImg = 0;
|
||||
//数据绑定
|
||||
PageInit();
|
||||
}
|
||||
@@ -77,6 +77,8 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
InspectUserName = inspuser.UserName,
|
||||
tail.HandleUser,
|
||||
HandleUserName = handleuser.UserName,
|
||||
termitem.PropertyTechnologyId,
|
||||
tail.AdjustCompleteTime
|
||||
};
|
||||
if (data.Count() > 0)
|
||||
{
|
||||
@@ -90,30 +92,33 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
//问题类别
|
||||
lblProblemType.Text = model.ProblemType == 1 ? "管道" : "设备";
|
||||
//管道/设备
|
||||
var propertyIds = model.PropertyTechnologyId.Split(',');
|
||||
if (model.ProblemType == 1)
|
||||
{
|
||||
var piping = Funs.DB.PreRun_PropertySysPiping.FirstOrDefault(x => x.PropertyId == model.SubInspectId);
|
||||
lblSubInspectName.Label = "管道号";
|
||||
var piping = Funs.DB.PreRun_PropertySysPiping.Where(x => propertyIds.Contains(x.PropertyId)).ToList();
|
||||
if (piping != null)
|
||||
{
|
||||
lblSubInspectId.Text = $"管道:{piping.PipingCode}";
|
||||
lblSubInspectName.Text = $"{string.Join(",", piping.ConvertAll(x => x.PipingCode))}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var piping = Funs.DB.PreRun_TechnologySysPiping.FirstOrDefault(x => x.TechnologyId == model.SubInspectId);
|
||||
lblSubInspectName.Label = "设备位号";
|
||||
var piping = Funs.DB.PreRun_TechnologySysPiping.Where(x => propertyIds.Contains(x.TechnologyId)).ToList();
|
||||
if (piping != null)
|
||||
{
|
||||
lblSubInspectId.Text = $"设备:{piping.TagNumber}";
|
||||
lblSubInspectName.Text = $"{string.Join(",", piping.ConvertAll(x => x.TagNumber))}";
|
||||
}
|
||||
}
|
||||
//检查项
|
||||
lblTermItemId.Text = model.TermItemName;
|
||||
lblTermItemName.Text = model.TermItemName;
|
||||
//问题描述
|
||||
lblQuestionDesc.Text = model.QuestionDesc;
|
||||
//整改意见
|
||||
lblRectifyOpinion.Text = model.RectifyOpinion;
|
||||
//整改时间
|
||||
lblRectifyTime.Text = model.RectifyTime != null ? model.RectifyTime.Value.ToString("yyyy-MM-dd hh:mm:ss") : string.Empty;
|
||||
//要求整改完成时间
|
||||
lblAdjustCompleteTime.Text = model.AdjustCompleteTime != null ? model.AdjustCompleteTime.Value.ToString("yyyy-MM-dd hh:mm:ss") : string.Empty;
|
||||
//检查人
|
||||
lblInspectUser.Text = model.InspectUserName;
|
||||
//处理人
|
||||
|
||||
Reference in New Issue
Block a user