Example #1
0
        private void ProcessReqQty(ItemFlow itemFlow)
        {
            IOAE processor = this.GetProcessor(itemFlow.Flow.FlowStrategy.Strategy);

            if (processor != null)
            {
                processor.ProcessReqQty(itemFlow);
            }
        }
Example #2
0
 private void ProcessTime(List <Flow> flows)
 {
     if (flows != null && flows.Count > 0)
     {
         foreach (var flow in flows)
         {
             this.DataValidCheck(flow);
             IOAE processor = this.GetProcessor(flow.FlowStrategy.Strategy);
             if (processor != null)
             {
                 processor.ProcessTime(flow);
             }
         }
     }
 }
        public void SetUp()
        {
            kb = new KB(null, null, null);

            flow1 = new Flow();
            flow1.FlowStrategy = new FlowStrategy();

            flow2 = new Flow();
            flow2.FlowStrategy = new FlowStrategy();
            string[] winTimes = new string[] { "06:00", "08:00", "10:00", "12:00", "14:00", "16:00", "18:00" };
            flow2.FlowStrategy.MonWinTime = winTimes;
            flow2.FlowStrategy.TueWinTime = winTimes;
            flow2.FlowStrategy.WedWinTime = winTimes;
            flow2.FlowStrategy.ThuWinTime = winTimes;
            flow2.FlowStrategy.FriWinTime = winTimes;
            flow2.FlowStrategy.SatWinTime = null;
            flow2.FlowStrategy.SunWinTime = null;
            flow2.FlowStrategy.LeadTime = 1;
        }