프로젝트

일반

사용자정보

개정판 6c45db59

ID6c45db591f44365bd67590569f80e52aa0c2ef64
상위 fc4e50f2
하위 ed705a3d

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

autoupdate setup 수정

Change-Id: Ib142366f183244e817361d5a39a1973a63f7d756

차이점 보기:

ConvertService/ServiceBase/ErrorNotice/ErrorNotice.cs
1
using System;
1
using log4net;
2
using Markus.EntityModel;
3
using Markus.Service.Convert.Plugin;
4
using Markus.Service.Extensions;
5
using System;
2 6
using System.Collections.Generic;
7
using System.Data.Entity.Core.Objects;
8
using System.Data.Entity.Infrastructure;
3 9
using System.Linq;
4 10
using System.Text;
5 11
using System.Threading.Tasks;
......
8 14
{
9 15
    public class ErrorNotice : Markus.Service.Convert.Plugin.IPlugin
10 16
    {
11
        public string Name => throw new NotImplementedException();
17
        public string Name => nameof(ErrorNotice);
12 18

  
13
        public string Exception { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
19
        public string Exception { get; set; }
20
        public string gConvertID;
14 21

  
15
        public bool Do(string ConvertID, Dictionary<string, object> Parameters)
22
        private const string MARKUS_ConnectionString_KEY = "MARKUS_ConnectionString";
23
        private const string MARKUS_NoticeStatus_KEY = "NoticeStatus";
24

  
25
        bool IPlugin.Do(string ConvertID, Dictionary<string, object> Parameters)
26
        {
27
            bool result = true;
28

  
29
            log4net.Config.BasicConfigurator.Configure();
30
            log4net.ILog log = log4net.LogManager.GetLogger(typeof(ErrorNotice));
31

  
32
            try
33
            {
34
                if (Parameters.Keys.Count(x => x == MARKUS_ConnectionString_KEY) > 0)
35
                {
36
                    string connectionString = Parameters[MARKUS_ConnectionString_KEY].ToString();
37
                    var noticeStatusArray = Parameters[MARKUS_ConnectionString_KEY].ToString();
38

  
39
                    /// 5를 기본으로 하고 config에 status가 있으면 기본값을 삭제 후 적용
40
                    List<int> status = new List<int> {5};
41

  
42
                    if(!string.IsNullOrWhiteSpace(noticeStatusArray))
43
                    {
44
                        status = new List<int>();
45
                        status.AddRange(noticeStatusArray.Split(';').ToList().ConvertAll(x=>int.Parse(x)));
46
                    }
47

  
48
                    using (var entities = new Markus.EntityModel.MarkusModel(Markus.Service.Extensions.Encrypt.AESEncrypter.Decrypt(connectionString)))
49
                    {
50
                        var items = entities.CONVERTER_DOC.Where(x => x.ID == ConvertID);
51

  
52
                        if (items.Count() > 0)
53
                        {
54
                            var convertItem = items.First();
55

  
56
                            if(status.Contains(convertItem.STATUS))
57
                            {
58
                                SendNotice(convertItem);
59
                            }
60
                        }
61
                        else
62
                        {
63
                            this.Exception = $"Find Not ConvertItem by Id{ConvertID}";
64
                        }
65
                    }
66
                }
67
                else
68
                {
69
                    this.Exception = "MARKUS_ConnectionString SECTION Not Found";
70
                }
71
            }
72

  
73
            catch (Exception ex)
74
            {
75
                log.Error(ex);
76
                this.Exception = ex.ToString();
77
                result = false;
78
            }
79

  
80
            return result;
81
        }
82

  
83
        private void SendNotice(CONVERTER_DOC convertItem)
16 84
        {
17
            
85
            // convertItem.EXCEPTION
86
            //convertItem.STATUS
87
            //((Markus.Message.StatusCodeType)convertItem.STATUS).ToString() 
18 88
        }
19 89
    }
20 90
}
ConvertService/ServiceBase/ErrorNotice/ErrorNotice.csproj
4 4
  <PropertyGroup>
5 5
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 6
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
    <ProjectGuid>{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}</ProjectGuid>
7
    <ProjectGuid>{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}</ProjectGuid>
8 8
    <OutputType>Library</OutputType>
9 9
    <AppDesignerFolder>Properties</AppDesignerFolder>
10 10
    <RootNamespace>ErrorNotice</RootNamespace>
11 11
    <AssemblyName>ErrorNotice</AssemblyName>
12
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13 13
    <FileAlignment>512</FileAlignment>
14 14
    <Deterministic>true</Deterministic>
15 15
  </PropertyGroup>
......
21 21
    <DefineConstants>DEBUG;TRACE</DefineConstants>
22 22
    <ErrorReport>prompt</ErrorReport>
23 23
    <WarningLevel>4</WarningLevel>
24
    <PlatformTarget>x64</PlatformTarget>
24 25
  </PropertyGroup>
25 26
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26 27
    <DebugType>pdbonly</DebugType>
......
31 32
    <WarningLevel>4</WarningLevel>
32 33
  </PropertyGroup>
33 34
  <ItemGroup>
35
    <Reference Include="Markus.EntityModel">
36
      <HintPath>..\packages\MarkusDatabase.1.8.0\lib\net45\Markus.EntityModel.dll</HintPath>
37
    </Reference>
34 38
    <Reference Include="System" />
35 39
    <Reference Include="System.Core" />
36 40
    <Reference Include="System.Xml.Linq" />
......
45 49
    <Compile Include="Properties\AssemblyInfo.cs" />
46 50
  </ItemGroup>
47 51
  <ItemGroup>
52
    <PackageReference Include="EntityFramework">
53
      <Version>6.2.0</Version>
54
    </PackageReference>
55
    <PackageReference Include="EntityFramework.ko">
56
      <Version>6.2.0</Version>
57
    </PackageReference>
58
    <PackageReference Include="log4net">
59
      <Version>2.0.8</Version>
60
    </PackageReference>
61
    <PackageReference Include="Markus.Message">
62
      <Version>1.5.4</Version>
63
    </PackageReference>
64
    <PackageReference Include="MarkusDatabase">
65
      <Version>1.8.0</Version>
66
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
67
      <PrivateAssets>all</PrivateAssets>
68
    </PackageReference>
69
  </ItemGroup>
70
  <ItemGroup>
48 71
    <ProjectReference Include="..\Markus.Service.Convert.IPlugin\Markus.Service.Convert.IPlugin.csproj">
49 72
      <Project>{a5ba7325-379c-4ccb-b156-1704fc2175e3}</Project>
50 73
      <Name>Markus.Service.Convert.IPlugin</Name>
51 74
    </ProjectReference>
52
    <ProjectReference Include="..\Markus.Service.DataBase\Markus.Service.DataBase.csproj">
53
      <Project>{400736fb-92c9-4bc0-b447-e8274103d813}</Project>
54
      <Name>Markus.Service.DataBase</Name>
75
    <ProjectReference Include="..\Markus.Service.Extensions\Markus.Service.Extensions.csproj">
76
      <Project>{5f983789-3e8f-4f9a-a601-138c3a83ca5f}</Project>
77
      <Name>Markus.Service.Extensions</Name>
55 78
    </ProjectReference>
56 79
  </ItemGroup>
57 80
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
ConvertService/ServiceBase/ErrorNotice/Properties/AssemblyInfo.cs
20 20
[assembly: ComVisible(false)]
21 21

  
22 22
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
23
[assembly: Guid("270d92ef-abaf-4524-b851-f8bb80ebf2bf")]
23
[assembly: Guid("77d97ec3-f93e-445a-a585-ffc40acbcf3d")]
24 24

  
25 25
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
26 26
//
ConvertService/ServiceBase/PemssDocumentInfo/packages.config
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<packages>
3 3
  <package id="EntityFramework" version="6.2.0" targetFramework="net45" />
4
  <package id="log4net" version="2.0.8" targetFramework="net45" />
4 5
  <package id="MarkusDatabase" version="1.8.0" targetFramework="net45" developmentDependency="true" />
5 6
</packages>
ConvertService/ServiceBase/ServiceBase.sln
118 118
		{2F7115C0-6414-46DB-B2E5-C941099B7737} = {2F7115C0-6414-46DB-B2E5-C941099B7737}
119 119
	EndProjectSection
120 120
EndProject
121
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ErrorNotice", "ErrorNotice\ErrorNotice.csproj", "{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}"
121
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ErrorNotice", "ErrorNotice\ErrorNotice.csproj", "{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}"
122 122
EndProject
123 123
Global
124 124
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
424 424
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x64.Build.0 = Release|Any CPU
425 425
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x86.ActiveCfg = Release|Any CPU
426 426
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x86.Build.0 = Release|Any CPU
427
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
428
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
429
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|x64.ActiveCfg = Debug|Any CPU
430
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|x64.Build.0 = Debug|Any CPU
431
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|x86.ActiveCfg = Debug|Any CPU
432
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Debug|x86.Build.0 = Debug|Any CPU
433
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
434
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|Any CPU.Build.0 = Release|Any CPU
435
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|x64.ActiveCfg = Release|Any CPU
436
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|x64.Build.0 = Release|Any CPU
437
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|x86.ActiveCfg = Release|Any CPU
438
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF}.Release|x86.Build.0 = Release|Any CPU
427
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
428
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
429
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|x64.ActiveCfg = Debug|Any CPU
430
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|x64.Build.0 = Debug|Any CPU
431
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|x86.ActiveCfg = Debug|Any CPU
432
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Debug|x86.Build.0 = Debug|Any CPU
433
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
434
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|Any CPU.Build.0 = Release|Any CPU
435
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|x64.ActiveCfg = Release|Any CPU
436
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|x64.Build.0 = Release|Any CPU
437
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|x86.ActiveCfg = Release|Any CPU
438
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D}.Release|x86.Build.0 = Release|Any CPU
439 439
	EndGlobalSection
