개정판 077fb153
- FinalPDFClient : local finalPDF 생성
Change-Id: Icea9dfc5ccbcbffb0af5b25f08e9d336456d3720
ConvertService/ServiceController/Markus.Service.StationController/App.config | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
2 | 2 |
<configuration> |
3 | 3 |
<configSections> |
4 | 4 |
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
5 | 5 |
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
6 | 6 |
</configSections> |
7 | 7 |
<connectionStrings> |
8 |
<add name="markusEntities" connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=
 0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;MultipleActiveResultSets=True;App=EntityFramework"" |
|
9 |
providerName="System.Data.EntityClient" /> |
|
8 |
<add name="markusEntities" connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=
 0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> |
|
10 | 9 |
</connectionStrings> |
11 | 10 |
<startup> |
12 | 11 |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> |
... | ... | |
23 | 22 |
<assemblyIdentity name="System.Windows.Interactivity" publicKeyToken="31bf3856ad364e35" culture="neutral" /> |
24 | 23 |
<bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" /> |
25 | 24 |
</dependentAssembly> |
25 |
<dependentAssembly> |
|
26 |
<assemblyIdentity name="Telerik.Windows.Controls" publicKeyToken="5803cfa389c90ce7" culture="neutral" /> |
|
27 |
<bindingRedirect oldVersion="0.0.0.0-2018.1.122.40" newVersion="2018.1.122.40" /> |
|
28 |
</dependentAssembly> |
|
29 |
<dependentAssembly> |
|
30 |
<assemblyIdentity name="Telerik.Windows.Data" publicKeyToken="5803cfa389c90ce7" culture="neutral" /> |
|
31 |
<bindingRedirect oldVersion="0.0.0.0-2018.1.122.40" newVersion="2018.1.122.40" /> |
|
32 |
</dependentAssembly> |
|
33 |
<dependentAssembly> |
|
34 |
<assemblyIdentity name="Telerik.Windows.Controls.Input" publicKeyToken="5803cfa389c90ce7" culture="neutral" /> |
|
35 |
<bindingRedirect oldVersion="0.0.0.0-2018.1.122.40" newVersion="2018.1.122.40" /> |
|
36 |
</dependentAssembly> |
|
37 |
<dependentAssembly> |
|
38 |
<assemblyIdentity name="Telerik.Windows.Controls.Navigation" publicKeyToken="5803cfa389c90ce7" culture="neutral" /> |
|
39 |
<bindingRedirect oldVersion="0.0.0.0-2018.1.122.40" newVersion="2018.1.122.40" /> |
|
40 |
</dependentAssembly> |
|
41 |
<dependentAssembly> |
|
42 |
<assemblyIdentity name="Telerik.Windows.Controls.GridView" publicKeyToken="5803cfa389c90ce7" culture="neutral" /> |
|
43 |
<bindingRedirect oldVersion="0.0.0.0-2018.1.122.40" newVersion="2018.1.122.40" /> |
|
44 |
</dependentAssembly> |
|
26 | 45 |
</assemblyBinding> |
27 | 46 |
</runtime> |
28 | 47 |
<system.serviceModel> |
... | ... | |
32 | 51 |
</basicHttpBinding> |
33 | 52 |
</bindings> |
34 | 53 |
<client> |
35 |
<endpoint address="http://localhost:55508/DataService.svc" binding="basicHttpBinding" |
|
36 |
bindingConfiguration="BasicHttpBinding_IDataService" contract="DataService.IDataService" |
|
37 |
name="BasicHttpBinding_IDataService" /> |
|
54 |
<endpoint address="http://localhost:55508/DataService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDataService" contract="DataService.IDataService" name="BasicHttpBinding_IDataService" /> |
|
38 | 55 |
</client> |
39 | 56 |
</system.serviceModel> |
40 | 57 |
<entityFramework> |
ConvertService/ServiceController/Markus.Service.StationController/Markus.Service.StationController.csproj | ||
---|---|---|
102 | 102 |
<Reference Include="LinqKit, Version=1.1.17.0, Culture=neutral, PublicKeyToken=bc217f8844052a91, processorArchitecture=MSIL"> |
103 | 103 |
<HintPath>..\packages\LinqKit.1.1.17\lib\net45\LinqKit.dll</HintPath> |
104 | 104 |
</Reference> |
105 |
<Reference Include="log4net"> |
|
106 |
<HintPath>..\..\..\..\MARKUS - 복사본\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
|
|
105 |
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
|
106 |
<HintPath>..\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath> |
|
107 | 107 |
</Reference> |
108 | 108 |
<Reference Include="Markus.Message, Version=1.5.3.0, Culture=neutral, processorArchitecture=MSIL"> |
109 | 109 |
<HintPath>..\packages\Markus.Message.1.5.4\lib\net45\Markus.Message.dll</HintPath> |
ConvertService/ServiceController/Markus.Service.StationController/packages.config | ||
---|---|---|
5 | 5 |
<package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net45" /> |
6 | 6 |
<package id="GemBox.Spreadsheet" version="39.3.30.1215" targetFramework="net45" /> |
7 | 7 |
<package id="LinqKit" version="1.1.17" targetFramework="net45" /> |
8 |
<package id="log4net" version="2.0.8" targetFramework="net45" /> |
|
8 | 9 |
<package id="Markus.Message" version="1.5.4" targetFramework="net45" /> |
9 | 10 |
<package id="MarkusDatabase" version="1.8.0" targetFramework="net45" developmentDependency="true" /> |
10 | 11 |
<package id="MaterialDesignColors" version="1.2.0" targetFramework="net45" /> |
ConvertService/ServiceController/StationControllerService/Web.config | ||
---|---|---|
49 | 49 |
</providers> |
50 | 50 |
</entityFramework> |
51 | 51 |
<connectionStrings> |
52 |
<!--효성 Connection String-->
|
|
52 |
<!--doftech Connection String-->
|
|
53 | 53 |
<add name="markusEntities" |
54 |
connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=10.11.252.2,9875;initial catalog=markus;persist security info=True;user id=ProjectPortalDBConn;password=ProjectPortalDBConn;multipleactiveresultsets=True;application name=EntityFramework""
|
|
54 |
connectionString="metadata=res://*/MarkusModel.csdl|res://*/MarkusModel.ssdl|res://*/MarkusModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;application name=EntityFramework""
|
|
55 | 55 |
providerName="System.Data.EntityClient"/> |
56 | 56 |
</connectionStrings> |
57 | 57 |
</configuration> |
FinalService/KCOM_FinalService/CommonLib/CommonLib.csproj | ||
---|---|---|
48 | 48 |
<DesignTime>True</DesignTime> |
49 | 49 |
<DependentUpon>Reference.svcmap</DependentUpon> |
50 | 50 |
</Compile> |
51 |
<Compile Include="Guid.cs" /> |
|
51 | 52 |
<Compile Include="WebServiceProxy.cs" /> |
52 | 53 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
53 | 54 |
</ItemGroup> |
FinalService/KCOM_FinalService/FinalPDFClient/FinalPDFClient.csproj | ||
---|---|---|
53 | 53 |
<ItemGroup> |
54 | 54 |
<ApplicationDefinition Include="App.xaml"> |
55 | 55 |
<Generator>MSBuild:Compile</Generator> |
56 |
<SubType>Designer</SubType> |
|
56 | 57 |
</ApplicationDefinition> |
57 | 58 |
<Page Include="MainWindow.xaml"> |
58 | 59 |
<Generator>MSBuild:Compile</Generator> |
... | ... | |
93 | 94 |
<ItemGroup> |
94 | 95 |
<None Include="App.config" /> |
95 | 96 |
</ItemGroup> |
97 |
<ItemGroup> |
|
98 |
<ProjectReference Include="..\KCOMDataModel\KCOMDataModel.csproj"> |
|
99 |
<Project>{629dc8cd-d458-47ef-8f02-cd12c7001c3e}</Project> |
|
100 |
<Name>KCOMDataModel</Name> |
|
101 |
</ProjectReference> |
|
102 |
<ProjectReference Include="..\MarkupToPDF\MarkupToPDF.csproj"> |
|
103 |
<Project>{a714bd67-8aac-4ed8-8ecf-7853c3549a68}</Project> |
|
104 |
<Name>MarkupToPDF</Name> |
|
105 |
</ProjectReference> |
|
106 |
</ItemGroup> |
|
96 | 107 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
97 | 108 |
</Project> |
FinalService/KCOM_FinalService/FinalPDFClient/MainWindow.xaml | ||
---|---|---|
7 | 7 |
mc:Ignorable="d" |
8 | 8 |
Title="MainWindow" Height="450" Width="800"> |
9 | 9 |
<Grid> |
10 |
<Grid.RowDefinitions> |
|
11 |
<RowDefinition/> |
|
12 |
<RowDefinition/> |
|
13 |
<RowDefinition/> |
|
14 |
</Grid.RowDefinitions> |
|
15 |
<Grid.ColumnDefinitions> |
|
16 |
<ColumnDefinition/> |
|
17 |
<ColumnDefinition/> |
|
18 |
<ColumnDefinition/> |
|
19 |
</Grid.ColumnDefinitions> |
|
10 |
<Grid> |
|
11 |
<Grid.RowDefinitions> |
|
12 |
<RowDefinition Height="Auto"/> |
|
13 |
<RowDefinition Height="Auto"/> |
|
14 |
<RowDefinition Height="Auto"/> |
|
15 |
<RowDefinition Height="Auto"/> |
|
16 |
</Grid.RowDefinitions> |
|
17 |
<Grid.ColumnDefinitions> |
|
18 |
<ColumnDefinition Width="Auto"/> |
|
19 |
<ColumnDefinition/> |
|
20 |
<ColumnDefinition/> |
|
21 |
</Grid.ColumnDefinitions> |
|
22 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
|
23 |
<TextBlock Text="User Id : "/> |
|
24 |
<TextBox Name="txtUserId" Width="120"/> |
|
25 |
</StackPanel> |
|
26 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1"> |
|
27 |
<TextBlock Text="Project NO : "/> |
|
28 |
<TextBox Name="txtProject" Width="120"/> |
|
29 |
</StackPanel> |
|
30 |
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right"> |
|
31 |
<TextBlock Text="Document ID : "/> |
|
32 |
<TextBox Name="txtDocId" Width="120"/> |
|
33 |
</StackPanel> |
|
34 |
<Button Grid.Row="3" Content="Merged PDF" Margin="2" Width="100" Click="Button_Click"/> |
|
35 |
</Grid> |
|
20 | 36 |
</Grid> |
21 | 37 |
</Window> |
FinalService/KCOM_FinalService/FinalPDFClient/MainWindow.xaml.cs | ||
---|---|---|
1 |
using System; |
|
1 |
using KCOMDataModel.DataModel; |
|
2 |
using MarkupToPDF; |
|
3 |
using System; |
|
2 | 4 |
using System.Collections.Generic; |
3 | 5 |
using System.Linq; |
4 | 6 |
using System.Text; |
... | ... | |
24 | 26 |
{ |
25 | 27 |
InitializeComponent(); |
26 | 28 |
} |
29 |
|
|
30 |
public void MergedPDF() |
|
31 |
{ |
|
32 |
MarkupToPDF.MarkupToPDF markupToPDF = new MarkupToPDF.MarkupToPDF(); |
|
33 |
|
|
34 |
EventHandler<MakeFinalErrorArgs> errorEventHandler = null; |
|
35 |
EventHandler<EndFinalEventArgs> endFinalEventHandler = null; |
|
36 |
|
|
37 |
errorEventHandler = (snd, evt) => |
|
38 |
{ |
|
39 |
System.Diagnostics.Debug.WriteLine(evt.Message); |
|
40 |
|
|
41 |
markupToPDF.FinalMakeError -= errorEventHandler; |
|
42 |
markupToPDF.EndFinal -= endFinalEventHandler; |
|
43 |
}; |
|
44 |
|
|
45 |
endFinalEventHandler = (snd, evt) => |
|
46 |
{ |
|
47 |
System.Diagnostics.Debug.WriteLine(evt.Message); |
|
48 |
|
|
49 |
markupToPDF.FinalMakeError -= errorEventHandler; |
|
50 |
markupToPDF.EndFinal -= endFinalEventHandler; |
|
51 |
}; |
|
52 |
|
|
53 |
markupToPDF.FinalMakeError += errorEventHandler; |
|
54 |
markupToPDF.EndFinal += endFinalEventHandler; |
|
55 |
|
|
56 |
|
|
57 |
var addResult = markupToPDF.AddFinalPDF(txtProject.Text, txtDocId.Text, txtUserId.Text); |
|
58 |
|
|
59 |
if (addResult.Success) |
|
60 |
{ |
|
61 |
markupToPDF.MakeFinalPDF((object)addResult.FinalPDF); |
|
62 |
} |
|
63 |
} |
|
64 |
|
|
65 |
private void Button_Click(object sender, RoutedEventArgs e) |
|
66 |
{ |
|
67 |
MergedPDF(); |
|
68 |
} |
|
69 |
|
|
27 | 70 |
} |
28 | 71 |
} |
FinalService/KCOM_FinalService/KCOMDataModel/Common/ConnectStringBuilder.cs | ||
---|---|---|
39 | 39 |
var _catalog = entity.PROPERTIES.Where(property => property.TYPE == InitialCatalogString |
40 | 40 |
&& property.PROPERTY == ProjectNo); |
41 | 41 |
EntityConnectionStringBuilder builder = null; |
42 |
|
|
42 | 43 |
if (_catalog.Count() > 0) |
43 | 44 |
{ |
44 | 45 |
string _ConnectionString = string.Format(adoConnectionString, _catalog.First().VALUE); |
... | ... | |
46 | 47 |
|
47 | 48 |
builder = ConnectStringBuilder.EntityConnectionStringBuilder(sqlBuilder, Metadata); |
48 | 49 |
} |
50 |
else |
|
51 |
{ |
|
52 |
throw new Exception("I can't find the catalog of the project in Properties."); |
|
53 |
} |
|
49 | 54 |
|
50 | 55 |
return builder; |
51 | 56 |
} |
FinalService/KCOM_FinalService/KCOM_FinalService.sln | ||
---|---|---|
27 | 27 |
EndProject |
28 | 28 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FinalService_Config", "FinalService_Config\FinalService_Config.csproj", "{ADC39322-0E61-4B6E-89A3-6219F145F185}" |
29 | 29 |
EndProject |
30 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FinalPDFClient", "FinalPDFClient\FinalPDFClient.csproj", "{DBD7598F-130F-4605-9B11-FE955A59FD4A}" |
|
31 |
EndProject |
|
30 | 32 |
Global |
31 | 33 |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
32 | 34 |
Debug|Any CPU = Debug|Any CPU |
... | ... | |
155 | 157 |
{ADC39322-0E61-4B6E-89A3-6219F145F185}.Release|x64.Build.0 = Release|Any CPU |
156 | 158 |
{ADC39322-0E61-4B6E-89A3-6219F145F185}.Release|x86.ActiveCfg = Release|Any CPU |
157 | 159 |
{ADC39322-0E61-4B6E-89A3-6219F145F185}.Release|x86.Build.0 = Release|Any CPU |
160 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
161 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
162 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
163 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|x64.Build.0 = Debug|Any CPU |
|
164 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|x86.ActiveCfg = Debug|Any CPU |
|
165 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Debug|x86.Build.0 = Debug|Any CPU |
|
166 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
167 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|Any CPU.Build.0 = Release|Any CPU |
|
168 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|x64.ActiveCfg = Release|Any CPU |
|
169 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|x64.Build.0 = Release|Any CPU |
|
170 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|x86.ActiveCfg = Release|Any CPU |
|
171 |
{DBD7598F-130F-4605-9B11-FE955A59FD4A}.Release|x86.Build.0 = Release|Any CPU |
|
158 | 172 |
EndGlobalSection |
159 | 173 |
GlobalSection(SolutionProperties) = preSolution |
160 | 174 |
HideSolutionNode = FALSE |
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
142 | 142 |
|
143 | 143 |
#endregion |
144 | 144 |
|
145 |
/// <summary> |
|
146 |
/// local에서 final 생성하는 경우 이 함수로 추가 후 실행 |
|
147 |
/// </summary> |
|
148 |
/// <param name="finalpdf"></param> |
|
149 |
/// <returns></returns> |
|
150 |
public AddFinalPDFResult AddFinalPDF(string ProjectNo,string DocumentID,string UserID) |
|
151 |
{ |
|
152 |
AddFinalPDFResult result = new AddFinalPDFResult { Success = false }; |
|
153 |
|
|
154 |
try |
|
155 |
{ |
|
156 |
FINAL_PDF addItem = new FINAL_PDF{ |
|
157 |
ID = CommonLib.Guid.shortGuid(), |
|
158 |
PROJECT_NO = ProjectNo, |
|
159 |
DOCUMENT_ID = DocumentID, |
|
160 |
CREATE_USER_ID = UserID, |
|
161 |
CREATE_DATETIME = DateTime.Now, |
|
162 |
STATUS = 4 |
|
163 |
}; |
|
164 |
|
|
165 |
using (CIEntities _entity = new CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(ProjectNo).ToString())) |
|
166 |
{ |
|
167 |
var docitems = _entity.DOCINFO.Where(x => x.PROJECT_NO == ProjectNo && x.DOCUMENT_ID == DocumentID); |
|
168 |
|
|
169 |
if(docitems.Count() > 0) |
|
170 |
{ |
|
171 |
addItem.DOCINFO_ID = docitems.First().ID; |
|
172 |
result.Success = true; |
|
173 |
} |
|
174 |
else |
|
175 |
{ |
|
176 |
result.Exception = "docInfo Not Found."; |
|
177 |
result.Success = false; |
|
178 |
} |
|
179 |
|
|
180 |
var markupInfoItems = _entity.MARKUP_INFO.Where(x =>x.DOCINFO_ID == addItem.DOCINFO_ID); |
|
181 |
|
|
182 |
if (markupInfoItems.Count() > 0) |
|
183 |
{ |
|
184 |
addItem.MARKUPINFO_ID = markupInfoItems.First().ID; |
|
185 |
result.Success = true; |
|
186 |
} |
|
187 |
else |
|
188 |
{ |
|
189 |
result.Exception = "Markup Info Not Found."; |
|
190 |
result.Success = false; |
|
191 |
} |
|
192 |
} |
|
193 |
|
|
194 |
if (result.Success) |
|
195 |
{ |
|
196 |
using (KCOMEntities _entity = new KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
|
197 |
{ |
|
198 |
var finalList = _entity.FINAL_PDF.Where(final => final.ID == addItem.ID); |
|
199 |
|
|
200 |
/// Insrt and Update |
|
201 |
if (finalList.Count() == 0) |
|
202 |
{ |
|
203 |
_entity.FINAL_PDF.AddObject(addItem); |
|
204 |
_entity.SaveChanges(); |
|
205 |
|
|
206 |
result.FinalPDF = addItem; |
|
207 |
result.Success = true; |
|
208 |
} |
|
209 |
} |
|
210 |
} |
|
211 |
} |
|
212 |
catch (Exception ex) |
|
213 |
{ |
|
214 |
System.Diagnostics.Debug.WriteLine(ex); |
|
215 |
result.Success = false; |
|
216 |
} |
|
217 |
|
|
218 |
return result; |
|
219 |
} |
|
220 |
|
|
145 | 221 |
#region 생성자 & 소멸자 |
146 | 222 |
public void MakeFinalPDF(object _FinalPDF) |
147 | 223 |
{ |
... | ... | |
162 | 238 |
|
163 | 239 |
if (_properties.Count() > 0) |
164 | 240 |
{ |
165 |
PdfFilePathRoot = _properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).First().VALUE; |
|
166 |
_FinalPDFStorgeLocal = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeLocal).First().VALUE; |
|
167 |
_FinalPDFStorgeRemote = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeRemote).First().VALUE; |
|
241 |
if (_properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).Count() == 0) |
|
242 |
{ |
|
243 |
SetNotice(FinalPDF.ID, $"Project {FinalPDF.PROJECT_NO} : TileSourcePath Not Found."); |
|
244 |
return; |
|
245 |
} |
|
246 |
else |
|
247 |
{ |
|
248 |
PdfFilePathRoot = _properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).First().VALUE; |
|
249 |
} |
|
250 |
|
|
251 |
if (_properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeLocal).Count() == 0) |
|
252 |
{ |
|
253 |
SetNotice(FinalPDF.ID, $"Project {FinalPDF.PROJECT_NO} : FinalPDFStorgeLocal Not Found."); |
|
254 |
return; |
|
255 |
} |
|
256 |
else |
|
257 |
{ |
|
258 |
_FinalPDFStorgeLocal = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeLocal).First().VALUE; |
|
259 |
} |
|
260 |
|
|
261 |
|
|
262 |
if (_properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeRemote).Count() == 0) |
|
263 |
{ |
|
264 |
SetNotice(FinalPDF.ID, $"Project {FinalPDF.PROJECT_NO} : FinalPDFStorgeRemote Not Found."); |
|
265 |
return; |
|
266 |
} |
|
267 |
else |
|
268 |
{ |
|
269 |
_FinalPDFStorgeRemote = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeRemote).First().VALUE; |
|
270 |
} |
|
168 | 271 |
} |
169 | 272 |
else |
170 | 273 |
{ |
171 |
SetNotice(FinalPDF.ID, "프로퍼티를 가지고 올 수 없습니다.");
|
|
274 |
SetNotice(FinalPDF.ID, $"Project {FinalPDF.PROJECT_NO} : Final PDF Properties Not Found.");
|
|
172 | 275 |
return; |
173 | 276 |
} |
277 |
|
|
174 | 278 |
var finalList = _entity.FINAL_PDF.Where(final => final.ID == FinalPDF.ID); |
279 |
|
|
175 | 280 |
if (finalList.Count() > 0) |
176 | 281 |
{ |
177 | 282 |
finalList.FirstOrDefault().START_DATETIME = DateTime.Now; |
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.csproj | ||
---|---|---|
87 | 87 |
<Reference Include="WindowsBase" /> |
88 | 88 |
</ItemGroup> |
89 | 89 |
<ItemGroup> |
90 |
<Compile Include="AddFinalPDFResult.cs" /> |
|
90 | 91 |
<Compile Include="Common\CommentUserInfo.cs" /> |
91 | 92 |
<Compile Include="Common\ConverterLineSize.cs" /> |
92 | 93 |
<Compile Include="Common\DataController.cs" /> |
INI/MARKUS.ini | ||
---|---|---|
43 | 43 |
|
44 | 44 |
|
45 | 45 |
[COMMON] |
46 |
IsDocumentHistory = false |
|
46 |
IsDocumentHistory = true |
KCOM/KCOM.csproj | ||
---|---|---|
1280 | 1280 |
<Copy Condition="Exists('$(DeployedConfig)')" SourceFiles="$(IntermediateOutputPath)$(TargetFileName).config" DestinationFiles="$(DeployedConfig)" /> |
1281 | 1281 |
</Target> |
1282 | 1282 |
<PropertyGroup> |
1283 |
<PreBuildEvent>if $(ConfigurationName) == Debug ( |
|
1284 |
xcopy /i /e /s /y /f "$(SolutionDir)\INI\MARKUS.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1285 |
) |
|
1286 |
|
|
1287 |
if $(ConfigurationName) == Debug_DevDoftech ( |
|
1288 |
copy /Y "$(SolutionDir)\INI\MARKUS_Doftech.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1289 |
) |
|
1290 |
|
|
1291 |
if $(ConfigurationName) == Debug_HyoSung ( |
|
1292 |
copy /Y "$(SolutionDir)\INI\MARKUS_HyoSung_Debug.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1293 |
) |
|
1294 |
|
|
1295 |
if $(ConfigurationName) == Release_HyoSung ( |
|
1296 |
copy /Y "$(SolutionDir)\INI\MARKUS_HyoSung.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1297 |
) |
|
1298 |
if $(ConfigurationName) == Release_PEMSS ( |
|
1299 |
copy /Y "$(SolutionDir)\INI\MARKUS_PEMSS.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1300 |
) |
|
1301 |
if $(ConfigurationName) == Debug_SNI ( |
|
1302 |
copy /Y "$(SolutionDir)\INI\MARKUS_SNI.ini" "C:\ProgramData\MARKUS\MARKUS.ini" |
|
1303 |
)</PreBuildEvent> |
|
1283 |
<PreBuildEvent> |
|
1284 |
</PreBuildEvent> |
|
1304 | 1285 |
</PropertyGroup> |
1305 | 1286 |
<Target Name="app_Release_config_AfterBuild" AfterTargets="AfterBuild" Condition="Exists('app.Release.$(Configuration).config')"> |
1306 | 1287 |
<TransformXml Source="app.Release.config" Destination="$(OutputPath)app.Release.config" Transform="app.Release.$(Configuration).config" /> |
KCOM/KCOM.csproj.user | ||
---|---|---|
13 | 13 |
<VerifyUploadedFiles>false</VerifyUploadedFiles> |
14 | 14 |
</PropertyGroup> |
15 | 15 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> |
16 |
<StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjUwMDAwMDMiLCJiUGFydG5lciI6ZmFsc2UsIkNyZWF0ZUZpbmFsUERGUGVybWlzc2lvbiI6dHJ1ZSwiTmV3Q29tbWVudFBlcm1pc3Npb24iOnRydWUsIlByb2plY3ROTyI6IjAwMDAwMCIsIlVzZXJJRCI6ImRvZnRlY2giLCJNb2RlIjowfQ==/</StartArguments>
|
|
16 |
<StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjMwMDAwMTY1IiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJkb2Z0ZWNoIiwiTW9kZSI6MH0=/</StartArguments>
|
|
17 | 17 |
</PropertyGroup> |
18 | 18 |
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> |
19 | 19 |
<StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjQwMDAwMTQ5IiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJhZG1pbiIsIk1vZGUiOjB9</StartArguments> |
내보내기 Unified diff