Inheritance: LeanEngine.Entity.EntityBase
Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            FlowStrategy another = obj as FlowStrategy;

            if (another == null)
            {
                return(false);
            }
            else
            {
                return(this.Code == another.Code);
            }
        }
Ejemplo n.º 2
0
        //创建窗口时间组
        private string[][] CreateWindowTimes(FlowStrategy flowStrategy)
        {
            if (flowStrategy == null)
                return null;

            string[][] windowTimes = new string[7][];

            windowTimes[0] = flowStrategy.SunWinTime;
            windowTimes[1] = flowStrategy.MonWinTime;
            windowTimes[2] = flowStrategy.TueWinTime;
            windowTimes[3] = flowStrategy.WedWinTime;
            windowTimes[4] = flowStrategy.ThuWinTime;
            windowTimes[5] = flowStrategy.FriWinTime;
            windowTimes[6] = flowStrategy.SatWinTime;

            for (int i = 0; i < 7; i++)
            {
                if (windowTimes[i] != null && windowTimes[i].Length > 0)
                {
                    return windowTimes;
                }
            }
            return null;
        }