天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
602 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.TRACING.DAInterface;
namespace QMAPP.FJC.TRACING.StateActions
{
public class CanLetPass_4UF:IStateAction
{
public void Execute(DAObject data)
{
var processda = data.WorkLocState.DataCache.Where(p => p.ISPROCESSCODE == "1" && !string.IsNullOrEmpty(p.DA_VALUE));
if (processda.Count() == 0)
{
throw new Exception(string.Format("无法放行,请至少扫描一件主产品条码!",""));
}
}
}
}