天津投入产出系统后端
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.
 
 
 
 
 
 

26 lines
825 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QMAPP.FJC.TRACING.DataAnalyzers
{
/// <summary>
/// 模具信息解析类
/// </summary>
public class DPMouldNumberAnalyzer:DAInterface.IDataAnalyzer
{
public void Analyze(DAInterface.DAObject data)
{
var bindingdal = new DAL.QT.MaterialBindingDAL();
var binding = bindingdal.GetBindingTarget(data.DAI.WORKLOC_CODE + "_MOULD", data.DAValue.ToString());
if (binding == null)
{
throw new Exception("此产品无法在当前工位进行加工!");
}
data.MouldCode = binding.TARGET_CODE;
data.MouldReLocate = true;
data.AnalyzedValue = data.DAValue.ToString();
}
}
}