Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 9118cbb3
由
几米阳光
编写于
2019-01-21 09:06:25 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
自动出入库修改
1 个父辈
d5b2695f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
32 行增加
和
14 行删除
source/ACSingleStore/FrmStoreBox.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
9118cbb
...
...
@@ -134,11 +134,11 @@ namespace OnlineStore.ACSingleStore
btnOutStore
.
Enabled
=
isOpen
;
btnInStore
.
Enabled
=
isOpen
;
btnAxisAMove
.
Enabled
=
isOpen
;
//
btnAxisAMove.Enabled = isOpen;
btnAxisReturnHome
.
Enabled
=
isOpen
;
btnAxisRMove
.
Enabled
=
isOpen
;
btnAxisVMove
.
Enabled
=
isOpen
;
//
btnAxisReturnHome.Enabled = isOpen;
//
btnAxisRMove.Enabled = isOpen;
//
btnAxisVMove.Enabled = isOpen;
启动
ToolStripMenuItem
.
Enabled
=
!
isOpen
;
停止
ToolStripMenuItem
.
Enabled
=
isOpen
;
...
...
@@ -910,6 +910,7 @@ namespace OnlineStore.ACSingleStore
{
int
currIndex
=
cmbPosition
.
SelectedIndex
;
store
.
autoPositionIndex
=
currIndex
;
store
.
AutoStartIndex
=
currIndex
;
string
poText
=
cmbPosition
.
Text
;
store
.
autoMsg
=
"自动出库:"
+
poText
;
LogUtil
.
info
(
LOGGER
,
store
.
StoreName
+
"开启自动出入库模式,开始位置【"
+
poText
+
"】(索引="
+
currIndex
+
"),间隔="
+
jiange
+
",入库开始!"
);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
9118cbb
...
...
@@ -25,6 +25,7 @@ namespace OnlineStore.DeviceLibrary
public
int
autoJiange
=
3
;
public
int
autoPositionIndex
=
0
;
public
string
autoMsg
=
""
;
public
int
AutoStartIndex
=
-
1
;
#
endregion
#
region
出入库参数
...
...
@@ -821,15 +822,23 @@ namespace OnlineStore.DeviceLibrary
if
(
storeMoveType
.
Equals
(
StoreMoveType
.
InStore
))
{
int
newIndex
=
autoPositionIndex
-
1
;
if
(
autoJiange
==
0
)
{
newIndex
=
autoPositionIndex
;
}
//
if (autoJiange == 0)
//
{
//
newIndex = autoPositionIndex;
//
}
if
(
newIndex
<
0
)
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
if
(
AutoStartIndex
>=
0
&&
AutoStartIndex
<
PositionNumList
.
Count
)
{
newIndex
=
AutoStartIndex
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,重新开始自动出入库,索引【"
+
AutoStartIndex
+
"】"
);
}
else
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
}
}
else
{
...
...
@@ -864,9 +873,17 @@ namespace OnlineStore.DeviceLibrary
int
newIndex
=
autoPositionIndex
-
autoJiange
;
if
(
newIndex
<
0
)
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
if
(
AutoStartIndex
>=
0
&&
AutoStartIndex
<
PositionNumList
.
Count
)
{
newIndex
=
AutoStartIndex
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,重新开始自动出入库,索引【"
+
AutoStartIndex
+
"】"
);
}
else
{
autoNext
=
false
;
autoMsg
=
"自动出入库结束!"
;
LogUtil
.
info
(
LOGGER
,
StoreName
+
"下一个索引不存在,自动 出入库结束!"
);
}
}
else
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论