添加项目文件。

This commit is contained in:
jl
2023-01-13 15:30:20 +08:00
parent 40ed216831
commit bf208bde56
834 changed files with 470902 additions and 0 deletions

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