프로젝트

일반

사용자정보

개정판 faf998c6

IDfaf998c668c34ef74d45257f679d9e463cd8838b
상위 4b33593a
하위 0a64fa85

김태성이(가) 약 2년 전에 추가함

issue #00000 FinalPDF Service V3 추가

Change-Id: I3852e6da1af592c951c13720e35fb0e6c45ee6af

차이점 보기:

FinalServiceV3/KCOM_FinalService/CommonLib/Common.cs
1
using System;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Runtime.InteropServices;
6
using System.Security.Cryptography;
7
using System.Text;
8
using System.Threading.Tasks;
9

  
10
namespace CommonLib
11
{
12
    public class Common
13
    {
14
        [DllImport("kernel32")]
15
        private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
16

  
17
        public static string AppDataFolder
18
        {
19
            get
20
            {
21
                return AppDomain.CurrentDomain.BaseDirectory;
22
                //return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS");
23
            }
24
        }
25
        public static string GetConfigString(string section, string key, string def)
26
        {
27
            System.Text.StringBuilder strbuilder = new System.Text.StringBuilder(512);
28
            GetPrivateProfileString(section, key, def, strbuilder, 512, Path.Combine(AppDataFolder, "FinalService.ini"));
29
            return strbuilder.ToString();
30
        }
31

  
32
        public static string GetConnectionString()
33
        {
34
            System.Text.StringBuilder strbuilder = new System.Text.StringBuilder(512);
35
            GetPrivateProfileString("ConnectionString", "STRING", "", strbuilder, 512, Path.Combine(AppDataFolder, "FinalService.ini"));
36
            return Decrypt(strbuilder.ToString(), "Doftech1073#");
37
        }
38

  
39
        private static string Decrypt(string textToDecrypt, string key)
40
        {
41
            RijndaelManaged rijndaelCipher = new RijndaelManaged();
42
            rijndaelCipher.Mode = CipherMode.CBC;
43
            rijndaelCipher.Padding = PaddingMode.PKCS7;
44
            rijndaelCipher.KeySize = 128;
45
            rijndaelCipher.BlockSize = 128;
46

  
47
            byte[] encryptedData = Convert.FromBase64String(textToDecrypt);
48
            byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
49
            byte[] keyBytes = new byte[16];
50

  
51
            int len = pwdBytes.Length;
52
            if (len > keyBytes.Length)
53
            {
54
                len = keyBytes.Length;
55
            }
56

  
57
            Array.Copy(pwdBytes, keyBytes, len);
58
            rijndaelCipher.Key = keyBytes;
59
            rijndaelCipher.IV = keyBytes;
60

  
61
            byte[] plainText = rijndaelCipher.CreateDecryptor().TransformFinalBlock(encryptedData, 0, encryptedData.Length);
62
            return Encoding.UTF8.GetString(plainText);
63
        }
64
    }
65
}
FinalServiceV3/KCOM_FinalService/CommonLib/CommonLib.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>{EE9AAABC-1678-43A4-878E-CEDBB577CF01}</ProjectGuid>
8
    <OutputType>Library</OutputType>
9
    <AppDesignerFolder>Properties</AppDesignerFolder>
10
    <RootNamespace>CommonLib</RootNamespace>
11
    <AssemblyName>CommonLib</AssemblyName>
12
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13
    <FileAlignment>512</FileAlignment>
14
    <Deterministic>true</Deterministic>
15
    <TargetFrameworkProfile />
16
  </PropertyGroup>
17
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18
    <DebugSymbols>true</DebugSymbols>
19
    <DebugType>full</DebugType>
20
    <Optimize>false</Optimize>
21
    <OutputPath>bin\Debug\</OutputPath>
22
    <DefineConstants>DEBUG;TRACE</DefineConstants>
23
    <ErrorReport>prompt</ErrorReport>
24
    <WarningLevel>4</WarningLevel>
25
    <Prefer32Bit>false</Prefer32Bit>
26
  </PropertyGroup>
27
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
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
    <Prefer32Bit>false</Prefer32Bit>
35
  </PropertyGroup>
36
  <ItemGroup>
37
    <Reference Include="System" />
38
    <Reference Include="System.Core" />
39
    <Reference Include="System.Runtime.Serialization" />
40
    <Reference Include="System.ServiceModel" />
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.Xml" />
46
  </ItemGroup>
47
  <ItemGroup>
48
    <Compile Include="Common.cs" />
49
    <Compile Include="Guid.cs" />
50
    <Compile Include="Properties\AssemblyInfo.cs" />
51
  </ItemGroup>
52
  <ItemGroup>
53
    <WCFMetadata Include="Connected Services\" />
54
  </ItemGroup>
55
  <ItemGroup>
56
    <None Include="app.config" />
57
  </ItemGroup>
