示例#1
0
        public override void Send()
        {
            var dicCaseList = new Dictionary <string, List <ActionCase> >();

            foreach (var stepAndCase in NiAcnTdoList)
            {
                var callTodoList =
                    new ActionCase {
                    Step = stepAndCase.Step, Cases = stepAndCase.Cases.Where(x => x.HasTlf && x.DebtorNo != null).Select(x => x).ToList()
                };

                if (!dicCaseList.ContainsKey(stepAndCase.Step.TemplateId))
                {
                    dicCaseList.Add(stepAndCase.Step.TemplateId, new List <ActionCase>());
                }

                dicCaseList[stepAndCase.Step.TemplateId].Add(callTodoList);
            }
            var TempalteIDThisTime = dicCaseList.Keys.FirstOrDefault();

            if (!string.IsNullOrEmpty(TempalteIDThisTime))
            {
                ActionOperator.ActionOperation(dicCaseList[TempalteIDThisTime]);
            }
        }
示例#2
0
 public override void Send()
 {
     ActionOperator.ActionOperation(NiAcnTdoList);
 }