public FrmViewAllMarkups(string fileName, Guid fileOid, string className, ArrayList MarkupList, bool isShowDialog, DESecureFile file, DEObjectAttachFile item) { this.InitializeComponent(); this.fileOid = fileOid; this.className = className; this.fileName = fileName; this.MarkupList = MarkupList; this.isShowDialog = isShowDialog; this.file = file; this.item = item; this.AllMarkups.Add(fileOid, MarkupList); this.AllFileNames.Add(fileOid, fileName); this.Fill(); }
public static void ViewAllMarkups(string fileName, Guid fileOid, string className, bool isShowDialog, DESecureFile file, DEObjectAttachFile item) { ArrayList markupList = new ArrayList(); try { markupList = PLItem.Agent.GetMarkups(file.ItemMasterOid, fileOid, ClientData.LogonUser.Oid); } catch (Exception exception) { PrintException.Print(exception, "获取批注信息"); return; } if ((markupList != null) && (markupList.Count != 0)) { new FrmViewAllMarkups(fileName, fileOid, className, markupList, isShowDialog, file, item).ShowDialog(); } else { MessageBoxPLM.Show("文件未被批注过!"); } }