58
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
59
</Project>
FinalServiceV3/KCOM_FinalService/CommonLib/Guid.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5

  
6
namespace CommonLib
7
{
8
    public static class Guid
9
    {
10
        public static string shortGuid()
11
        {
12
            byte[] bytes = new byte[16];
13
            using (var provider = System.Security.Cryptography.RandomNumberGenerator.Create())
14
            {
15
                provider.GetBytes(bytes);
16
            }
17

  
18
            var guid = new System.Guid(bytes);
19

  
20
            return Convert.ToBase64String(guid.ToByteArray())
21
                .Substring(0, 10)
22
                .Replace("/", "")
23
                .Replace("+", "") + DateTime.UtcNow.Ticks.ToString("x");
24
        }
25
    }
26
}
FinalServiceV3/KCOM_FinalService/CommonLib/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Runtime.CompilerServices;
3
using System.Runtime.InteropServices;
4

  
5
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
6
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7
// 이러한 특성 값을 변경하세요.
8
[assembly: AssemblyTitle("CommonLib")]
9
[assembly: AssemblyDescription("")]
10
[assembly: AssemblyConfiguration("")]
11
[assembly: AssemblyCompany("")]
12
[assembly: AssemblyProduct("CommonLib")]
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("ee9aaabc-1678-43a4-878e-cedbb577cf01")]
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")]
FinalServiceV3/KCOM_FinalService/CommonLib/WebServiceProxy.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.ServiceModel;
5
using System.Text;
6

  
7
namespace CommonLib
8
{
9
    public class WebServiceProxy
10
    {
11
        private static MARKUS_API.ServiceDeepViewClient _client;
12
        
13
        public static MARKUS_API.ServiceDeepViewClient WebService()
14
        {
15
            if(_client == null)
16
            {
17
                string apiurl = CommonLib.Common.GetConfigString("MARKUS_API", "URL", "");
18
                BasicHttpBinding _binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
19
                _binding.MaxBufferSize = 2147483647;
20
                _binding.MaxReceivedMessageSize = 2147483647;
21
                _binding.OpenTimeout = new TimeSpan(0, 1, 0);
22
                _binding.ReceiveTimeout = new TimeSpan(0, 10, 0);
23
                _binding.CloseTimeout = new TimeSpan(0, 5, 0);
24
                _binding.SendTimeout = new TimeSpan(0, 5, 0);
25
                _binding.TextEncoding = System.Text.Encoding.UTF8;
26
                _binding.TransferMode = TransferMode.Buffered;
27
                _client = new MARKUS_API.ServiceDeepViewClient(_binding, new EndpointAddress(apiurl));
28
            }
29
            return _client;
30
        }
31
        
32
    }
33
}
FinalServiceV3/KCOM_FinalService/CommonLib/app.config
1
<?xml version="1.0" encoding="utf-8"?>
2
<configuration>
3
    <system.serviceModel>
4
        <bindings />
5
        <client />
6
    </system.serviceModel>
7
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
FinalServiceV3/KCOM_FinalService/ConnectionStrEncrypt/App.config
1
<?xml version="1.0" encoding="utf-8" ?>
2
<configuration>
3
    <startup> 
4
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5
    </startup>
6
</configuration>
FinalServiceV3/KCOM_FinalService/ConnectionStrEncrypt/ConnectionStrEncrypt.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>{61F76FC9-A54E-4311-865F-05329DCACBDC}</ProjectGuid>
8
    <OutputType>Exe</OutputType>
9
    <RootNamespace>ConnectionStrEncrypt</RootNamespace>
10
    <AssemblyName>ConnectionStrEncrypt</AssemblyName>
11
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12
    <FileAlignment>512</FileAlignment>
13
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14
    <Deterministic>true</Deterministic>
15
  </PropertyGroup>
16
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17
    <PlatformTarget>AnyCPU</PlatformTarget>
18
    <DebugSymbols>true</DebugSymbols>
19
    <DebugType>full</DebugType>
20
    <Optimize>false</Optimize>
21
    <OutputPath>bin\Debug\</OutputPath>
22
    <DefineConstants>DEBUG;TRACE</DefineConstants>
23
    <ErrorReport>prompt</ErrorReport>
24
    <WarningLevel>4</WarningLevel>
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="System" />
37
    <Reference Include="System.Core" />
38
    <Reference Include="System.Xml.Linq" />
39
    <Reference Include="System.Data.DataSetExtensions" />
40
    <Reference Include="Microsoft.CSharp" />
41
    <Reference Include="System.Data" />
42
    <Reference Include="System.Net.Http" />
43
    <Reference Include="System.Xml" />
44
  </ItemGroup>
45
  <ItemGroup>
46
    <Compile Include="Program.cs" />
47
    <Compile Include="Properties\AssemblyInfo.cs" />
48
  </ItemGroup>
49
  <ItemGroup>
50
    <None Include="App.config" />
51
  </ItemGroup>
