コード例 #1
0
 private void AddDynamicWorkItemTwelve(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemTwelveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 6 && viewModel.UnReplaceStrs.Count == 5)
     {
         DynamicWorkItemTwelve row = new DynamicWorkItemTwelve(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.RepalceStrs[3], viewModel.UnReplaceStrs[3], viewModel.RepalceStrs[4], viewModel.UnReplaceStrs[4], viewModel.RepalceStrs[5], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("向");
         viewModel.UnReplaceStrs.Add("授予了");
         viewModel.UnReplaceStrs.Add("文件");
         viewModel.UnReplaceStrs.Add("的");
         viewModel.UnReplaceStrs.Add("权限");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("授权者");
         viewModel.RepalceStrs.Add("被授权者");
         viewModel.RepalceStrs.Add("文件数量");
         viewModel.RepalceStrs.Add("文件名");
         viewModel.RepalceStrs.Add("查看、下载");
         viewModel.RepalceStrs.Add("企业资料库授权");
         DynamicWorkItemTwelve row = new DynamicWorkItemTwelve(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.RepalceStrs[3], viewModel.UnReplaceStrs[3], viewModel.RepalceStrs[4], viewModel.UnReplaceStrs[4], viewModel.RepalceStrs[5], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }
コード例 #2
0
 private void AddDynamicWorkItemTwelve(BaseDynamicWorkObjViewModel viewModel, DynamicWorkItemTwelveStyle style)
 {
     if (viewModel.RepalceStrs.Count == 6 && viewModel.UnReplaceStrs.Count == 5)
     {
         DynamicWorkItemTwelve row = new DynamicWorkItemTwelve(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.RepalceStrs[3], viewModel.UnReplaceStrs[3], viewModel.RepalceStrs[4], viewModel.UnReplaceStrs[4], viewModel.RepalceStrs[5], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
     else
     {
         viewModel.UnReplaceStrs.Clear();
         viewModel.UnReplaceStrs.Add("向");
         viewModel.UnReplaceStrs.Add("授予了");
         viewModel.UnReplaceStrs.Add("文件");
         viewModel.UnReplaceStrs.Add("的");
         viewModel.UnReplaceStrs.Add("权限");
         viewModel.RepalceStrs.Clear();
         viewModel.RepalceStrs.Add("授权者");
         viewModel.RepalceStrs.Add("被授权者");
         viewModel.RepalceStrs.Add("文件数量");
         viewModel.RepalceStrs.Add("文件名");
         viewModel.RepalceStrs.Add("查看、下载");
         viewModel.RepalceStrs.Add("企业资料库授权");
         DynamicWorkItemTwelve row = new DynamicWorkItemTwelve(viewModel.ActionHourMinute, viewModel.RepalceStrs[0], viewModel.UnReplaceStrs[0], viewModel.RepalceStrs[1], viewModel.UnReplaceStrs[1], viewModel.RepalceStrs[2], viewModel.UnReplaceStrs[2], viewModel.RepalceStrs[3], viewModel.UnReplaceStrs[3], viewModel.RepalceStrs[4], viewModel.UnReplaceStrs[4], viewModel.RepalceStrs[5], viewModel.Url);
         row.UseStyle(style);
         this.RowGroup.Rows.Add(row);
     }
 }