// ------------------------------------------ // List Documents // ------------------------------------------ public void loadDocumentList() { // Image list // ImageList imageList = ControllerUtils.GetImageList(); // Binding tvProjectPlanDoco.ImageList = imageList; // Clear nodes tvProjectPlanDoco.Nodes.Clear(); var docoList = new DocumentList(); docoList.List(); // Load document in the treeview // //docoList.ListInTree(tvProjectPlanDoco); Document root = new Document(); root.CUID = "ROOT"; root.RecordType = FCMConstant.RecordType.FOLDER; root.UID = 0; // root.Read(); // root = RepDocument.Read(false, 0, "ROOT"); // Using Business Layer root = BUSDocument.GetRootDocument(); DocumentList.ListInTree(tvProjectPlanDoco, docoList, root); tvProjectPlanDoco.ExpandAll(); }
private void PopulateDocumentCombo(char ProjectPlan) { docoList = new DocumentList(); if (ProjectPlan == 'Y') { docoList.ListProjectPlans(); } else { docoList.List(); } cbxDocument.Items.Clear(); cbxDocument.SelectedText = ""; int i = 0; foreach (Document doco in docoList.documentList) { string item = doco.UID + "; " + doco.CUID + "; " + doco.Name; cbxDocument.Items.Add(item); if (i == 0) { cbxDocument.ResetText(); cbxDocument.SelectedText = item; } i++; } cbxLinkType.Text = FCMConstant.DocumentLinkType.PROJECTPLAN; ParentHasChanged(); loadDocumentList(); }
// ------------------------------------------ // List Documents // ------------------------------------------ public void loadDocumentList(HeaderInfo headerInfo) { // Image list // imageList16 = ControllerUtils.GetImageList(); imageList16.ImageSize = new Size(16, 16); imageList32 = ControllerUtils.GetImageList(); imageList32.ImageSize = new Size(32, 32); // Binding tvFileList.ImageList = imageList16; // Clear nodes tvFileList.Nodes.Clear(); var docoList = new DocumentList(); if (cbxType.Text == "FCM") { docoList.List(); } else { docoList.ListClient(Utils.ClientID); } // Load document in the treeview // // docoList.ListInTree(tvFileList); Document root = new Document(); // root.GetRoot(headerInfo); //root = RepDocument.GetRoot(HeaderInfo.Instance); root = BUSDocument.GetRootDocument(); DocumentList.ListInTree(tvFileList, docoList, root); tvFileList.Nodes[0].Expand(); GetValuesFromCache(); tvFileList.Refresh(); }
// // List companies // private void loadDocumentList() { elementSourceDataTable.Clear(); var docoList = new DocumentList(); docoList.List(); foreach (Document doco in docoList.documentList) { DataRow elementRow = elementSourceDataTable.NewRow(); elementRow["CUID"] = doco.CUID; elementRow["Name"] = doco.Name; elementRow["Directory"] = doco.Directory; elementRow["Subdirectory"] = doco.Subdirectory; elementRow["SequenceNumber"] = doco.SequenceNumber; elementRow["LatestIssueNumber"] = doco.LatestIssueNumber; elementRow["LatestIssueLocation"] = doco.LatestIssueLocation; elementSourceDataTable.Rows.Add(elementRow); } }
// // List companies // private void loadDocumentList() { elementSourceDataTable.Clear(); // Check if the client has a list of documents for the template // ClientDocumentSet cds = new ClientDocumentSet(); if (cds.Get(Utils.ClientID, documentSetID)) { // Just proceed to list } else { // Copy the recors to the client first } var docoList = new DocumentList(); docoList.List(); foreach (Document doco in docoList.documentList) { DataRow elementRow = elementSourceDataTable.NewRow(); elementRow["CUID"] = doco.CUID; elementRow["Name"] = doco.Name; elementRow["Directory"] = doco.Directory; elementRow["Subdirectory"] = doco.Subdirectory; elementRow["SequenceNumber"] = doco.SequenceNumber; elementRow["LatestIssueNumber"] = doco.LatestIssueNumber; elementRow["LatestIssueLocation"] = doco.LatestIssueLocation; elementSourceDataTable.Rows.Add(elementRow); } }