コード例 #1
0
 private void AddDynamicWorkItemFive(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemFiveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 2 && viewModel.UnReplaceStrs.Count == 2)
     {
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("确认项目");
         viewModel.UnReplaceStrs.Add("完成");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("项目管理者");
         viewModel.RepalceStrs.Add("项目名称");
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }
コード例 #2
0
 private void AddDynamicWorkItemFive(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemFiveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 2 && viewModel.UnReplaceStrs.Count == 2)
     {
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("确认项目");
         viewModel.UnReplaceStrs.Add("完成");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("项目管理者");
         viewModel.RepalceStrs.Add("项目名称");
         DynamicWorkItemFive row = new DynamicWorkItemFive(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }