프로젝트

일반

사용자정보

개정판 3391fcfa

ID3391fcfa503c1fcce1d32e1b499cd4c244d19eb3
상위 b6c247d1
하위 873b1379

김태성이(가) 5달 전에 추가함

issue #000 final pdf 누락 파일 추가

Change-Id: I864e56380e8850dd5df9f3b81439c40214a4be6e

차이점 보기:

FinalService/KCOM_FinalService/KCOM_FinalService/CreateConvertPath.cs
1
using System;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
7

  
8
namespace KCOM_FinalService
9
{
10
    public static class CreateConvertPath
11
    {
12
        public static string Get(string BaseStoragePath, string ProjectNo, string DocumentID)
13
        {
14
            Int64 outValue = 0;
15
            if (Int64.TryParse(DocumentID, out outValue))
16
            {
17
                return GetWhenInt(BaseStoragePath, ProjectNo, DocumentID);
18
            }
19
            else
20
            {
21
                return GetWhenString(BaseStoragePath, ProjectNo, DocumentID);
22
            }
23

  
24
        }
25

  
26
        private static string GetWhenString(string BaseStoragePath, string ProjectNo, string DocumentID)
27
        {
28
            return Path.Combine(BaseStoragePath, ProjectNo + "_Tile", DocumentID.Substring(0, 5).ToString(), DocumentID);
29
        }
30

  
31
        private static string GetWhenInt(string BaseStoragePath, string ProjectNo, string DocumentID)
32
        {
33
            return Path.Combine(BaseStoragePath, ProjectNo + "_Tile", (System.Convert.ToInt64(DocumentID) / 100).ToString(), DocumentID);
34
        }
35
    }
36
}
FinalService/KCOM_FinalService/MarkupToPDF/backgroudTest.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace MarkupToPDF
8
{
9

  
10
    public class backgroudTest
11
    {
12
        public backgroudTest()
13
        {
14

  
15
        }
16

  
17
        public void start()
18
        {
19
            for (int i = 0; i < 10; i++)
20
            {
21
                System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ThreadStart(Work));
22
                thread.Start();
23
            }
24
        }
25

  
26
        public void Work()
27
        {
28
            while(true)
29
            {
30
                System.Windows.UIElement uIElement = new System.Windows.UIElement();
31
                uIElement.Arrange(new System.Windows.Rect(10, 10,100,100));
32
                uIElement.Measure(new System.Windows.Size(100 * 0.1, 100 * 0.1));
33
                Console.WriteLine(uIElement.RenderSize);
34

  
35
                System.Threading.Thread.SpinWait(3);
36
            }
37
        }
38
    }
39
}

내보내기 Unified diff

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