添加项目文件。
This commit is contained in:
41
Epost.DAL/PressureTestDAL.cs
Normal file
41
Epost.DAL/PressureTestDAL.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using Epost.Common;
|
||||
using Epost.DAL.Enum;
|
||||
using Epost.Model;
|
||||
using System;
|
||||
|
||||
namespace Epost.DAL
|
||||
{
|
||||
public class PressureTestDAL
|
||||
{
|
||||
CommandDAL comDAL = new CommandDAL();
|
||||
#region 获取随机颜色
|
||||
public string getlightColor(string[] arrNames)
|
||||
{
|
||||
Random Rdm = new Random();
|
||||
int iRdm = Rdm.Next(0, arrNames.Length-1);
|
||||
|
||||
string lightColor = EnumHelper.EMToDescriptionString(EnumHelper.EMToEnum<LightColor.Color>(arrNames[iRdm]));
|
||||
return lightColor;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 清除指令
|
||||
public void REMOVE_JOBBy(string TestPattern, string no, LabelParamModel labelModel)
|
||||
{
|
||||
if (TestPattern == "1" ||TestPattern == "3")
|
||||
{
|
||||
labelModel.Parameter = no;
|
||||
comDAL.REMOVE_JOB(labelModel);
|
||||
}
|
||||
else if (TestPattern == "2")
|
||||
{
|
||||
labelModel.Address = "9999";
|
||||
labelModel.Parameter = no;
|
||||
comDAL.REMOVE_JOB(labelModel);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user