Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 203ba6e5
由
LN
编写于
2019-08-02 15:00:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出库BUG修改。
1 个父辈
05e87cb4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
28 行删除
source/ACSingleStore/FrmIOStatus.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/store/model/StoreMoveInfo.cs
source/UserFromControl/IOTextControl.cs
source/ACSingleStore/FrmIOStatus.cs
查看文件 @
203ba6e
...
...
@@ -49,14 +49,8 @@ namespace OnlineStore.ACSingleStore
this
.
tableLayoutPanel1
.
RowCount
=
boxBean
.
Config
.
StoreDIList
.
Count
;
foreach
(
ConfigIO
ioValue
in
boxBean
.
Config
.
StoreDIList
.
Values
)
{
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
();
control
.
IOName
=
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
;
control
.
IOValue
=
0
;
control
.
isCanClick
=
false
;
control
.
Name
=
"IO_"
+
ioValue
.
ProName
;
control
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
25
);
control
.
TabIndex
=
0
;
this
.
tableLayoutPanel1
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
26
));
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
this
.
tableLayoutPanel1
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
DIControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
...
@@ -68,14 +62,7 @@ namespace OnlineStore.ACSingleStore
foreach
(
ConfigIO
ioValue
in
boxBean
.
Config
.
StoreDOList
.
Values
)
{
this
.
tableLayoutPanel2
.
RowStyles
.
Add
(
new
RowStyle
(
SizeType
.
Absolute
,
28
));
IOTextControl
control
=
new
IOTextControl
();
control
.
IOName
=
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
;
control
.
IOValue
=
0
;
control
.
isCanClick
=
true
;
//control.Location = new System.Drawing.Point(0, 25*roleindex);
control
.
Name
=
"IO_"
+
ioValue
.
ProName
;
control
.
Size
=
new
System
.
Drawing
.
Size
(
200
,
25
);
control
.
TabIndex
=
0
;
IOTextControl
control
=
new
IOTextControl
(
ioValue
.
ElectricalDefinition
+
"_"
+
ioValue
.
Explain
,
ioValue
.
ProName
);
this
.
tableLayoutPanel2
.
Controls
.
Add
(
control
,
0
,
roleindex
);
roleindex
++;
DOControlList
.
Add
(
ioValue
.
ProName
,
control
);
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
203ba6e
...
...
@@ -602,7 +602,7 @@ namespace OnlineStore.DeviceLibrary
//SO_10_DeviceToDoorPro();
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
//
StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor
();
}
...
...
@@ -619,7 +619,7 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_091_WaitNoTray
);
OutStoreLog
(
"出库:SO_091 打开仓门,等待门口无料盘 "
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
//
StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
OpenDoor
();
}
...
...
@@ -667,8 +667,8 @@ namespace OnlineStore.DeviceLibrary
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
SO_14_WaitTake
);
OutStoreLog
(
"出库:SO_14_WaitTake 等待拿走物品,最多等待"
+
OutStoreWaitSeconds
+
"秒"
);
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
ms
));
//
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitHeight
(
0
));
StoreMove
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
TrayCheck_Door
,
IO_VALUE
.
LOW
));
//
StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
StoreMove
.
OneWaitCanEndStep
=
true
;
}
else
if
(
StoreMove
.
MoveStep
==
StoreMoveStep
.
SO_14_WaitTake
)
...
...
source/DeviceLibrary/store/model/StoreMoveInfo.cs
查看文件 @
203ba6e
...
...
@@ -233,14 +233,14 @@ namespace OnlineStore.DeviceLibrary
return
wait
;
}
public
static
WaitResultInfo
WaitHeight
(
int
height
)
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
7
;
wait
.
HeightValue
=
height
;
wait
.
IsEnd
=
false
;
return
wait
;
}
//
public static WaitResultInfo WaitHeight(int height)
//
{
//
WaitResultInfo wait = new WaitResultInfo();
//
wait.WaitType = 7;
//
wait.HeightValue = height;
//
wait.IsEnd = false;
//
return wait;
//
}
public
string
ToStr
()
{
if
(
WaitType
==
1
)
...
...
source/UserFromControl/IOTextControl.cs
查看文件 @
203ba6e
...
...
@@ -31,7 +31,26 @@ namespace UserFromControl
pictureBox2
.
Visible
=
false
;
isCanClick
=
false
;
}
public
IOTextControl
(
string
ioName
,
string
name
,
int
widht
=
220
,
int
height
=
25
,
int
ioValue
=
0
,
bool
canClick
=
false
,
int
tabIndex
=
0
)
{
InitializeComponent
();
if
(
ImageManager
.
IsInit
==
false
)
{
ImageManager
.
Init
();
}
this
.
pictureBox1
.
BackgroundImage
=
ImageManager
.
imgGrey
;
this
.
pictureBox2
.
BackgroundImage
=
ImageManager
.
imgGreen
;
pictureBox1
.
Visible
=
true
;
pictureBox2
.
Visible
=
false
;
isCanClick
=
false
;
IOName
=
ioName
;
IOValue
=
IOValue
;
isCanClick
=
canClick
;
Name
=
"IO_"
+
name
;
Size
=
new
System
.
Drawing
.
Size
(
widht
,
height
);
TabIndex
=
tabIndex
;
}
public
void
ShowData
()
{
label1
.
Text
=
IOName
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论