52
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53
</Project>
FinalServiceV3/KCOM_FinalService/ConnectionStrEncrypt/Program.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Security.Cryptography;
5
using System.Text;
6
using System.Threading.Tasks;
7

  
8
namespace ConnectionStrEncrypt
9
{
10
    class Program
11
    {
12
        static void Main(string[] args)
13
        {
14
            //args = new string[2];
15
            //args[0] = "-en";
16

  
17
            //Console.WriteLine("ex) data source=address;database=database;user id=userid;password=password");
18
            //Console.WriteLine("input Connection String :");
19

  
20
            //args[1] = Console.ReadLine();
21

  
22
            //args = new string[] { "-de", "oGKAXlIgXfRDRXGeHEn8EOYJBpEZdaR4TUqxSnjQeRQGAic7nOAFD0BzZ27j0u9NdhivuTsrcd+GXxxu0YVfH88OBZjEnWwEOO58gSOvKyw=" };
23

  
24
            if (args == null || args?.Count() == 0)
25
            {
26
                args = new[] { "-en", "data source=210.94.128.101;database=markus;user id=doftech;password=xpdhtm!1" };
27
                //args = new[] { "-en", "data source=10.11.142.77;database=markus;user id=doftech;password=dof1073#" };
28
            }
29

  
30
            String key = "Doftech1073#";
31

  
32
            if ((args.Length == 2) && (args[0] == "-en"))
33
            {
34
                String en = Encrypt(args[1], key);
35
                Console.WriteLine("Encrypted Text is \"" + en + "\"");
36
            }
37
            else if ((args.Length == 2) && (args[0] == "-de"))
38
            {
39
                String de = Decrypt(args[1], key);
40
                Console.WriteLine("Decrypted Text is \"" + de + "\"");
41
            }
42
            else
43
            {
44
                Console.WriteLine("Usage : ConnectionStrEncrypt.exe -en|-de <input string>");
45
            }
46

  
47
            Console.ReadLine();
48
        }
49

  
50
        public static string Decrypt(string textToDecrypt, string key)
51
        {
52
            RijndaelManaged rijndaelCipher = new RijndaelManaged();
53
            rijndaelCipher.Mode = CipherMode.CBC;
54
            rijndaelCipher.Padding = PaddingMode.PKCS7;
55
            rijndaelCipher.KeySize = 128;
56
            rijndaelCipher.BlockSize = 128;
57

  
58
            byte[] encryptedData = Convert.FromBase64String(textToDecrypt);
59
            byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
60
            byte[] keyBytes = new byte[16];
61

  
62
            int len = pwdBytes.Length;
63
            if (len > keyBytes.Length)
64
            {
65
                len = keyBytes.Length;
66
            }
67

  
68
            Array.Copy(pwdBytes, keyBytes, len);
69
            rijndaelCipher.Key = keyBytes;
70
            rijndaelCipher.IV = keyBytes;
71

  
72
            byte[] plainText = rijndaelCipher.CreateDecryptor().TransformFinalBlock(encryptedData, 0, encryptedData.Length);
73
            return Encoding.UTF8.GetString(plainText);
74
        }
75

  
76

  
77

  
78
        public static string Encrypt(string textToEncrypt, string key)
79
        {
80
            RijndaelManaged rijndaelCipher = new RijndaelManaged();
81
            rijndaelCipher.Mode = CipherMode.CBC;
82
            rijndaelCipher.Padding = PaddingMode.PKCS7;
83
            rijndaelCipher.KeySize = 128;
84
            rijndaelCipher.BlockSize = 128;
85

  
86
            byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
87
            byte[] keyBytes = new byte[16];
88
            int len = pwdBytes.Length;
89
            if (len > keyBytes.Length)
90
            {
91
                len = keyBytes.Length;
92
            }
93

  
94
            Array.Copy(pwdBytes, keyBytes, len);
95
            rijndaelCipher.Key = keyBytes;
96
            rijndaelCipher.IV = keyBytes;
97
            ICryptoTransform transform = rijndaelCipher.CreateEncryptor();
98
            byte[] plainText = Encoding.UTF8.GetBytes(textToEncrypt);
99
            return Convert.ToBase64String(transform.TransformFinalBlock(plainText, 0, plainText.Length));
100
        }
101
    }
102
}
FinalServiceV3/KCOM_FinalService/ConnectionStrEncrypt/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Runtime.CompilerServices;
3
using System.Runtime.InteropServices;
4

  
5
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
6
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7
// 이러한 특성 값을 변경하세요.
8
[assembly: AssemblyTitle("ConnectionStrEncrypt")]
9
[assembly: AssemblyDescription("")]
10
[assembly: AssemblyConfiguration("")]
11
[assembly: AssemblyCompany("")]
12
[assembly: AssemblyProduct("ConnectionStrEncrypt")]
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("61f76fc9-a54e-4311-865f-05329dcacbdc")]
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")]
FinalServiceV3/KCOM_FinalService/DatabaseLoadTest/App.config
1
<?xml version="1.0" encoding="utf-8"?>
2
<configuration>
3
    <startup> 
4
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5
    </startup>
6
</configuration>
FinalServiceV3/KCOM_FinalService/DatabaseLoadTest/DatabaseLoadTest.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>{99E36DFB-0C2C-432D-BC33-7CF6D4B947C2}</ProjectGuid>
8
    <OutputType>Exe</OutputType>
9
    <RootNamespace>DatabaseLoadTest</RootNamespace>
10
    <AssemblyName>DatabaseLoadTest</AssemblyName>
11
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12
    <FileAlignment>512</FileAlignment>
13
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14
    <Deterministic>true</Deterministic>
15
    <TargetFrameworkProfile />
16
  </PropertyGroup>
17
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18
    <PlatformTarget>x64</PlatformTarget>
19
    <DebugSymbols>true</DebugSymbols>
20
    <DebugType>full</DebugType>
21
    <Optimize>false</Optimize>
22
    <OutputPath>bin\Debug\</OutputPath>
23
    <DefineConstants>DEBUG;TRACE</DefineConstants>
24
    <ErrorReport>prompt</ErrorReport>
25
    <WarningLevel>4</WarningLevel>
26
  </PropertyGroup>
27
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28
    <PlatformTarget>AnyCPU</PlatformTarget>
29
    <DebugType>pdbonly</DebugType>
30
    <Optimize>true</Optimize>
31
    <OutputPath>bin\Release\</OutputPath>
32
    <DefineConstants>TRACE</DefineConstants>
33
    <ErrorReport>prompt</ErrorReport>
34
    <WarningLevel>4</WarningLevel>
35
  </PropertyGroup>
36
  <ItemGroup>
37
    <Reference Include="System" />
38
    <Reference Include="System.Core" />
39
    <Reference Include="System.Data.Entity" />
40
    <Reference Include="System.Xml.Linq" />
41
    <Reference Include="System.Data.DataSetExtensions" />
42
    <Reference Include="Microsoft.CSharp" />
43
    <Reference Include="System.Data" />
44
    <Reference Include="System.Net.Http" />
45
    <Reference Include="System.Xml" />
46
  </ItemGroup>
47
  <ItemGroup>
48
    <Compile Include="Program.cs" />
49
    <Compile Include="Properties\AssemblyInfo.cs" />
50
  </ItemGroup>
51
  <ItemGroup>
52
    <None Include="App.config" />
53
    <None Include="FinalService.ini">
54
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
55
    </None>
56
  </ItemGroup>
57
  <ItemGroup>
58
    <PackageReference Include="EntityFramework">
59
      <Version>6.4.4</Version>
60
    </PackageReference>
61
    <PackageReference Include="Markus.EntityModel">
62
      <Version>1.5.0</Version>
63
    </PackageReference>
64
  </ItemGroup>
