private void AddDynamicWorkItemSeven(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemSevenStyle style) { if (viewModel.RepalceStrs.Count == 3 && viewModel.UnReplaceStrs.Count == 3) { DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.Url); row.UseStyle(style); this.RowGroup.Rows.Add(row); } else { viewModel.UnReplaceStrs.Clear(); viewModel.UnReplaceStrs.Add("通过"); viewModel.UnReplaceStrs.Add("在工作任务"); viewModel.UnReplaceStrs.Add("中递交的工作简报"); viewModel.RepalceStrs.Clear(); viewModel.RepalceStrs.Add("发布人"); viewModel.RepalceStrs.Add("执行人"); viewModel.RepalceStrs.Add("任务名称"); DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.Url); row.UseStyle(style); this.RowGroup.Rows.Add(row); } }
private void AddDynamicWorkItemSevenTwo(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemSevenStyle style) { if (viewModel.RepalceStrs.Count == 4 && viewModel.UnReplaceStrs.Count == 2) { DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.RepalceStrs[3], 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("文件数量"); viewModel.RepalceStrs.Add("文件名"); viewModel.RepalceStrs.Add("目录名称"); DynamicWorkItemSeven row = new DynamicWorkItemSeven(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.RepalceStrs[3], viewModel.Url); row.UseStyle(style); this.RowGroup.Rows.Add(row); } }