Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmartShelf
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5c320d1a
由
LN
编写于
2019-10-22 10:27:02 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
代码整合
1 个父辈
6d14c4fc
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
13 行增加
和
5 行删除
Common/Setting_Init.cs
DeviceLibrary/Box/BOXManager.cs
DeviceLibrary/DeviceLibrary/led/BaseLEDManager.cs
DeviceLibrary/DeviceLibrary/led/LEDColorModule.cs
SmartShelf/App.config
SmartShelf/FrmStore.cs
Common/Setting_Init.cs
查看文件 @
5c320d1
...
...
@@ -33,6 +33,11 @@ namespace SmartShelf.Common
/// <summary>
/// 料架灯类型,0=单色灯料架,1=三色灯料架
/// </summary>
public
static
string
DeviceLedType
=
"DeviceLedType"
;
public
static
string
DeviceLedType
=
"DeviceLedType"
;
public
static
string
Status_Green_Lights
=
"Status_Green_Lights"
;
public
static
string
Status_Red_Lights
=
"Status_Red_Lights"
;
public
static
string
Status_Yellow_Lights
=
"Status_Yellow_Lights"
;
}
}
DeviceLibrary/Box/BOXManager.cs
查看文件 @
5c320d1
此文件的差异被折叠,
点击展开。
DeviceLibrary/DeviceLibrary/led/BaseLEDManager.cs
查看文件 @
5c320d1
此文件的差异被折叠,
点击展开。
DeviceLibrary/DeviceLibrary/led/LEDColorModule.cs
查看文件 @
5c320d1
...
...
@@ -45,7 +45,7 @@ namespace SmartShelf.DeviceLibrary
public
override
void
AllLightOn
(
int
dmx
=
-
1
)
{
AllLightOn
(
Light
.
StoreLight
(
1
));
AllLightOn
(
Light
.
DefaultLight
(
dmx
,
1
));
}
public
override
void
AllLightOn
(
Light
light
)
...
...
SmartShelf/App.config
查看文件 @
5c320d1
...
...
@@ -21,6 +21,9 @@
<
add
key
=
"DIMS"
value
=
"300"
/>
<
add
key
=
"DOMS"
value
=
"300"
/>
<
add
key
=
"BoxCount"
value
=
"2"
/>
<
add
key
=
"Status_Green_Lights"
value
=
"192.168.1.151:129,130,131,132,133,134,135,136,137,138"
/>
<
add
key
=
"Status_Yellow_Lights"
value
=
"192.168.1.151:140,141,142,143,144,145,146,147,148,149"
/>
<
add
key
=
"Status_Red_Lights"
value
=
"192.168.1.151:150,151,152,153,154,155,156,157,158,159,160"
/>
</
appSettings
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
SmartShelf/FrmStore.cs
查看文件 @
5c320d1
...
...
@@ -227,17 +227,17 @@ namespace SmartShelf
private
void
btnOpenSLed_Click
(
object
sender
,
EventArgs
e
)
{
LEDManager
.
OpenS
GreenLed
(
);
LEDManager
.
OpenS
tatusLights
(
"green"
);
}
private
void
btnCloseSLed_Click
(
object
sender
,
EventArgs
e
)
{
LEDManager
.
CloseS
Led
();
LEDManager
.
CloseS
tatusLights
();
}
private
void
button5_Click
(
object
sender
,
EventArgs
e
)
{
LEDManager
.
OpenS
YellowLed
(
);
LEDManager
.
OpenS
tatusLights
(
"yellow"
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论