Commit 3ad8eb79 LN

库位号默认3d

1 个父辈 a495a9b7
...@@ -57,8 +57,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -57,8 +57,8 @@ namespace OnlineStore.DeviceLibrary
this.Config = config; this.Config = config;
this.CID = config.CID; this.CID = config.CID;
//添加调试 //添加调试
IsDebug = config.ISDebug.Equals(1); IsDebug = config.ISDebug.Equals(1);
UseCompress_Axis = true; UseCompress_Axis = true;
Name = ("左侧BOX_" + config.GetStoreId() + " ").ToUpper(); Name = ("左侧BOX_" + config.GetStoreId() + " ").ToUpper();
if (config.DeviceID.Equals(2)) if (config.DeviceID.Equals(2))
...@@ -73,7 +73,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -73,7 +73,7 @@ namespace OnlineStore.DeviceLibrary
foreach (ACStorePosition position in positionList) foreach (ACStorePosition position in positionList)
{ {
bool result = ACStorePosition.CheckPosition(position, Config); bool result = ACStorePosition.CheckPosition(position, Config);
if (result && position.StoreId.Equals(DeviceID)) if (result && position.StoreId.Equals(config.GetStoreId()))
{ {
PositionNumList.Add(position.PositionNum); PositionNumList.Add(position.PositionNum);
} }
......
...@@ -96,9 +96,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -96,9 +96,14 @@ namespace OnlineStore.DeviceLibrary
{ {
for (int i = 1; i <= count; i++) for (int i = 1; i <= count; i++)
{ {
int storeId = i;
if (BoxList.ContainsKey(i))
{
storeId = BoxList[i].GetStoreId();
}
string nameStr = i.ToString().PadLeft(1, '0'); string nameStr = i.ToString().PadLeft(1, '0');
string fileN = positionConfigFile.Replace(".csv", "_" + nameStr + ".csv"); string fileN = positionConfigFile.Replace(".csv", "_" + nameStr + ".csv");
CSVPositionReader<ACStorePosition>.AddCSVFile(fileN, i); CSVPositionReader<ACStorePosition>.AddCSVFile(fileN, storeId);
} }
} }
else else
......
...@@ -257,7 +257,7 @@ namespace OnlineStore.LoadCSVLibrary ...@@ -257,7 +257,7 @@ namespace OnlineStore.LoadCSVLibrary
string oldPosId = position.PositionNum;//08#AC1_18_3_18 string oldPosId = position.PositionNum;//08#AC1_18_3_18
string newPosId = ""; string newPosId = "";
int jIndex = oldPosId.IndexOf("#"); int jIndex = oldPosId.IndexOf("#");
string louceng = "4D"; string louceng = "3D";
string storeId = storeIndex.ToString().PadLeft(2, '0'); string storeId = storeIndex.ToString().PadLeft(2, '0');
if (jIndex > 0) if (jIndex > 0)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!