65
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
66
</Project>
FinalServiceV3/KCOM_FinalService/DatabaseLoadTest/FinalService.ini
1
[PDFMovePath]
2
URL=\\192.168.0.67\finalpdf\
3
[ApprovedImgPath]
4
URL=\\192.168.0.67\finalpdf\Approved.png
5
[CheckmarkImgPath]
6
URL=\\192.168.0.67\finalpdf\checkmark.png
7
[DebugSavePath]
8
URL=D:\\Develop\\Ensemble\\{0}_app\\VPCS_DOCLIB\\{1}\\{2}\\ToVendor\\
9
[DebugResultUrlPath]
10
URL=http://cloud.devdoftech.co.kr:5977/FinalPDF/{0}_app/VPCS_DOCLIB/{1}/{2}/ToVendor/{3}
11
[FinalServiceName]
12
NAME=FinalService
13
[UpLoadServiceUrl]
14
URL=
15
[ConnectionString]
16
STRING=EVCOYxwadMNh7qzjMvRTwOacwyFatXgWjx//sssrSKTsvMkdvpdBa3Sj3mmhwABTiweSqNnWYgsIxUWXaBe8XE8G1CLaux2zPbyBWvqxJruTX0H5MqABZSEXXG82XaGL
17
[MARKUS_API]
18
URL=http://www.devdoftech.co.kr:5979/ServiceDeepView.svc
FinalServiceV3/KCOM_FinalService/DatabaseLoadTest/Program.cs
1

2
using Markus.EntityModel;
3
using System;
4
using System.Collections.Generic;
5
using System.Linq;
6
using System.Text;
7
using System.Threading.Tasks;
8

  
9
namespace DatabaseLoadTest
10
{
11
    class Program
12
    {
13
        private static string MarkusConnectionString;
14
        private static string CIConnectionString;
15

  
16
        static void Main(string[] args)
17
        {
18
            try
19
            {
20

  
21
                using (Markus.EntityModel.MarkusModel _entity = new Markus.EntityModel.MarkusModel(MarkusConnectionString))
22
                {
23
                    var items = _entity.FINAL_PDF;
24

  
25
                    Console.WriteLine("FinalPDF Count : " + items.Count());
26

  
27
                    foreach (var item in items)
28
                    {
29
                        List<MARKUP_DATA> MarkupDataSet = null;
30
                        DOCINFO DocInfoItem = null;
31

  
32
                        using (Markus.EntityModel.MarkusModel _ciEntity = new Markus.EntityModel.MarkusModel(CIConnectionString))
33
                        {
34
                            DocInfoItem = _ciEntity.DOCINFO.Where(x => x.DOCUMENT_ID == item.DOCUMENT_ID).FirstOrDefault();
35

  
36
                            var markupinfoItem = DocInfoItem.MARKUP_INFO.Where(x => x.DOCINFO_ID == DocInfoItem.ID && x.CONSOLIDATE == 1 && x.AVOID_CONSOLIDATE == 0 && x.PART_CONSOLIDATE == 0).FirstOrDefault();
37

  
38
                            if (markupinfoItem.MARKUP_INFO_VERSION.Count > 0)
39
                            {
40
                                MarkupDataSet = markupinfoItem.MARKUP_INFO_VERSION.OrderBy(x => x.CREATE_DATE).LastOrDefault().MARKUP_DATA.ToList().OrderBy(x => x.PAGENUMBER).ToList();
41
                            }
42
                        }
43

  
44
                        List<MARKUP_DATA> MarkupDataSet2 = null;
45
                        DOCINFO DocInfoItem2 = null;
46
                        MARKUP_INFO MarkupInfoItem = null;
47

  
48
                        using (Markus.EntityModel.MarkusModel _ciEntity = new Markus.EntityModel.MarkusModel(CIConnectionString))
49
                        {
50
                            var _DOCINFO = _ciEntity.DOCINFO.Where(x => x.DOCUMENT_ID == item.DOCUMENT_ID);
51

  
52
                            if (_DOCINFO.Count() > 0)
53
                            {
54
                                DocInfoItem2 = _DOCINFO.First();
55

  
56
                                var infoItems = _ciEntity.MARKUP_INFO.Where(x => x.DOCINFO_ID == DocInfoItem.ID && x.CONSOLIDATE == 1 && x.AVOID_CONSOLIDATE == 0 && x.PART_CONSOLIDATE == 0);
57

  
58
                                if (infoItems.Count() == 0)
59
                                {
60
                                    throw new Exception("콘솔리데잇이 작업 요청 후에 수정 / 삭제 되었습니다");
61
                                }
62
                                else
63
                                {
64
                                    MarkupInfoItem = infoItems.First();
65

  
66
                                    var markupInfoVerItems = _ciEntity.MARKUP_INFO_VERSION.Where(x => x.MARKUPINFO_ID == MarkupInfoItem.ID).ToList();
67

  
68
                                    if (markupInfoVerItems.Count() > 0)
69
                                    {
70
                                        var markupInfoVerItem = markupInfoVerItems.OrderByDescending(x => x.CREATE_DATE).First();
71

  
72
                                        MarkupDataSet2 = _ciEntity.MARKUP_DATA.Where(x => x.MARKUPINFO_VERSION_ID == markupInfoVerItem.ID).OrderBy(d => d.PAGENUMBER).ToList();
73
                                    }
74
                                    else
75
                                    {
76
                                        throw new Exception("MARKUP_INFO_VERSION 이 존재 하지 않습니다");
77
                                    }
78
                                }
79
                            }
80
                        }
81

  
82

  
83
                        if (MarkupDataSet?.Count() != MarkupDataSet?.Count())
84
                        {
85
                            Console.WriteLine($"Document ID : {item.DOCUMENT_ID} Error");
86
                        }
87

  
88
                        System.Threading.Thread.Sleep(100);
89
                    }
90

  
91
                }
92
            }
93
            catch (Exception ex)
94
            {
95
                Console.WriteLine(ex.ToString());
96
            }
97
            Console.WriteLine("완료");
98
            Console.ReadLine();
99
        }
100

  
101
        static void Write(string Log)
102
        {
103

  
104
        }
105
    }
106
}
FinalServiceV3/KCOM_FinalService/DatabaseLoadTest/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Runtime.CompilerServices;
3
using System.Runtime.InteropServices;
4

  
5
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
6
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7
// 이러한 특성 값을 변경하세요.
8
[assembly: AssemblyTitle("DatabaseLoadTest")]
9
[assembly: AssemblyDescription("")]
10
[assembly: AssemblyConfiguration("")]
11
[assembly: AssemblyCompany("")]
12
[assembly: AssemblyProduct("DatabaseLoadTest")]
13
[assembly: AssemblyCopyright("Copyright ©  2021")]
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("99e36dfb-0c2c-432d-bc33-7cf6d4b947c2")]
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")]
FinalServiceV3/KCOM_FinalService/FinalPDFClient/App.config
1
<?xml version="1.0" encoding="utf-8" ?>
2
<configuration>
3
    <startup> 
