示例#1
0
        internal static void AddBranchStep(BranchStep entity)
        {
            if (entity == null)
            {
                return;
            }

            string eqpGroup = entity.EQP_GROUP_ID;
            string runMode  = entity.RUN_MODE;

            if (string.IsNullOrEmpty(eqpGroup) || string.IsNullOrEmpty(runMode))
            {
                return;
            }

            var infos = BranchStepMaster.BranchSteps;

            string key = CreateKey(eqpGroup, runMode);

            List <BranchStepInfo> list;

            if (infos.TryGetValue(key, out list) == false)
            {
                infos.Add(key, list = new List <BranchStepInfo>());
            }

            var item = CreateHelper.CreateBranchStepInfo(entity);

            list.Add(item);
        }