Пример #1
0
            public override Mozart.Task.Execution.VersionInfo SetupVersion(Mozart.Task.Execution.ModelTask task, string name, System.DateTime runTime)
            {
                bool handled = false;

                Mozart.Task.Execution.VersionInfo returnValue = null;
                returnValue = this.fpMainLogic.SETUP_VERSION_DEF(task, name, runTime, ref handled, returnValue);
                return(returnValue);
            }
Пример #2
0
        /// <summary>
        /// </summary>
        /// <param name="task"/>
        /// <param name="handled"/>
        public void SHUTDOWN0(Mozart.Task.Execution.ModelTask task, ref bool handled)
        {
            //Interface - RTD_RtsPlanningLot DataAction 비활성화
            if (GlobalParameters.Instance.InterfaceRTD)
            {
                List <string> list = GetRtdTableLis();
                DeActivateDataItem(task.Context, list);
            }

            if (task.HasErrors)
            {
                InputMart.Instance.RunStateMst.OnError(task.Exception);
            }
            else
            {
                InputMart.Instance.RunStateMst.OnDone();
            }
        }
Пример #3
0
        /// <summary>
        /// </summary>
        /// <param name="task"/>
        /// <param name="name"/>
        /// <param name="runTime"/>
        /// <param name="handled"/>
        /// <param name="prevReturnValue"/>
        /// <returns/>
        public VersionInfo SETUP_VERSION1(Mozart.Task.Execution.ModelTask task, string name, DateTime runTime, ref bool handled, Mozart.Task.Execution.VersionInfo prevReturnValue)
        {
            VersionInfo vinfo = new VersionInfo(name, runTime);

            object ver;

            task.Context.Arguments.TryGetValue("versionNo", out ver);

            string forceVer = ver == null ? string.Empty : (string)ver;

            if (string.IsNullOrEmpty(forceVer) || forceVer == "-")
            {
                runTime = CheckRunTime(runTime);

                vinfo.VersionNo = string.Format("{0}_{1}", name, runTime.ToString("yyyyMMddHHmmss"));
            }
            else
            {
                vinfo.VersionNo = forceVer;
            }

            return(vinfo);
        }
Пример #4
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);
            }
Пример #5
0
            public override void SetupLog(Mozart.Task.Execution.ModelTask task, Mozart.Task.Execution.VersionInfo pver, System.DateTime logTime)
            {
                bool handled = false;

                this.fpMainLogic.SETUP_LOG_DEF(task, pver, logTime, ref handled);
            }
Пример #6
0
        /// <summary>
        /// </summary>
        /// <param name="task"/>
        /// <param name="handled"/>
        public void END_SETUP0(Mozart.Task.Execution.ModelTask task, ref bool handled)
        {
            //task.Context.TaskContext.HostProps.Set("ZipFileName", task.Context.VersionNo);

            WriteQueryArgs(task.Context);
        }
Пример #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));
 }