440 440
	GlobalSection(SolutionProperties) = preSolution
441 441
		HideSolutionNode = FALSE
......
447 447
		{F344E7AE-B16E-4736-9816-4BE415418F58} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
448 448
		{2F7115C0-6414-46DB-B2E5-C941099B7737} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
449 449
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
450
		{270D92EF-ABAF-4524-B851-F8BB80EBF2BF} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
450
		{77D97EC3-F93E-445A-A585-FFC40ACBCF3D} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
451 451
	EndGlobalSection
452 452
	GlobalSection(ExtensibilityGlobals) = postSolution
453 453
		SolutionGuid = {CA1BB1E8-1969-4435-A889-37F359B6EAAE}
FinalService/KCOM_FinalService/KCOM_FinalService/Program.cs
19 19
        {
20 20
            get
21 21
            {
22
                return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS");
22
                return AppDomain.CurrentDomain.BaseDirectory;
23
                //.return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS");
23 24
            }
24 25
        }
25 26

  
......
27 28

  
28 29
        public static MethodInfo UploadFinalPDFMethod { get; set; }
29 30
        public static object UploadFinalPDFInst { get; set; }
31
        public static string UploadFinalAssmPath { get; set; }
30 32

  
31 33
        public static MarkusFinalService service;
32 34

  
......
44 46
            if (File.Exists(UploadFinalDllPath))
