42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
![]() |
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
|
|||
|
|
|||
|
}
|
|||
|
}
|