4
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5
    </startup>
6
</configuration>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/App.xaml
1
<Application x:Class="FinalPDFClient.App"
2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
             xmlns:local="clr-namespace:FinalPDFClient"
5
             StartupUri="MainWindow.xaml">
6
    <Application.Resources>
7
         
8
    </Application.Resources>
9
</Application>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/App.xaml.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Configuration;
4
using System.Data;
5
using System.Linq;
6
using System.Threading.Tasks;
7
using System.Windows;
8

  
9
namespace FinalPDFClient
10
{
11
    /// <summary>
12
    /// App.xaml에 대한 상호 작용 논리
13
    /// </summary>
14
    public partial class App : Application
15
    {
16
    }
17
}
FinalServiceV3/KCOM_FinalService/FinalPDFClient/FinalPDFClient.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>{DBD7598F-130F-4605-9B11-FE955A59FD4A}</ProjectGuid>
8
    <OutputType>WinExe</OutputType>
9
    <RootNamespace>FinalPDFClient</RootNamespace>
10
    <AssemblyName>FinalPDFClient</AssemblyName>
11
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12
    <FileAlignment>512</FileAlignment>
13
    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14
    <WarningLevel>4</WarningLevel>
15
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16
    <Deterministic>true</Deterministic>
17
  </PropertyGroup>
18
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19
    <PlatformTarget>AnyCPU</PlatformTarget>
20
    <DebugSymbols>true</DebugSymbols>
21
    <DebugType>full</DebugType>
22
    <Optimize>false</Optimize>
23
    <OutputPath>bin\Debug\</OutputPath>
24
    <DefineConstants>DEBUG;TRACE</DefineConstants>
25
    <ErrorReport>prompt</ErrorReport>
26
    <WarningLevel>4</WarningLevel>
27
  </PropertyGroup>
28
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29
    <PlatformTarget>AnyCPU</PlatformTarget>
30
    <DebugType>pdbonly</DebugType>
31
    <Optimize>true</Optimize>
32
    <OutputPath>bin\Release\</OutputPath>
33
    <DefineConstants>TRACE</DefineConstants>
34
    <ErrorReport>prompt</ErrorReport>
35
    <WarningLevel>4</WarningLevel>
36
  </PropertyGroup>
37
  <ItemGroup>
38
    <Reference Include="System" />
39
    <Reference Include="System.Data" />
40
    <Reference Include="System.Xml" />
41
    <Reference Include="Microsoft.CSharp" />
42
    <Reference Include="System.Core" />
43
    <Reference Include="System.Xml.Linq" />
44
    <Reference Include="System.Data.DataSetExtensions" />
45
    <Reference Include="System.Net.Http" />
46
    <Reference Include="System.Xaml">
47
      <RequiredTargetFramework>4.0</RequiredTargetFramework>
48
    </Reference>
49
    <Reference Include="WindowsBase" />
50
    <Reference Include="PresentationCore" />
51
    <Reference Include="PresentationFramework" />
52
  </ItemGroup>
53
  <ItemGroup>
54
    <ApplicationDefinition Include="App.xaml">
55
      <Generator>MSBuild:Compile</Generator>
56
      <SubType>Designer</SubType>
57
    </ApplicationDefinition>
58
    <Page Include="MainWindow.xaml">
59
      <Generator>MSBuild:Compile</Generator>
60
      <SubType>Designer</SubType>
61
    </Page>
62
    <Compile Include="App.xaml.cs">
63
      <DependentUpon>App.xaml</DependentUpon>
64
      <SubType>Code</SubType>
65
    </Compile>
66
    <Compile Include="MainWindow.xaml.cs">
67
      <DependentUpon>MainWindow.xaml</DependentUpon>
68
      <SubType>Code</SubType>
69
    </Compile>
70
    <None Include="Window1.xaml">
71
      <SubType>Designer</SubType>
72
      <Generator>MSBuild:Compile</Generator>
73
    </None>
74
  </ItemGroup>
75
  <ItemGroup>
76
    <Compile Include="Properties\AssemblyInfo.cs">
77
      <SubType>Code</SubType>
78
    </Compile>
79
    <Compile Include="Properties\Resources.Designer.cs">
80
      <AutoGen>True</AutoGen>
81
      <DesignTime>True</DesignTime>
82
      <DependentUpon>Resources.resx</DependentUpon>
83
    </Compile>
84
    <Compile Include="Properties\Settings.Designer.cs">
85
      <AutoGen>True</AutoGen>
86
      <DependentUpon>Settings.settings</DependentUpon>
87
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
88
    </Compile>
89
    <EmbeddedResource Include="Properties\Resources.resx">
90
      <Generator>ResXFileCodeGenerator</Generator>
91
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
92
    </EmbeddedResource>
93
    <None Include="Properties\Settings.settings">
94
      <Generator>SettingsSingleFileGenerator</Generator>
