This commit is contained in:
毕文静 2025-10-14 00:24:59 +08:00
parent 9643224128
commit bb6197e084
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,28 @@
ALTER PROCEDURE [dbo].[HJGL_spCH_HotProessTrustItem]
(
@HotProessTrustId nvarchar(50),
@ProessTypes nvarchar(50)=null
)
AS
--id获取委托单信息
BEGIN
select HotProessTrustId,ISO_IsoNo,JOT_JointNo,JOT_JointDesc,STE_Code,
STRING_AGG((case when ProessTypes='1' then '预热'
when ProessTypes='2' then '消氢'
when ProessTypes='3' then '后热'
when ProessTypes='4' then '消应力热处理'
when ProessTypes='5' then '稳定化处理'
else ''end),'+') as ProessTypes from HJGL_View_CH_HotProessTrustItem TrustItem
where HotProessTrustId=@HotProessTrustId
and (ProessTypes=@ProessTypes or @ProessTypes is null)
group by HotProessTrustId,ISO_IsoNo,JOT_JointNo,JOT_JointDesc,STE_Code
union
select '99999999' as Number,'以下空白' AS ISO_IsoNo,null,null,null,null
end
go

View File

@ -717,7 +717,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
dt2.Columns.Add("ProessTypes");
DataView dv = tb2.DefaultView;//获取表视图
dv.Sort = "Number ASC";//按照ID倒序排序
dv.Sort = "ISO_IsoNo,JOT_JointNo ASC";//按照ID倒序排序
tb2 = dv.ToTable();//转为表
DataRow[] rows2 = tb2.DefaultView.ToTable().Select();
int i = 0;