hytos / DTI_PID / SPPIDConverter / Drawing.vb @ 47a4970e
이력 | 보기 | 이력해설 | 다운로드 (14.6 KB)
1 |
Imports SPPIDConverter |
---|---|
2 |
|
3 |
Public Class Drawing |
4 |
|
5 |
Private _DWGNAME As String = "" |
6 |
Private _SIZE As String = "" |
7 |
Private _UNIT As String = "" |
8 |
Private _LINE_NO As List(Of Line_no) |
9 |
Private _TRIM_LINE_NO As List(Of Line_no) |
10 |
Private _EQP_NO As List(Of Eqp_no) |
11 |
|
12 |
|
13 |
'' 추가 수정 중 |
14 |
Private _SYMBOLS As List(Of Symbol) |
15 |
Private _LINES As List(Of Line) |
16 |
Private _LINENUMBERS As List(Of LineNumber) |
17 |
Private _TRIMLINES As List(Of LineNumber) |
18 |
'' |
19 |
|
20 |
|
21 |
Public Property DwgName() As String |
22 |
Get |
23 |
Return _DWGNAME |
24 |
End Get |
25 |
Set(value As String) |
26 |
_DWGNAME = value |
27 |
End Set |
28 |
End Property |
29 |
|
30 |
Public Property Size() As String |
31 |
Get |
32 |
Return _SIZE |
33 |
End Get |
34 |
Set(value As String) |
35 |
_SIZE = value |
36 |
End Set |
37 |
End Property |
38 |
|
39 |
Public Property Unit() As String |
40 |
Get |
41 |
Return _UNIT |
42 |
End Get |
43 |
Set(value As String) |
44 |
_UNIT = value |
45 |
End Set |
46 |
End Property |
47 |
|
48 |
Public Property Line_nos As List(Of Line_no) |
49 |
Get |
50 |
Return _LINE_NO |
51 |
End Get |
52 |
Set(value As List(Of Line_no)) |
53 |
_LINE_NO = value |
54 |
End Set |
55 |
End Property |
56 |
|
57 |
Public Property TrimLine_nos As List(Of Line_no) |
58 |
Get |
59 |
Return _TRIM_LINE_NO |
60 |
End Get |
61 |
Set(value As List(Of Line_no)) |
62 |
_TRIM_LINE_NO = value |
63 |
End Set |
64 |
End Property |
65 |
|
66 |
Public Property Eqp_nos As List(Of Eqp_no) |
67 |
Get |
68 |
Return _EQP_NO |
69 |
End Get |
70 |
Set(value As List(Of Eqp_no)) |
71 |
_EQP_NO = value |
72 |
End Set |
73 |
End Property |
74 |
|
75 |
Public Property LINES As List(Of Line) |
76 |
Get |
77 |
Return _LINES |
78 |
End Get |
79 |
Set(value As List(Of Line)) |
80 |
_LINES = value |
81 |
End Set |
82 |
End Property |
83 |
|
84 |
Public Property LINENUMBERS As List(Of LineNumber) |
85 |
Get |
86 |
Return _LINENUMBERS |
87 |
End Get |
88 |
Set(value As List(Of LineNumber)) |
89 |
_LINENUMBERS = value |
90 |
End Set |
91 |
End Property |
92 |
|
93 |
Public Property SYMBOLS As List(Of Symbol) |
94 |
Get |
95 |
Return _SYMBOLS |
96 |
End Get |
97 |
Set(value As List(Of Symbol)) |
98 |
_SYMBOLS = value |
99 |
End Set |
100 |
End Property |
101 |
|
102 |
Public Property TRIMLINES As List(Of LineNumber) |
103 |
Get |
104 |
Return _TRIMLINES |
105 |
End Get |
106 |
Set(value As List(Of LineNumber)) |
107 |
_TRIMLINES = value |
108 |
End Set |
109 |
End Property |
110 |
End Class |
111 |
|
112 |
|
113 |
Public Class Line_no |
114 |
Private _UID As String = "" |
115 |
Private _TEXT As String = "" |
116 |
Private _LOCATION As String = "" |
117 |
Private _ANGLE As String = "" |
118 |
Private _SYSTEMPATH As String = "" |
119 |
|
120 |
Private _Line_Dt As DataTable |
121 |
Private _Symbol_Dt As DataTable |
122 |
Private _Attribute_Dt As DataTable |
123 |
|
124 |
Private _Line As List(Of Line) |
125 |
Private _Symbol As List(Of Symbol) |
126 |
Private _Attribute As List(Of Attribute) |
127 |
|
128 |
Public Property Uid() As String |
129 |
Get |
130 |
Return _UID |
131 |
End Get |
132 |
Set(value As String) |
133 |
_UID = value |
134 |
End Set |
135 |
End Property |
136 |
|
137 |
Public Property Text() As String |
138 |
Get |
139 |
Return _TEXT |
140 |
End Get |
141 |
Set(value As String) |
142 |
_TEXT = value |
143 |
End Set |
144 |
End Property |
145 |
|
146 |
Public Property Location() As String |
147 |
Get |
148 |
Return _LOCATION |
149 |
End Get |
150 |
Set(value As String) |
151 |
_LOCATION = value |
152 |
End Set |
153 |
End Property |
154 |
|
155 |
Public Property Angle() As String |
156 |
Get |
157 |
Return _ANGLE |
158 |
End Get |
159 |
Set(value As String) |
160 |
_ANGLE = value |
161 |
End Set |
162 |
End Property |
163 |
|
164 |
Public Property SystemPath() As String |
165 |
Get |
166 |
Return _SYSTEMPATH |
167 |
End Get |
168 |
Set(value As String) |
169 |
_SYSTEMPATH = value |
170 |
End Set |
171 |
End Property |
172 |
|
173 |
Public Property Dt_Line As DataTable |
174 |
Get |
175 |
Return _Line_Dt |
176 |
End Get |
177 |
Set(value As DataTable) |
178 |
_Line_Dt = value |
179 |
End Set |
180 |
End Property |
181 |
|
182 |
Public Property Dt_Symbol As DataTable |
183 |
Get |
184 |
Return _Symbol_Dt |
185 |
End Get |
186 |
Set(value As DataTable) |
187 |
_Symbol_Dt = value |
188 |
End Set |
189 |
End Property |
190 |
|
191 |
Public Property Dt_Attribute As DataTable |
192 |
Get |
193 |
Return _Attribute_Dt |
194 |
End Get |
195 |
Set(value As DataTable) |
196 |
_Attribute_Dt = value |
197 |
End Set |
198 |
End Property |
199 |
|
200 |
Public Property Line As List(Of Line) |
201 |
Get |
202 |
Return _Line |
203 |
End Get |
204 |
Set(value As List(Of Line)) |
205 |
_Line = value |
206 |
End Set |
207 |
End Property |
208 |
|
209 |
Public Property Symbol As List(Of Symbol) |
210 |
Get |
211 |
Return _Symbol |
212 |
End Get |
213 |
Set(value As List(Of Symbol)) |
214 |
_Symbol = value |
215 |
End Set |
216 |
End Property |
217 |
|
218 |
Public Property Attribute As List(Of Attribute) |
219 |
Get |
220 |
Return _Attribute |
221 |
End Get |
222 |
Set(value As List(Of Attribute)) |
223 |
_Attribute = value |
224 |
End Set |
225 |
End Property |
226 |
|
227 |
End Class |
228 |
Public Class Eqp_no |
229 |
Private _UID As String = "" |
230 |
Private _TEXT As String = "" |
231 |
Private _LOCATION As String = "" |
232 |
Private _ANGLE As String = "" |
233 |
Private _SYSTEMPATH As String = "" |
234 |
|
235 |
Private _Eqp_Dt As DataTable |
236 |
Private _Attribute_Dt As DataTable |
237 |
|
238 |
|
239 |
Public Property Uid() As String |
240 |
Get |
241 |
Return _UID |
242 |
End Get |
243 |
Set(value As String) |
244 |
_UID = value |
245 |
End Set |
246 |
End Property |
247 |
|
248 |
Public Property Text() As String |
249 |
Get |
250 |
Return _TEXT |
251 |
End Get |
252 |
Set(value As String) |
253 |
_TEXT = value |
254 |
End Set |
255 |
End Property |
256 |
|
257 |
Public Property Location() As String |
258 |
Get |
259 |
Return _LOCATION |
260 |
End Get |
261 |
Set(value As String) |
262 |
_LOCATION = value |
263 |
End Set |
264 |
End Property |
265 |
|
266 |
Public Property Angle() As String |
267 |
Get |
268 |
Return _ANGLE |
269 |
End Get |
270 |
Set(value As String) |
271 |
_ANGLE = value |
272 |
End Set |
273 |
End Property |
274 |
|
275 |
Public Property SystemPath() As String |
276 |
Get |
277 |
Return _SYSTEMPATH |
278 |
End Get |
279 |
Set(value As String) |
280 |
_SYSTEMPATH = value |
281 |
End Set |
282 |
End Property |
283 |
Public Property Dt_Equipment As DataTable |
284 |
Get |
285 |
Return _Eqp_Dt |
286 |
End Get |
287 |
Set(value As DataTable) |
288 |
_Eqp_Dt = value |
289 |
End Set |
290 |
End Property |
291 |
|
292 |
Public Property Dt_Attribute As DataTable |
293 |
Get |
294 |
Return _Attribute_Dt |
295 |
End Get |
296 |
Set(value As DataTable) |
297 |
_Attribute_Dt = value |
298 |
End Set |
299 |
End Property |
300 |
|
301 |
End Class |
302 |
|
303 |
Public Class Symbol |
304 |
Private _UID As String |
305 |
Private _NAME As String |
306 |
Private _TYPE As String |
307 |
Private _ORIGINALPOINT As String |
308 |
Private _CONNECTORS As List(Of Connector) |
309 |
Private _LOCATION As String |
310 |
Private _SIZE As String |
311 |
Private _ANGLE As String |
312 |
Private _PARENT As String |
313 |
Private _CHILD As String |
314 |
Private _HASINSTRUMENTLABEL As String |
315 |
Private _AREA As String |
316 |
Private _CURRENTPOINTMODEINDEX As String |
317 |
|
318 |
Private _LINENUMBER As LineNumber |
319 |
Private _ENABLE As Boolean = True |
320 |
|
321 |
Public Property NAME As String |
322 |
Get |
323 |
Return _NAME |
324 |
End Get |
325 |
Set(value As String) |
326 |
_NAME = value |
327 |
End Set |
328 |
End Property |
329 |
|
330 |
Public Property TYPE As String |
331 |
Get |
332 |
Return _TYPE |
333 |
End Get |
334 |
Set(value As String) |
335 |
_TYPE = value |
336 |
End Set |
337 |
End Property |
338 |
|
339 |
Public Property ORIGINALPOINT As String |
340 |
Get |
341 |
Return _ORIGINALPOINT |
342 |
End Get |
343 |
Set(value As String) |
344 |
_ORIGINALPOINT = value |
345 |
End Set |
346 |
End Property |
347 |
|
348 |
Public Property CONNECTORS As List(Of Connector) |
349 |
Get |
350 |
Return _CONNECTORS |
351 |
End Get |
352 |
Set(value As List(Of Connector)) |
353 |
_CONNECTORS = value |
354 |
End Set |
355 |
End Property |
356 |
|
357 |
Public Property LOCATION As String |
358 |
Get |
359 |
Return _LOCATION |
360 |
End Get |
361 |
Set(value As String) |
362 |
_LOCATION = value |
363 |
End Set |
364 |
End Property |
365 |
|
366 |
Public Property SIZE As String |
367 |
Get |
368 |
Return _SIZE |
369 |
End Get |
370 |
Set(value As String) |
371 |
_SIZE = value |
372 |
End Set |
373 |
End Property |
374 |
|
375 |
Public Property ANGLE As String |
376 |
Get |
377 |
Return _ANGLE |
378 |
End Get |
379 |
Set(value As String) |
380 |
_ANGLE = value |
381 |
End Set |
382 |
End Property |
383 |
|
384 |
Public Property PARENT As String |
385 |
Get |
386 |
Return _PARENT |
387 |
End Get |
388 |
Set(value As String) |
389 |
_PARENT = value |
390 |
End Set |
391 |
End Property |
392 |
|
393 |
Public Property CHILD As String |
394 |
Get |
395 |
Return _CHILD |
396 |
End Get |
397 |
Set(value As String) |
398 |
_CHILD = value |
399 |
End Set |
400 |
End Property |
401 |
|
402 |
Public Property HASINSTRUMENTLABEL As String |
403 |
Get |
404 |
Return _HASINSTRUMENTLABEL |
405 |
End Get |
406 |
Set(value As String) |
407 |
_HASINSTRUMENTLABEL = value |
408 |
End Set |
409 |
End Property |
410 |
|
411 |
Public Property AREA As String |
412 |
Get |
413 |
Return _AREA |
414 |
End Get |
415 |
Set(value As String) |
416 |
_AREA = value |
417 |
End Set |
418 |
End Property |
419 |
|
420 |
Public Property CURRENTPOINTMODEINDEX As String |
421 |
Get |
422 |
Return _CURRENTPOINTMODEINDEX |
423 |
End Get |
424 |
Set(value As String) |
425 |
_CURRENTPOINTMODEINDEX = value |
426 |
End Set |
427 |
End Property |
428 |
|
429 |
Public Property UID As String |
430 |
Get |
431 |
Return _UID |
432 |
End Get |
433 |
Set(value As String) |
434 |
_UID = value |
435 |
End Set |
436 |
End Property |
437 |
|
438 |
Public Property LINENUMBER As LineNumber |
439 |
Get |
440 |
Return _LINENUMBER |
441 |
End Get |
442 |
Set(value As LineNumber) |
443 |
_LINENUMBER = value |
444 |
End Set |
445 |
End Property |
446 |
|
447 |
Public Property ENABLE As Boolean |
448 |
Get |
449 |
Return _ENABLE |
450 |
End Get |
451 |
Set(value As Boolean) |
452 |
_ENABLE = value |
453 |
End Set |
454 |
End Property |
455 |
End Class |
456 |
|
457 |
Public Class Line |
458 |
Private _UID As String |
459 |
Private _STARTPOINT As String |
460 |
Private _ENDPOINT As String |
461 |
Private _TYPE As String |
462 |
Private _AREA As String |
463 |
Private _CONNECTORS As List(Of Connector) |
464 |
|
465 |
Private _LINENUMBER As LineNumber |
466 |
Private _ENABLE As Boolean = True |
467 |
|
468 |
Private _LMCONNECTOR_MODELID As String |
469 |
|
470 |
|
471 |
Private _START_X As Double |
472 |
Private _START_Y As Double |
473 |
Private _END_X As Double |
474 |
Private _END_Y As Double |
475 |
|
476 |
''DrawPrimaryLines |
477 |
Public Property STARTPOINT As String |
478 |
Get |
479 |
Return _STARTPOINT |
480 |
End Get |
481 |
Set(value As String) |
482 |
_STARTPOINT = value |
483 |
Main.ConvertPointBystring(_STARTPOINT, _START_X, _START_Y) |
484 |
Main.ConvertPointByImage(_START_X, _START_Y, Main._IMG_X, Main._IMG_Y) |
485 |
End Set |
486 |
End Property |
487 |
|
488 |
Public Property ENDPOINT As String |
489 |
Get |
490 |
Return _ENDPOINT |
491 |
End Get |
492 |
Set(value As String) |
493 |
_ENDPOINT = value |
494 |
Main.ConvertPointBystring(_ENDPOINT, _END_X, _END_Y) |
495 |
Main.ConvertPointByImage(_END_X, _END_Y, Main._IMG_X, Main._IMG_Y) |
496 |
End Set |
497 |
End Property |
498 |
|
499 |
Public Property TYPE As String |
500 |
Get |
501 |
Return _TYPE |
502 |
End Get |
503 |
Set(value As String) |
504 |
_TYPE = value |
505 |
End Set |
506 |
End Property |
507 |
|
508 |
Public Property AREA As String |
509 |
Get |
510 |
Return _AREA |
511 |
End Get |
512 |
Set(value As String) |
513 |
_AREA = value |
514 |
End Set |
515 |
End Property |
516 |
|
517 |
Public Property CONNECTORS As List(Of Connector) |
518 |
Get |
519 |
Return _CONNECTORS |
520 |
End Get |
521 |
Set(value As List(Of Connector)) |
522 |
_CONNECTORS = value |
523 |
End Set |
524 |
End Property |
525 |
|
526 |
Public Property UID As String |
527 |
Get |
528 |
Return _UID |
529 |
End Get |
530 |
Set(value As String) |
531 |
_UID = value |
532 |
End Set |
533 |
End Property |
534 |
|
535 |
Public Property LINENUMBER As LineNumber |
536 |
Get |
537 |
Return _LINENUMBER |
538 |
End Get |
539 |
Set(value As LineNumber) |
540 |
_LINENUMBER = value |
541 |
End Set |
542 |
End Property |
543 |
|
544 |
Public Property START_X As Double |
545 |
Get |
546 |
Return _START_X |
547 |
End Get |
548 |
Set(value As Double) |
549 |
_START_X = value |
550 |
End Set |
551 |
End Property |
552 |
|
553 |
Public Property START_Y As Double |
554 |
Get |
555 |
Return _START_Y |
556 |
End Get |
557 |
Set(value As Double) |
558 |
_START_Y = value |
559 |
End Set |
560 |
End Property |
561 |
|
562 |
Public Property END_X As Double |
563 |
Get |
564 |
Return _END_X |
565 |
End Get |
566 |
Set(value As Double) |
567 |
_END_X = value |
568 |
End Set |
569 |
End Property |
570 |
|
571 |
Public Property END_Y As Double |
572 |
Get |
573 |
Return _END_Y |
574 |
End Get |
575 |
Set(value As Double) |
576 |
_END_Y = value |
577 |
End Set |
578 |
End Property |
579 |
|
580 |
Public Property ENABLE As Boolean |
581 |
Get |
582 |
Return _ENABLE |
583 |
End Get |
584 |
Set(value As Boolean) |
585 |
_ENABLE = value |
586 |
End Set |
587 |
End Property |
588 |
|
589 |
Public Property LMCONNECTOR_MODELID As String |
590 |
Get |
591 |
Return _LMCONNECTOR_MODELID |
592 |
End Get |
593 |
Set(value As String) |
594 |
_LMCONNECTOR_MODELID = value |
595 |
End Set |
596 |
End Property |
597 |
End Class |
598 |
|
599 |
Public Class LineNumber |
600 |
Private _UID As String |
601 |
Private _SYMBOLRUNITEMS As List(Of String) |
602 |
Private _LINERUNITEMS As List(Of String) |
603 |
|
604 |
|
605 |
Public Property UID As String |
606 |
Get |
607 |
Return _UID |
608 |
End Get |
609 |
Set(value As String) |
610 |
_UID = value |
611 |
End Set |
612 |
End Property |
613 |
|
614 |
Public Property SYMBOLRUNITEMS As List(Of String) |
615 |
Get |
616 |
Return _SYMBOLRUNITEMS |
617 |
End Get |
618 |
Set(value As List(Of String)) |
619 |
_SYMBOLRUNITEMS = value |
620 |
End Set |
621 |
End Property |
622 |
|
623 |
Public Property LINERUNITEMS As List(Of String) |
624 |
Get |
625 |
Return _LINERUNITEMS |
626 |
End Get |
627 |
Set(value As List(Of String)) |
628 |
_LINERUNITEMS = value |
629 |
End Set |
630 |
End Property |
631 |
End Class |
632 |
|
633 |
Public Class Attribute |
634 |
|
635 |
End Class |
636 |
|
637 |
Public Class Connector |
638 |
Private _CONNECTEDITEM As String |
639 |
Private _CONNECTPOINT As String |
640 |
Private _SCENECONNECTPOINT As String |
641 |
|
642 |
Public Property CONNECTEDITEM As String |
643 |
Get |
644 |
Return _CONNECTEDITEM |
645 |
End Get |
646 |
Set(value As String) |
647 |
_CONNECTEDITEM = value |
648 |
End Set |
649 |
End Property |
650 |
|
651 |
Public Property CONNECTPOINT As String |
652 |
Get |
653 |
Return _CONNECTPOINT |
654 |
End Get |
655 |
Set(value As String) |
656 |
_CONNECTPOINT = value |
657 |
End Set |
658 |
End Property |
659 |
|
660 |
Public Property SCENECONNECTPOINT As String |
661 |
Get |
662 |
Return _SCENECONNECTPOINT |
663 |
End Get |
664 |
Set(value As String) |
665 |
_SCENECONNECTPOINT = value |
666 |
End Set |
667 |
End Property |
668 |
End Class |