示例#1
0
        /// <summary>
        /// Batch->CoreInternalPrioritizeHold() --> Core: Places a collection on Hold.
        /// </summary>
        private void CoreInternalPrioritizeHold(string CollectionName, Priority priority, string operation, bool hold, string toStationName)
        {
            if (operation == Constants.cStrPrioritizeMethod)
            {
                WorkflowPriorityLevel wfp = WorkflowPriorityLevel.Normal;
                double abs = 100.0;

                Batch.ReturnPriorityLevels(priority, ref wfp, ref abs);

                oCSM.DynamicManage.SetCollectionPriorityLevelByName(stationName, CollectionName, wfp);
            }
            else if (operation == Constants.cStrHoldMethod)
            {
                oCSM.DynamicManage.SetCollectionHoldStateByName(CollectionName, hold);
            }

            else if (operation == Constants.cStrMoveMethod)
            {
                oCSM.DynamicManage.MoveCollectionToQueueByName(CollectionName, toStationName);
            }
        }