개정판 a0341bef
플러그인 테스트 추가
컨버터 수정
Change-Id: Ied5c8a92c9e47e067795118b7b6a400cb232ba83
ConvertService/ServiceBase/FileDownloadTest/FileDownloadTest.csproj | ||
---|---|---|
48 | 48 |
<Reference Include="Markus.Message, Version=1.5.3.0, Culture=neutral, processorArchitecture=MSIL"> |
49 | 49 |
<HintPath>..\packages\Markus.Message.1.5.4\lib\net45\Markus.Message.dll</HintPath> |
50 | 50 |
</Reference> |
51 |
<Reference Include="MarkusPDF, Version=1.0.7145.16256, Culture=neutral, processorArchitecture=AMD64">
|
|
52 |
<HintPath>..\packages\MarkusPDF.1.6.1\lib\net45\MarkusPDF.dll</HintPath>
|
|
51 |
<Reference Include="MarkusPDF, Version=1.0.7178.16502, Culture=neutral, processorArchitecture=AMD64">
|
|
52 |
<HintPath>..\packages\MarkusPDF.1.7.0\lib\net45\MarkusPDF.dll</HintPath>
|
|
53 | 53 |
</Reference> |
54 | 54 |
<Reference Include="System" /> |
55 | 55 |
<Reference Include="System.ComponentModel.DataAnnotations" /> |
ConvertService/ServiceBase/Markus.Service.Convert/ConvertService.cs | ||
---|---|---|
107 | 107 |
currentPage = 1; |
108 | 108 |
} |
109 | 109 |
|
110 |
StationServiceClient.ConvertProcessStateAsync(e.SaveItem.Id, (int)e.SaveItem.Status, e.SaveItem.CurrentPage, e.SaveItem.TotalPages, e.SaveItem.ErrorMessage); |
|
111 |
|
|
112 | 110 |
switch (e.SaveItem.Status) |
113 | 111 |
{ |
114 | 112 |
case StatusCodeType.None: |
... | ... | |
120 | 118 |
case StatusCodeType.Saving: |
121 | 119 |
break; |
122 | 120 |
case StatusCodeType.Completed: |
123 |
|
|
124 | 121 |
break; |
125 | 122 |
case StatusCodeType.FileError: |
126 | 123 |
break; |
... | ... | |
133 | 130 |
default: |
134 | 131 |
break; |
135 | 132 |
} |
133 |
|
|
134 |
StationServiceClient.ConvertProcessStateAsync(e.SaveItem.Id, (int)e.SaveItem.Status, e.SaveItem.CurrentPage, e.SaveItem.TotalPages, e.SaveItem.ErrorMessage); |
|
135 |
|
|
136 | 136 |
} |
137 | 137 |
catch (Exception ex) |
138 | 138 |
{ |
ConvertService/ServiceBase/Markus.Service.Convert/Markus.Service.Convert.csproj | ||
---|---|---|
66 | 66 |
<Reference Include="Markus.Message, Version=1.5.3.0, Culture=neutral, processorArchitecture=MSIL"> |
67 | 67 |
<HintPath>..\packages\Markus.Message.1.5.4\lib\net45\Markus.Message.dll</HintPath> |
68 | 68 |
</Reference> |
69 |
<Reference Include="MarkusPDF, Version=1.0.7145.16256, Culture=neutral, processorArchitecture=AMD64">
|
|
70 |
<HintPath>..\packages\MarkusPDF.1.6.1\lib\net45\MarkusPDF.dll</HintPath>
|
|
69 |
<Reference Include="MarkusPDF, Version=1.0.7178.16502, Culture=neutral, processorArchitecture=AMD64">
|
|
70 |
<HintPath>..\packages\MarkusPDF.1.7.0\lib\net45\MarkusPDF.dll</HintPath>
|
|
71 | 71 |
</Reference> |
72 | 72 |
<Reference Include="System" /> |
73 | 73 |
<Reference Include="System.ComponentModel.DataAnnotations" /> |
ConvertService/ServiceBase/Markus.Service.Convert/packages.config | ||
---|---|---|
4 | 4 |
<package id="log4net" version="2.0.8" targetFramework="net45" /> |
5 | 5 |
<package id="Markus.Message" version="1.5.4" targetFramework="net45" /> |
6 | 6 |
<package id="MarkusDatabase" version="1.7.2" targetFramework="net45" /> |
7 |
<package id="MarkusPDF" version="1.6.1" targetFramework="net45" />
|
|
7 |
<package id="MarkusPDF" version="1.7.0" targetFramework="net45" />
|
|
8 | 8 |
</packages> |
ConvertService/ServiceBase/Markus.Service.ConvertProcess/Program.cs | ||
---|---|---|
76 | 76 |
} |
77 | 77 |
} |
78 | 78 |
} |
79 |
else |
|
80 |
{ |
|
81 |
logger.Error($"Markus.Service.ConvertProcess Error Plugin Directory {pluginPath}"); |
|
82 |
} |
|
79 | 83 |
} |
80 | 84 |
} |
81 | 85 |
} |
ConvertService/ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs | ||
---|---|---|
189 | 189 |
if (items.Count() > 0) |
190 | 190 |
{ |
191 | 191 |
var convertItem = items.First(); |
192 |
|
|
192 | 193 |
string convertPath = Path.Combine(BaseStorage(convertItem.PROJECT_NO), convertItem.PROJECT_NO + "_Tile", (System.Convert.ToInt64(convertItem.DOCUMENT_ID) / 100).ToString(), convertItem.DOCUMENT_ID); |
193 | 194 |
|
194 | 195 |
result = new Interface.ConvertItem(convertItem.DOCUMENT_ID, convertItem.PROJECT_NO, convertItem.ID, convertItem.DOCUMENT_URL, convertPath); |
... | ... | |
290 | 291 |
|
291 | 292 |
item.RECONVERTER = item.RECONVERTER + ReConvert; |
292 | 293 |
item.CREATE_DATETIME = DateTime.Now; |
293 |
item.START_DATETIME = null; |
|
294 |
//item.START_DATETIME = null;
|
|
294 | 295 |
item.END_DATETIME = null; |
295 | 296 |
item.STATUS = (int)StatusCodeType.None; |
296 | 297 |
|
... | ... | |
438 | 439 |
case StatusCodeType.Saving: |
439 | 440 |
break; |
440 | 441 |
case StatusCodeType.Completed: |
442 |
items.CURRENT_PAGE = items.TOTAL_PAGE; |
|
441 | 443 |
items.END_DATETIME= DateTime.Now; |
442 | 444 |
break; |
443 | 445 |
case StatusCodeType.FileError: |
ConvertService/ServiceBase/Markus.Service.Extensions/Helper/ConfigHelper.cs | ||
---|---|---|
15 | 15 |
string startDir = AppDomain.CurrentDomain.BaseDirectory; |
16 | 16 |
string configFilePath = ""; |
17 | 17 |
|
18 |
if (System.IO.Path.IsPathRooted(ConfigFileName)) |
|
18 |
if (!System.IO.Path.IsPathRooted(ConfigFileName))
|
|
19 | 19 |
{ |
20 | 20 |
configFilePath = $"{System.IO.Path.Combine(startDir, ConfigFileName)}"; |
21 | 21 |
} |
ConvertService/ServiceBase/PemssDocumentInfo/Connected Services/PemssService/Reference.cs | ||
---|---|---|
363 | 363 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/GetrequirementList", ReplyAction="urn:PemssService/GetrequirementListResponse")] |
364 | 364 |
System.Collections.Generic.List<PemssDocumentInfo.PemssService.Requirement> GetrequirementList(string pId, string dId); |
365 | 365 |
|
366 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/GetrequirementList", ReplyAction="urn:PemssService/GetrequirementListResponse")] |
|
367 |
System.Threading.Tasks.Task<System.Collections.Generic.List<PemssDocumentInfo.PemssService.Requirement>> GetrequirementListAsync(string pId, string dId); |
|
368 |
|
|
369 | 366 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/SetRequirementComment", ReplyAction="urn:PemssService/SetRequirementCommentResponse")] |
370 | 367 |
bool SetRequirementComment(string pId, string dId, string mdId, string commentId, string comment, bool condition, string uId); |
371 | 368 |
|
372 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/SetRequirementComment", ReplyAction="urn:PemssService/SetRequirementCommentResponse")] |
|
373 |
System.Threading.Tasks.Task<bool> SetRequirementCommentAsync(string pId, string dId, string mdId, string commentId, string comment, bool condition, string uId); |
|
374 |
|
|
375 | 369 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/RemoveRequirementComment", ReplyAction="urn:PemssService/RemoveRequirementCommentResponse")] |
376 | 370 |
bool RemoveRequirementComment(string pId, string dId, string mdId, string commentId, string uId); |
377 | 371 |
|
378 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/RemoveRequirementComment", ReplyAction="urn:PemssService/RemoveRequirementCommentResponse")] |
|
379 |
System.Threading.Tasks.Task<bool> RemoveRequirementCommentAsync(string pId, string dId, string mdId, string commentId, string uId); |
|
380 |
|
|
381 | 372 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/GetDocumentInfo", ReplyAction="urn:PemssService/GetDocumentInfoResponse")] |
382 | 373 |
PemssDocumentInfo.PemssService.DocumentInfo GetDocumentInfo(string pId, string dId); |
383 |
|
|
384 |
[System.ServiceModel.OperationContractAttribute(Action="urn:PemssService/GetDocumentInfo", ReplyAction="urn:PemssService/GetDocumentInfoResponse")] |
|
385 |
System.Threading.Tasks.Task<PemssDocumentInfo.PemssService.DocumentInfo> GetDocumentInfoAsync(string pId, string dId); |
|
386 | 374 |
} |
387 | 375 |
|
388 | 376 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
... | ... | |
416 | 404 |
return base.Channel.GetrequirementList(pId, dId); |
417 | 405 |
} |
418 | 406 |
|
419 |
public System.Threading.Tasks.Task<System.Collections.Generic.List<PemssDocumentInfo.PemssService.Requirement>> GetrequirementListAsync(string pId, string dId) { |
|
420 |
return base.Channel.GetrequirementListAsync(pId, dId); |
|
421 |
} |
|
422 |
|
|
423 | 407 |
public bool SetRequirementComment(string pId, string dId, string mdId, string commentId, string comment, bool condition, string uId) { |
424 | 408 |
return base.Channel.SetRequirementComment(pId, dId, mdId, commentId, comment, condition, uId); |
425 | 409 |
} |
426 | 410 |
|
427 |
public System.Threading.Tasks.Task<bool> SetRequirementCommentAsync(string pId, string dId, string mdId, string commentId, string comment, bool condition, string uId) { |
|
428 |
return base.Channel.SetRequirementCommentAsync(pId, dId, mdId, commentId, comment, condition, uId); |
|
429 |
} |
|
430 |
|
|
431 | 411 |
public bool RemoveRequirementComment(string pId, string dId, string mdId, string commentId, string uId) { |
432 | 412 |
return base.Channel.RemoveRequirementComment(pId, dId, mdId, commentId, uId); |
433 | 413 |
} |
434 | 414 |
|
435 |
public System.Threading.Tasks.Task<bool> RemoveRequirementCommentAsync(string pId, string dId, string mdId, string commentId, string uId) { |
|
436 |
return base.Channel.RemoveRequirementCommentAsync(pId, dId, mdId, commentId, uId); |
|
437 |
} |
|
438 |
|
|
439 | 415 |
public PemssDocumentInfo.PemssService.DocumentInfo GetDocumentInfo(string pId, string dId) { |
440 | 416 |
return base.Channel.GetDocumentInfo(pId, dId); |
441 | 417 |
} |
442 |
|
|
443 |
public System.Threading.Tasks.Task<PemssDocumentInfo.PemssService.DocumentInfo> GetDocumentInfoAsync(string pId, string dId) { |
|
444 |
return base.Channel.GetDocumentInfoAsync(pId, dId); |
|
445 |
} |
|
446 | 418 |
} |
447 | 419 |
} |
ConvertService/ServiceBase/PemssDocumentInfo/Connected Services/PemssService/Reference.svcmap | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="ccbd47b3-2d6b-4f5a-abef-d0524f41c529" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
|
2 |
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="c4849a59-62d5-454e-ba18-d27102f6c2aa" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
|
|
3 | 3 |
<ClientOptions> |
4 | 4 |
<GenerateAsynchronousMethods>false</GenerateAsynchronousMethods> |
5 |
<GenerateTaskBasedAsynchronousMethod>true</GenerateTaskBasedAsynchronousMethod> |
|
6 | 5 |
<EnableDataBinding>true</EnableDataBinding> |
7 | 6 |
<ExcludedTypes /> |
8 | 7 |
<ImportXmlTypes>false</ImportXmlTypes> |
... | ... | |
24 | 23 |
<MetadataSource Address="http://localhost:13009/PemssService.svc" Protocol="http" SourceId="1" /> |
25 | 24 |
</MetadataSources> |
26 | 25 |
<Metadata> |
27 |
<MetadataFile FileName="PemssService.disco" MetadataType="Disco" ID="2ef83ff6-3345-446e-b532-2ef3f89059db" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?disco" />
|
|
28 |
<MetadataFile FileName="PemssService.wsdl" MetadataType="Wsdl" ID="1eef5ccc-bf4f-48d8-9a4d-cabf726da545" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?wsdl" />
|
|
29 |
<MetadataFile FileName="PemssService.xsd" MetadataType="Schema" ID="473589d3-08a0-46c4-8b94-798f576f97b2" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd2" />
|
|
30 |
<MetadataFile FileName="PemssService1.xsd" MetadataType="Schema" ID="98dc3edb-c3c0-4a6c-9deb-dc9ed77ac0d6" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd1" />
|
|
31 |
<MetadataFile FileName="PemssService1.wsdl" MetadataType="Wsdl" ID="f117b338-a953-471f-88b0-6ade2cda490e" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?wsdl=wsdl0" />
|
|
32 |
<MetadataFile FileName="PemssService2.xsd" MetadataType="Schema" ID="45b7959a-7a98-4ba6-a425-31c4b5e0c4af" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd0" />
|
|
26 |
<MetadataFile FileName="PemssService.disco" MetadataType="Disco" ID="6a7d0ed7-2308-43ad-9aa1-9df2765d019e" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?disco" />
|
|
27 |
<MetadataFile FileName="PemssService.wsdl" MetadataType="Wsdl" ID="5257204c-9ba7-4935-8399-749c4d09811d" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?wsdl" />
|
|
28 |
<MetadataFile FileName="PemssService.xsd" MetadataType="Schema" ID="a53b20b0-910b-4a44-bcae-3fb60bd8f98d" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd2" />
|
|
29 |
<MetadataFile FileName="PemssService1.xsd" MetadataType="Schema" ID="fd1bec33-d965-4d9f-9a97-eed21103b6a7" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd1" />
|
|
30 |
<MetadataFile FileName="PemssService1.wsdl" MetadataType="Wsdl" ID="c229b4bc-b11c-4436-8721-00091fe42626" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?wsdl=wsdl0" />
|
|
31 |
<MetadataFile FileName="PemssService2.xsd" MetadataType="Schema" ID="0abc4297-08d1-4a5d-a3ca-60ae83accbc4" SourceId="1" SourceUrl="http://localhost:13009/PemssService.svc?xsd=xsd0" />
|
|
33 | 32 |
</Metadata> |
34 | 33 |
<Extensions> |
35 | 34 |
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" /> |
ConvertService/ServiceBase/PemssDocumentInfo/DocumentInfoProcess.cs | ||
---|---|---|
5 | 5 |
using System.Text; |
6 | 6 |
using System.Threading.Tasks; |
7 | 7 |
using Markus.Service.Convert.Plugin; |
8 |
using Markus.Service.Extensions; |
|
8 | 9 |
|
9 | 10 |
namespace PemssDocumentInfo |
10 | 11 |
{ |
... | ... | |
58 | 59 |
|
59 | 60 |
var documentInfo = pemssServiceClient.GetDocumentInfo(pID,dID); |
60 | 61 |
|
61 |
var docItems = entities.DOCUMENT_ITEM.Where(x => x.PROJECT_NO == pID && x.DOCUMENT_ID == dID); |
|
62 |
|
|
63 |
if (docItems.Count() > 0) |
|
62 |
if (documentInfo != null) |
|
64 | 63 |
{ |
65 |
var docitem = docItems.First(); |
|
64 |
var docItems = entities.DOCUMENT_ITEM.Where(x => x.PROJECT_NO == pID && x.DOCUMENT_ID == dID); |
|
65 |
|
|
66 |
if (docItems.Count() > 0) |
|
67 |
{ |
|
68 |
var docitem = docItems.First(); |
|
66 | 69 |
|
67 |
docitem.DOCUMENT_NAME = documentInfo.docName; |
|
68 |
docitem.REVISION = documentInfo.revision; |
|
69 |
docitem.DOCUMENT_NO = documentInfo.slipNo; |
|
70 |
docitem.ORIGINAL_FILE = convertItem.DOCUMENT_URL; |
|
70 |
docitem.DOCUMENT_NAME = documentInfo.docName;
|
|
71 |
docitem.REVISION = documentInfo.revision;
|
|
72 |
docitem.DOCUMENT_NO = documentInfo.slipNo;
|
|
73 |
docitem.ORIGINAL_FILE = convertItem.DOCUMENT_URL;
|
|
71 | 74 |
|
75 |
} |
|
76 |
else |
|
77 |
{ |
|
78 |
entities.DOCUMENT_ITEM.Add(new Markus.EntityModel.DOCUMENT_ITEM |
|
79 |
{ |
|
80 |
ID = new Guid().CreateUniqueGuid().ToString(), |
|
81 |
DOCUMENT_NO = documentInfo.slipNo, |
|
82 |
REVISION = documentInfo.revision, |
|
83 |
DOCUMENT_NAME = documentInfo.docName, |
|
84 |
GROUP_NO = documentInfo.slipNo, |
|
85 |
ORIGINAL_FILE = convertItem.DOCUMENT_URL, |
|
86 |
DOCUMENT_ID = dID, |
|
87 |
PROJECT_NO = pID |
|
88 |
}); |
|
89 |
} |
|
90 |
|
|
91 |
entities.SaveChanges(); |
|
92 |
result = true; |
|
72 | 93 |
} |
73 | 94 |
else |
74 | 95 |
{ |
75 |
entities.DOCUMENT_ITEM.Add(new Markus.EntityModel.DOCUMENT_ITEM |
|
76 |
{ |
|
77 |
DOCUMENT_NAME = documentInfo.docName, |
|
78 |
REVISION = documentInfo.revision, |
|
79 |
DOCUMENT_NO = documentInfo.slipNo, |
|
80 |
ORIGINAL_FILE = convertItem.DOCUMENT_URL |
|
81 |
}); |
|
96 |
this.Exception = $"PEMSS API GetDocumentInfo null pID : {pID} dID : {dID}"; |
|
82 | 97 |
} |
83 |
|
|
84 |
entities.SaveChanges(); |
|
85 | 98 |
} |
86 | 99 |
else |
87 | 100 |
{ |
... | ... | |
97 | 110 |
else |
98 | 111 |
{ |
99 | 112 |
this.Exception = "PEMSS_SERVICE SECTION Not Found"; |
100 |
return false; |
|
101 | 113 |
} |
102 | 114 |
} |
103 | 115 |
|
ConvertService/ServiceBase/PemssDocumentInfo/PemssDocumentInfo.csproj | ||
---|---|---|
21 | 21 |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
22 | 22 |
<ErrorReport>prompt</ErrorReport> |
23 | 23 |
<WarningLevel>4</WarningLevel> |
24 |
<PlatformTarget>AnyCPU</PlatformTarget> |
|
24 | 25 |
</PropertyGroup> |
25 | 26 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
26 | 27 |
<DebugType>pdbonly</DebugType> |
ConvertService/ServiceBase/PemssDocumentInfoTest/PemssDocumentInfoTest.csproj | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
3 |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
|
4 |
<PropertyGroup> |
|
5 |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|
6 |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|
7 |
<ProjectGuid>{535AA98D-063A-46A4-86D8-371F6C16C099}</ProjectGuid> |
|
8 |
<OutputType>Exe</OutputType> |
|
9 |
<RootNamespace>PemssDocumentInfoTest</RootNamespace> |
|
10 |
<AssemblyName>PemssDocumentInfoTest</AssemblyName> |
|
11 |
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
|
12 |
<FileAlignment>512</FileAlignment> |
|
13 |
<Deterministic>true</Deterministic> |
|
14 |
</PropertyGroup> |
|
15 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|
16 |
<PlatformTarget>x64</PlatformTarget> |
|
17 |
<DebugSymbols>true</DebugSymbols> |
|
18 |
<DebugType>full</DebugType> |
|
19 |
<Optimize>false</Optimize> |
|
20 |
<OutputPath>bin\Debug\</OutputPath> |
|
21 |
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|
22 |
<ErrorReport>prompt</ErrorReport> |
|
23 |
<WarningLevel>4</WarningLevel> |
|
24 |
<Prefer32Bit>false</Prefer32Bit> |
|
25 |
</PropertyGroup> |
|
26 |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|
27 |
<PlatformTarget>AnyCPU</PlatformTarget> |
|
28 |
<DebugType>pdbonly</DebugType> |
|
29 |
<Optimize>true</Optimize> |
|
30 |
<OutputPath>bin\Release\</OutputPath> |
|
31 |
<DefineConstants>TRACE</DefineConstants> |
|
32 |
<ErrorReport>prompt</ErrorReport> |
|
33 |
<WarningLevel>4</WarningLevel> |
|
34 |
</PropertyGroup> |
|
35 |
<ItemGroup> |
|
36 |
<Reference Include="ConfigParser, Version=0.3.3.6, Culture=neutral, processorArchitecture=MSIL"> |
|
37 |
<HintPath>..\packages\Salaros.ConfigParser.0.3.3\lib\net45\ConfigParser.dll</HintPath> |
|
38 |
</Reference> |
|
39 |
<Reference Include="System" /> |
|
40 |
<Reference Include="System.Core" /> |
|
41 |
<Reference Include="System.Xml.Linq" /> |
|
42 |
<Reference Include="System.Data.DataSetExtensions" /> |
|
43 |
<Reference Include="Microsoft.CSharp" /> |
|
44 |
<Reference Include="System.Data" /> |
|
45 |
<Reference Include="System.Net.Http" /> |
|
46 |
<Reference Include="System.Xml" /> |
|
47 |
</ItemGroup> |
|
48 |
<ItemGroup> |
|
49 |
<Compile Include="Program.cs" /> |
|
50 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
|
51 |
</ItemGroup> |
|
52 |
<ItemGroup> |
|
53 |
<None Include="App.config" /> |
|
54 |
<None Include="packages.config" /> |
|
55 |
<Content Include="Plugin.ini"> |
|
56 |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|
57 |
</Content> |
|
58 |
</ItemGroup> |
|
59 |
<ItemGroup> |
|
60 |
<ProjectReference Include="..\Markus.Service.Convert.IPlugin\Markus.Service.Convert.IPlugin.csproj"> |
|
61 |
<Project>{a5ba7325-379c-4ccb-b156-1704fc2175e3}</Project> |
|
62 |
<Name>Markus.Service.Convert.IPlugin</Name> |
|
63 |
</ProjectReference> |
|
64 |
<ProjectReference Include="..\Markus.Service.Extensions\Markus.Service.Extensions.csproj"> |
|
65 |
<Project>{5F983789-3E8F-4F9A-A601-138C3A83CA5F}</Project> |
|
66 |
<Name>Markus.Service.Extensions</Name> |
|
67 |
</ProjectReference> |
|
68 |
<ProjectReference Include="..\PemssDocumentInfo\PemssDocumentInfo.csproj"> |
|
69 |
<Project>{a317c1f6-e72e-4a5c-87ec-601622b0cf09}</Project> |
|
70 |
<Name>PemssDocumentInfo</Name> |
|
71 |
</ProjectReference> |
|
72 |
</ItemGroup> |
|
73 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|
74 |
</Project> |
ConvertService/ServiceBase/PemssDocumentInfoTest/Plugin.ini | ||
---|---|---|
1 |
#해당 플러그인에 전달되는 parameter |
|
2 |
[PemssDocumentInfo] |
|
3 |
PEMSS_SERVICE = http://125.131.88.213:5978/PemssService.svc |
|
4 |
# remote test MARKUS_V3 |
|
5 |
MARKUS_ConnectionString = ScTg8MgTdbARVQXhb1K9YI3/6emjnMuODvTWZ+UnUZQ8z/Gv4TksSLRn84HTZiC5pT5Vi9KdIFiJ/icpeXrUfa2LTnWdibJ7Oz+4QcYCftqVNPaS3nbiAo67l93XLRVqCpyt4tTSgwhRhdJob48gZhx+zmvoKmAwBR/ofCam3SNjx85gHFWc+gFffVOACIGbvM940SGroUFzK85kDd7Xlg== |
ConvertService/ServiceBase/PemssDocumentInfoTest/Program.cs | ||
---|---|---|
1 |
using Markus.Service.Helper; |
|
2 |
using System; |
|
3 |
using System.Collections.Generic; |
|
4 |
using System.Linq; |
|
5 |
using System.Text; |
|
6 |
using System.Threading.Tasks; |
|
7 |
|
|
8 |
namespace PemssDocumentInfoTest |
|
9 |
{ |
|
10 |
class Program |
|
11 |
{ |
|
12 |
static void Main(string[] args) |
|
13 |
{ |
|
14 |
PemssDocumentInfo.DocumentInfoProcess documentInfoProcess = new PemssDocumentInfo.DocumentInfoProcess(); |
|
15 |
|
|
16 |
Console.Write("ConvertID : "); |
|
17 |
var cId = Console.ReadLine(); |
|
18 |
|
|
19 |
var config = ConfigHelper.AppConfig("Plugin.ini"); |
|
20 |
|
|
21 |
Dictionary<string, object> parameters = new Dictionary<string, object>(); |
|
22 |
|
|
23 |
var sections = config.Sections.Where(x => x.SectionName == documentInfoProcess.Name); |
|
24 |
|
|
25 |
if (sections.Count() > 0) |
|
26 |
{ |
|
27 |
foreach (var param in sections.First().Keys) |
|
28 |
{ |
|
29 |
parameters.Add(param.Name, param.Content); |
|
30 |
|
|
31 |
Console.WriteLine($"Key :{param.Name} value : {param.Content}"); |
|
32 |
} |
|
33 |
} |
|
34 |
try |
|
35 |
{ |
|
36 |
var result = (documentInfoProcess as Markus.Service.Convert.Plugin.IPlugin).Do(cId, parameters); |
|
37 |
|
|
38 |
if (result) |
|
39 |
{ |
|
40 |
Console.WriteLine("성공"); |
|
41 |
|
|
42 |
} |
|
43 |
else |
|
44 |
{ |
|
45 |
Console.WriteLine(documentInfoProcess.Exception); |
|
46 |
} |
|
47 |
} |
|
48 |
catch (Exception ex) |
|
49 |
{ |
|
50 |
Console.WriteLine(ex.ToString()); |
|
51 |
} |
|
52 |
|
|
53 |
Console.ReadLine(); |
|
54 |
|
|
55 |
|
|
56 |
} |
|
57 |
} |
|
58 |
} |
ConvertService/ServiceBase/PemssDocumentInfoTest/Properties/AssemblyInfo.cs | ||
---|---|---|
1 |
using System.Reflection; |
|
2 |
using System.Runtime.CompilerServices; |
|
3 |
using System.Runtime.InteropServices; |
|
4 |
|
|
5 |
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 |
|
6 |
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 |
|
7 |
// 이러한 특성 값을 변경하세요. |
|
8 |
[assembly: AssemblyTitle("PemssDocumentInfoTest")] |
|
9 |
[assembly: AssemblyDescription("")] |
|
10 |
[assembly: AssemblyConfiguration("")] |
|
11 |
[assembly: AssemblyCompany("")] |
|
12 |
[assembly: AssemblyProduct("PemssDocumentInfoTest")] |
|
13 |
[assembly: AssemblyCopyright("Copyright © 2019")] |
|
14 |
[assembly: AssemblyTrademark("")] |
|
15 |
[assembly: AssemblyCulture("")] |
|
16 |
|
|
17 |
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 |
|
18 |
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 |
|
19 |
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. |
|
20 |
[assembly: ComVisible(false)] |
|
21 |
|
|
22 |
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. |
|
23 |
[assembly: Guid("535aa98d-063a-46a4-86d8-371f6c16c099")] |
|
24 |
|
|
25 |
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. |
|
26 |
// |
|
27 |
// 주 버전 |
|
28 |
// 부 버전 |
|
29 |
// 빌드 번호 |
|
30 |
// 수정 버전 |
|
31 |
// |
|
32 |
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 |
|
33 |
// 지정되도록 할 수 있습니다. |
|
34 |
// [assembly: AssemblyVersion("1.0.*")] |
|
35 |
[assembly: AssemblyVersion("1.0.0.0")] |
|
36 |
[assembly: AssemblyFileVersion("1.0.0.0")] |
ConvertService/ServiceBase/ServiceBase.sln | ||
---|---|---|
79 | 79 |
EndProject |
80 | 80 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PemssDocumentInfo", "PemssDocumentInfo\PemssDocumentInfo.csproj", "{A317C1F6-E72E-4A5C-87EC-601622B0CF09}" |
81 | 81 |
EndProject |
82 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PemssDocumentInfoTest", "PemssDocumentInfoTest\PemssDocumentInfoTest.csproj", "{535AA98D-063A-46A4-86D8-371F6C16C099}" |
|
83 |
EndProject |
|
82 | 84 |
Global |
83 | 85 |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
84 | 86 |
Debug|Any CPU = Debug|Any CPU |
... | ... | |
305 | 307 |
{A317C1F6-E72E-4A5C-87EC-601622B0CF09}.Release|x64.Build.0 = Release|Any CPU |
306 | 308 |
{A317C1F6-E72E-4A5C-87EC-601622B0CF09}.Release|x86.ActiveCfg = Release|Any CPU |
307 | 309 |
{A317C1F6-E72E-4A5C-87EC-601622B0CF09}.Release|x86.Build.0 = Release|Any CPU |
310 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
311 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
312 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
313 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|x64.Build.0 = Debug|Any CPU |
|
314 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|x86.ActiveCfg = Debug|Any CPU |
|
315 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Debug|x86.Build.0 = Debug|Any CPU |
|
316 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
317 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|Any CPU.Build.0 = Release|Any CPU |
|
318 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|x64.ActiveCfg = Release|Any CPU |
|
319 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|x64.Build.0 = Release|Any CPU |
|
320 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|x86.ActiveCfg = Release|Any CPU |
|
321 |
{535AA98D-063A-46A4-86D8-371F6C16C099}.Release|x86.Build.0 = Release|Any CPU |
|
308 | 322 |
EndGlobalSection |
309 | 323 |
GlobalSection(SolutionProperties) = preSolution |
310 | 324 |
HideSolutionNode = FALSE |
311 | 325 |
EndGlobalSection |
312 | 326 |
GlobalSection(NestedProjects) = preSolution |
313 | 327 |
{A317C1F6-E72E-4A5C-87EC-601622B0CF09} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08} |
328 |
{535AA98D-063A-46A4-86D8-371F6C16C099} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08} |
|
314 | 329 |
EndGlobalSection |
315 | 330 |
GlobalSection(ExtensibilityGlobals) = postSolution |
316 | 331 |
SolutionGuid = {CA1BB1E8-1969-4435-A889-37F359B6EAAE} |
ConvertService/ServiceBase/ServiceTestApp/ServiceTestApp.csproj | ||
---|---|---|
100 | 100 |
<Reference Include="Markus.Message, Version=1.5.3.0, Culture=neutral, processorArchitecture=MSIL"> |
101 | 101 |
<HintPath>..\packages\Markus.Message.1.5.4\lib\net45\Markus.Message.dll</HintPath> |
102 | 102 |
</Reference> |
103 |
<Reference Include="MarkusPDF, Version=1.0.7145.16256, Culture=neutral, processorArchitecture=AMD64">
|
|
104 |
<HintPath>..\packages\MarkusPDF.1.6.1\lib\net45\MarkusPDF.dll</HintPath>
|
|
103 |
<Reference Include="MarkusPDF, Version=1.0.7178.16502, Culture=neutral, processorArchitecture=AMD64">
|
|
104 |
<HintPath>..\packages\MarkusPDF.1.7.0\lib\net45\MarkusPDF.dll</HintPath>
|
|
105 | 105 |
</Reference> |
106 | 106 |
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions"> |
107 | 107 |
<HintPath>..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath> |
ConvertService/ServiceBase/ServiceTestApp/packages.config | ||
---|---|---|
5 | 5 |
<package id="Markus.LibraryInstaller" version="1.5.1" targetFramework="net45" /> |
6 | 6 |
<package id="Markus.Message" version="1.5.4" targetFramework="net45" /> |
7 | 7 |
<package id="MarkusDatabase" version="1.7.2" targetFramework="net45" /> |
8 |
<package id="MarkusPDF" version="1.6.1" targetFramework="net45" />
|
|
8 |
<package id="MarkusPDF" version="1.7.0" targetFramework="net45" />
|
|
9 | 9 |
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="net45" /> |
10 | 10 |
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net45" /> |
11 | 11 |
<package id="Salaros.ConfigParser" version="0.3.3" targetFramework="net45" /> |
내보내기 Unified diff