개정판 b265df51
dev issue #000 : http://devdoftech.co.kr/c/DTIPID/+/1247/1/DTI_PID/SPPIDConverter/AutoModeling.cs Review 확인 및 수정.
Change-Id: I35d184b92b187828020f7b1822494b542ddacb9e
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
36 | 36 |
|
37 | 37 |
public string DocumentLabelText { get; set; } |
38 | 38 |
|
39 |
int EquipCount; |
|
40 |
int SymbolCount; |
|
41 |
int LineCount; |
|
42 |
int NoteCount; |
|
43 |
int TextCount; |
|
44 |
int EndBreakCount; |
|
45 |
int LineNumberCount; |
|
46 |
|
|
47 | 39 |
int CurrentCount; |
48 |
int AllCount; |
|
49 | 40 |
|
50 | 41 |
List <Tuple<string, Line, Line>> BranchLines = new List<Tuple<string, Line, Line>>(); |
51 | 42 |
public AutoModeling(SPPID_Document document, dynamic application, Ingr.RAD2D.Application radApp) |
... | ... | |
56 | 47 |
this._ETCSetting = ETCSetting.GetInstance(); |
57 | 48 |
} |
58 | 49 |
|
59 |
private void ClacProgressCount()
|
|
50 |
private int ClacProgressCount()
|
|
60 | 51 |
{ |
52 |
int EquipCount = 0; |
|
53 |
int SymbolCount = 0; |
|
54 |
int LineCount = 0; |
|
55 |
int NoteCount = 0; |
|
56 |
int TextCount = 0; |
|
57 |
int EndBreakCount = 0; |
|
58 |
int LineNumberCount = 0; |
|
59 |
|
|
61 | 60 |
EquipCount = document.Equipments.Count; |
62 | 61 |
SymbolCount = document.SYMBOLS.Count; |
63 | 62 |
SymbolCount = SymbolCount * 3; |
... | ... | |
80 | 79 |
LineNumberCount = document.LINENUMBERS.Count; |
81 | 80 |
LineNumberCount = LineNumberCount * 2; |
82 | 81 |
|
83 |
AllCount = EquipCount + SymbolCount + LineCount + NoteCount + TextCount + EndBreakCount;
|
|
82 |
return EquipCount + SymbolCount + LineCount + NoteCount + TextCount + EndBreakCount;
|
|
84 | 83 |
} |
85 | 84 |
|
86 | 85 |
public void Run() |
... | ... | |
115 | 114 |
if (maxX != 0 && maxY != 0) |
116 | 115 |
{ |
117 | 116 |
document.SetSPPIDLocation(maxX, maxY); |
118 |
ClacProgressCount(); |
|
117 |
int AllCount = ClacProgressCount();
|
|
119 | 118 |
|
120 | 119 |
SplashScreenManager.ShowForm(typeof(SPPIDSplashScreen), true, true); |
121 | 120 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetParent, (IntPtr)radApp.HWnd); |
내보내기 Unified diff