You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
985 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mesnac.Action.Base;
namespace Mesnac.Action.Feeding.Qingquan.Technology
{
/// <summary>
/// 配方ID临时缓存类-配方管理
/// </summary>
public class RecipeObjIdCacheAction : FeedingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime);
DbMCSource dbsource = base.GetAllDbMCSources().FirstOrDefault();
DbMCControl objIDbControl = base.GetDbMCControlByKey("[" + dbsource.DesignSource + "].[pmt_recipe].[ObjID]").FirstOrDefault();
if (objIDbControl == null)
{
ICSharpCode.Core.LoggingService.Warn("配方ID临时缓存失败:未在界面中找到与[pmt_recipe].[ObjID]绑定的控件!");
return;
}
base.UpdateSysValue("TempRecipeObjID", objIDbControl.BaseControl.MCValue.ToString());
}
}
}