public void GeneratePnls(string sourceFilePath, string fieldMappingsFilePath, string vaultUrl) { DataSet dsStore = null; DataSet dsStoreMappings = null; DataTable dtMappings = null; DataTable dt = null; try { ws = new SempraDocWs(); ws.Url = vaultUrl; ws.Credentials = System.Net.CredentialCache.DefaultCredentials; //trackingMain.Url = //trackingMain = new VaultUtils.trackingClient.TradeConfirmService(); //trackingMain.userName = GetServicesUserName(); if (File.Exists(sourceFilePath)) { dsStoreMappings = new DataSet(); dsStoreMappings.ReadXml(fieldMappingsFilePath); dtMappings = dsStoreMappings.Tables["AxField"]; } if (File.Exists(sourceFilePath)) { dsStore = new DataSet(); dsStore.ReadXml(sourceFilePath); dt = dsStore.Tables["AxFolders"]; if (dt != null) { foreach (DataRow dr in dt.Rows) { AxFolder newFolder = CollectionHelper.CreateObjectFromDataRow<AxFolder>(dr); AddAxFolderPnl(newFolder, dtMappings); } } } else { throw new Exception("Exception AXPnl GeneratePnls: File does not exist: " + Environment.NewLine + "Error CNF-406 in " + PROJ_FILE_NAME + ".GeneratePnls()."); } } catch (Exception ex) { throw new Exception("Error creating Inbound Panels." + Environment.NewLine + "Error CNF-407 in " + PROJ_FILE_NAME + ".GeneratePnls(): " + ex.Message); } }
public XtraAxTabPage(AxFolder axFolder, string resourceId, ref SempraDocWs ws) { InitializeComponent(); this.axFolder = axFolder; string fileType = ""; byte[] docStream = new byte[32768]; this.resourceId = resourceId; this.Name = "XtraAxTabPage_" + resourceId; var result = ws.GetLatestDocStream(axFolder.FolderName, resourceId, axFolder.DslName, out docStream, out fileType); if (docStream.Length > 0) { AddDocViewer(docStream); } }
public AXFolderPnl(AxFolder axFolder, DataTable axFieldMappings, ref SempraDocWs sempraDocWs) { InitializeComponent(); barChkViewAllVersions.EditValue = false; this.sempraDocWs = sempraDocWs; this.axFolder = axFolder; this.axFieldMappings = axFieldMappings; CreateFieldEditors(); }
public XtraTabAxFolderPage(AxFolder axFolder, DataTable axFolderMapping, ref SempraDocWs sempraDocWs) { this.axFolder = axFolder; this.axFolderMapping = axFolderMapping; this.Text = axFolder.DisplayName; this.sempraDocWs = sempraDocWs; axFolderPanel = new AXFolderPnl(axFolder, axFolderMapping, ref sempraDocWs); axFolderPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.Controls.Add(axFolderPanel); }