Пример #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
            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);
            }
Пример #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);
        }