diff --git a/.vs/SGGL_SeDin_New/v17/.wsuo b/.vs/SGGL_SeDin_New/v17/.wsuo
index 2b6a9900..7f596900 100644
Binary files a/.vs/SGGL_SeDin_New/v17/.wsuo and b/.vs/SGGL_SeDin_New/v17/.wsuo differ
diff --git a/.vs/SGGL_SeDin_New/v17/DocumentLayout.backup.json b/.vs/SGGL_SeDin_New/v17/DocumentLayout.backup.json
index 290e6c8a..4cf91a0b 100644
--- a/.vs/SGGL_SeDin_New/v17/DocumentLayout.backup.json
+++ b/.vs/SGGL_SeDin_New/v17/DocumentLayout.backup.json
@@ -8,21 +8,13 @@
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
- "DockedWidth": 386,
+ "DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{e506b91c-c606-466a-90a9-123d1d1e12b3}"
},
- {
- "$type": "Bookmark",
- "Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
- },
- {
- "$type": "Bookmark",
- "Name": "ST:132:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
- },
{
"$type": "Bookmark",
"Name": "ST:133:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
@@ -51,14 +43,6 @@
"$type": "Bookmark",
"Name": "ST:3:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}"
},
- {
- "$type": "Bookmark",
- "Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
- },
- {
- "$type": "Bookmark",
- "Name": "ST:131:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
- },
{
"$type": "Bookmark",
"Name": "ST:0:0:{1a46fd64-28d5-434c-8eb3-17a02d419b53}"
@@ -67,6 +51,18 @@
"$type": "Bookmark",
"Name": "ST:0:0:{5726b0e3-1012-5233-81f9-d1fad48e7a56}"
},
+ {
+ "$type": "Bookmark",
+ "Name": "ST:137:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
+ },
+ {
+ "$type": "Bookmark",
+ "Name": "ST:138:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
+ },
+ {
+ "$type": "Bookmark",
+ "Name": "ST:136:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
+ },
{
"$type": "Bookmark",
"Name": "ST:2:0:{b9f91511-5ca5-40ec-9726-f3e3a7e534e2}"
@@ -77,7 +73,7 @@
},
{
"$type": "Bookmark",
- "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
+ "Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
}
]
}
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/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 0c75a797..7495a1d5 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -56,6 +56,10 @@
..\packages\EmitMapper.1.0.0\lib\EmitMapper.dll
+
+ False
+ bin\Debug\FastReport.dll
+
False
..\FineUIPro\FineUIPro.dll
diff --git a/SGGL/BLL/Common/ConstValue.cs b/SGGL/BLL/Common/ConstValue.cs
index e316b5ee..955c41a4 100644
--- a/SGGL/BLL/Common/ConstValue.cs
+++ b/SGGL/BLL/Common/ConstValue.cs
@@ -92,6 +92,11 @@ namespace BLL
{
return Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstValue == constValue && e.GroupId == groupId);
}
+
+ public static Sys_Const GetConstByConstText(string constText)
+ {
+ return Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstText == constText);
+ }
public static void DeleteConstValueBygroupId(string groupId)
{
var q = Funs.DB.Sys_Const.Where(x => x.GroupId == groupId);
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/TestPackage/TestPackageEditService.cs b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
index a3314e5e..c1ddf1ef 100644
--- a/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
+++ b/SGGL/BLL/HJGL/TestPackage/TestPackageEditService.cs
@@ -455,5 +455,14 @@ 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();
+ }
+ }
}
}
diff --git a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
index 5ba8d146..660ee615 100644
--- a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
@@ -386,28 +386,17 @@ namespace BLL
select x;
var projectModel=ProjectService.GetProjectByProjectId(projectId);
var contractModel = CostManageService.GetCostManageById(costManageId);
- decimal totalAmount = costData.Sum(x => x.SumMoney ?? 0);
+ //decimal totalAmount = costData.Sum(x => x.SumMoney ?? 0);
var files = new List