45 47
            {
46 48
                Assembly asm = Assembly.LoadFrom(UploadFinalDllPath);
49

  
50
                UploadFinalAssmPath = UploadFinalDllPath;
51

  
47 52
                Type _UploadFinalClassType = asm.GetType("UploadFinal.UploadFinal");
48 53

  
49 54
                //Legacy IF
FinalService/KCOM_FinalService/KCOM_FinalService/Remoting/RemFinalPDFStation.cs
290 290
                    {
291 291
                        object[] parameters = new object[] { pdfpath, e.OriginPDFName, e.FinalPDF, soapurl };
292 292

  
293
                        _Logger.Write("Call Upload Final .." + pdfpath + " finalPDFPath : " + e.FinalPDFPath + " FinalPDFRemotePath : " + e.FinalPDFRemotePath + ",CreateUser:" + e.FinalPDF.CREATE_USER_ID + ",CreateUser:" + e.FinalPDF.DOCUMENT_ID + ",pdfname:" + e.OriginPDFName + ",finalPDF ID : " + e.FinalPDF.ID + ",soapUri:" + soapurl,LogLevel.Info);
293
                        _Logger.Write("UploadPDF.dll Path :" + Program.UploadFinalAssmPath,LogLevel.Info);
294 294

  
295
                        KeyValuePair<bool, string> result = (KeyValuePair<bool, string>)(Program.UploadFinalPDFMethod.Invoke(Program.UploadFinalPDFInst, parameters));
295
                        _Logger.Write("Call Upload Final .." + pdfpath + " finalPDFPath : " + e.FinalPDFPath + " FinalPDFRemotePath : " + e.FinalPDFRemotePath + ",CreateUser:" + e.FinalPDF.CREATE_USER_ID + ",CreateUser:" + e.FinalPDF.DOCUMENT_ID + ",pdfname:" + e.OriginPDFName + ",finalPDF ID : " + e.FinalPDF.ID + ",soapUri:" + soapurl,LogLevel.Info);
296
                        
297
                     KeyValuePair<bool, string> result = (KeyValuePair<bool, string>)(Program.UploadFinalPDFMethod.Invoke(Program.UploadFinalPDFInst, parameters));
296 298

  
297 299
                        if (result.Key)
298 300
                        {
FinalService/KCOM_FinalService/UploadFinal/Properties/AssemblyInfo.cs
34 34
// [assembly: AssemblyVersion("1.0.*")]
35 35
[assembly: AssemblyVersion("1.6.0.2")]
36 36
[assembly: AssemblyFileVersion("1.6.0.2")]
37
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
FinalService/KCOM_FinalService/UploadFinal/UploadFinal_Daelim.csproj
72 72
      <Name>MarkupToPDF</Name>
73 73
    </ProjectReference>
74 74
  </ItemGroup>
75
  <ItemGroup>
76
    <PackageReference Include="log4net">
77
      <Version>2.0.11</Version>
78
    </PackageReference>
79
  </ItemGroup>
75 80
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
76 81
  <!-- test
77 82
   To modify your build process, add your task inside one of the targets below and uncomment it. 
FinalService/KCOM_FinalService/UploadFinal/UploadPDF.cs
10 10
using System.Data.SqlClient;
11 11
using KCOMDataModel.DataModel;
12 12
using KCOMDataModel.Common;
13
using log4net;
14

  
13 15
namespace UploadFinal
14 16
{
15 17
    public class UploadFinal
16 18
    {
17
        
19
        public static ILog Logger = null;
20

  
18 21
        public static KeyValuePair<bool, string> UploadFinalPDF(string PdfFilePath, string OriginFileName, FINAL_PDF FinalPDF, string UploadServiceUrl)
19
        {            
22
        {
23
            Logger = LogManager.GetLogger(typeof(UploadFinal));
24

  
20 25
            string _vendorItemId = null;
21 26
            string _objid = null;
22 27
            string _SharepointItemID = null;
......
51 56

  
52 57
                WebClient webClient = new WebClient();
53 58
                string data = string.Empty;
59

  
60
                Logger.Info($"doc Uri :{docurl}");
61

  
54 62
                if (docurl.ToUpper().Contains("VPCS_DOCLIB"))
55 63
                {
56 64
                    string connectionString = "data source=ESB-DB;Initial Catalog=markus;uid=ProjectPortalDBConn;password=ProjectPortalDBConn";
......
85 93
                    sqlConn.Close();
86 94
                    UploadServiceUrl = "http://esb-vpcs-new.daelimplant.com/ProjectPortal/UserControls/DaelimCI2/FinalPDFUpload/UploadVpcsFile.asmx";
87 95

  
96
                    string finalpdfroot = CommonLib.Common.GetConfigString("FinalPDFRootUrl", "URL", "");
97

  
98
                    if (!string.IsNullOrEmpty(finalpdfroot))
99
                    {
100
                        string filename = Path.GetFileName(PdfFilePath);
101
                        PdfFilePath = !string.IsNullOrEmpty(finalpdfroot) ? finalpdfroot + filename : filename;
102
                    }
103

  
104
                    Logger.Info($"UploadServiceUrl :{UploadServiceUrl}");
105

  
88 106
                    data = "<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\" ><soap12:Body><UploadFinalPDF xmlns=\"http://FinalPDFUpload\">"
89 107
                                     + "<ProjectNo>" + FinalPDF.PROJECT_NO + "</ProjectNo>"
90 108
                                     + "<VendorItemID>" + _objid + "</VendorItemID>"
91 109
                                     + "<SlipNumber>" + _slipNO + "</SlipNumber>"
92 110
                                     + "<filePath>" + PdfFilePath + "</filePath>"
93 111
                                     + "<OriginFileName>" + OriginFileName + "</OriginFileName></UploadFinalPDF></soap12:Body></soap12:Envelope>";
94
                                       
112

  
113
                    Logger.Info($"PROJECT_NO  :{FinalPDF.PROJECT_NO}");
114
                    Logger.Info($"FinalPDF.  :{_objid}");
115
                    Logger.Info($"SlipNumber  :{_slipNO}");
116
                    Logger.Info($"filePath  :{PdfFilePath}");
117
                    Logger.Info($"OriginFileName  :{OriginFileName}");
118

  
95 119
                    //WriteLog(data);
96 120
                    webClient.Headers.Add(HttpRequestHeader.ContentType, "application/soap+xml; charset=utf-8");
97 121
                    webClient.Headers.Add("SOAPAction", "http://FinalPDFUpload/UploadFinalPDF");
......
136 160
                }
137 161
                else
138 162
                {
163
                    Logger.Info($"UploadServiceUrl :{UploadServiceUrl}");
139 164
                    // 앙상블+는 파일명만 전달함
165

  
166
                    string finalpdfroot = CommonLib.Common.GetConfigString("FinalPDFRootUrl", "URL", "");
167

  
140 168
                    PdfFilePath = PdfFilePath.Split('/').Last();
141 169

  
170
                    if (PdfFilePath.StartsWith(finalpdfroot))
171
                    {
172
                        PdfFilePath = PdfFilePath.Split('\\').Last();
173
                    }
174

  
142 175
                    data = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ens=\"http://EnsemblePlus.Webservice\"> <soapenv:Header/> <soapenv:Body> <ens:fnFinalPDFCheckInService>"
143 176
                    + "<ens:ProjectNo>" + FinalPDF.PROJECT_NO + "</ens:ProjectNo>"
144 177
                    + "<ens:ObjectId>" + _objid + "</ens:ObjectId>"
......
147 180
                    + "<ens:OriginalFileName>" + OriginFileName + "</ens:OriginalFileName>"
148 181
                    + "</ens:fnFinalPDFCheckInService> </soapenv:Body></soapenv:Envelope>";
149 182

  
183
                    Logger.Info($"PROJECT_NO  :{FinalPDF.PROJECT_NO}");
184
                    Logger.Info($"FinalPDF.  :{_objid}");
185
                    Logger.Info($"SlipNumber  :{_slipNO}");
186
                    Logger.Info($"filePath  :{PdfFilePath}");
187
                    Logger.Info($"OriginFileName  :{OriginFileName}");
188

  
150 189
                    webClient.Headers.Add(HttpRequestHeader.ContentType, "text/xml");
151 190
                    webClient.Headers.Add("SOAPAction", "http://EnsemblePlus.Webservice");
152 191
                    webClient.Encoding = System.Text.Encoding.UTF8;
FinalService/KCOM_FinalService/UploadTest/MainWindow.xaml.cs
32 32
        {
33 33
            try
34 34
            {
35

  
35
                UploadCall2();
36 36
                UploadCall();
37 37
            }
38 38
            catch (Exception ex)
......
46 46
            }
47 47
        }
48 48

  
49
        private void UploadCall2()
50
        {
51
            var final = new FINAL_PDF();
52
            final.DOCUMENT_ID = "2278058250";
53
            final.PROJECT_NO = "150128";
54

  
55
            var result = UploadFinal.UploadFinal.UploadFinalPDF(@"\\172.20.121.220\comment3\finalPDF\tmp776A.pdf", "ONPZ-ORG-PR-8121-0412.002-0000-DDD-001_R0.pdf", final, "");
56
        }
57

  
49 58
        private void UploadCall()
50 59
        { 
51 60
            if(string.IsNullOrEmpty(tbFinalPDFID.Text))
......
87 96
                        {
88 97
                            var file = _docInfoList.First().ORIGINAL_FILE;
89 98

  
99
                            LogWrite("ORIGINAL_FILE Full Url : " + file);
100

  
101

  
90 102
                            var decodeFile = System.Web.HttpUtility.UrlDecode(file);
91 103

  
92
                            if (System.Web.HttpUtility.ParseQueryString(decodeFile).AllKeys.Count(x => x.ToLower() == ("filename").ToLower()) > 0)
93
                            {
94
                                filename = System.Web.HttpUtility.ParseQueryString(decodeFile).Get("filename");
95
                            }
96
                            else
97
                            {
104
                            //if (System.Web.HttpUtility.ParseQueryString(decodeFile).AllKeys.Count(x => x.ToLower() == ("filename").ToLower()) > 0)
105
                            //{
106
                            //    filename = System.Web.HttpUtility.ParseQueryString(decodeFile).Get("filename");
107
                            //}
108
                            //else
109
                            //{
98 110
                                filename = decodeFile.Split('/').Last();
99
                            }
111
                            //}
100 112
                        }
101 113
                    }
102 114

  
KCOM/KCOM.csproj.user
14 14
    <VerifyUploadedFiles>false</VerifyUploadedFiles>
15 15
  </PropertyGroup>
16 16
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
17
    <StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjMwMDAwMTY1IiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJkb2Z0ZWNoIn0=</StartArguments>
17
    <StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjUwMDAwMDEzIiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJkb2Z0ZWNoIn0=</StartArguments>
18 18
  </PropertyGroup>
19 19
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
20 20
    <StartArguments>eyJEb2N1bWVudEl0ZW1JRCI6IjQwMDAwMTQ5IiwiYlBhcnRuZXIiOmZhbHNlLCJDcmVhdGVGaW5hbFBERlBlcm1pc3Npb24iOnRydWUsIk5ld0NvbW1lbnRQZXJtaXNzaW9uIjp0cnVlLCJQcm9qZWN0Tk8iOiIwMDAwMDAiLCJVc2VySUQiOiJhZG1pbiIsIk1vZGUiOjB9</StartArguments>
KCOM/MARKUS.ini
1 1
[Internal]
2
IP=192.168.0.67
2
IP=192.168.0.76
3 3
[External]
4
IP=125.129.196.207
4
IP=192.168.0.76
5 5
[BaseClientAddress]
6
URL=http://192.168.0.67:5979
6
URL=http://192.168.0.76:5978
7 7
[HubAddress]
8
URL=http://192.168.0.67:5100/
8
URL=http://192.168.0.76:5100/
9 9
[UpdateVer64]
10
URL=http://192.168.0.67:5977/TileSource/Version/version_x64.xml
10
URL=http://192.168.0.76:5977/TileSource/Version/version_x64.xml
11 11
[UpdateVer86]
12
URL=http://192.168.0.67:5977/TileSource/Version/version_x86.xml
12
URL=http://192.168.0.76:5977/TileSource/Version/version_x86.xml
13 13
[excelFilePath]
14
URL=http://192.168.0.67:5977/TileSource/Check_Test/CheckList_T.xlsx
14
URL=http://192.168.0.76:5977/TileSource/Check_Test/CheckList_T.xlsx
15 15
[KCOM_Get_FinalImage_Get_PdfImage]
16
URL=http://192.168.0.67:5977/Get_FInalImage/Get_PdfImage.asmx
16
URL=http://192.168.0.76:5977/Get_FInalImage/Get_PdfImage.asmx
17 17
[KCOM_kr_co_devdoftech_cloud_FileUpload]
18
URL=http://192.168.0.67:5977/ImageUpload/FileUpload.asmx
18
URL=http://192.168.0.76:5977/ImageUpload/FileUpload.asmx
19 19
[mainServerImageWebPath]
20
URL=http://192.168.0.67:5977/TileSource/{0}_Tile/{1}/{2}/{3}.png
20
URL=http://192.168.0.76:5978/TileSource/{0}_Tile/{1}/{2}/{3}.png
21 21
[subServerImageWebPath]
22
URL=http://192.168.0.67:5977/TileSource/{0}_Tile/{1}/{2}/{3}.png
22
URL=http://192.168.0.76:5978/TileSource/{0}_Tile/{1}/{2}/{3}.png
23 23
[Debug_BaseClientAddress]
24
URL=http://192.168.0.67:5979
24
URL=http://192.168.0.76:5979
25 25
[HOST_DOMAIN]
26 26
DOMAIN=router.asus.com
27 27
[GetConversionStateFailed]
......
36 36
NAME=DAELIM
37 37
[PortForwarding]
38 38
HUB=5100:5100
39
RESOURCE=5977:5977
39
RESOURCE=5978:5978
40 40
BASE=5979:5979
41 41
[GetImageResourceFailed]
42 42
MSG=7ZW064u5IOusuOyEnOydmCB7MH0gUGFnZSBDb252ZXJ06rCAIOygleyDgeyggeydtOyngCDslYrsirXri4jri6QuIOq0gOumrOyekOyXkOqyjCDrrLjsnZjtlbQg7KO87IS47JqULg==
KCOM/Services/BaseServices.cs
199 199
                        item.FROM_VENDOR = HttpUtility.UrlDecode(item.FROM_VENDOR);
200 200
                    }
201 201
                }
202
                gridViewHistory.ItemsSource = list;
202

  
203
                gridViewHistory.ItemsSource = list.OrderByDescending(x=>x.RevNo);
203 204
            }
204 205
            //TempFile.TempLoad();
205 206
        }
KCOM_API/KCOM_API.csproj
36 36
    <ErrorReport>prompt</ErrorReport>
37 37
    <WarningLevel>4</WarningLevel>
38 38
    <Prefer32Bit>false</Prefer32Bit>
39
    <PlatformTarget>AnyCPU</PlatformTarget>
39
    <PlatformTarget>x64</PlatformTarget>
40 40
    <PublishDatabases>false</PublishDatabases>
41 41
    <IncludeIisSettings>false</IncludeIisSettings>
42 42
    <ExcludeGeneratedDebugSymbol>true</ExcludeGeneratedDebugSymbol>
KCOM_API/Properties/PublishProfiles/FolderProfile.pubxml.user
10 10
  </PropertyGroup>
11 11
  <ItemGroup>
12 12
    <File Include="bin/CommonLib.dll">
13
      <publishTime>10/15/2020 09:18:32</publishTime>
13
      <publishTime>01/04/2021 18:13:09</publishTime>
14 14
    </File>
15 15
    <File Include="bin/CommonLib.pdb">
16 16
      <publishTime>10/15/2020 09:18:32</publishTime>
......
58 58
      <publishTime>09/19/2015 15:28:04</publishTime>
59 59
    </File>
60 60
    <File Include="bin/IFinalPDF.dll">
61
      <publishTime>09/22/2020 10:10:32</publishTime>
61
      <publishTime>01/04/2021 18:13:09</publishTime>
62 62
    </File>
63 63
    <File Include="bin/IFinalPDF.pdb">
64 64
      <publishTime>09/22/2020 10:10:32</publishTime>
65 65
    </File>
66 66
    <File Include="bin/IKCOM.dll">
67
      <publishTime>10/15/2020 09:18:39</publishTime>
67
      <publishTime>01/04/2021 18:13:12</publishTime>
68 68
    </File>
69 69
    <File Include="bin/IKCOM.pdb">
70 70
      <publishTime>10/15/2020 09:18:39</publishTime>
......
76 76
      <publishTime>09/19/2015 15:28:04</publishTime>
77 77
    </File>
78 78
    <File Include="bin/KCOMDataModel.dll">
79
      <publishTime>10/15/2020 09:18:33</publishTime>
79
      <publishTime>01/04/2021 18:13:09</publishTime>
80 80
    </File>
81 81
    <File Include="bin/KCOMDataModel.dll.config">
82 82
      <publishTime>06/08/2020 15:07:57</publishTime>
......
85 85
      <publishTime>10/15/2020 09:18:33</publishTime>
86 86
    </File>
87 87
    <File Include="bin/KCOM_API.dll">
88
      <publishTime>10/15/2020 10:35:28</publishTime>
88
      <publishTime>01/04/2021 18:13:13</publishTime>
89 89
    </File>
90 90
    <File Include="bin/KCOM_API.pdb">
91 91
      <publishTime>10/15/2020 10:35:28</publishTime>
......
220 220
      <publishTime>07/10/2019 14:11:36</publishTime>
221 221
    </File>
222 222
    <File Include="Web.config">
223
      <publishTime>10/15/2020 10:35:28</publishTime>
223
      <publishTime>01/04/2021 18:13:36</publishTime>
224 224
    </File>
225 225
  </ItemGroup>
226 226
</Project>
KCOM_API/Web.Debug.config
3 3
<!-- In case configuration is not the root element, replace it with root element in source configuration file -->
4 4
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
5 5
  <connectionStrings xdt:Transform="Replace">
6
    <add name="ConnectionString" connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
6
    <add name="ConnectionString" connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
7 7
          xdt:Locator="Match(name)" xdt:Transform="SetAttributes"/>
8
    <add name="CIConnectionString" connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
8
    <add name="CIConnectionString" connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
9 9
         xdt:Locator="Match(name)" xdt:Transform="SetAttributes"/>
10 10
  </connectionStrings>
11 11
  <applicationSettings  xdt:Transform="Replace">
KCOM_API/Web.config
11 11
  </configSections>
12 12
  <connectionStrings>
13 13
    <add name="ConnectionString"
14
      connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
14
      connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
15 15
      providerName="System.Data.EntityClient"/>
16 16
    <add name="CIConnectionString"
17
      connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
17
      connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.0.67;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
18 18
      providerName="System.Data.EntityClient"/>
19 19
  </connectionStrings>
20 20
  <!--
MarkusAutoUpdate/NetSparkleUpdater.sln
1 1

2 2
Microsoft Visual Studio Solution File, Format Version 12.00
3 3
# Visual Studio Version 16
4
VisualStudioVersion = 16.0.29403.142
4
VisualStudioVersion = 16.0.30709.132
5 5
MinimumVisualStudioVersion = 10.0.40219.1
6 6
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetSparkle", "src\NetSparkle\NetSparkle.csproj", "{74635A21-2BAD-4522-AB95-E3E5703CD301}"
7 7
EndProject
8 8
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetSparkle.Tools.DSAHelper", "src\NetSparkle.Tools.DSAHelper\NetSparkle.Tools.DSAHelper.csproj", "{B4D6FCB0-1217-4AFA-A2A5-4BA5482876C0}"
9 9
EndProject
10 10
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetSparkle.Samples.NetFramework.WPF", "src\NetSparkle.Samples.NetFramework.WPF\NetSparkle.Samples.NetFramework.WPF.csproj", "{BBE308BB-4096-4E7B-A458-85172F47C497}"
11
	ProjectSection(ProjectDependencies) = postProject
12
		{4F66792B-F3BA-473B-94CA-1B03B65CB524} = {4F66792B-F3BA-473B-94CA-1B03B65CB524}
13
	EndProjectSection
11 14
EndProject
12 15
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetSparkle.Tools.AppCastGenerator", "src\NetSparkle.Tools.AppCastGenerator\NetSparkle.Tools.AppCastGenerator.csproj", "{19F0D329-2127-4788-8AFA-DDEDA4B70F88}"
13 16
EndProject
......
861 864
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Debug|x64.ActiveCfg = Debug|x86
862 865
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Debug|x86.ActiveCfg = Debug|x86
863 866
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Debug|x86.Build.0 = Debug|x86
864
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|Any CPU.ActiveCfg = Release_Daelim|x86
865
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|Any CPU.Build.0 = Release_Daelim|x86
867
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|Any CPU.ActiveCfg = Debug|x64
868
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|Any CPU.Build.0 = Debug|x64
866 869
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|ARM.ActiveCfg = Release|x86
867 870
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|ARM.Build.0 = Release|x86
868 871
		{FC0A7EB0-D847-47EB-ABA3-BBF0701758C9}.Release_Daelim_Test|Mixed Platforms.ActiveCfg = Release|x86
MarkusAutoUpdate/src/NetSparkle.Samples.NetFramework.WPF/MARKUS.ini
1 1
[Internal]
2
IP=10.11.252.3:8975
2
IP=172.20.120.141
3 3
[External]
4
IP=10.11.252.3:8975
4
IP=172.20.120.141
5 5
[BaseClientAddress]
6
URL=http://10.11.252.3:8975
6
URL=http://172.20.120.141:5978
7 7
[HubAddress]
8
URL=http://10.11.252.3:8975/
8
URL=http://172.20.120.141:5100/
9 9
[UpdateVer64]
10
URL=http://10.11.252.3:8975/TileSource/Version/version_x64.xml
10
URL=http://172.20.120.141:5977/TileSource/Version/version_x64.xml
11 11
[UpdateVer86]
12
URL=http://10.11.252.3:8975/TileSource/Version/version_x86.xml
12
URL=http://172.20.120.141:5977/TileSource/Version/version_x86.xml
13 13
[excelFilePath]
14
URL=http://10.11.252.3:8975/TileSource/Check_Test/CheckList_T.xlsx
14
URL=http://172.20.120.141:5977/TileSource/Check_Test/CheckList_T.xlsx
15 15
[KCOM_Get_FinalImage_Get_PdfImage]
16
URL=http://10.11.252.3:8975/Get_FInalImage/Get_PdfImage.asmx
16
URL=http://172.20.120.141:5977/Get_FInalImage/Get_PdfImage.asmx
17 17
[KCOM_kr_co_devdoftech_cloud_FileUpload]
18
URL=http://10.11.252.3:8975/ImageUpload/FileUpload.asmx
18
URL=http://172.20.120.141:5977/ImageUpload/FileUpload.asmx
19 19
[mainServerImageWebPath]
20
URL=http://10.11.252.3:8975/TileSource/{0}_Tile/{1}/{2}/{3}.png
20
URL=http://172.20.120.141:5977/TileSource/{0}_Tile/{1}/{2}/{3}.png
21 21
[subServerImageWebPath]
22
URL=http://10.11.252.3:8975/TileSource/{0}_Tile/{1}/{2}/{3}.png
22
URL=https://ensembleitf.daelim.co.kr/TileSource/{0}_Tile/{1}/{2}/{3}.png
23 23
[Debug_BaseClientAddress]
24
URL=http://10.11.252.3:8975
24
URL=http://172.20.120.141:5978
25 25
[HOST_DOMAIN]
26
DOMAIN=
26
DOMAIN=DAELIM.COM
27 27
[GetConversionStateFailed]
28
MSG=VG9vIE1hbnkgVi9QIEZpbGVzIGFyZSB1cGxvYWRpbmcgaW5zdGFudGFuZW91c2x5LCBUaGlzIFYvUCBmaWxlIGNhbiBub3QgYmUgb3BlbiBub3cuIFBsZWFzZSBmZWVsIGZyZWUgdG8gcmUtb3BlbiB3YWl0IGEgbW9tZW50IGFnYWluIVxuXG7tmITsnqwg7J287Iuc7KCB7Jy866GcIOunjuydgCDslpHsnZggVi9Q6rCAIOuTseuhneuQmOqzoCDsnojslrQg7J20IOusuOyEnOulvCDsl7TrnoztlaAg7IiYIOyXhuyKteuLiOuLpC5cbuyeoOyLnOunjCDquLDri6TroKQg7KO87IugIO2bhCDri6Tsi5wg7Je0656M7ZWY7JesIOyjvOyLnOq4sCDrsJTrno3ri4jri6Q=
28
MSG=VG9vIE1hbnkgVi9QIEZpbGVzIGFyZSB1cGxvYWRpbmcgaW5zdGFudGFuZW91c2x5LCBUaGlzIFYvUCBmaWxlIGNhbiBub3QgYmUgb3BlbiBub3cuIFBsZWFzZSBmZWVsIGZyZWUgdG8gcmUtb3BlbiB3YWl0IGEgbW9tZW50IGFnYWluIVxuXG7tmITsnqwg7J287Iuc7KCB7Jy866GcIOunjuydgCDslpHsnZggVi9Q6rCAIOuTseuhneuQmOqzoCDsnojslrQg7J20IOusuOyEnOulvCDsl7TrnoztlaAg7IiYIOyXhuyKteuLiOuLpC5cbuyeoOyLnOunjCDquLDri6TroKQg7KO87IugIO2bhCDri6Tsi5wg7Je0656M7ZWY7JesIOyjvOyLnOq4sCDrsJTrno3ri4jri6RcblxuQ29udGFjdCBQb2ludCA6IFlPVSwgU3VuZy1IbyAoMDItMzY5LTU2NDMpXHJcbuyXsOudveyymDog7Jyg7ISx7Zi4IOu2gOyepSgwMiAtIDM2OSAtIDU2MzQp
29 29
[SetFinalPDFError]
30 30
MSG=7LWc7KKFIO2MjOydvOydhCDrp4zrk5zripTrjbAg66y47KCc6rCAIOuwnOyDne2VmOyYgOyKteuLiOuLpA==
31 31
[SetFinalPDFSuccess]
32
MSG=7LWc7KKFIO2MjOydvCDsg53shLEg7KSR7J6F64uI64ukLiDrrLjshJzqtIDrpqzsi5zsiqTthZzsnYQg7ZmV7J247ZW07KO87IS47JqU
32
MSG=RmluYWwgUERGIOyDneyEsSDspJEg7J6F64uI64ukLiDsmYTro4wg65CY66m0ICBPdXRsb29rIOyVjOumvCDrqZTsnbwg67Cc7IahIOuQqeuLiOuLpC4gXHJcbuyeoOyLnOunjCDquLDri6TroKQg7KO87IS47JqULg==
33 33
[SetThumbnail]
34 34
WIDTH=100
35 35
[Site]
......
37 37
[PortForwarding]
38 38
HUB=5100:5100
39 39
RESOURCE=5977:5977
40
BASE=5979:5979
40
BASE=5978:5978
41 41
[GetImageResourceFailed]
42
MSG=7ZW064u5IOusuOyEnOydmCB7MH0gUGFnZSBDb252ZXJ06rCAIOygleyDgeyggeydtOyngCDslYrsirXri4jri6QuIOq0gOumrOyekOyXkOqyjCDrrLjsnZjtlbQg7KO87IS47JqULg==
42
MSG=7ZW064u5IOusuOyEnOydmCB7MH0gUGFnZSBDb252ZXJ06rCAIOygleyDgeyggeydtOyngCDslYrsirXri4jri6QuIOq0gOumrOyekOyXkOqyjCDrrLjsnZjtlbQg7KO87IS47JqULg==
MarkusAutoUpdate/src/NetSparkle.Samples.NetFramework.WPF/Markus.AppUpdate.ini
1
#SNI APP_CAST address
1
#daelim APP_CAST address
2 2

  
3 3
[APP_CAST]
4
URI = http://10.11.252.3:8975/MarkusUpdate/appcast.xml
5
InstallPath = 
4
URI = http://172.20.120.141:5977/MarkusUpdate/appcast.xml
MarkusAutoUpdate/src/NetSparkle.Samples.NetFramework.WPF/NetSparkle_Ed25519.pub
1
rd3UjM9xZusZZhuzo/61FKxVAFvimzJvFBMuL7b8s7Q=
1
O4Ivb6u1G6uIgZvvkbHjXXk2AM62w+0lsC8+iagSQaE=
appCast_HS_x86.bat
1
@echo off
2
rem datetime stamp file name
3

  
4
@REM use FOR /F to 'break out' the components of %DATE% and %TIME%, assuming 'yyyy/mm/dd' format date i.e.
5

  
6
for /F "tokens=1-6* delims=.:-/ " %%i IN ("%DATE% %TIME%") DO Set "YYYY=%%i"& Set "MM=%%j"& Set "DD=%%k"& Set "HH=%%l"& Set "MI=%%m"& Set "SS=%%n"
7

  
8
@REM Switch the year and day if appropriate
9

  
10
IF NOT "X%DD:~2%" == "X" Set "YYYY=%DD%"& Set "DD=%YYYY%"
11

  
12
Set "TimeStamp=%YYYY%%MM%%DD%%HH%%MI%%SS%"
13

  
14
rem datetime stamp file name
15

  
16
rem version
17

  
18
set hostbaseUrl=http://10.11.252.3:8975/MarkusUpdate/
19
set updateVersion=%1
20

  
21
IF [%hostbaseUrl%]==[] goto :ERROR
22
if [%updateVersion%]==[] goto :ERROR
23

  
24
echo "Update Version %updateVersion%"
25

  
26
rem set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast\%TimeStamp%
27
set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast_HS\
28
SET MARKUS_PUBLISH_PATH=%cd%\Setup\Release_Default
29

  
30
echo "current  : %current_dir%"
31
echo "APPCAST PUBLISH PATH : %APPCAST_PUBLISH_PATH%"
32

  
33
IF NOT EXIST %APPCAST_PUBLISH_PATH%\. MKDIR %APPCAST_PUBLISH_PATH%
34

  
35
IF "%2"=="" GOTO Continue
36

  
37
IF NOT EXIST %LocalAppData%\netsparkle\NetSparkle_Ed25519.pub (
38
echo "generate-keys pass"
39
del %LocalAppData%\netsparkle\*.* /q
40
	rem .\AppCast\generate_appcast.exe --key-path %APPCAST_PUBLISH_PATH%Keys
41
	.\AppCast\generate_appcast.exe --generate-keys
42
)
43

  
44

  
45
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
46
set SolutionPath=%cd%
47
SET SIGNPATH=%SolutionPath%\Sign\www.doftech.co.kr.pfx
48

  
49
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\*.exe
50
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\Plugin\*.exe
51

  
52
start %APPCAST_PUBLISH_PATH%
53

  
54
:Continue 
55

  
56
xcopy /s %cd%\INI\MARKUS_HyoSung.ini %MARKUS_PUBLISH_PATH%\MARKUS.* /Y /F
57
Xcopy %cd%\Accessories\* %APPCAST_PUBLISH_PATH% /I /E /S /Y /F 
58
   
59
.\AppCast\generate_appcast.exe -u %hostbaseUrl% -p %cd%\ChangeLog -a %APPCAST_PUBLISH_PATH% -e * -b %MARKUS_PUBLISH_PATH% -o windows -n Markus -x -v %updateVersion%
60

  
61
REM for /R %MARKUS_PUBLISH_PATH%\ %%f in (*.*) do (
62
REM    echo "signature %%f"
63
REM     .\AppCast\generate_appcast.exe --generate-signature %%f
64
    REM .\AppCast\generate_appcast.exe --verify %%f --signature %base_64_signature%
65
REM )
66

  
67
:ERROR
68
echo arg1 exits
69
echo ex : appCast.bat http://hostname:port x.x.x
appCast_doftech.bat
1
@echo off
2
rem datetime stamp file name
3

  
4
@REM use FOR /F to 'break out' the components of %DATE% and %TIME%, assuming 'yyyy/mm/dd' format date i.e.
5

  
6
for /F "tokens=1-6* delims=.:-/ " %%i IN ("%DATE% %TIME%") DO Set "YYYY=%%i"& Set "MM=%%j"& Set "DD=%%k"& Set "HH=%%l"& Set "MI=%%m"& Set "SS=%%n"
7

  
8
@REM Switch the year and day if appropriate
9

  
10
IF NOT "X%DD:~2%" == "X" Set "YYYY=%DD%"& Set "DD=%YYYY%"
11

  
12
Set "TimeStamp=%YYYY%%MM%%DD%%HH%%MI%%SS%"
13

  
14
rem datetime stamp file name
15

  
16
rem version
17

  
18
set hostbaseUrl=http://172.20.120.141:5977/MarkusUpdate/
19
set updateVersion=%1
20

  
21
IF [%hostbaseUrl%]==[] goto :ERROR
22
if [%updateVersion%]==[] goto :ERROR
23

  
24
echo "Update Version %updateVersion%"
25

  
26
rem set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast\%TimeStamp%
27
set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast_Doftech\
28
SET MARKUS_PUBLISH_PATH=%cd%\Setup\Release_Default
29

  
30
echo "current  : %current_dir%"
31
echo "APPCAST PUBLISH PATH : %APPCAST_PUBLISH_PATH%"
32

  
33
IF NOT EXIST %APPCAST_PUBLISH_PATH%\. MKDIR %APPCAST_PUBLISH_PATH%
34

  
35
IF "%2"=="" GOTO Continue
36

  
37
IF NOT EXIST %LocalAppData%\netsparkle\NetSparkle_Ed25519.pub (
38
echo "generate-keys pass"
39
del %LocalAppData%\netsparkle\*.* /q
40
	rem .\AppCast\generate_appcast.exe --key-path %APPCAST_PUBLISH_PATH%Keys
41
	.\AppCast\generate_appcast.exe --generate-keys
42
)
43

  
44
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
45
set SolutionPath=%cd%
46
SET SIGNPATH=%SolutionPath%\Sign\www.doftech.co.kr.pfx
47

  
48
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\*.exe
49
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\Plugin\*.exe
50

  
51
start %APPCAST_PUBLISH_PATH%
52

  
53
:Continue 
54

  
55
xcopy /s %cd%\INI\MARKUS_DAELIM_test.ini %MARKUS_PUBLISH_PATH%\MARKUS.*  /Y /F
56

  
57
Xcopy %cd%\Accessories\* %APPCAST_PUBLISH_PATH% /I /E /S /Y /F 
58
   
59

  
60
.\AppCast\generate_appcast.exe -u %hostbaseUrl% -p %cd%\ChangeLog -a %APPCAST_PUBLISH_PATH% -e * -b %MARKUS_PUBLISH_PATH% -o windows -n Markus -x -v %updateVersion%
61

  
62

  
63
:ERROR
64
echo arg1 arg2 exits
65
echo ex : appCast.bat http://hostname:port x.x.x

내보내기 Unified diff

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