Setting_Init.cs
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using ConfigHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OnlineStore.Common
{
/// <summary>
/// 记录配置的key
/// </summary>
public class Setting_Init
{
[MyConfigComment("软件是否自动启动")]
public static MyConfig<bool> App_AutoRun = false;
[MyConfigComment("软件窗口标题")]
public static MyConfig<string> App_Title = "SMD-BOX-XLC";
[MyConfigComment("软件语言")]
public static MyConfig<string> App_Language = "zh-CN";
[MyConfigComment("服务器识别ID")]
public static MyConfig<string> Server_CID = "";
[MyConfigComment("服务器地址")]
public static MyConfig<string> Server_Addr = "";
[MyConfigComment("管理员密码")]
public static MyConfig<string> User_AdminPassword = "123456";
[MyConfigComment("启用管理员密码")]
public static MyConfig<bool> User_Enable = true;
[MyConfigComment("是否启用蜂鸣器")]
public static MyConfig<bool> Device_EnableBuzzer = true;
[MyConfigComment("料仓类型")]
public static MyConfig<StoreType> Device_StoreType = StoreType.TypeA;
[MyConfigComment("左侧接驳台出入模式")]
public static MyConfig<InOutModeE> Device_LeftInoutMode = InOutModeE.Both;
[MyConfigComment("右侧接驳台出入模式")]
public static MyConfig<InOutModeE> Device_RightInoutMode = InOutModeE.Both;
[MyConfigComment("屏蔽进出轴伸出时的层信号检查")]
public static MyConfig<bool> Device_DisableFloorCheck = false;
[MyConfigComment("温湿度传感器端口")]
public static MyConfig<string> Device_Humiture_Port = "COM5";
[MyConfigComment("湿度超限吹气启动相对值=服务器设定湿度报警值-本相对值")]
public static MyConfig<int> Device_HumidityStartOffser = 1;
[MyConfigComment("湿度超限吹气停止相对值=服务器设定湿度报警值-本相对值")]
public static MyConfig<int> Device_HumidityEndOffser = 10;
public static MyConfig<int> Device_HumidityAdjust = 0;
public static MyConfig<int> Device_HumidityLimited = 4;
public static MyConfig<int> Device_TemptureAdjust = 0;
public static MyConfig<int> Device_TemptureLimited = 4;
[MyConfigComment("扫码识别类型")]
public static MyConfig<string[]> CodeScan_CodeType = new string[] { "QR Code" };
[MyConfigComment("扫码读码数量")]
public static MyConfig<int> CodeScan_CodeCount = 3;
[MyConfigComment("扫码读码匹配参数")]
public static MyConfig<string> CodeScan_ParamPath = "Conifg\\";
[MyConfigComment("允许解锁安全门的氮气阈值")]
public static MyConfig<double> Nitrogen_Safe_Maximum = 80;
}
public enum StoreType
{
TypeA, TypeB
}
public enum InOutSideE { Left, Right }
public enum InOutDirectionE { NONE, IN, OUT }
public enum InOutModeE { Both,OnlyIN, OnlyOUT, Disable }
}