diff --git a/CreateModel.bat b/CreateModel.bat
index 27ceb4a..2f27853 100644
--- a/CreateModel.bat
+++ b/CreateModel.bat
@@ -25,9 +25,9 @@ REM --------------
@echo 设置.net控制台环境
@echo.
-@call "%VS150%"
+@call "%VS100COMNTOOLS%"vsvars32.bat
-SqlMetal /views /server:. /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model
+SqlMetal /views /server:.\SQL2016 /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model
@ECHO 完成
pause
diff --git a/DataBase/hjglDB_7_2024.06.25.rar b/DataBase/hjglDB_7_2024.06.25.rar
new file mode 100644
index 0000000..b389741
Binary files /dev/null and b/DataBase/hjglDB_7_2024.06.25.rar differ
diff --git a/DataBase/hjglDB_7_2024.06.26.rar b/DataBase/hjglDB_7_2024.06.26.rar
new file mode 100644
index 0000000..fe83b40
Binary files /dev/null and b/DataBase/hjglDB_7_2024.06.26.rar differ
diff --git a/HJGL/BLL/WeldingProcess/TrustManage/Batch_BatchTrustItemService.cs b/HJGL/BLL/WeldingProcess/TrustManage/Batch_BatchTrustItemService.cs
index 2447db9..98a0a11 100644
--- a/HJGL/BLL/WeldingProcess/TrustManage/Batch_BatchTrustItemService.cs
+++ b/HJGL/BLL/WeldingProcess/TrustManage/Batch_BatchTrustItemService.cs
@@ -100,7 +100,33 @@ namespace BLL
Model.Batch_BatchTrustItem update = db.Batch_BatchTrustItem.FirstOrDefault(e => e.TrustBatchItemId == trustBatchItemId);
if (update != null)
{
- update.IsCancelTrust = isCancelTrust;
+ var updatePoint = db.Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == update.PointBatchItemId);
+ if (updatePoint != null)
+ {
+ updatePoint.PointDate = null;
+ updatePoint.PointState = null;
+ updatePoint.CutDate = null;////鏇存柊鎵规槑缁 鍒囬櫎鏃ユ湡
+ updatePoint.IsBuildTrust = null;
+ updatePoint.JLAudit = null;
+ updatePoint.GLGSAudit = null;
+ updatePoint.QTAudit = null;
+ }
+ var item = from x in db.Batch_BatchTrustItem where x.TrustBatchId == update.TrustBatchId select x;
+ // 琛ㄧず杩欎釜鎵归噷鍙湁瀹冧竴鏉℃槑缁,鍒犻櫎涓昏〃
+ if (item.Count() == 1)
+ {
+ Model.Batch_BatchTrust delTrust = db.Batch_BatchTrust.FirstOrDefault(x => x.TrustBatchId == update.TrustBatchId);
+ db.Batch_BatchTrustItem.DeleteOnSubmit(update);
+ if (delTrust != null)
+ {
+ db.Batch_BatchTrust.DeleteOnSubmit(delTrust);
+ }
+ }
+ else
+ {
+ db.Batch_BatchTrustItem.DeleteOnSubmit(update);
+ }
+ //update.IsCancelTrust = isCancelTrust;
db.SubmitChanges();
}
}
diff --git a/HJGL/FineUIPro.Web/Web.config b/HJGL/FineUIPro.Web/Web.config
index 8868ed3..23f0894 100644
--- a/HJGL/FineUIPro.Web/Web.config
+++ b/HJGL/FineUIPro.Web/Web.config
@@ -23,7 +23,7 @@
-
+