Commit 823d2236 张东亮

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

1 个父辈 561a9965
文件属性发生变化
......@@ -567,7 +567,7 @@ namespace OnlineStore.DeviceLibrary
{
startOutStoreTime = DateTime.Now;
string posId = param != null ? param.PosInfo.PosId : "";
if (storeRunStatus == StoreRunStatus.Runing)
if (storeRunStatus == StoreRunStatus.Runing)
{
if (!LoadParamPosition(param))
{
......
......@@ -102,7 +102,7 @@ namespace OnlineStore.ACSingleStore
private bool IsInit = false;
private BoxBean store = null;
public static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public static readonly ILog LOGGER = LogManager.GetLogger("InOutStore");
MoveToStartPosStep moveToStartPosStep;
IniPositionStep iniPositionStep;
......@@ -146,10 +146,19 @@ namespace OnlineStore.ACSingleStore
/// <param name="e"></param>
private void btnStoreStart_Click(object sender, EventArgs e)
{
store.StartRun();
if (store.storeRunStatus >= StoreRunStatus.HomeMoving)
if (store.storeRunStatus >= StoreRunStatus.Wait)
{
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!