Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d60b991c
由
LN
编写于
2020-12-22 18:27:03 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
代码合并
2 个父辈
96f28d98
235c233d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
25 行删除
source/HCSingleStore/App.config
source/HCSingleStore/FrmInOutStore.Designer.cs
source/HCSingleStore/FrmInOutStore.cs
source/HCSingleStore/App.config
查看文件 @
d60b991
...
...
@@ -19,9 +19,9 @@
<
add
key
=
"Store_ConfigPath"
value
=
"\StoreConfig\StoreConfig.csv"
/>
<
add
key
=
"Box_ConfigPath"
value
=
"\StoreConfig\BoxConfig.csv"
/>
<
add
key
=
"Store_Type"
value
=
"RC_AC_SA"
/>
<
add
key
=
"Store_CID"
value
=
"D
1
"
/>
<
add
key
=
"Store_CID_1"
value
=
"line-ac-
01
"
/>
<
add
key
=
"Store_CID_2"
value
=
"line-ac-
02
"
/>
<
add
key
=
"Store_CID"
value
=
"D
8
"
/>
<
add
key
=
"Store_CID_1"
value
=
"line-ac-
16
"
/>
<
add
key
=
"Store_CID_2"
value
=
"line-ac-
15
"
/>
<!--
end
one
store
config
-->
<
add
key
=
"ACBaudRate"
value
=
"115200"
/>
<
add
key
=
"InOutDefaultPosition"
value
=
"5000"
/>
...
...
source/HCSingleStore/FrmInOutStore.Designer.cs
查看文件 @
d60b991
...
...
@@ -130,7 +130,7 @@
// comboBoxSize
//
this
.
comboBoxSize
.
FormattingEnabled
=
true
;
this
.
comboBoxSize
.
Location
=
new
System
.
Drawing
.
Point
(
15
,
1
12
);
this
.
comboBoxSize
.
Location
=
new
System
.
Drawing
.
Point
(
15
,
1
21
);
this
.
comboBoxSize
.
Name
=
"comboBoxSize"
;
this
.
comboBoxSize
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
25
);
this
.
comboBoxSize
.
TabIndex
=
5
;
...
...
@@ -206,6 +206,7 @@
this
.
cmbPosition
.
Name
=
"cmbPosition"
;
this
.
cmbPosition
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
25
);
this
.
cmbPosition
.
TabIndex
=
2
;
this
.
cmbPosition
.
SelectedIndexChanged
+=
new
System
.
EventHandler
(
this
.
cmbPosition_SelectedIndexChanged
);
//
// btnStartAuto
//
...
...
source/HCSingleStore/FrmInOutStore.cs
查看文件 @
d60b991
...
...
@@ -142,10 +142,6 @@ namespace OnlineStore.ACSingleStore
comboBoxSize
.
SelectedIndex
=
0
;
}
cmbPosition
.
DataSource
=
PositionInfo
.
PositionDic
[
comboBoxSize
.
SelectedItem
.
ToString
()];
PositionNumList
=
PositionInfo
.
PositionDic
[
comboBoxSize
.
SelectedItem
.
ToString
()];
cmbPosition
.
SelectedIndex
=
0
;
}
/// <summary>
...
...
@@ -161,7 +157,7 @@ namespace OnlineStore.ACSingleStore
store
.
StartRun
();
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
StoreOpenStatus
(
true
);
//
StoreOpenStatus(true);
}
}
else
...
...
@@ -179,7 +175,8 @@ namespace OnlineStore.ACSingleStore
return
;
}
preOpen
=
isOpen
;
cmbPosition
.
Enabled
=
!
isOpen
;
comboBoxSize
.
Enabled
=
!
isOpen
;
btnOutStore
.
Enabled
=
!
isOpen
;
btnStoreStart
.
Enabled
=
!
isOpen
;
...
...
@@ -192,20 +189,6 @@ namespace OnlineStore.ACSingleStore
{
if
(
btnStartAuto
.
Text
==
StartAuto
)
{
if
(
needToInStoreNumList
.
Count
>
0
)
{
needToInStoreNumList
.
Clear
();
}
if
(
PositionNumList
.
Count
>
0
)
{
PositionNumList
.
Clear
();
}
for
(
int
i
=
cmbPosition
.
SelectedIndex
;
i
<
store
.
PositionNumList
.
Count
;
i
++)
{
needToInStoreNumList
.
Add
(
store
.
PositionNumList
[
i
]);
PositionNumList
.
Add
(
store
.
PositionNumList
[
i
]);
}
IsRun
=
true
;
StoreOpenStatus
(
true
);
btnStartAuto
.
Text
=
StopAuto
;
...
...
@@ -1207,9 +1190,26 @@ namespace OnlineStore.ACSingleStore
private
void
comboBoxSize_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
cmbPosition
.
DataSource
=
PositionInfo
.
PositionDic
[
comboBoxSize
.
SelectedItem
.
ToString
()];
PositionNumList
=
PositionInfo
.
PositionDic
[
comboBoxSize
.
SelectedItem
.
ToString
()];
cmbPosition
.
SelectedIndex
=
0
;
}
private
void
cmbPosition_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
if
(
needToInStoreNumList
.
Count
>
0
)
{
needToInStoreNumList
.
Clear
();
}
if
(
PositionNumList
.
Count
>
0
)
{
PositionNumList
.
Clear
();
}
for
(
int
i
=
cmbPosition
.
SelectedIndex
;
i
<
cmbPosition
.
Items
.
Count
;
i
++)
{
needToInStoreNumList
.
Add
(
cmbPosition
.
Items
[
i
].
ToString
());
PositionNumList
.
Add
(
cmbPosition
.
Items
[
i
].
ToString
());
}
}
}
class
PositionInfo
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论