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); }
public void GeneratePnls(string sourceFilePath, string fieldMappingsFilePath, string vaultUrl, string trackinUrl) { 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.Url = trackinUrl; //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-408 in " + PROJ_FILE_NAME + ".GeneratePnls()."); } } catch (Exception ex) { throw new Exception("Error creating Inbound Panels." + Environment.NewLine + "Error CNF-409 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); } }
//private VaultUtils.trackingClient.@string GetServicesUserName() //{ // //string userFullName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; // string userFullName = p_UserId; // string userName = userFullName.Substring(userFullName.LastIndexOf("\\") + 1); // //WebReference.@string s = new WindowsApplication2.WebReference.@string(); // VaultUtils.trackingClient.@string uName = new VaultUtils.trackingClient.@string(); // uName.Text = new string[] { userName }; // return uName; //} private void AddAxFolderPnl(AxFolder newFolder, DataTable axFieldMappings) { XtraTabAxFolderPage tabPage = new XtraTabAxFolderPage(newFolder, axFieldMappings, ref ws); xtraTabControlAxFolders.TabPages.Add(tabPage); }