ビュー:

Question:
URL Creatorに必要な情報を入力する「手動の方法」以外に、URL統合リンクを作成する方法を教えてください。

回答:
DocuWare 6.7から、セットアップを使用して「DocuWare PowerTools」をインストールできます。このツールパッケージにはURL Creatorが含まれていますが、さらにインストールディレクトリに "DocuWare.WebIntegration.dll "というファイルがあります。
このファイルを.NETプロジェクトで使用することで、GAPIとほぼ同じオブジェクトやメソッドを使用することができます。
以下に、名前空間 "DocuWare.WebIntegration "の使用方法をコードサンプルとして示します。

//DWIntegrationURL の準備
DWIntegrationInfo integrationInfo = new DWIntegrationInfo("http://presentationvm/DocuWare/Platform/WebClient", 1, false);
integrationInfo.Scheme = "http";
integrationInfo.OrganizationId = "1";

//Example 1: Generate URL plain text
DWIntegrationUrl plaintextURL = new DWIntegrationUrl(integrationInfo, IntegrationType.Viewer);
plaintextURL.Parameters.FileCabinetGuid = new Guid("366f6b7f-af2b-47ac-8ee7-01dbb2211576");
//plaintextURL.Parameters.DocId = "837";
plaintextURL.Parameters.Query = "[COMPANY] = ︓ピーターズエンジニアリング︓ AND [DOCTYPE] = ︓請求書︓";
plaintextURL.Parameters.UserCredentials = new UserCredentials("admin", "admin");

Console.WriteLine("Plain text URL:");
Console.WriteLine(plaintextURL.Url.ToString());

// 例 2: 暗号化された URL を生成する
DWIntegrationUrlEncrypted encryptedURL = new DWIntegrationUrlEncrypted(integrationInfo, IntegrationType.Viewer, "123MyPassphrase!");
encryptedURL.Parameters.FileCabinetGuid = "123MyPassphrase!FileCabinetGuid = new Guid("366f6b7f-af2b-47ac-8ee7-01dbb2211576");
encryptedURL.Parameters.DocId = "1";
encryptedURL.Parameters.UserCredentials = new UserCredentials("admin", "admin");

Console.WriteLine("Encrypted URL:");
Console.WriteLine(encryptedURL.Url.ToString());

//Example 3: Generate Login URL
DWWebUrlLoginParameters loginParameters = new DWWebUrlLoginParameters();
loginParams.UserCredentials = new UserCredentials("admin", "admin");
DWWebClientLoginUrlEncrypted loginUrl = new DWWebClientLoginUrlEncrypted(integrationInfo, loginParams, "123MyPassphrase!");

Console.WriteLine("Login URL:");
Console.WriteLine(loginUrl.Url.ToString());
Console.ReadLine();


ご注意:この記事は英語からの翻訳です。この記事に含まれる情報は、オリジナルの英語版製品に基づくものです。翻訳版の記事で使用されている文法などには、細かい誤りがある場合があります。翻訳の正確さを完全に保証することは出来かねますが、ほとんどの場合、十分な情報が得られると思われます。万が一、疑問が生じた場合は、英語版の記事に切り替えてご覧ください。