95
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
96
    </None>
97
  </ItemGroup>
98
  <ItemGroup>
99
    <None Include="App.config" />
100
  </ItemGroup>
101
  <ItemGroup>
102
    <ProjectReference Include="..\MarkupToPDF\MarkupToPDF.csproj">
103
      <Project>{a714bd67-8aac-4ed8-8ecf-7853c3549a68}</Project>
104
      <Name>MarkupToPDF</Name>
105
    </ProjectReference>
106
  </ItemGroup>
107
  <ItemGroup>
108
    <PackageReference Include="EntityFramework">
109
      <Version>6.4.4</Version>
110
    </PackageReference>
111
    <PackageReference Include="Markus.EntityModel">
112
      <Version>1.5.0</Version>
113
    </PackageReference>
114
  </ItemGroup>
115
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
116
</Project>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/MainWindow.xaml
1
<Window x:Class="FinalPDFClient.MainWindow"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
        xmlns:local="clr-namespace:FinalPDFClient"
7
        mc:Ignorable="d"
8
        Title="MainWindow" Height="450" Width="800">
9
    <Grid>
10
        <Grid>
11
            <Grid.RowDefinitions>
12
                <RowDefinition Height="Auto"/>
13
                <RowDefinition Height="Auto"/>
14
                <RowDefinition Height="Auto"/>
15
                <RowDefinition Height="*"/>
16
                <RowDefinition Height="Auto"/>
17
            </Grid.RowDefinitions>
18
            <Grid.ColumnDefinitions>
19
                <ColumnDefinition Width="Auto"/>
20
                <ColumnDefinition/>
21
                <ColumnDefinition/>
22
            </Grid.ColumnDefinitions>
23
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
24
                <TextBlock Text="User Id : "/>
25
                <TextBox Name="txtUserId" Width="120" Text="doftech"/>
26
            </StackPanel>
27
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1">
28
                <TextBlock Text="Project NO : "/>
29
                <TextBox Name="txtProject" Width="120"  Text="000000"/>
30
            </StackPanel>
31
            <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
32
                <TextBlock Text="Document ID : "/>
33
                <TextBox Name="txtDocId" Width="120" Text="30000165"/>
34
            </StackPanel>
35
            <Grid  Grid.Row="3" Grid.ColumnSpan="3">
36
                <Grid.ColumnDefinitions>
37
                    <ColumnDefinition Width="Auto"/>
38
                    <ColumnDefinition/>
39
                </Grid.ColumnDefinitions>
40
                <TextBlock Text="Output : "/>
41
                <TextBox Name="txtOutput" Grid.Column="1" Text=""/>
42
            </Grid>
43
            <Button Grid.Row="4" Content="Merged PDF" Margin="2" Width="100" Click="Button_Click"/>
44
            <Button Grid.Row="4" Grid.Column="1" Content="Xaml To String" Margin="2" Width="100" Click="btXamlToString_Click"/>
45
        </Grid>
46
    </Grid>
