Пример #1
0
        /// <summary>
        /// </summary>
        /// <param name="context"/>
        /// <param name="handled"/>
        public void ON_INITIALIZE0(Mozart.Task.Execution.ModelContext context, ref bool handled)
        {
            ActivateDataItem(context);



            BopHelper.WriteProductRoute();
        }
Пример #2
0
        /// <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;
                }
            }
        }
Пример #3
0
            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);
            }
Пример #4
0
            public override void Run(Mozart.Task.Execution.ModelContext context)
            {
                bool handled = false;

                this.fpMainLogic.RUN_DEF(context, ref handled);
            }
Пример #5
0
            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);
            }
Пример #6
0
 /// <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에서 처리
 }
Пример #7
0
 /// <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));
 }