/// <summary> /// </summary> /// <param name="context"/> /// <param name="handled"/> public void ON_INITIALIZE0(Mozart.Task.Execution.ModelContext context, ref bool handled) { ActivateDataItem(context); BopHelper.WriteProductRoute(); }
/// <summary> /// </summary> /// <param name="context"/> /// <param name="handled"/> public void RUN0(Mozart.Task.Execution.ModelContext context, ref bool handled) { List <string> excuetionModuleNames = new List <string>(); excuetionModuleNames.Add("Pegging"); if (InputMart.Instance.GlobalParameters.OnlyBackward == false) { excuetionModuleNames.Add("Simulation"); if (InputMart.Instance.GlobalParameters.TargetShopList.Contains(Constants.CellShop)) { excuetionModuleNames.Add("Simulation"); } } InputMart.Instance.SimulationRunCount = 0; InputMart.Instance.SimulationRunType = SimRunType.TFT_CF; foreach (var name in excuetionModuleNames) { var module = context.GetExecutionModule(name); module.Execute(context); if (string.Equals(name, "Simulation", StringComparison.CurrentCultureIgnoreCase)) { InputMart.Instance.SimulationRunCount++; InputMart.Instance.SimulationRunType = SimRunType.CELL; } if (context.HasErrors) { return; } } }
public override object OnEndModule(Mozart.Task.Execution.IModelExecutor me, Mozart.Task.Execution.ModelContext context) { bool handled = false; object returnValue = null; returnValue = this.fpMainLogic.ON_END_MODULE_DEF(me, context, ref handled, returnValue); return(returnValue); }
public override void Run(Mozart.Task.Execution.ModelContext context) { bool handled = false; this.fpMainLogic.RUN_DEF(context, ref handled); }
public override void SetupQueryArgs(Mozart.Task.Execution.ModelTask task, Mozart.Task.Execution.ModelContext context) { bool handled = false; this.fpMainLogic.SETUP_QUERY_ARGS_DEF(task, context, ref handled); }
/// <summary> /// </summary> /// <param name="context"/> /// <param name="handled"/> public void ON_DONE0(Mozart.Task.Execution.ModelContext context, ref bool handled) { //여기서 OutPut.DataAction을 비활성화 할 경우 DB에 Write 되지 않음, Shoutdown에서 처리 }
/// <summary> /// </summary> /// <param name="task"/> /// <param name="context"/> /// <param name="handled"/> public void SETUP_QUERY_ARGS1(Mozart.Task.Execution.ModelTask task, Mozart.Task.Execution.ModelContext context, ref bool handled) { context.QueryArgs["ARG_VERSION_NO"] = ModelContext.Current.VersionNo; context.QueryArgs["ARG_VERSION_DATE"] = LcdHelper.DbToString(Mozart.SeePlan.ShopCalendar.SplitDate(context.StartTime)); }