47
</Window>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/MainWindow.xaml.cs
1
using MarkupToPDF;
2
using Microsoft.Win32;
3
using System;
4
using System.Collections.Generic;
5
using System.IO;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
using System.Windows;
10
using System.Windows.Controls;
11
using System.Windows.Data;
12
using System.Windows.Documents;
13
using System.Windows.Input;
14
using System.Windows.Media;
15
using System.Windows.Media.Imaging;
16
using System.Windows.Navigation;
17
using System.Windows.Shapes;
18

  
19
namespace FinalPDFClient
20
{
21
    /// <summary>
22
    /// MainWindow.xaml에 대한 상호 작용 논리
23
    /// </summary>
24
    public partial class MainWindow : Window
25
    {
26
        public MainWindow()
27
        {
28
            InitializeComponent();
29
        }
30

  
31
        public  void MergedPDF()
32
        {
33

  
34
            System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch();
35
            stopwatch.Start();
36

  
37
            MarkupToPDF.MarkupToPDF markupToPDF = new MarkupToPDF.MarkupToPDF();
38

  
39
            EventHandler<MakeFinalErrorArgs> errorEventHandler = null;
40
            EventHandler<EndFinalEventArgs> endFinalEventHandler = null;
41
            EventHandler<StatusChangedEventArgs> StatusChangedEventHandler = null;
42

  
43
            errorEventHandler = async (snd, evt) =>
44
            {
45
                await this.Dispatcher.InvokeAsync(() =>
46
                {
47
                    txtOutput.Text += evt.Message;
48

  
49
                    markupToPDF.FinalMakeError -= errorEventHandler;
50
                    markupToPDF.EndFinal -= endFinalEventHandler;
51
                    markupToPDF.StatusChanged -= StatusChangedEventHandler;
52
                });
53
            };
54

  
55
            endFinalEventHandler = async (snd, evt) =>
56
            {
57
                await this.Dispatcher.InvokeAsync(() =>
58
                {
59
                    txtOutput.Text += evt.FinalPDFPath + "     " + evt.Error;
60
                    System.Diagnostics.Debug.WriteLine(evt.Message);
61

  
62
                    var sb = new StringBuilder();
63
                    sb.AppendLine(txtOutput.Text);
64
                    sb.AppendLine(new TimeSpan(stopwatch.ElapsedMilliseconds).ToString());
65
                    txtOutput.Text = sb.ToString();
66

  
67
                    markupToPDF.FinalMakeError -= errorEventHandler;
68
                    markupToPDF.EndFinal -= endFinalEventHandler;
69
                    markupToPDF.StatusChanged -= StatusChangedEventHandler;
70
                });
71
            };
72

  
73
            StatusChangedEventHandler = async (snd, evt) =>
74
            {
75
                await this.Dispatcher.InvokeAsync(() => {
76
                    txtOutput.Text += evt.Message + " " + evt.CurrentPage + "  " + evt.Error;
77
                });
78
            };
79

  
80
            markupToPDF.FinalMakeError += errorEventHandler;
81
            markupToPDF.EndFinal += endFinalEventHandler;
82
            markupToPDF.StatusChanged += StatusChangedEventHandler;
83
            try
84
            {
85
                var addResult = markupToPDF.AddFinalPDF(txtProject.Text, txtDocId.Text, txtUserId.Text);
86

  
87
                if (addResult.Success)
88
                {
89
                    markupToPDF.MakeFinalPDF((object)addResult.FinalPDF);
90
                  
91
                }
92
            }
93
            catch (Exception ex)
94
            {
95
                txtOutput.Text = ex.ToString();
96
            }
97
        }
98

  
99
        private void Button_Click(object sender, RoutedEventArgs e)
100
        {
101
             MergedPDF();
102
        }
103

  
104
        private void btXamlToString_Click(object sender, RoutedEventArgs e)
105
        {
106
            OpenFileDialog openFileDialog = new OpenFileDialog();
107

  
108
            openFileDialog.InitialDirectory = "c:\\";
109
            openFileDialog.Filter = "xaml files (*.xaml)|*.txt|All files (*.*)|*.*";
110
            openFileDialog.FilterIndex = 2;
111
            openFileDialog.RestoreDirectory = true;
112

  
113
            if (openFileDialog.ShowDialog() == true)
114
            {
115
                //Read the contents of the file into a stream
116
                var fileStream = openFileDialog.OpenFile();
117

  
118
                using (StreamReader reader = new StreamReader(fileStream))
119
                {
120
                    string fileContent = reader.ReadToEnd();
121

  
122
                    MarkupToPDF.MarkupToPDF markupToPDF = new MarkupToPDF.MarkupToPDF();
123

  
124
                    markupToPDF.AddStamp(fileContent);
125
                }
126
            }
127

  
128
        }
129
    }
130
}
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Resources;
3
using System.Runtime.CompilerServices;
4
using System.Runtime.InteropServices;
5
using System.Windows;
6

  
7
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
8
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
9
// 이러한 특성 값을 변경하세요.
10
[assembly: AssemblyTitle("FinalPDFClient")]
11
[assembly: AssemblyDescription("")]
12
[assembly: AssemblyConfiguration("")]
13
[assembly: AssemblyCompany("")]
14
[assembly: AssemblyProduct("FinalPDFClient")]
15
[assembly: AssemblyCopyright("Copyright ©  2020")]
16
[assembly: AssemblyTrademark("")]
17
[assembly: AssemblyCulture("")]
18

  
19
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 
20
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
21
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
22
[assembly: ComVisible(false)]
23

  
24
//지역화 가능 응용 프로그램 빌드를 시작하려면 다음을 설정하세요.
25
//.csproj 파일에서 <PropertyGroup> 내에 <UICulture>CultureYouAreCodingWith</UICulture>를
26
//설정하십시오. 예를 들어 소스 파일에서 영어(미국)를
27
//사용하는 경우 <UICulture>를 en-US로 설정합니다. 그런 다음 아래
28
//NeutralResourceLanguage 특성의 주석 처리를 제거합니다. 아래 줄의 "en-US"를 업데이트하여
29
//프로젝트 파일의 UICulture 설정과 일치시킵니다.
30

  
31
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32

  
33

  
34
[assembly: ThemeInfo(
35
    ResourceDictionaryLocation.None, //테마별 리소스 사전의 위치
36
                                     //(페이지 또는 응용 프로그램 리소스 사진에
37
                                     // 리소스가 없는 경우에 사용됨)
38
    ResourceDictionaryLocation.SourceAssembly //제네릭 리소스 사전의 위치
39
                                              //(페이지 또는 응용 프로그램 리소스 사진에
40
                                              // 리소스가 없는 경우에 사용됨)
41
)]
42

  
43

  
44
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
45
//
46
//      주 버전
47
//      부 버전 
48
//      빌드 번호
49
//      수정 버전
50
//
51
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
52
// 지정되도록 할 수 있습니다.
53
// [assembly: AssemblyVersion("1.0.*")]
54
[assembly: AssemblyVersion("1.0.0.0")]
55
[assembly: AssemblyFileVersion("1.0.0.0")]
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Properties/Resources.Designer.cs
1
//------------------------------------------------------------------------------
2
// <auto-generated>
3
//     이 코드는 도구를 사용하여 생성되었습니다.
4
//     런타임 버전:4.0.30319.42000
5
//
6
//     파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
7
//     이러한 변경 내용이 손실됩니다.
8
// </auto-generated>
9
//------------------------------------------------------------------------------
10

  
11
namespace FinalPDFClient.Properties
12
{
13

  
14

  
15
    /// <summary>
16
    ///   지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다.
17
    /// </summary>
18
    // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder
19
    // 클래스에서 자동으로 생성되었습니다.
20
    // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여
21
    // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오.
22
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25
    internal class Resources
26
    {
27

  
28
        private static global::System.Resources.ResourceManager resourceMan;
29

  
30
        private static global::System.Globalization.CultureInfo resourceCulture;
31

  
32
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33
        internal Resources()
34
        {
35
        }
36

  
37
        /// <summary>
38
        ///   이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다.
39
        /// </summary>
40
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41
        internal static global::System.Resources.ResourceManager ResourceManager
42
        {
43
            get
44
            {
45
                if ((resourceMan == null))
46
                {
47
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FinalPDFClient.Properties.Resources", typeof(Resources).Assembly);
48
                    resourceMan = temp;
49
                }
50
                return resourceMan;
51
            }
52
        }
53

  
54
        /// <summary>
55
        ///   이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을
56
        ///   재정의합니다.
57
        /// </summary>
58
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59
        internal static global::System.Globalization.CultureInfo Culture
60
        {
61
            get
62
            {
63
                return resourceCulture;
64
            }
65
            set
66
            {
67
                resourceCulture = value;
68
            }
69
        }
70
    }
71
}
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Properties/Resources.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:element name="root" msdata:IsDataSet="true">
64
      <xsd:complexType>
