using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mesnac.Action.Base; namespace Mesnac.Action.Feeding.Qingquan.Technology { /// /// 配方ID临时缓存类-配方管理 /// 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()); } } }