Files
T-DAS/Epost.DAL/PressureTestDAL.cs
2023-01-13 15:30:20 +08:00

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
}
}