Commit 823d2236 张东亮

自动跑位功能添加,未测试

1 个父辈 561a9965
文件属性发生变化
...@@ -567,7 +567,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -567,7 +567,7 @@ namespace OnlineStore.DeviceLibrary
{ {
startOutStoreTime = DateTime.Now; startOutStoreTime = DateTime.Now;
string posId = param != null ? param.PosInfo.PosId : ""; string posId = param != null ? param.PosInfo.PosId : "";
if (storeRunStatus == StoreRunStatus.Runing) if (storeRunStatus == StoreRunStatus.Runing)
{ {
if (!LoadParamPosition(param)) if (!LoadParamPosition(param))
{ {
......
...@@ -102,7 +102,7 @@ namespace OnlineStore.ACSingleStore ...@@ -102,7 +102,7 @@ namespace OnlineStore.ACSingleStore
private bool IsInit = false; private bool IsInit = false;
private BoxBean store = null; private BoxBean store = null;
public static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public static readonly ILog LOGGER = LogManager.GetLogger("InOutStore");
MoveToStartPosStep moveToStartPosStep; MoveToStartPosStep moveToStartPosStep;
IniPositionStep iniPositionStep; IniPositionStep iniPositionStep;
...@@ -146,10 +146,19 @@ namespace OnlineStore.ACSingleStore ...@@ -146,10 +146,19 @@ namespace OnlineStore.ACSingleStore
/// <param name="e"></param> /// <param name="e"></param>
private void btnStoreStart_Click(object sender, EventArgs e) private void btnStoreStart_Click(object sender, EventArgs e)
{ {
store.StartRun(); if (store.storeRunStatus >= StoreRunStatus.Wait)
if (store.storeRunStatus >= StoreRunStatus.HomeMoving) {
LogUtil.info(store.Name + "点击:启用调试");
store.StartRun();
if (store.storeRunStatus >= StoreRunStatus.HomeMoving)
{
StoreOpenStatus(true);
}
}
else
{ {
StoreOpenStatus(true); LogUtil.info(store.Name + "点击:复位");
this.store.Reset();
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!