65
        <xsd:choice maxOccurs="unbounded">
66
          <xsd:element name="metadata">
67
            <xsd:complexType>
68
              <xsd:sequence>
69
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
70
              </xsd:sequence>
71
              <xsd:attribute name="name" type="xsd:string" />
72
              <xsd:attribute name="type" type="xsd:string" />
73
              <xsd:attribute name="mimetype" type="xsd:string" />
74
            </xsd:complexType>
75
          </xsd:element>
76
          <xsd:element name="assembly">
77
            <xsd:complexType>
78
              <xsd:attribute name="alias" type="xsd:string" />
79
              <xsd:attribute name="name" type="xsd:string" />
80
            </xsd:complexType>
81
          </xsd:element>
82
          <xsd:element name="data">
83
            <xsd:complexType>
84
              <xsd:sequence>
85
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87
              </xsd:sequence>
88
              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91
            </xsd:complexType>
92
          </xsd:element>
93
          <xsd:element name="resheader">
94
            <xsd:complexType>
95
              <xsd:sequence>
96
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97
              </xsd:sequence>
98
              <xsd:attribute name="name" type="xsd:string" use="required" />
99
            </xsd:complexType>
100
          </xsd:element>
101
        </xsd:choice>
102
      </xsd:complexType>
103
    </xsd:element>
104
  </xsd:schema>
105
  <resheader name="resmimetype">
106
    <value>text/microsoft-resx</value>
107
  </resheader>
108
  <resheader name="version">
109
    <value>2.0</value>
110
  </resheader>
111
  <resheader name="reader">
112
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113
  </resheader>
114
  <resheader name="writer">
115
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
</root>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Properties/Settings.Designer.cs
1
//------------------------------------------------------------------------------
2
// <auto-generated>
3
//     This code was generated by a tool.
4
//     Runtime Version:4.0.30319.42000
5
//
6
//     Changes to this file may cause incorrect behavior and will be lost if
7
//     the code is regenerated.
8
// </auto-generated>
9
//------------------------------------------------------------------------------
10

  
11
namespace FinalPDFClient.Properties
12
{
13

  
14

  
15
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18
    {
19

  
20
        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21

  
22
        public static Settings Default
23
        {
24
            get
25
            {
26
                return defaultInstance;
27
            }
28
        }
29
    }
30
}
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Properties/Settings.settings
1
<?xml version='1.0' encoding='utf-8'?>
2
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
3
  <Profiles>
4
    <Profile Name="(Default)" />
5
  </Profiles>
6
  <Settings />
7
</SettingsFile>
FinalServiceV3/KCOM_FinalService/FinalPDFClient/Window1.xaml
1
    <Grid Name="aaaaaa" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="205" Height="89">
2
        <Grid.Background>
3
            <SolidColorBrush Color="#FFFFFFFF" Opacity="0.1" />
4
        </Grid.Background>
5
        <Rectangle Stretch="Fill" Stroke="#FFFF0000" StrokeThickness="5" StrokeLineJoin="Round" Name="Rectangle" Width="205" Height="89" Canvas.Left="-2.5" Canvas.Top="-2.5" />
6
        <Grid>
7
            <Grid.RowDefinitions>
8
                <RowDefinition Height="*" />
9
                <RowDefinition Height="3.5*" />
10
                <RowDefinition Height="0.5*" />
11
                <RowDefinition Height="2*" />
12
                <RowDefinition Height="*" />
13
            </Grid.RowDefinitions>
14
            <TextBlock Text="APPROVED" FontWeight="ExtraBold" FontSize="30" Foreground="#FFFF0000" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" />
15
            <TextBlock Text="By HYOSUNG" FontWeight="ExtraBold" FontSize="20" Foreground="#FFFF0000" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="3" />
16
        </Grid>
17
    </Grid>
FinalServiceV3/KCOM_FinalService/FinalServiceInstall/FinalServiceInstall.vdproj
1
"DeployProject"
2
{
3
"VSVersion" = "3:800"
4
"ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}"
5
"IsWebType" = "8:FALSE"
6
"ProjectName" = "8:FinalServiceInstall"
7
"LanguageId" = "3:1033"
8
"CodePage" = "3:1252"
9
"UILanguageId" = "3:1033"
10
"SccProjectName" = "8:"
11
"SccLocalPath" = "8:"
12
"SccAuxPath" = "8:"
13
"SccProvider" = "8:"
14
    "Hierarchy"
15
    {
16
        "Entry"
17
        {
18
        "MsmKey" = "8:_0303F251FECA0DEBD3E1375CF38C9916"
19
        "OwnerKey" = "8:_91C544B9DD3542D5B863DC71F3C07A24"
20
        "MsmSig" = "8:_UNDEFINED"
21
        }
22
        "Entry"
23
        {
24
        "MsmKey" = "8:_0303F251FECA0DEBD3E1375CF38C9916"
25
        "OwnerKey" = "8:_268F2BEA99251386D8F2BE723F9EA868"
26
        "MsmSig" = "8:_UNDEFINED"
27
        }
28
        "Entry"
29
        {
30
        "MsmKey" = "8:_183BFCCA701D4CDF82409FB534F24796"
31
        "OwnerKey" = "8:_UNDEFINED"
32
        "MsmSig" = "8:_UNDEFINED"
33
        }
34
        "Entry"
35
        {
36
        "MsmKey" = "8:_268F2BEA99251386D8F2BE723F9EA868"
37
        "OwnerKey" = "8:_91C544B9DD3542D5B863DC71F3C07A24"
38
        "MsmSig" = "8:_UNDEFINED"
... 이 차이점은 표시할 수 있는 최대 줄수를 초과해서 이 차이점은 잘렸습니다.

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)