|
|
|
@ -127,9 +127,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|
|
|
|
HotProessItem.RequestTime,HotProessItem.ActualTime,HotProessItem.RecordChartNo,
|
|
|
|
|
HotProessItem.HotProessDate,HotProessItem.HotProessTrustId,
|
|
|
|
|
(SELECT (case when HotHardCode is null then HardTestReportCode else HotHardCode end) as HardTestReportCode FROM dbo.HJGL_CH_HardTestReport
|
|
|
|
|
WHERE HardTestReportId =(SELECT TOP 1 re.HardTestReportId FROM dbo.HJGL_CH_HardTestReportItem item
|
|
|
|
|
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
|
|
|
|
WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null)))
|
|
|
|
|
WHERE HardTestReportId =t.HardTestReportId)
|
|
|
|
|
AS HardnessReportNo,
|
|
|
|
|
HotProessItem.HotProessItemId,HotProessItem.SortIndex,HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark
|
|
|
|
|
FROM dbo.HJGL_HotProessItem AS HotProessItem
|
|
|
|
@ -144,6 +142,9 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|
|
|
|
left join dbo.HJGL_HotProessItem h on h.JOT_ID=TrustItem.JOT_ID
|
|
|
|
|
where h.JOT_ID = TrustItem.JOT_ID and h.HotProessTrustId=TrustItem.HotProessTrustId and h.ProessTypes=TrustItem.ProessTypes) v
|
|
|
|
|
on v.JOT_ID=HotProessItem.JOT_ID and v.HotProessItemId=HotProessItem.HotProessItemId
|
|
|
|
|
left join (SELECT distinct re.HardTestReportId,item.JOT_ID,item.HotProessTrustId FROM dbo.HJGL_CH_HardTestReportItem item
|
|
|
|
|
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
|
|
|
|
WHERE (re.FileType='R' or re.FileType is null)) t on t.JOT_ID=HotProessItem.JOT_ID and t.HotProessTrustId=HotProessItem.HotProessTrustId
|
|
|
|
|
WHERE JointInfo.ProjectId= @ProjectId ";
|
|
|
|
|
listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
|
|
|
|
|
if (this.drpIsoNo.SelectedValue != BLL.Const._Null)
|
|
|
|
@ -188,9 +189,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|
|
|
|
HotProessItem.ActualTime,HotProessItem.RecordChartNo,
|
|
|
|
|
HotProessItem.HotProessDate,HotProessItem.HotProessTrustId,HotProessItem.HotProessItemId,HotProessItem.SortIndex,
|
|
|
|
|
(SELECT (case when HotHardCode is null then HardTestReportCode else HotHardCode end) as HardTestReportCode FROM dbo.HJGL_CH_HardTestReport
|
|
|
|
|
WHERE HardTestReportId =(SELECT TOP 1 re.HardTestReportId FROM dbo.HJGL_CH_HardTestReportItem item
|
|
|
|
|
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
|
|
|
|
WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null)))
|
|
|
|
|
WHERE HardTestReportId =t.HardTestReportId)
|
|
|
|
|
AS HardnessReportNo,
|
|
|
|
|
HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark
|
|
|
|
|
FROM dbo.HJGL_HotProessItem AS HotProessItem
|
|
|
|
@ -205,6 +204,9 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|
|
|
|
left join dbo.HJGL_HotProessItem h on h.JOT_ID=TrustItem.JOT_ID
|
|
|
|
|
where h.JOT_ID = TrustItem.JOT_ID and h.HotProessTrustId=TrustItem.HotProessTrustId and h.ProessTypes=TrustItem.ProessTypes) v
|
|
|
|
|
on v.JOT_ID=HotProessItem.JOT_ID and v.HotProessItemId=HotProessItem.HotProessItemId
|
|
|
|
|
left join (SELECT distinct re.HardTestReportId,item.JOT_ID,item.HotProessTrustId FROM dbo.HJGL_CH_HardTestReportItem item
|
|
|
|
|
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
|
|
|
|
WHERE (re.FileType='R' or re.FileType is null)) t on t.JOT_ID=HotProessItem.JOT_ID and t.HotProessTrustId=HotProessItem.HotProessTrustId
|
|
|
|
|
WHERE CHARINDEX(JointInfo.ProjectId,@ProjectId)>0 ";
|
|
|
|
|
listStr.Add(new SqlParameter("@ProjectId", projectIds));
|
|
|
|
|
if (this.drpIsoNo.SelectedValue != BLL.Const._Null)
|
|
|
|
|