프로젝트

일반

사용자정보

개정판 96e2815b

ID96e2815b4cb39195eef0045fad451db6e20b3b59
상위 707d6bae
하위 87b8f3df

이지연이(가) 5년 이상 전에 추가함

issue #000: final pdf copy path 경로 얻어오는 부분 수정

Change-Id: Ia024ad1ae69ad6a397b2c565b31488dbe82a87b5

차이점 보기:

FinalService/KCOM_FinalService/KCOM_FinalService/Properties/Settings.Designer.cs
150 150
        
151 151
        [global::System.Configuration.UserScopedSettingAttribute()]
152 152
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
153
        [global::System.Configuration.DefaultSettingValueAttribute("D:\\Develop\\Ensemble\\{0}_app\\VPCS_DOCLIB\\{1}\\{2}\\ToVendor\\")]
153
        [global::System.Configuration.DefaultSettingValueAttribute("D:\\\\Develop\\\\Ensemble\\\\{0}_app\\\\VPCS_DOCLIB\\\\{1}\\\\{2}\\\\ToVendor\\\\")]
154 154
        public string saveFileFolder {
155 155
            get {
156 156
                return ((string)(this["saveFileFolder"]));
FinalService/KCOM_FinalService/KCOM_FinalService/Properties/Settings.settings
33 33
      <Value Profile="(Default)">D:\FinalPDF\HtmlFile\FinalPdfNotice_TR.html</Value>
34 34
    </Setting>
35 35
    <Setting Name="saveFileFolder" Type="System.String" Scope="User">
36
      <Value Profile="(Default)">D:\Develop\Ensemble\{0}_app\VPCS_DOCLIB\{1}\{2}\ToVendor\</Value>
36
      <Value Profile="(Default)">D:\\Develop\\Ensemble\\{0}_app\\VPCS_DOCLIB\\{1}\\{2}\\ToVendor\\</Value>
37 37
    </Setting>
38 38
    <Setting Name="resultFileFolder" Type="System.String" Scope="User">
39 39
      <Value Profile="(Default)">http://cloud.devdoftech.co.kr:5977/FinalPDF/{0}_app/VPCS_DOCLIB/{1}/{2}/ToVendor/{3}</Value>
FinalService/KCOM_FinalService/KCOM_FinalService/Remoting/RemFinalPDFStation.cs
1 1
using IFinalPDF;
2 2
using KCOM_FinalService.Common;
3
using KCOMDataModel.Common;
3 4
using KCOMDataModel.DataModel;
4 5
using System;
5 6
using System.Collections.Generic;
......
213 214
                    {
214 215
                        System.IO.Directory.CreateDirectory(saveFolder);
215 216
                    }
216

  
217
                    sendReqLog("saveFolder", saveFolder);
217 218
                    System.IO.File.Copy(e.FinalPDFPath, saveFolder + e.OriginPDFName, true);
218
                    using (KCOMDataModel.DataModel.CIEntities _entity = new KCOMDataModel.DataModel.CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(_item.PROJECT_NO).ToString()))
219

  
220
                    using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(_item.PROJECT_NO).ToString()))
219 221
                    {
220 222
                        var item = _entity.DOCUMENT_ITEM.Where(d => d.DOCUMENT_ID == _item.DOCUMENT_ID).FirstOrDefault();
221 223
                        ///TODO: RESULT FILE 경로 위치를 configuration으로 빼주세요
222 224
                        item.RESULT_FILE = String.Format(Properties.Settings.Default.resultFileFolder, _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID, e.OriginPDFName);
225
                        //@"http://cloud.devdoftech.co.kr:5977/FinalPDF/{0}_app/VPCS_DOCLIB/{1}/{2}/ToVendor/{3}"
223 226
                        sendReqLog("RESULT_FILE_PATH", item.RESULT_FILE);
224 227
                        _entity.SaveChanges();
225 228
                        SetFinalState(_item.ID, FinalStatus.Success);
FinalService/KCOM_FinalService/KCOM_FinalService/app.config
38 38
                <value>D:\FinalPDF\HtmlFile\FinalPdfNotice_TR.html</value>
39 39
            </setting>
40 40
            <setting name="saveFileFolder" serializeAs="String">
41
                <value>D:\Develop\Ensemble\{0}_app\VPCS_DOCLIB\{1}\{2}\ToVendor\</value>
41
                <value>D:\\Develop\\Ensemble\\{0}_app\\VPCS_DOCLIB\\{1}\\{2}\\ToVendor\\</value>
42 42
            </setting>
43 43
            <setting name="resultFileFolder" serializeAs="String">
44 44
                <value>http://cloud.devdoftech.co.kr:5977/FinalPDF/{0}_app/VPCS_DOCLIB/{1}/{2}/ToVendor/{3}</value>
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs
1122 1122
                    ///TODO : 복사할 경로를 configuration으로 빼주세요
1123 1123
                    //File.Move(FinalPDFPath.FullName, @"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf"));
1124 1124
                    //FinalPDFPath = new FileInfo(@"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf"));
1125
                    StringBuilder PDFMovePath = new StringBuilder(255);
1126
                    GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 32, Path.Combine(AppDataFolder, "FinalService.ini"));
1125
                    StringBuilder PDFMovePath = new StringBuilder(512);
1126
                    GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 512, Path.Combine(AppDataFolder, "FinalService.ini"));
1127 1127
                    File.Move(FinalPDFPath.FullName, PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf"));
1128 1128
                    FinalPDFPath = new FileInfo(PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf"));
1129 1129

  

내보내기 Unified diff

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