From a0adb6373dbe1d37858998c12e206219dc45ac5c Mon Sep 17 00:00:00 2001
From: chenyong <chenyong@hnkhzn.com>
Date: 星期二, 17 三月 2026 15:36:07 +0800
Subject: [PATCH] 修复用户编辑页面下拉框无最近角色选项问题
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Base/StockInfoService.cs | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Base/StockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Base/StockInfoService.cs"
index ee46857..9c2ac43 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Base/StockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Base/StockInfoService.cs"
@@ -3,6 +3,7 @@
using SqlSugar;
using System;
using System.Collections.Generic;
+using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -40,6 +41,26 @@
_stockInfoDetail = stockInfoDetail;
}
+ public override WebResponseContent UpdateData(SaveModel saveModel)
+ {
+ var id = saveModel.MainData["id"].ObjToInt();
+ var palletCode = saveModel.MainData["palletCode"].ToString();
+ var materialType = saveModel.MainData["materialType"].ObjToInt();
+ var locationCode = saveModel.MainData["locationCode"].ToString();
+ var stockStatus = saveModel.MainData["stockStatus"].ObjToInt();
+ var materialweight = saveModel.MainData["materialweight"].ObjToInt();
+ var wlstatus = saveModel.MainData["wlstatus"].ObjToInt();
+ var remark = saveModel.MainData["remark"].ToString();
+ Dt_StockInfo stockInfo = BaseDal.QueryFirst(x => x.Id == id);
+ stockInfo.PalletCode = palletCode;
+ stockInfo.MaterialType = materialType;
+ stockInfo.LocationCode = locationCode;
+ stockInfo.StockStatus = stockStatus;
+ stockInfo.Materialweight = materialweight;
+ stockInfo.Wlstatus = wlstatus;
+ stockInfo.Remark = remark;
+ return base.UpdateData(stockInfo);
+ }
}
}
--
Gitblit v1.9.3