diff --git a/DataBase/版本日志/SGGLDB_V2025-07-02-001-bwj.sql b/DataBase/版本日志/SGGLDB_V2025-07-02-001-bwj.sql
new file mode 100644
index 00000000..d9bfa7b2
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-07-02-001-bwj.sql
@@ -0,0 +1,33 @@
+
+alter table PTP_PipelineList add TestPackageNo varchar(50)
+go
+
+ALTER VIEW [dbo].[View_TestPackage_PipelineList]
+as
+/*********ѹϸ**********/
+select l.PT_PipeId,
+l.PTP_ID,
+l.PipelineId,
+l.TestPressure,
+t.ProjectId,
+t.TestPackageNo,
+t.TestPackageName,
+t.Remark,
+t.UnitWorkId,
+t.Tabler,
+t.TableDate,
+p.PipelineCode,
+uw.UnitWorkCode,
+uw.UnitWorkName,
+uw.UnitId,
+u.UnitCode,
+u.UnitName,
+t.adjustTestPressure
+from PTP_PipelineList l
+left join PTP_TestPackage as t on t.PTP_ID=l.PTP_ID
+left join HJGL_Pipeline p on p.PipelineId = l.PipelineId
+left join WBS_UnitWork uw on uw.UnitWorkId = t.UnitWorkId
+left join Base_Unit u on u.UnitId =uw.UnitId
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-07-10-001-bwj.sql b/DataBase/版本日志/SGGLDB_V2025-07-10-001-bwj.sql
new file mode 100644
index 00000000..8b7c1f05
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-07-10-001-bwj.sql
@@ -0,0 +1,9 @@
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+values('244F69AE-EBD0-4DFA-A959-E13CE8D85968','ѹ','HJGL/TestPackage/TestPackageData.aspx',60,'A24B7926-EF69-456E-8A24-936D30384680','Menu_HJGL',0,1,1)
+go
+
+alter table [dbo].[PTP_TestPackage] add PrintState int
+go
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӡ״̬δӡһ......δӡ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'PTP_TestPackage', @level2type=N'COLUMN',@level2name=N'PrintState'
+GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_V2025-07-11-001-gaofei.sql b/DataBase/版本日志/SGGLDB_V2025-07-11-001-gaofei.sql
new file mode 100644
index 00000000..222e2d5b
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-07-11-001-gaofei.sql
@@ -0,0 +1,37 @@
+alter table Information_ActionWorkLedger add KeyWorkNum int null
+alter table Information_ActionWorkLedger add KeyWorkOKNum int null
+alter table Information_ActionWorkLedger add KeyWorkOKRate nvarchar(20) null
+GO
+
+
+
+ALTER VIEW [dbo].[View_Information_ActionWorkLedger] AS
+SELECT
+ Report.ActionWorkLedgerId,
+ Report.UnitId,
+ Report.ReportDate,
+ Report.YearId,
+ Report.Quarter,
+ Report.UpState,
+ Report.HandleState,
+ Report.KeyWorkNum,
+ Report.KeyWorkOKNum,
+ Report.KeyWorkOKRate,
+ (ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS Quarters,
+ u.UnitName,
+ Report.HandleMan,
+ US.PersonName as UserName
+FROM dbo.Information_ActionWorkLedger AS Report
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.YearId
+LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.Quarter
+Left join Base_Unit as u on u.UnitId=Report.UnitId
+LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
+
+
+
+
+
+
+
+GO
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql b/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql
new file mode 100644
index 00000000..290e0ce2
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql
@@ -0,0 +1,44 @@
+alter table Information_MillionsMonthlyReport add KeyWorkNum int null
+alter table Information_MillionsMonthlyReport add KeyWorkOKNum int null
+alter table Information_MillionsMonthlyReport add KeyWorkOKRate nvarchar(20) null
+GO
+
+
+/*************ҵʱȫͳ±**************/
+ALTER VIEW [dbo].[View_Information_MillionsMonthlyReport]
+AS
+SELECT
+Report.MillionsMonthlyReportId,
+Report.UnitId,
+Report.FillingDate,
+Report.UpState,
+(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate,
+Group_0008.ConstText as YearStr,
+Group_0009.ConstText as MonthStr,
+U.UnitName,
+Report.Year,
+Report.Month,
+Report.DutyPerson,
+Report.RecordableIncidentRate,
+Report.LostTimeRate,
+Report.LostTimeInjuryRate,
+Report.DeathAccidentFrequency,
+Report.AccidentMortality,
+Report.HandleState,
+Report.KeyWorkNum,
+Report.KeyWorkOKNum,
+Report.KeyWorkOKRate,
+Report.HandleMan,
+US.PersonName AS UserName
+FROM dbo.Information_MillionsMonthlyReport AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year]
+LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month]
+LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan
+
+
+
+GO
+
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-07-23-001-bwj.sql b/DataBase/版本日志/SGGLDB_V2025-07-23-001-bwj.sql
new file mode 100644
index 00000000..9936db78
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-07-23-001-bwj.sql
@@ -0,0 +1,10 @@
+
+update Sys_Menu set SortIndex='15' where MenuId='53948077-B51D-4FF3-BFB0-AB4E27C42875'--Ųƻ
+update Sys_Menu set SortIndex='40' where MenuId='BD9C587E-17C2-49F1-82AE-A05117E41D89'--װ嵥
+update Sys_Menu set SortIndex='50' where MenuId='EEC0D060-C15E-4D25-B015-C2B91F735DAC'--ι
+update Sys_Menu set SortIndex='60' where MenuId='25DED954-10C9-47CC-99F2-C44FDE9E0A81'--
+go
+
+update Sys_Menu set MenuName='װ' where MenuId='25DED954-10C9-47CC-99F2-C44FDE9E0A81'--Ϊװ
+update Sys_Menu set MenuName='' where MenuId='EEC0D060-C15E-4D25-B015-C2B91F735DAC'--ιΪ
+go
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_V2025-08-01-001-gaofei.sql b/DataBase/版本日志/SGGLDB_V2025-08-01-001-gaofei.sql
new file mode 100644
index 00000000..42cf6e6d
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-08-01-001-gaofei.sql
@@ -0,0 +1,2 @@
+alter table SitePerson_Person add IsCQMSCheck bit null
+GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_V2025-08-03-001-bwj.sql b/DataBase/版本日志/SGGLDB_V2025-08-03-001-bwj.sql
new file mode 100644
index 00000000..3ca5eb4b
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-08-03-001-bwj.sql
@@ -0,0 +1,176 @@
+alter table HJGL_PackagingManage add CompileMan nvarchar(50)
+alter table HJGL_PackagingManage add CompileDate datetime
+go
+ALTER TABLE [dbo].[PTP_TestPackage] DROP CONSTRAINT [FK_PTP_TestPackage_Base_Unit]
+GO
+alter table PTP_TestPackage alter column UnitId nvarchar(500)
+go
+
+alter table HJGL_ProductionSchedulingPlan alter column CompletedCount decimal(18,2)
+alter table HJGL_ProductionSchedulingPlan add OnDayCompleteDyne decimal(18,2)
+alter table HJGL_ProductionSchedulingPlan add NextDayCompleteDyne decimal(18,2)
+go
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ProductionSchedulingPlan', @level2type=N'COLUMN',@level2name=N'OnDayCompleteDyne'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ӧ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ProductionSchedulingPlan', @level2type=N'COLUMN',@level2name=N'NextDayCompleteDyne'
+GO
+
+
+ALTER PROCEDURE [dbo].[Sp_ProductionSchedulingPlanStatistics]
+ @projectId nvarchar(50)=null,
+ @unitWorkId nvarchar(50)=null,
+ @flowingSection nvarchar(50)=null,
+ @caliber nvarchar(50)=null
+AS
+/************Ųƻͳ**********/
+SELECT distinct unitWork.UnitWorkId,
+unitWork.UnitWorkCode,
+unitWork.UnitWorkName,
+unitWork.ProjectId,
+pipeline.FlowingSection,
+p.SteelType,
+(case p.SteelType when '1' then '̼' when '2' then '' when '3' then '' when '4' then 'ͺϽ' when '5' then 'Ͻ' when '6' then 'ѺϽ' when '7' then '' end) as Material,
+'<'+ @caliber as Caliber
+--isnull(weldJoint.Dia,0) as Dia,
+--isnull(maxDia.maxTotalDia+weldJoint.Dia,0) as totalDia,
+--isnull(cTotal.cTotalCount,0) as cTotalCount,
+--(case when isnull(total.totalCount,0)>0 then
+--isnull(cTotal.cTotalCount,0) / isnull(cast(total.totalCount as decimal(18,2)),0)*100.0 else 0 end) as rate,
+--(case when isnull(ScTotal.ScTotalCount,0)>0 then
+--isnull(Stotal.StotalCount,0)/isnull(cast(ScTotal.ScTotalCount as decimal(18,2)),0)*100.0 else 0 end)as Srate
+FROM WBS_UnitWork AS unitWork
+LEFT JOIN (select FlowingSection,UnitWorkId from HJGL_Pipeline where PipeArea='1' and FlowingSection is not null and FlowingSection!='') as pipeline on pipeline.UnitWorkId = unitWork.UnitWorkId
+--
+left join (select SteelType,UnitWorkId from HJGL_Pipeline
+ left join Base_Material on Base_Material.MaterialId = HJGL_Pipeline.MaterialId
+ where PipeArea='1' and HJGL_Pipeline.MaterialId is not null and HJGL_Pipeline.MaterialId!=''
+ )as p on p.UnitWorkId = unitWork.UnitWorkId
+----
+--LEFT JOIN (select sum(Size) as Dia,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)<@caliber
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as weldJoint on weldJoint.UnitWorkId =unitWork.UnitWorkId
+-- and weldJoint.FlowingSection = pipeline.FlowingSection
+----ڿھĴ
+LEFT JOIN (select sum(Size) as maxTotalDia,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+ left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+ left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+ where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+ and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)>=@caliber
+ group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as maxDia on maxDia.UnitWorkId =unitWork.UnitWorkId
+ and maxDia.FlowingSection = pipeline.FlowingSection
+----ܺ
+--LEFT JOIN (select count(*) as totalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)<@caliber
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as total on total.UnitWorkId =unitWork.UnitWorkId
+-- and total.FlowingSection = pipeline.FlowingSection
+----ɺ
+--LEFT JOIN (select count(*) as cTotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)<@caliber
+-- and HJGL_WeldJoint.WeldingDailyId is not null
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as cTotal on cTotal.UnitWorkId =unitWork.UnitWorkId
+-- and cTotal.FlowingSection = pipeline.FlowingSection
+----ܺ
+--LEFT JOIN (select count(*) as StotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection) as Stotal on Stotal.UnitWorkId =unitWork.UnitWorkId
+-- and total.FlowingSection = pipeline.FlowingSection
+----ɺ
+--LEFT JOIN (select count(*) as ScTotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and HJGL_WeldJoint.WeldingDailyId is not null
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection) as ScTotal on ScTotal.UnitWorkId =unitWork.UnitWorkId
+-- and cTotal.FlowingSection = pipeline.FlowingSection
+where (unitWork.ProjectId=@projectId or @projectId is null)
+and (unitWork.UnitWorkId=@unitWorkId or @unitWorkId is null)
+and (pipeline.FlowingSection=@flowingSection or @flowingSection is null)
+union
+
+SELECT distinct unitWork.UnitWorkId,
+unitWork.UnitWorkCode,
+unitWork.UnitWorkName,
+unitWork.ProjectId,
+pipeline.FlowingSection,
+p.SteelType,
+(case p.SteelType when '1' then '̼' when '2' then '' when '3' then '' when '4' then 'ͺϽ' when '5' then 'Ͻ' when '6' then 'ѺϽ' when '7' then '' end) as Material,
+''+@caliber as Caliber
+--isnull(weldJoint.Dia,0) as Dia,
+--isnull(weldJoint.Dia+minDia.minTotalDia,0) as TotalDia,
+--isnull(cTotal.cTotalCount,0) as cTotalCount,
+--(case when isnull(total.totalCount,0)>0 then
+--isnull(cTotal.cTotalCount,0) / isnull(cast(total.totalCount as decimal(18,2)),0)*100.0 else 0 end) as rate,
+--(case when isnull(ScTotal.ScTotalCount,0)>0 then
+--isnull(Stotal.StotalCount,0)/isnull(cast(ScTotal.ScTotalCount as decimal(18,2)),0)*100.0 else 0 end)as Srate
+FROM WBS_UnitWork AS unitWork
+LEFT JOIN (select FlowingSection,UnitWorkId from HJGL_Pipeline where PipeArea='1' and FlowingSection is not null and FlowingSection!='') as pipeline on pipeline.UnitWorkId = unitWork.UnitWorkId
+
+--
+left join (select SteelType,UnitWorkId from HJGL_Pipeline
+ left join Base_Material on Base_Material.MaterialId = HJGL_Pipeline.MaterialId
+ where PipeArea='1' and HJGL_Pipeline.MaterialId is not null and HJGL_Pipeline.MaterialId!=''
+ )as p on p.UnitWorkId = unitWork.UnitWorkId
+
+--LEFT JOIN (select sum(Size) as Dia,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)>=@caliber
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as weldJoint on weldJoint.UnitWorkId =unitWork.UnitWorkId
+-- and weldJoint.FlowingSection = pipeline.FlowingSection
+----СڿھĴ
+--LEFT JOIN (select sum(Size) as minTotalDia,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)<@caliber
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as minDia on minDia.UnitWorkId =unitWork.UnitWorkId
+-- and minDia.FlowingSection = pipeline.FlowingSection
+
+----ܺ
+--LEFT JOIN (select count(*) as totalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)>=@caliber
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as total on total.UnitWorkId =unitWork.UnitWorkId
+-- and total.FlowingSection = pipeline.FlowingSection
+----ɺ
+--LEFT JOIN (select count(*) as cTotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- left join Base_Material on Base_Material.MaterialId = HJGL_WeldJoint.Material1Id
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and cast(SUBSTRING(HJGL_WeldJoint.DNDia,CHARINDEX('N',HJGL_WeldJoint.DNDia)+1,len(HJGL_WeldJoint.DNDia)-charindex('N',HJGL_WeldJoint.DNDia)) as int)>=@caliber
+-- and HJGL_WeldJoint.WeldingDailyId is not null
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection,Base_Material.SteelType,HJGL_WeldJoint.DNDia) as cTotal on cTotal.UnitWorkId =unitWork.UnitWorkId
+-- and cTotal.FlowingSection = pipeline.FlowingSection
+
+--ܺ
+--LEFT JOIN (select count(*) as StotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection) as Stotal on Stotal.UnitWorkId =unitWork.UnitWorkId
+-- and total.FlowingSection = pipeline.FlowingSection
+----ɺ
+--LEFT JOIN (select count(*) as ScTotalCount,HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection from HJGL_WeldJoint
+-- left join HJGL_Pipeline on HJGL_Pipeline.PipelineId = HJGL_WeldJoint.PipelineId
+-- where HJGL_Pipeline.PipeArea='1' and HJGL_WeldJoint.JointAttribute='Ԥƿ'
+-- and HJGL_WeldJoint.WeldingDailyId is not null
+-- group by HJGL_Pipeline.UnitWorkId,HJGL_Pipeline.FlowingSection) as ScTotal on ScTotal.UnitWorkId =unitWork.UnitWorkId
+-- and cTotal.FlowingSection = pipeline.FlowingSection
+where (unitWork.ProjectId=@projectId or @projectId is null)
+and (unitWork.UnitWorkId=@unitWorkId or @unitWorkId is null)
+and (pipeline.FlowingSection=@flowingSection or @flowingSection is null)
+GO
+
+
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 0c75a797..516e0284 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -56,6 +56,9 @@
..\packages\EmitMapper.1.0.0\lib\EmitMapper.dll
+
+ E:\工作\天辰施工平台\SGGL_TCC\SGGL\BLL\bin\Debug\FastReport.dll
+
False
..\FineUIPro\FineUIPro.dll
diff --git a/SGGL/BLL/Common/FastReport.cs b/SGGL/BLL/Common/FastReport.cs
index e4e7aef1..a044c483 100644
--- a/SGGL/BLL/Common/FastReport.cs
+++ b/SGGL/BLL/Common/FastReport.cs
@@ -1,6 +1,12 @@
-using System.Collections.Generic;
+using System.Web;
+using System.Web.Security;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
using System.Data;
-using System.Web;
+using FastReport;
+
namespace BLL
{
public static class FastReportService
@@ -30,5 +36,58 @@ namespace BLL
}
+ ///
+ /// 合并报表后打印
+ ///
+ /// 报表实体集
+ /// 导出的路径
+ public static void ExportMergeReport(List fastReportItems, string path, string printType)
+ {
+ Report report = new Report();
+ report.PrintSettings.ShowDialog = false; //隐藏弹窗
+ FastReport.EnvironmentSettings settings = new EnvironmentSettings();
+ settings.ReportSettings.ShowProgress = false; //隐藏进度条
+ for (int i = 0; i < fastReportItems.Count; i++)
+ {
+ report.Load(Funs.RootPath + fastReportItems[i].ReportPath); //加载报表
+
+ List dataTables = fastReportItems[i].DataTables;
+ Dictionary ParameterValues = fastReportItems[i].ParameterValues;
+ if (dataTables != null && dataTables.Count > 0)
+ {
+ for (int j = 0; j < dataTables.Count; j++)
+ {
+ report.RegisterData(dataTables[j], dataTables[j].TableName);//绑定数据源
+ }
+ }
+ if (ParameterValues.Count > 0)
+ {
+ foreach (KeyValuePair kvp in ParameterValues)
+ {
+ report.SetParameterValue(kvp.Key, kvp.Value);//绑定参数
+ }
+ }
+ if (i == 0)
+ {
+ report.Prepare();
+ }
+ else
+ {
+ report.Prepare(true);
+ }
+ }
+ if (printType == "1")
+ {
+ FastReport.Export.Pdf.PDFExport exp = new FastReport.Export.Pdf.PDFExport();
+ report.Export(exp, path);
+ }
+ else if (printType == "2")
+ {
+ FastReport.Export.OoXML.Word2007Export exportBase = new FastReport.Export.OoXML.Word2007Export();
+ report.Export(export: exportBase, fileName: path.Replace(oldValue: "pdf", newValue: "docx"));
+ }
+ }
+
+
}
}
diff --git a/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustItemService.cs b/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustItemService.cs
index bfddb0e5..56fc3fb9 100644
--- a/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustItemService.cs
+++ b/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustItemService.cs
@@ -144,5 +144,21 @@ namespace BLL
return isShow;
}
#endregion
+
+
+ ///
+ /// 根据委托Id删除明细
+ ///
+ ///
+ public static void DeleteTrustItemByTrustBatchId(string trustBatchId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var trustBatchItems = from x in db.HJGL_Batch_BatchTrustItem where x.TrustBatchId == trustBatchId select x;
+ if (trustBatchItems != null)
+ {
+ db.HJGL_Batch_BatchTrustItem.DeleteAllOnSubmit(trustBatchItems);
+ db.SubmitChanges();
+ }
+ }
}
}
diff --git a/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs b/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
index 7f2a10b4..a1d29f42 100644
--- a/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/HJGLPackagingmanagedetailService.cs
@@ -134,7 +134,7 @@ namespace BLL
var result = new List();
if (pack.TypeInt == (int)HJGL_PackagingmanageService.TypeInt.预制散件)
{
- var q = from detail in Funs.DB.HJGL_PackagingManageDetail
+ var q = from detail in Funs.DB.HJGL_PackagingManageDetail
join lib in Funs.DB.HJGL_MaterialCodeLib on detail.MaterialCode equals lib.MaterialCode into libJoin
from libItem in libJoin.DefaultIfEmpty()
join line in Funs.DB.HJGL_Pipeline on detail.PipelineId equals line.PipelineId into lineJoin
@@ -152,7 +152,8 @@ namespace BLL
Number = detail.Number,
PipelineId = lineItem.PipelineId,
PipelineCode = lineItem.PipelineCode,
- UnitWorkId=lineItem.UnitWorkId,
+ UnitWorkId = lineItem.UnitWorkId,
+ FlowingSection = lineItem.FlowingSection,
};
result= q.ToList();
@@ -177,6 +178,7 @@ namespace BLL
Number = detail.Number,
PipelineId = lineItem.PipelineId,
PipelineCode = lineItem.PipelineCode,
+ FlowingSection = lineItem.FlowingSection,
};
result = q.ToList();
diff --git a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
index c6062033..f2ee57c6 100644
--- a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
+++ b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
@@ -133,7 +133,7 @@ namespace BLL
State = x.State,
TypeInt = x.TypeInt,
TypeString = GetTypeString(x.TypeInt),
- ReceiveMan = t.PersonName,
+ ReceiveMan = train.ContactName,//t.PersonName,
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
TrainNumberOld = x.TrainNumber,
@@ -179,7 +179,7 @@ namespace BLL
if (!string.IsNullOrEmpty(model.PipelineComponentId))
{
var PipelineComponentIds = model.PipelineComponentId.Split(',');
- string strSql = @"select com.PipelineComponentId, com.PipelineComponentCode,isnull(pipe.PlanStartDate,getdate()) as PlanStartDate,unitwork.UnitWorkName,'1' as num ,'个' as CU
+ string strSql = @"select com.PipelineComponentId, com.PipelineComponentCode,isnull(pipe.PlanStartDate,getdate()) as PlanStartDate,unitwork.UnitWorkName,'1' as num ,'个' as CU,pipe.FlowingSection
from HJGL_Pipeline_Component com
left join HJGL_Pipeline pipe on com.PipelineId=pipe.PipelineId
left join WBS_UnitWork unitwork on pipe.UnitWorkId=unitwork.UnitWorkId
@@ -252,6 +252,8 @@ namespace BLL
TrainNumber = newtable.TrainNumber,
TrainNumberId = newtable.TrainNumberId,
TypeInt = newtable.TypeInt,
+ CompileMan=newtable.CompileMan,
+ CompileDate = newtable.CompileDate
};
var db1 = Funs.DB;
db1.HJGL_PackagingManage.InsertOnSubmit(table);
diff --git a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
index 740c97ea..ab72d20e 100644
--- a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
@@ -26,7 +26,7 @@ namespace BLL
public static Model.HJGL_ProductionSchedulingPlan GetProductionSchedulingPlan(string loginProjectId, string flowingSection, string unitWorkId, string material, string caliber)
{
- return Funs.DB.HJGL_ProductionSchedulingPlan.FirstOrDefault(e => e.ProjectId == loginProjectId && e.FlowNum == flowingSection && e.PipelineId == unitWorkId && e.Caliber == caliber);
+ return Funs.DB.HJGL_ProductionSchedulingPlan.FirstOrDefault(e => e.ProjectId == loginProjectId && e.FlowNum == flowingSection && e.PipelineId == unitWorkId && e.Material == material && e.Caliber == caliber);
}
///
@@ -85,6 +85,8 @@ namespace BLL
newPlan.CompletedCount = plan.CompletedCount;
newPlan.CompletedRate = plan.CompletedRate;
newPlan.TotalCompletedRate = plan.TotalCompletedRate;
+ newPlan.OnDayCompleteDyne = plan.OnDayCompleteDyne;
+ newPlan.NextDayCompleteDyne = plan.NextDayCompleteDyne;
try
{
db.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);
@@ -122,5 +124,38 @@ namespace BLL
}
}
+ ///
+ /// 根据单位工程删除排产计划
+ ///
+ ///
+ ///
+ public static void DeleteProductionSchedulingPlanByUnitWork(string projectId,string unitWorkName)
+ {
+ SGGLDB db = Funs.DB;
+ var q = (from x in db.HJGL_ProductionSchedulingPlan where x.ProjectId == projectId && x.MainItemName == unitWorkName select x).ToList();
+ if (q.Count > 0)
+ {
+ db.HJGL_ProductionSchedulingPlan.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据单位工程、流水号删除排产计划
+ ///
+ ///
+ ///
+ ///
+ public static void DeleteProductionSchedulingPlanByUnitWorkIdAndFlowNum(string projectId, string unitWorkName, string flowNum)
+ {
+ SGGLDB db = Funs.DB;
+ var q = (from x in db.HJGL_ProductionSchedulingPlan where x.ProjectId == projectId && x.MainItemName == unitWorkName && x.FlowNum == flowNum select x).ToList();
+ if (q.Count > 0)
+ {
+ db.HJGL_ProductionSchedulingPlan.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
}
}
diff --git a/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
index a3314e5e..fcf9ea3e 100644
--- a/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
+++ b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
@@ -1,4 +1,6 @@
using Model;
+using NPOI.SS.Formula.Functions;
+using NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -435,7 +437,7 @@ namespace BLL
{
foreach (var pipeline in oldPipeline)
{
- DeletePipelineListByPTP_ID(pipeline.PTP_ID);
+ DeletePipelineListByPTP_ID(pipeline.PTP_ID);
}
}
@@ -455,5 +457,28 @@ namespace BLL
db.SubmitChanges();
}
}
+
+ public static void AddPipelineLists(List pipelineList)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ db.PTP_PipelineList.InsertAllOnSubmit(pipelineList);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 修改试压包打印状态
+ ///
+ ///
+ public static void UpdateTestPackagePrintState(Model.PTP_TestPackage testPackage)
+ {
+ Model.PTP_TestPackage newTestPackage = Funs.DB.PTP_TestPackage.FirstOrDefault(e => e.PTP_ID == testPackage.PTP_ID);
+ if (newTestPackage != null)
+ {
+ newTestPackage.PrintState = testPackage.PrintState;
+ Funs.DB.SubmitChanges();
+ }
+ }
}
}
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
index f2f06986..230f8d1e 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
@@ -485,13 +485,13 @@ namespace BLL
if (!string.IsNullOrEmpty(model.WeldJointCode))
baseQuery = baseQuery.Where(x => x.WeldJointCode.Contains(model.WeldJointCode));
- return baseQuery.ToList() ;
+ return baseQuery.ToList();
}
- public static (List Data, int Total)GetDataBymodel(Model.View_HJGL_WeldJoint model, int pageIndex = 0, int pageSize = 20)
+ public static (List Data, int Total) GetDataBymodel(Model.View_HJGL_WeldJoint model, int pageIndex = 0, int pageSize = 20)
{
// 阶段一:构建基础查询
var baseQuery = Funs.DB.View_HJGL_WeldJoint.AsQueryable();
-
+
// 阶段二:构建动态查询条件
if (!string.IsNullOrEmpty(model.ProjectId))
baseQuery = baseQuery.Where(x => x.ProjectId == model.ProjectId);
@@ -500,16 +500,16 @@ namespace BLL
if (!string.IsNullOrEmpty(model.PipelineId))
baseQuery = baseQuery.Where(x => x.PipelineId == model.PipelineId);
if (!string.IsNullOrEmpty(model.PipelineCode))
- baseQuery = baseQuery.Where(x => x.PipelineCode .Contains(model.PipelineCode));
+ baseQuery = baseQuery.Where(x => x.PipelineCode.Contains(model.PipelineCode));
if (!string.IsNullOrEmpty(model.WeldJointCode))
- baseQuery = baseQuery.Where(x => x.WeldJointCode.Contains( model.WeldJointCode));
-
+ baseQuery = baseQuery.Where(x => x.WeldJointCode.Contains(model.WeldJointCode));
+
// 阶段三:排序与分页控制(索引优化关键)
- var orderedQuery = baseQuery.OrderBy(x=>x.PipelineId).ThenBy(x => x.WeldJointCode);
+ var orderedQuery = baseQuery.OrderBy(x => x.PipelineId).ThenBy(x => x.WeldJointCode);
// 阶段四:分页执行(数据库层面分页)
var pagedData = orderedQuery
- .Skip((pageIndex ) * pageSize)
+ .Skip((pageIndex) * pageSize)
.Take(pageSize)
.ToList();
@@ -542,7 +542,7 @@ namespace BLL
var pagedData = orderedQuery
.Skip((pageIndex) * pageSize)
.Take(pageSize)
- .ToList();
+ .ToList();
return pagedData;
}
@@ -629,5 +629,103 @@ namespace BLL
return result;
}
+
+
+
+ ///
+ /// 根据单位工程、流水号、材质、口径获取达因数
+ ///
+ ///
+ /// 单位工程
+ /// 流水段
+ /// 材质
+ /// 口径
+ /// 1-总达因,2-完成总达因
+ ///
+ public static decimal? GetSizeSum(string projectId, string unitWorkId, string flowingSection, string steelType, string caliber,string type)
+ {
+ Model.SGGLDB db = Funs.DB;
+ decimal? sizeSum = 0;
+ int c = 0;
+ if (!string.IsNullOrEmpty(caliber))
+ {
+ c = Convert.ToInt32(caliber.Substring(1, caliber.Length - 1));
+ var weldjoints = (from x in db.HJGL_WeldJoint
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
+ join z in db.Base_Material on y.MaterialId equals z.MaterialId
+ where x.ProjectId == projectId && y.UnitWorkId == unitWorkId && y.FlowingSection == flowingSection && z.SteelType == steelType
+ && y.PipeArea == "1" && x.JointAttribute == "预制口"
+ //&& Convert.ToInt32(x.DNDia.Substring(2, x.DNDia.Length - 2)) < c
+ select x);
+
+ foreach (var item in weldjoints)
+ {
+ int s = Convert.ToInt32(item.DNDia.Substring(2, item.DNDia.Length - 2));
+ if (caliber.Substring(0, 1) == "<" && s < c)
+ {
+ if (type == "1")
+ {
+ sizeSum += item.Size;
+ }
+ else
+ {
+ if (!string.IsNullOrEmpty(item.WeldingDailyId))
+ {
+ sizeSum += item.Size;
+ }
+ }
+ }
+ else if (caliber.Substring(0, 1) == "≥" && s >= c)
+ {
+ if (type == "1")
+ {
+ sizeSum += item.Size;
+ }
+ else
+ {
+ if (!string.IsNullOrEmpty(item.WeldingDailyId))
+ {
+ sizeSum += item.Size;
+ }
+ }
+ }
+ }
+ }
+ return sizeSum;
+ }
+
+ ///
+ /// 根据单位工程、流水段获取总达因
+ ///
+ /// 项目id
+ /// 单位工程
+ /// 流水段
+ /// 1-总达因,2-完成总达因
+ ///
+ public static decimal? GetSizeSumByUnitWorkIdAndFlowingSection(string projectId, string unitWorkId, string flowingSection,string type)
+ {
+ Model.SGGLDB db = Funs.DB;
+ decimal? sizeSum = 0;
+ if (type == "1")
+ {
+ sizeSum = (from x in db.HJGL_WeldJoint
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
+ join z in db.Base_Material on y.MaterialId equals z.MaterialId
+ where x.ProjectId == projectId && y.UnitWorkId == unitWorkId && y.FlowingSection == flowingSection
+ && y.PipeArea == "1" && x.JointAttribute == "预制口"
+ select x.Size).Sum();
+ }
+ else
+ {
+ sizeSum = (from x in db.HJGL_WeldJoint
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
+ join z in db.Base_Material on y.MaterialId equals z.MaterialId
+ where x.ProjectId == projectId && y.UnitWorkId == unitWorkId && y.FlowingSection == flowingSection
+ && y.PipeArea == "1" && x.JointAttribute == "预制口"
+ && x.WeldingDailyId != "" && x.WeldingDailyId != null
+ select x.Size).Sum();
+ }
+ return sizeSum;
+ }
}
}
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
index a65d77a0..85108c23 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
@@ -136,7 +136,12 @@ namespace BLL
///
public static IEnumerable getInPersonListData(string projectId, string unitId, string personName, string identityCard, Grid Grid1)
{
- IQueryable getInPersonList = getInPersonLists.Where(x => x.ProjectId == projectId);
+ Model.SGGLDB db = Funs.DB;
+
+ IQueryable getInPersonList = from x in db.SitePerson_Person
+ where x.States == Const.ProjectPersonStates_1
+ select x;
+ getInPersonList = getInPersonList.Where(x => x.ProjectId == projectId);
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
{
if (unitId == "0")
@@ -171,7 +176,7 @@ namespace BLL
x.CardNo,
x.PersonName,
x.UnitId,
- Funs.DB.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
+ db.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
x.IdentityCard,
IsInName = "",
InOuDate = DateTime.Now.ToShortDateString(),
@@ -194,7 +199,7 @@ namespace BLL
/// 定义变量
///
private static IQueryable getNowPersonLists = from x in Funs.DB.SitePerson_PersonInOutNow
- select x;
+ select x;
///
/// 获取分页列表
@@ -204,7 +209,7 @@ namespace BLL
///
public static IEnumerable getNowPersonListData(string projectId, string unitId, string workPostId, string personName, string identityCard, DateTime dateValue, Grid Grid1)
{
- IQueryable getDayAll = getNowPersonLists.Where(x=>x.ProjectId == projectId
+ IQueryable getDayAll = getNowPersonLists.Where(x => x.ProjectId == projectId
&& x.ChangeTime.Value.Year == dateValue.Year && x.ChangeTime.Value.Month == dateValue.Month
&& x.ChangeTime.Value.Day == dateValue.Day);
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
@@ -230,7 +235,7 @@ namespace BLL
group x by x.PersonId into g
select new
{
- ProjectId = g.First().ProjectId,
+ ProjectId = g.First().ProjectId,
PersonId = g.First().PersonId,
personName = g.First().PersonName,
identityCard = g.First().IdentityCard,
@@ -260,18 +265,18 @@ namespace BLL
x.PersonId,
x.personName,
x.identityCard,
- CardNo =Funs.DB.SitePerson_Person.First(p=>p.PersonId == x.PersonId && p.ProjectId ==x.ProjectId).CardNo,
+ CardNo = Funs.DB.SitePerson_Person.First(p => p.PersonId == x.PersonId && p.ProjectId == x.ProjectId).CardNo,
x.UnitName,
x.UnitId,
x.WorkPostId,
x.WorkPostName,
- TeamGroupName=TeamGroupService.GetTeamGroupNameByPersonId(x.ProjectId,x.PersonId),
+ TeamGroupName = TeamGroupService.GetTeamGroupNameByPersonId(x.ProjectId, x.PersonId),
x.ChangeTime,
};
}
else
{
- inCount =0;
+ inCount = 0;
return null;
}
}
@@ -739,7 +744,7 @@ namespace BLL
var getSitePerson = GetSitePersonByProjectIdPersonId(projectId, personId);
if (getSitePerson != null && string.IsNullOrEmpty(getSitePerson.CardNo))
{
- cardNo= SendCarNobySiteperson(getSitePerson.SitePersonId);
+ cardNo = SendCarNobySiteperson(getSitePerson.SitePersonId);
}
return cardNo;
@@ -754,13 +759,13 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- string carNo = string.Empty;
+ string carNo = string.Empty;
var item = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == sitePersonId);
if (item != null)
{
bool isok = false;
int getPassScores = SysConstSetService.getPassScore();
- var getTestT = db.Training_TestRecord.FirstOrDefault(x => x.ProjectId == item.ProjectId && x.TestScores >= getPassScores && x.TestManId==item.PersonId);
+ var getTestT = db.Training_TestRecord.FirstOrDefault(x => x.ProjectId == item.ProjectId && x.TestScores >= getPassScores && x.TestManId == item.PersonId);
if (getTestT != null)
{
isok = true;
@@ -776,7 +781,7 @@ namespace BLL
isok = true;
}
}
-
+
if (isok) ////参加过培训的人员
{
string prefix = UnitService.GetUnitCodeByUnitId(item.UnitId) + "-";
@@ -839,6 +844,7 @@ namespace BLL
Isprint = "0",
States = person.States,
IsSafetyMonitoring = person.IsSafetyMonitoring,
+ IsCQMSCheck=person.IsCQMSCheck,
};
if (newPerson.WorkPostId == Const.WorkPost_Welder)
@@ -920,6 +926,7 @@ namespace BLL
setPersonItemInOut = true;
}
newPerson.IsSafetyMonitoring = person.IsSafetyMonitoring;
+ newPerson.IsCQMSCheck = person.IsCQMSCheck;
db.SubmitChanges();
if (!setPersonItemInOut)
@@ -931,7 +938,7 @@ namespace BLL
}
else
{
- var getDatePItem = db.SitePerson_PersonItem.FirstOrDefault(x => x.ProjectId == person.ProjectId && x.IdentityCard == person.IdentityCard && x.OutTime .HasValue && x.OutTime < person.InTime);
+ var getDatePItem = db.SitePerson_PersonItem.FirstOrDefault(x => x.ProjectId == person.ProjectId && x.IdentityCard == person.IdentityCard && x.OutTime.HasValue && x.OutTime < person.InTime);
if (getDatePItem != null)
{
setPersonItemInOut = true;
@@ -949,13 +956,13 @@ namespace BLL
db.SubmitChanges();
}
}
- }
+ }
}
}
if (setPersonItemInOut)
- {
+ {
////现场人员项目出入场记录
- SitePerson_PersonItemService.SetPersonItemInOut(newPerson,newlog);
+ SitePerson_PersonItemService.SetPersonItemInOut(newPerson, newlog);
}
}
}
@@ -1096,7 +1103,7 @@ namespace BLL
info += "卡号应为单位代码+'-'+五位流水号!";
}
}
-
+
return info;
}
diff --git a/SGGL/BLL/Person/Person_PersonTrainService.cs b/SGGL/BLL/Person/Person_PersonTrainService.cs
index 0273e636..f7da6fab 100644
--- a/SGGL/BLL/Person/Person_PersonTrainService.cs
+++ b/SGGL/BLL/Person/Person_PersonTrainService.cs
@@ -32,6 +32,9 @@ namespace BLL
///
public static IEnumerable getListData(string personId, Grid Grid1)
{
+ Model.SGGLDB db = Funs.DB;
+ IQueryable getDataLists = from x in Funs.DB.Person_PersonTrain
+ select x;
IQueryable getDataList = getDataLists.Where(x => x.PersonId == personId);
count = getDataList.Count();
if (count == 0)
@@ -45,7 +48,7 @@ namespace BLL
x.PersonTrainId,
x.PersonId,
x.TrainTypeId,
- Funs.DB.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName,
+ db.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName,
x.TrainDate,
x.TrainPlace,
x.TrainResult,
diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
index c77e3d26..2f314f9b 100644
--- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs
+++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
@@ -100,7 +100,7 @@
UnitId = x.UnitId,
Year = x.Year,
Month = x.Month,
- FillingMan = x.FillingMan,
+ FillingMan = x.FillingMan + "|" + (x.KeyWorkNum ?? 0).ToString() + "|" + (x.KeyWorkOKNum ?? 0).ToString() + "|" + (x.KeyWorkOKRate ?? ""),
FillingDate = x.FillingDate,
DutyPerson = x.DutyPerson,
RecordableIncidentRate = x.RecordableIncidentRate,
@@ -1679,6 +1679,9 @@
Quarter = x.Quarter,
YearId = x.YearId,
CompileMan = x.CompileMan,
+ KeyWorkNum = x.KeyWorkNum,
+ KeyWorkOKNum = x.KeyWorkOKNum,
+ KeyWorkOKRate = x.KeyWorkOKRate,
};
var upReportItem = from x in db.Information_ActionWorkLedgerItem
diff --git a/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs b/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
index 0c7433e5..81f7efc6 100644
--- a/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/BaseDataService.cs
@@ -24,7 +24,7 @@ namespace BLL
from projectType in projectTypeJoin.DefaultIfEmpty()
join sysConst in Funs.DB.Sys_Const on new { ProjectState2 = project.ProjectState, GroupId = BLL.ConstValue.GroupId_ProjectState } equals new { ProjectState2 = sysConst.ConstValue, GroupId = sysConst.GroupId } into sysConstJoin
from sysConst in sysConstJoin.DefaultIfEmpty()
- where project.ProjectState == "1"
+ where project.ProjectState == "1" && project.MasterSysId != null
select new ProjectOutput
{
ProjectId = project.ProjectId,
diff --git a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
index c1b6f1ea..971a3370 100644
--- a/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/CQMSDataService.cs
@@ -16,7 +16,7 @@ namespace BLL
public static class CQMSDataService
{
public static SGGLDB db = Funs.DB;
- public static List BeUnderConstructionList = ProjectService.GetProjectWorkList().Select(x => x.ProjectId).ToList();
+ public static List BeUnderConstructionList = BaseDataService.BeUnderConstructionList;
#region 获取列表
@@ -592,6 +592,7 @@ namespace BLL
var subdivisionalWorksNuTask = CQMSDataService.GetSubdivisionalWorksNumAsync(); //获取分项工程个数
var inspectionLotNumTask = CQMSDataService.GetInspectionLotNumAsync(); //获取检验批个数
var constructSolutionTask = CQMSDataService.GetConstructSolutionAsync(); //施工方案数量
+ var comprehensiveMajorPlanTask = CQMSDataService.GetComprehensive_MajorPlanApprovalAsync(); //危大工程、超危大工程施工方案数量
var cqmsProblemTask = CQMSDataService.GetCQMSProblemAsync(); //获取企业级、项目级质量问题
var cqmsBranchMajorCheckTask = CQMSDataService.GetBranchMajorCheckAsync(); //获取分支机构质量大检查次数
var cqmsCompanyMajorCheckTask = CQMSDataService.GetCompanyMajorCheckAsync(); //获取企业质量大检查次数
@@ -621,7 +622,7 @@ namespace BLL
inspectionEquipmentTask, inspectionPersonTask, inspectionMachineTask,
useNumTask, okNumTask,
singleProjectNumTask, unitProjectNumTask, subProjectNuTask, subdivisionalWorksNuTask, inspectionLotNumTask,
- constructSolutionTask,
+ constructSolutionTask, comprehensiveMajorPlanTask,
cqmsProblemTask, cqmsBranchMajorCheckTask, cqmsCompanyMajorCheckTask,
keyProcessNumTask, keyProcessOKNumTask, specialProcessNumTask, specialProcessOKNumTask, concealedWorksNumTask, concealedWorksOKNumTask,
unitProjectAcceptNumTask, unitProjectAcceptOKNumTask, subProjectAcceptNumTask, subProjectAcceptOKNumTask, subdivisionalWorksAcceptNumTask, subdivisionalWorksAcceptOKNumTask,
@@ -651,6 +652,7 @@ namespace BLL
var inspectionLotNum = await inspectionLotNumTask;
var constructSolutionList = await constructSolutionTask;
+ var comprehensiveMajorPlanList = await comprehensiveMajorPlanTask;
var cqmsProblemList = await cqmsProblemTask;
var cqmsBranchMajorCheckList = await cqmsBranchMajorCheckTask;
var cqmsCompanyMajorCheckList = await cqmsCompanyMajorCheckTask;
@@ -692,7 +694,7 @@ namespace BLL
EquipmentInspectionNum = inspectionEquipmentList.Count(),
EquipmentInspectionQualifiedNum = inspectionEquipmentList.Count(),
PersonInspectionNum = inspectionPersonList.Count(),
- PersonInspectionQualifiedNum = inspectionPersonList.Where(x => x.IsOnSite.HasValue && x.IsOnSite == true).Count(),
+ PersonInspectionQualifiedNum = inspectionPersonList.Count(),
MachineInspectionNum = inspectionMachineList.Count(),
MachineInspectionQualifiedNum = inspectionMachineList.Where(x => x.IsCheckCertificate == true).Count(),
@@ -708,9 +710,9 @@ namespace BLL
ConstructSolutionNum = constructSolutionList.Count(),
ConstructSolutionProjectApproveNum = constructSolutionList.Where(x => x.State == "1").Count(),
- ConstructSolutionUnitApproveNum = 0,//
+ ConstructSolutionUnitApproveNum = comprehensiveMajorPlanList.Count(),
SpecialEquipmentQualityAssuranceSystemNum = qualityAssuranceNum.Count(),
- DesignDetailsNum = technicalDisclosePersonList.Sum(x => x.TrainPersonNum),
+ DesignDetailsNum = technicalDisclosePersonList.Count(),
ProblemNum = cqmsProblemList.Count(),
ProblemCompletedNum = cqmsProblemList.Where(x => x.State == "7").Count(),
@@ -765,7 +767,7 @@ namespace BLL
EquipmentInspectionNum = inspectionEquipmentList.Count(x => x.ProjectId == projectid),
EquipmentInspectionQualifiedNum = inspectionEquipmentList.Where(x => x.ProjectId == projectid).Count(),
PersonInspectionNum = inspectionPersonList.Count(x => x.ProjectId == projectid),
- PersonInspectionQualifiedNum = inspectionPersonList.Where(x => x.IsOnSite.HasValue && x.IsOnSite == true && x.ProjectId == projectid).Count(),
+ PersonInspectionQualifiedNum = inspectionPersonList.Count(x => x.ProjectId == projectid),
MachineInspectionNum = inspectionMachineList.Count(x => x.ProjectId == projectid),
MachineInspectionQualifiedNum = inspectionMachineList.Where(x => x.IsCheckCertificate == true && x.ProjectId == projectid).Count(),
MaterialInspectionNum = 0,
@@ -780,9 +782,9 @@ namespace BLL
ConstructSolutionNum = constructSolutionList.Count(x => x.ProjectId == projectid),
ConstructSolutionProjectApproveNum = constructSolutionList.Where(x => x.State == "1" && x.ProjectId == projectid).Count(),
- ConstructSolutionUnitApproveNum = 0,//
+ ConstructSolutionUnitApproveNum = comprehensiveMajorPlanList.Count(x => x.ProjectId == projectid),
SpecialEquipmentQualityAssuranceSystemNum = qualityAssuranceNum.Count(x => x.ProjectId == projectid),
- DesignDetailsNum = technicalDisclosePersonList.Where(x => x.ProjectId == projectid).Sum(x => x.TrainPersonNum),
+ DesignDetailsNum = technicalDisclosePersonList.Where(x => x.ProjectId == projectid).Count(),
ProblemNum = cqmsProblemList.Count(x => x.ProjectId == projectid),
ProblemCompletedNum = cqmsProblemList.Where(x => x.State == "7" && x.ProjectId == projectid).Count(),
@@ -1158,7 +1160,7 @@ namespace BLL
///
public static List GetTechnicalDisclosePerson()
{
- var result = (from x in Funs.DB.Comprehensive_DesignDetails
+ var result = (from x in Funs.DB.Comprehensive_ConTechnologyDisclosure
join p in Funs.DB.Base_Project on x.ProjectId equals p.ProjectId into pGroup
from p in pGroup.DefaultIfEmpty()
where BeUnderConstructionList.Contains(p.ProjectId) && x.CompileDate > Const.DtmarkTime
@@ -1167,11 +1169,11 @@ namespace BLL
ProjectId = x.ProjectId,
ProjectName = p.ProjectName,
UnitName = "",
- Id = x.DesignDetailsId,
+ Id = x.ConTechnologyDisclosureId,
TrainTitle = "",
TrainStartDate = null,
TrainEndDate = null,
- TrainPersonNum = x.JoinPersonNum ?? 0,
+ TrainPersonNum = x.DisclosurePersonNum ?? 0,
}).ToList();
return result;
}
@@ -1210,10 +1212,10 @@ namespace BLL
/// 获取人员报验
///
///
- public static List GetComprehensive_InspectionPerson()
+ public static List GetComprehensive_InspectionPerson()
{
- var result = (from x in Funs.DB.Comprehensive_InspectionPerson
- where BeUnderConstructionList.Contains(x.ProjectId) && x.CompileDate > Const.DtmarkTime
+ var result = (from x in Funs.DB.SitePerson_Person
+ where BeUnderConstructionList.Contains(x.ProjectId) && x.IsCQMSCheck.HasValue && x.IsCQMSCheck == true
select x).ToList();
return result;
}
@@ -1222,7 +1224,7 @@ namespace BLL
/// 获取人员报验(异步)
///
///
- public static async Task> GetComprehensive_InspectionPersonAsync()
+ public static async Task> GetComprehensive_InspectionPersonAsync()
{
return await Task.Run(GetComprehensive_InspectionPerson);
}
@@ -1423,6 +1425,26 @@ namespace BLL
return await Task.Run(GetConstructSolution);
}
+ ///
+ /// 危大(超危大)工程施工方案数量
+ ///
+ ///
+ public static List GetComprehensive_MajorPlanApproval()
+ {
+ var result = (from x in Funs.DB.Solution_LargerHazard
+ where BeUnderConstructionList.Contains(x.ProjectId)
+ select x).ToList();
+ return result;
+ }
+ ///
+ /// 危大(超危大)工程施工方案数量(异步)
+ ///
+ ///
+ public static async Task> GetComprehensive_MajorPlanApprovalAsync()
+ {
+ return await Task.Run(GetComprehensive_MajorPlanApproval);
+ }
+
///
/// 获取施工技术交底
///
diff --git a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
index 57eb0136..e3785929 100644
--- a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs
@@ -2988,7 +2988,7 @@ namespace BLL
from projectType in projectTypeJoin.DefaultIfEmpty()
join sysConst in Funs.DB.Sys_Const on new { ProjectState2 = "", GroupId = BLL.ConstValue.GroupId_ProjectState } equals new { ProjectState2 = sysConst.ConstValue, GroupId = sysConst.GroupId } into sysConstJoin
from sysConst in sysConstJoin.DefaultIfEmpty()
- where project.ProjectState == "1"
+ where project.ProjectState == "1" && project.MasterSysId != null
select new ProjectOutput
{
ProjectId = project.ProjectId,
@@ -3050,7 +3050,7 @@ namespace BLL
ConstructionMoney = project.ConstructionMoney,
ProjectStateName = project.ProjectState == BLL.Const.ProjectState_2 ? "暂停中" : (project.ProjectState == BLL.Const.ProjectState_3 ? "已完工" : "施工中"),
ProjectState = project.ProjectState,
- ProjectAttributeName = "工程",
+ ProjectAttributeName = "工程",
ProjectMoney = project.ProjectMoney,
DayCount = DateTime.Now.Subtract(project.StartDate.Value).Days,
ProjectTypeName = projectType.ProjectTypeName,
@@ -4016,7 +4016,7 @@ namespace BLL
from y in yGroup.DefaultIfEmpty()
join z in Funs.DB.Base_RiskLevel on y.HazardLevel equals z.RiskLevelId into zGroup
from z in zGroup.DefaultIfEmpty()
- where BeUnderConstructionList.Contains(x.ProjectId)
+ where BeUnderConstructionList.Contains(x.ProjectId)
group new { y, z } by new { x.ProjectId, x.ProjectName, x.ProjectCode } into gg
select new SecurityRiskOutput
{
@@ -4063,6 +4063,8 @@ namespace BLL
SuperConstructionNum = gg.Count(x => x.States == "2" && x.IsSuperLargerHazard == true),
SuperFinishedNum = gg.Count(x => x.States == "3" && x.IsSuperLargerHazard == true),
SuperArgumentNum = gg.Count(x => x.IsArgument == true && x.IsSuperLargerHazard == true),
+ OperativesNum = gg.Where(x => x.IsSuperLargerHazard == false).Sum(x => x.OperativesNum) ?? 0,
+ SuperOperativesNum = gg.Where(x => x.IsSuperLargerHazard == true).Sum(x => x.OperativesNum) ?? 0,
}).ToList();
return query;
@@ -4232,7 +4234,7 @@ namespace BLL
from bc in bcGroup.DefaultIfEmpty()
join su1 in Funs.DB.Person_Persons on q.AuditorId equals su1.PersonId into su1Group
from su1 in su1Group.DefaultIfEmpty()
- where BeUnderConstructionList.Contains(p.ProjectId) && m.PostType == Const.PostType_2
+ where BeUnderConstructionList.Contains(p.ProjectId) && m.PostType == Const.PostType_2
select new Model.OfSafetySupervisorsOutput
{
ProjectId = p.ProjectId,
diff --git a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
index 603f472f..ed3eb2c9 100644
--- a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
+++ b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs
@@ -81,6 +81,9 @@ namespace BLL
newActionWorkLedger.UpState = ActionWorkLedger.UpState;
newActionWorkLedger.HandleState = ActionWorkLedger.HandleState;
newActionWorkLedger.HandleMan = ActionWorkLedger.HandleMan;
+ newActionWorkLedger.KeyWorkNum = ActionWorkLedger.KeyWorkNum;
+ newActionWorkLedger.KeyWorkOKNum = ActionWorkLedger.KeyWorkOKNum;
+ newActionWorkLedger.KeyWorkOKRate = ActionWorkLedger.KeyWorkOKRate;
Funs.DB.SubmitChanges();
}
}
diff --git a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
index a807d8fa..b19cb2fa 100644
--- a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
+++ b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs
@@ -73,6 +73,9 @@ namespace BLL
BreakGroundLicenseNum = MillionsMonthlyReport.BreakGroundLicenseNum,
ElectricityLicenseNum = MillionsMonthlyReport.ElectricityLicenseNum,
RTLicenseNum = MillionsMonthlyReport.RTLicenseNum,
+ KeyWorkNum = MillionsMonthlyReport.KeyWorkNum,
+ KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum,
+ KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate,
NightLicenseNum = MillionsMonthlyReport.NightLicenseNum,
CommissionerNum = MillionsMonthlyReport.CommissionerNum,
SoleDutyNum = MillionsMonthlyReport.SoleDutyNum,
@@ -120,6 +123,9 @@ namespace BLL
newMillionsMonthlyReport.NightLicenseNum = MillionsMonthlyReport.NightLicenseNum;
newMillionsMonthlyReport.CommissionerNum = MillionsMonthlyReport.CommissionerNum;
newMillionsMonthlyReport.SoleDutyNum = MillionsMonthlyReport.SoleDutyNum;
+ newMillionsMonthlyReport.KeyWorkNum = MillionsMonthlyReport.KeyWorkNum;
+ newMillionsMonthlyReport.KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum;
+ newMillionsMonthlyReport.KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate;
Funs.DB.SubmitChanges();
}
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/试压包导入模版.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataIn/试压包导入模版.xlsx
new file mode 100644
index 00000000..8eee13d8
Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Excel/DataIn/试压包导入模版.xlsx differ
diff --git a/SGGL/FineUIPro.Web/File/Excel/DataOut/排产计划导出模板.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataOut/排产计划导出模板.xlsx
index 24e30a80..0a4d300e 100644
Binary files a/SGGL/FineUIPro.Web/File/Excel/DataOut/排产计划导出模板.xlsx and b/SGGL/FineUIPro.Web/File/Excel/DataOut/排产计划导出模板.xlsx differ
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力包文件资料目录.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力包文件资料目录.frx
new file mode 100644
index 00000000..42f0ebf2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力包文件资料目录.frx
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力试验技术要求.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力试验技术要求.frx
new file mode 100644
index 00000000..dc0a28f4
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道压力试验技术要求.frx
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测数量统计表.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测数量统计表.frx
new file mode 100644
index 00000000..403719ab
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测数量统计表.frx
@@ -0,0 +1,341 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table3_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table3.PrintRow(0);
+ Table3.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测结果汇总表.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测结果汇总表.frx
new file mode 100644
index 00000000..f67dfe60
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测结果汇总表.frx
@@ -0,0 +1,368 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private int x;
+ private string header="";
+ private string s="";
+
+ private void Table9_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+ x=0;
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ x++;
+ Table9.PrintRow(0);
+ Table9.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+
+ private void Cell2_BeforePrint(object sender, EventArgs e)
+ {
+ if (Report.Engine.PageNo>1)
+ {
+ header="(续)";
+
+ }
+ }
+
+ private void Cell1_BeforePrint(object sender, EventArgs e)
+ {
+ if (Report.Engine.PageNo>1)
+ {
+ s="2";
+ }
+ else
+ {
+ s="1";
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx
new file mode 100644
index 00000000..eeb29ab2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx
@@ -0,0 +1,202 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table2_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table2.PrintRow(0);
+ Table2.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道焊接工作记录.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道焊接工作记录.frx
new file mode 100644
index 00000000..b3415779
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道焊接工作记录.frx
@@ -0,0 +1,224 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table2_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table2.PrintRow(0);
+ Table2.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验条件确认记录.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验条件确认记录.frx
new file mode 100644
index 00000000..648a0914
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验条件确认记录.frx
@@ -0,0 +1,293 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验记录.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验记录.frx
new file mode 100644
index 00000000..99fa687c
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道系统压力试验记录.frx
@@ -0,0 +1,271 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table2_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table2.PrintRow(0);
+ Table2.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包尾项清单.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包尾项清单.frx
new file mode 100644
index 00000000..83eee40a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包尾项清单.frx
@@ -0,0 +1,177 @@
+
+
+ using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Data;
+using FastReport;
+using FastReport.Data;
+using FastReport.Dialog;
+using FastReport.Barcode;
+using FastReport.Table;
+using FastReport.Utils;
+
+namespace FastReport
+{
+ public class ReportScript
+ {
+
+ private void Table2_ManualBuild(object sender, EventArgs e)
+ {
+ DataSourceBase rowData = Report.GetDataSource("Data");
+ // init the data source
+ rowData.Init();
+
+ // print the first table row - it is a header
+
+ // now enumerate the data source and print the table body
+ while (rowData.HasMoreRows)
+ {
+ // print the table body
+ Table2.PrintRow(0);
+ Table2.PrintColumns();
+
+ // go next data source row
+ rowData.Next();
+ }
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包文件资料.frx b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包文件资料.frx
new file mode 100644
index 00000000..9af7e298
--- /dev/null
+++ b/SGGL/FineUIPro.Web/File/Fastreport/JGZL/管道试压包文件资料.frx
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/装箱单.frx b/SGGL/FineUIPro.Web/File/Fastreport/装箱单.frx
index 5ca4de20..124997e3 100644
--- a/SGGL/FineUIPro.Web/File/Fastreport/装箱单.frx
+++ b/SGGL/FineUIPro.Web/File/Fastreport/装箱单.frx
@@ -1,5 +1,5 @@
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace FastReport
}
-
+
@@ -50,6 +50,7 @@ namespace FastReport
+
@@ -58,12 +59,12 @@ namespace FastReport
-
-
+
+
-
+
-
+
@@ -76,59 +77,65 @@ namespace FastReport
-
+
-
+
-
-
+
+
+
+
-
+
-
+
-
-
+
+
+
+
-
-
+
+
-
+
-
-
+
+
+
+
-
+
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 1f8781f0..7c91181a 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -307,6 +307,9 @@
+
+
+
@@ -1584,6 +1587,7 @@
+
@@ -1612,6 +1616,7 @@
+
@@ -10795,6 +10800,13 @@
TrainNumberManageEdit.aspx
+
+ TrainNumberManagerPrint.aspx
+ ASPXCodeBehind
+
+
+ TrainNumberManagerPrint.aspx
+
TrainNumberManagerView.aspx
ASPXCodeBehind
@@ -10991,6 +11003,13 @@
TestPackageCompleteEdit.aspx
+
+ TestPackageData.aspx
+ ASPXCodeBehind
+
+
+ TestPackageData.aspx
+
TestPackageEdit.aspx
ASPXCodeBehind
@@ -16785,7 +16804,7 @@
-
+
diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatchImport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatchImport.aspx.cs
index bb89fc04..3a322824 100644
--- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatchImport.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatchImport.aspx.cs
@@ -1,4 +1,5 @@
-using BLL;
+using Aspose.Words.Lists;
+using BLL;
using MiniExcelLibs;
using Model;
using NPOI.SS.Util;
@@ -202,6 +203,8 @@ namespace FineUIPro.Web.HJGL.NDT
//设置生成下拉框的行和列
SetCellDropdownList(sheet, 6, 6, new List() { "合格", "不合格" }.ToArray());//是否合格
SetCellDropdownList(sheet, 7, 7, new List() { "Ⅰ", "Ⅱ", "Ⅲ", "Ⅳ", "Ⅴ" }.ToArray());//评定级别
+ var defects = from x in Funs.DB.Base_Defect select x.DefectName;//缺陷
+ SetCellDropdownList(sheet, 8, 8, new List() { string.Join(",", defects.ToList())}.ToArray());
//添加数据
cell = row.CreateCell(7);
diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs
index 229f1e7b..590a5b8e 100644
--- a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs
@@ -1032,7 +1032,7 @@ namespace FineUIPro.Web.HJGL.PointTrust
protected void btnBack_Click(object sender, EventArgs e)
{
Model.SGGLDB db = Funs.DB;
- string trustBatchId = string.Empty;
+ //string trustBatchId = string.Empty;
var lists = this.Grid1.SelectedRowIDArray;
if (lists.Count() > 0)
{
@@ -1047,8 +1047,10 @@ namespace FineUIPro.Web.HJGL.PointTrust
var batchTrustItem = (from x in db.HJGL_Batch_BatchTrustItem where x.PointBatchItemId == pointBatchItemId select x).FirstOrDefault();
if (batchTrustItem != null)
{
- trustBatchId = batchTrustItem.TrustBatchId;
- BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchItemId(batchTrustItem.TrustBatchItemId);
+ //trustBatchId = batchTrustItem.TrustBatchId;
+ BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchId(batchTrustItem.TrustBatchId);
+ BLL.Batch_BatchTrustService.DeleteBatchTrustById(batchTrustItem.TrustBatchId);
+ //BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchItemId(batchTrustItem.TrustBatchItemId);
}
//修改点口中的委托状态
@@ -1071,11 +1073,11 @@ namespace FineUIPro.Web.HJGL.PointTrust
}
}
- var trustItemList = BLL.Batch_BatchTrustItemService.GetBatchTrustItemByTrustBatchId(trustBatchId);
- if (trustItemList.Count == 0)
- {
- BLL.Batch_BatchTrustService.DeleteBatchTrustById(trustBatchId);
- }
+ //var trustItemList = BLL.Batch_BatchTrustItemService.GetBatchTrustItemByTrustBatchId(trustBatchId);
+ //if (trustItemList.Count == 0)
+ //{
+ // BLL.Batch_BatchTrustService.DeleteBatchTrustById(trustBatchId);
+ //}
PageInfo();
BindGrid();
ShowNotify("退回成功!", MessageBoxIcon.Success);
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx
index 607a9290..62d2da0f 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx
@@ -19,8 +19,8 @@
-
+
@@ -59,7 +59,7 @@
+ runat="server" OnClick="btnSearch_Click">
@@ -69,9 +69,9 @@
-
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs
index 31f1e319..cc196643 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs
@@ -228,8 +228,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
///
private DataTable BindData()
{
- string strSql = @"WITH cte as (select pipeline.PipelineCode as PipelineCode,
+ string strSql = @"WITH cte as (select newid()as id,pipeline.PipelineCode as PipelineCode,
comonent.PipelineComponentCode as PipelineComponentCode,
+ '预制组件' as Stype,
'' as matdef,
packdetail.Number as Number,
pack.PackagingCode as PackagingCode,
@@ -244,8 +245,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
left join HJGL_TrainNumberManage trainnumber on pack.TrainNumberId = TrainNumber.Id
where (packdetail.PipelineComponentId is not null or packdetail.PipelineComponentId != '')
union all
- select pipeline.PipelineCode as PipelineCode,
+ select newid()as id,pipeline.PipelineCode as PipelineCode,
packdetail.MaterialCode as PipelineComponentCode,
+ '预制散件' as Stype,
matlib.MaterialDef as matdef,
packdetail.Number as Number,
pack.PackagingCode as PackagingCode,
@@ -287,6 +289,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
// strSql += " AND cte.FlowingSection =@FlowingSection";
// listStr.Add(new SqlParameter("@FlowingSection", drpFlowingSection.SelectedValue.ToString()));
//}
+ if (!string.IsNullOrEmpty(txtPipelineCode.Text))
+ {
+ strSql += " AND cte.PipelineCode like @pipeline";
+ listStr.Add(new SqlParameter("@pipeline", "%" + this.txtPipelineCode.Text.Trim() + "%"));
+ }
strSql += " ORDER BY PipelineCode,PipelineComponentCode ";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -351,13 +358,14 @@ namespace FineUIPro.Web.HJGL.PreDesign
///
///
///
- protected void TextBox_TextChanged(object sender, EventArgs e)
- {
- this.BindGrid();
- }
+ //protected void TextBox_TextChanged(object sender, EventArgs e)
+ //{
+ // this.BindGrid();
+ //}
protected void btnTreeFind_Click1(object sender, EventArgs e)
{
this.InitTreeMenu();
+ this.BindGrid();
}
#endregion
@@ -388,6 +396,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
select new
{
管线号 = x.Field("PipelineCode"),
+ 类型 = x.Field("Stype"),
组件编号 = x.Field("PipelineComponentCode"),
预制散件材料描述 = !string.IsNullOrWhiteSpace(x.Field("matdef")) ? x.Field("matdef") : "-",
数量 = x.Field("Number"),
@@ -396,11 +405,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
流水段 = x.Field("FlowingSection")
});
string path = Funs.RootPath + @"File\Excel\Temp\PrePipelineInstallList.xlsx";
- path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HHmm}", DateTime.Now) + ".xlsx");
+ path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, q);
- string fileName = $"安装清单({(string.Format("{0:yyyy-MM-dd-HHmm}", DateTime.Now))}).xlsx";
+ string fileName = $"安装清单-" + this.tvControlItem.SelectedNode.Text + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now) + ".xlsx";
FileInfo info = new FileInfo(path);
long fileSize = info.Length;
System.Web.HttpContext.Current.Response.Clear();
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx
index e0c6536d..a313113b 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx
@@ -15,8 +15,8 @@
@@ -40,22 +40,22 @@
-
-
+
<%--
--%>
-
+
-
-
-
-
- --%>
+
-
-
-
+
+
@@ -107,7 +107,7 @@
-
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx.cs
index 562bbcdb..31f06ce4 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx.cs
@@ -308,16 +308,29 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
protected void btnOutPrint_Click(object sender, EventArgs e)
{
- string Id = this.Grid1.SelectedRowID;
- var model = HJGL_PackagingmanageService.GetHJGL_PackagingManageById(Id);
- var PipelineComponent = model.PipelineComponentId.Split(',');
- foreach (var item in PipelineComponent)
+ if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
{
- HJGL_PipelineComponentService.UpdateOutState(item, model.PackagingCode);
+ string Id = this.Grid1.SelectedRowID;
+ var model = HJGL_PackagingmanageService.GetHJGL_PackagingManageById(Id);
+ if (model != null)
+ {
+ if (!string.IsNullOrEmpty(model.PipelineComponentId))
+ {
+ var PipelineComponent = model.PipelineComponentId.Split(',');
+ foreach (var item in PipelineComponent)
+ {
+ HJGL_PipelineComponentService.UpdateOutState(item, model.PackagingCode);
+ }
+ }
+ HJGL_PackagingmanageService.PutOutOrder(Id);
+ Pring(Id);
+ }
+ }
+ else
+ {
+ ShowNotify("请选择要生成的出库单", MessageBoxIcon.Warning);
+ return;
}
- HJGL_PackagingmanageService.PutOutOrder(Id);
- Pring(Id);
-
}
private void Pring(string Id)
{
@@ -329,38 +342,41 @@ namespace FineUIPro.Web.HJGL.PreDesign
return;
}
DataTable tb = BLL.HJGL_PackagingmanageService.GetPackagingDetailById(Id);
- var model = HJGL_PackagingmanageService.GetHJGL_PackagingManageById(Id);
-
- var dtTable = tb.AsEnumerable().OrderBy(o => o["PlanStartDate"]).CopyToDataTable();
- string PlanStartDate = "";
- if (dtTable.Rows != null && dtTable.Rows.Count > 0)
+ if (tb.Rows.Count > 0)
{
- PlanStartDate = dtTable.Rows[0]["PlanStartDate"].ToString();
- }
- Dictionary keyValuePairs = new Dictionary();
- keyValuePairs.Add("ProjectName", ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId));
- keyValuePairs.Add("PackagingCode", model.PackagingCode);
- keyValuePairs.Add("PlanStartDate", PlanStartDate);
- keyValuePairs.Add("StackingPosition", model.StackingPosition);
- keyValuePairs.Add("ContactName", model.ContactName + "| " + model.ContactPhone);
- keyValuePairs.Add("ID", "PackagingManage$" + model.PackagingManageId);
- DataRow dataRow = tb.NewRow();
- dataRow["num"] = "合计:" + tb.Rows.Count;
- tb.Rows.Add(dataRow);
- if (tb != null)
- {
- tb.TableName = "Data";
- }
- BLL.FastReportService.AddFastreportTable(tb);
- BLL.FastReportService.AddFastreportParameter(keyValuePairs);
- string initTemplatePath = "";
- string rootPath = Server.MapPath("~/");
- initTemplatePath = "File\\Fastreport\\装箱单.frx";
+ var model = HJGL_PackagingmanageService.GetHJGL_PackagingManageById(Id);
- if (File.Exists(rootPath + initTemplatePath))
- {
- PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
+ var dtTable = tb.AsEnumerable().OrderBy(o => o["PlanStartDate"]).CopyToDataTable();
+ string PlanStartDate = "";
+ if (dtTable.Rows != null && dtTable.Rows.Count > 0)
+ {
+ PlanStartDate = dtTable.Rows[0]["PlanStartDate"].ToString();
+ }
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("ProjectName", ProjectService.GetProjectNameByProjectId(this.CurrUser.LoginProjectId));
+ keyValuePairs.Add("PackagingCode", model.PackagingCode);
+ keyValuePairs.Add("PlanStartDate", PlanStartDate);
+ keyValuePairs.Add("StackingPosition", model.StackingPosition);
+ keyValuePairs.Add("ContactName", model.ContactName + "| " + model.ContactPhone);
+ keyValuePairs.Add("ID", "PackagingManage$" + model.PackagingManageId);
+ DataRow dataRow = tb.NewRow();
+ dataRow["num"] = "合计:" + tb.Rows.Count;
+ tb.Rows.Add(dataRow);
+ if (tb != null)
+ {
+ tb.TableName = "Data";
+ }
+ BLL.FastReportService.AddFastreportTable(tb);
+ BLL.FastReportService.AddFastreportParameter(keyValuePairs);
+ string initTemplatePath = "";
+ string rootPath = Server.MapPath("~/");
+ initTemplatePath = "File\\Fastreport\\装箱单.frx";
+ if (File.Exists(rootPath + initTemplatePath))
+ {
+ PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
+
+ }
}
}
#endregion
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx
index 147a8c7e..2cc6caaf 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx
@@ -17,8 +17,8 @@
-
+
@@ -32,20 +32,24 @@
DataKeyNames="PipelineComponentId"
AllowSorting="true" SortField="PipelineComponentCode" SortDirection="ASC">
-
-
+
+
+
+
+
+
-
-
-
+
<%--
@@ -119,7 +123,6 @@
CommandName="delete" Icon="Delete" />
-
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.cs
index 15f29f23..bd4bb451 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.cs
@@ -97,10 +97,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
//table.ContactPhone = txtContactPhone.Text;
table.TrainNumberId = drpTrainNumber.SelectedValue;
table.TypeInt = int.Parse(drpTypeInt.SelectedValue);
+ table.CompileMan = this.CurrUser.PersonId;
+ table.CompileDate = DateTime.Now;
if (drpTypeInt.SelectedValue == ((int)HJGL_PackagingmanageService.TypeInt.预制组件).ToString())
{
table.PipelineComponentId = string.Join(",", dropPipelineComponentCode.Values);
-
}
BLL.HJGL_PackagingmanageService.AddHJGL_PackagingManage(table);
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.designer.cs
index d1023ab2..4bd77055 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageEdit.aspx.designer.cs
@@ -7,13 +7,11 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HJGL.PreDesign
-{
-
-
- public partial class PackagingManageEdit
- {
-
+namespace FineUIPro.Web.HJGL.PreDesign {
+
+
+ public partial class PackagingManageEdit {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Form2 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form Form2;
-
+
///
/// txtPackagingCode 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtPackagingCode;
-
+
///
/// drpTypeInt 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpTypeInt;
-
+
///
/// dropPipelineComponentCode 控件。
///
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownBox dropPipelineComponentCode;
-
+
///
/// Grid1 控件。
///
@@ -76,7 +74,16 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
///
/// Label3 控件。
///
@@ -85,7 +92,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label Label3;
-
+
///
/// txtpipelineCode 控件。
///
@@ -94,7 +101,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtpipelineCode;
-
+
///
/// txtpipelineComponentCode 控件。
///
@@ -103,7 +110,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtpipelineComponentCode;
-
+
///
/// txtflowingSection 控件。
///
@@ -112,7 +119,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtflowingSection;
-
+
///
/// btnFind 控件。
///
@@ -121,7 +128,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnFind;
-
+
///
/// txtStackingPosition 控件。
///
@@ -130,7 +137,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtStackingPosition;
-
+
///
/// drpTrainNumber 控件。
///
@@ -139,7 +146,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpTrainNumber;
-
+
///
/// Grid2 控件。
///
@@ -148,7 +155,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid2;
-
+
///
/// Toolbar3 控件。
///
@@ -157,7 +164,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar3;
-
+
///
/// btnSelect 控件。
///
@@ -166,7 +173,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSelect;
-
+
///
/// btnSelectStock 控件。
///
@@ -175,7 +182,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSelectStock;
-
+
///
/// tbNumber 控件。
///
@@ -184,7 +191,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox tbNumber;
-
+
///
/// Toolbar2 控件。
///
@@ -193,7 +200,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// btnSave 控件。
///
@@ -202,7 +209,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// btnClose 控件。
///
@@ -211,7 +218,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnClose;
-
+
///
/// Window1 控件。
///
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx
index 319a54a9..e4e2858b 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx
@@ -35,6 +35,9 @@
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx.cs
index bab5b46e..51b03139 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageView.aspx.cs
@@ -67,7 +67,8 @@ namespace FineUIPro.Web.HJGL.PreDesign
PipelineComponentCode = x.MaterialCode,
num = x.Number,
CU = x.MaterialUnit,
- UnitWorkName = x.UnitWorkId == null ? "" : UnitWorkService.GetNameById(x.UnitWorkId)
+ UnitWorkName = x.UnitWorkId == null ? "" : UnitWorkService.GetNameById(x.UnitWorkId),
+ x.FlowingSection,
};
Grid1.RecordCount = detailList.Count();
Grid1.DataSource = detailList;
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx
index 7af24a42..adee1de5 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx
@@ -12,62 +12,62 @@
-
+
-
+
-
+