From 9de6c7c6d835ba5161d64114d154bfc7676244a1 Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期一, 06 四月 2026 12:44:43 +0800
Subject: [PATCH] 同步
---
项目代码/WMS/WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs | 51 ---------------------------------------------------
1 files changed, 0 insertions(+), 51 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
index 5f125f1..f1ff5e0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
@@ -77,56 +77,6 @@
return base.UpdateData(saveModel);
}
- public override WebResponseContent AddData(SaveModel saveModel)
- {
- WebResponseContent content = new();
- try
- {
- int line = saveModel.MainData["row"].ObjToInt();
- int column = saveModel.MainData["column"].ObjToInt();
- int layer = saveModel.MainData["layer"].ObjToInt();
- int locationType = saveModel.MainData["locationType"].ObjToInt();
- //int status = saveModel.MainData["locationStatus"].ObjToInt();
- //string roadwayNo = saveModel.MainData["roadwayNo"].ToString();
-
- string locationCode = line.ToString().PadLeft(3, '0') + '-' + column.ToString().PadLeft(3, '0') + '-' + layer.ToString().PadLeft(3, '0');
- var location = BaseDal.QueryFirst(x => x.LocationCode == locationCode);
- if (location != null) throw new Exception($"{locationCode}搴撲綅宸插瓨鍦�,璇锋牳鏌�");
-
- DtLocationInfo locationInfo = new DtLocationInfo
- {
- Row = line,
- Column = column,
- Layer = layer,
- LocationCode = line.ToString().PadLeft(3, '0') + '-' + column.ToString().PadLeft(3, '0') + '-' + layer.ToString().PadLeft(3, '0'),
- LocationName = ConvertToFormattedString(line, column, layer),
- LocationType = locationType,
- Remark = "",
- Depth = 0,
- RoadwayNo = locationType == 1 ? "CTU" : "AGV",
- LocationStatus = LocationEnum.Free.ObjToInt(),
- AreaId = 0,
- Creater = App.User.UserName,
- EnalbeStatus = 2, //榛樿绂佺敤
- CreateDate = DateTime.Now,
- };
-
- if (BaseDal.AddData(locationInfo) > 0)
- {
- return content.OK("娣诲姞鎴愬姛!");
- }
- else
- {
- return content.Error("娣诲姞澶辫触");
- }
- }
- catch (Exception ex)
- {
- return content.Error($"娣诲姞澶辫触:{ex.Message}");
- }
-
- }
-
#region 鍒濆鍖栧簱浣�
public async Task<WebResponseContent> initializeLocation(int locationID)
{
@@ -312,7 +262,6 @@
return layers;
}
#endregion
-
#region 鍐呴儴鏂规硶
--
Gitblit v1.9.3