소스 검색

更新本地测试数据库连接

klzhangweiya 9 달 전
부모
커밋
0bb6a32303

+ 5 - 1
src_0nline/ShwasherSys/ShwasherSys.Application/ProductStoreInfo/FinshedOutStoresApplicationService.cs

@@ -255,7 +255,11 @@ namespace ShwasherSys.ProductStoreInfo
                 CheckErrors(IwbIdentityResult.Failed("未发现库存!"));
                 return null;
             }
-           
+            //检查库存冻结数量和本次拒绝的数量,如果小于本次拒绝的数量 为异常数据!
+            if ((currentStore.Quantity-currentStore.FreezeQuantity) < entity.Quantity)
+            {
+                CheckErrors(IwbIdentityResult.Failed("数据异常!库存记录中可用库存小于本次恢复的出库数量!"));
+            }
             currentStore.FreezeQuantity += entity.Quantity;
             await CurrentProductStoreHouseRepository.UpdateAsync(currentStore);
             entity.ApplyStatus = OutStoreApplyStatusEnum.Applying.ToInt();

BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/45$2X93 2X100-2505130751528042-2505261419416937.jpg


BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/45$2X93 2X100-2505130751528042-2505261520557861.jpg


BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/45$2X93 2X100-2505130751528042-2505261523284663.jpg


BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/45$2X93 2X100-2505130751528042-2505261527275871.jpg


BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/45@2X93 2X100-2505130751528042-2505261521582442.jpg


BIN
src_0nline/ShwasherSys/ShwasherSys.Web/Download/AttachFiles/ProductionOrders/ProductionOrderNo/宝钢 45$ 34103162 4.00-2503241529476452-2505261528209273.pdf


+ 2 - 1
src_0nline/ShwasherSys/ShwasherSys.Web/Views/ProductionInfo/_EnterStoreShare.cshtml

@@ -1268,10 +1268,11 @@
 			FileInputCheck(that, id, false, 100, function (fileName) {
 				var name = fileName.substring(0, fileName.lastIndexOf("."));
 				var ext = fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length);
+				name = name.replace(/#/g, "$");
 				$fileName.val(name);
 				$fileExt.val(ext);
 			}, function (fileName) {
-				console.log('fileName', $fileConstraintExt.val())
+				console.log('fileName', fileName, $fileConstraintExt.val())
 				var name = fileName.substring(0, fileName.lastIndexOf("."));
 				var ext = fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length);
 				if ($fileConstraintExt) {

+ 1 - 1
src_0nline/ShwasherSys/ShwasherSys.Web/Web.config

@@ -9,7 +9,7 @@
     <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
   </configSections>
   <connectionStrings>
-    <add name="Default" connectionString="Server=.\SQLEXPRESS; Database=DBwasher2024; User Id=sa;Password=123456" providerName="System.Data.SqlClient" />
+    <add name="Default" connectionString="Server=.\SQLEXPRESS; Database=DBwasher2025; User Id=sa;Password=123456" providerName="System.Data.SqlClient" />
     <!-- <add name="Default" connectionString="Server=101.132.184.49; Database=DBwasher2020; User Id=sa;Password=Iwb2017;MultipleActiveResultSets=true;"  providerName="System.Data.SqlClient" /> -->
   </connectionStrings>
   <entityFramework>