diff --git a/DataBase/版本日志/SGGLDB_V2026-08-11-gf.sql b/DataBase/版本日志/SGGLDB_V2026-08-11-gf.sql new file mode 100644 index 00000000..d8352e78 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-08-11-gf.sql @@ -0,0 +1,3 @@ +alter table HJGL_Batch_PointBatchItem add NDT nvarchar(300) null +alter table HJGL_Batch_BatchTrust alter column TrustBatchCode nvarchar(100) null +GO \ No newline at end of file diff --git a/SGGL/BLL/API/HJGL/APINDETrustService.cs b/SGGL/BLL/API/HJGL/APINDETrustService.cs index bb616813..ffd257c4 100644 --- a/SGGL/BLL/API/HJGL/APINDETrustService.cs +++ b/SGGL/BLL/API/HJGL/APINDETrustService.cs @@ -434,7 +434,7 @@ namespace BLL Model.HJGL_Batch_BatchTrust newBatchTrust = new Model.HJGL_Batch_BatchTrust { TrustBatchId = trustBatchId, - TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now), + TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now,string.Empty,string.Empty), TrustDate = DateTime.Now, ProjectId = batch.ProjectId, PointBatchId = pointBatchId, diff --git a/SGGL/BLL/HJGL/BaseInfo/Base_DetectionTypeService.cs b/SGGL/BLL/HJGL/BaseInfo/Base_DetectionTypeService.cs index d0901aad..b91cd0e6 100644 --- a/SGGL/BLL/HJGL/BaseInfo/Base_DetectionTypeService.cs +++ b/SGGL/BLL/HJGL/BaseInfo/Base_DetectionTypeService.cs @@ -100,6 +100,20 @@ return list; } + /// + /// 按类型获取探伤类型项 + /// + /// + /// + public static List GetDetectionTypeListByDetectionTypeType2(string[] strs) + { + var list = (from x in Funs.DB.Base_DetectionType + where strs.Contains(x.DetectionTypeCode) && !x.DetectionTypeCode.Contains("/") + orderby x.DetectionTypeCode + select x).ToList(); + return list; + } + #region 探伤类型下拉项 /// /// 探伤类型下拉项 diff --git a/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustService.cs b/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustService.cs index 877c9ebd..ce7b5c87 100644 --- a/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustService.cs +++ b/SGGL/BLL/HJGL/PointTrust/Batch_BatchTrustService.cs @@ -10,9 +10,9 @@ namespace BLL /// /// 根据点口批编号生成委托单号,在流水号前追加日期段。 /// - public static string BuildTrustBatchCode(string pointBatchCode, System.DateTime trustDate) + public static string BuildTrustBatchCode(string pointBatchCode, System.DateTime trustDate, string typeStr1, string typeStr2) { - string trustBatchCode = (pointBatchCode ?? string.Empty).Replace("-DK-", "-WT-"); + string trustBatchCode = (pointBatchCode ?? string.Empty).Replace("-DK-", "-WT-").Replace(typeStr1, typeStr2); return InsertDateBeforeSerial(trustBatchCode, trustDate); } diff --git a/SGGL/BLL/HJGL/PointTrust/PointBatchDetailService.cs b/SGGL/BLL/HJGL/PointTrust/PointBatchDetailService.cs index d878af84..e7ada938 100644 --- a/SGGL/BLL/HJGL/PointTrust/PointBatchDetailService.cs +++ b/SGGL/BLL/HJGL/PointTrust/PointBatchDetailService.cs @@ -64,6 +64,7 @@ namespace BLL newBatchDetail.IsBuildTrust = batchDetail.IsBuildTrust; newBatchDetail.IsWelderFirst = batchDetail.IsWelderFirst; newBatchDetail.IsPipelineFirst = batchDetail.IsPipelineFirst; + newBatchDetail.NDT = batchDetail.NDT; newBatchDetail.Remark = batchDetail.Remark; Funs.DB.SubmitChanges(); diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx index 3aceb227..4826330b 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx @@ -32,8 +32,8 @@ - + LabelAlign="Right" Width="300px" LabelWidth="90px" AutoPostBack="true" OnSelectedIndexChanged="Tree_TextChanged"> + @@ -82,13 +82,13 @@ --%> - + TitleToolTip="点口管理" AutoScroll="true"> - + @@ -108,8 +108,8 @@ -