_Data.cs 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Windows.Forms;
  7. using System.Drawing;
  8. using System.Data.SqlClient;
  9. using System.IO;
  10. using System.Data;
  11. using System.Media;
  12. using System.Timers;
  13. namespace IControls_ExcelVerify
  14. {
  15. // 전역 변수 및 함수는 여기 클래스에서 전담한다
  16. public static class _Data
  17. {
  18. // Program
  19. public static string Program_Version;
  20. // Project
  21. public static string Project_Name;
  22. public static string Project_Path;
  23. public static string Project_ExcelOpenCheck; // 1 : 체크함, 0 : 체크안함
  24. // HashTable
  25. // 수신기 정보 해쉬테이블
  26. public static Hashtable HASH_RECEIVER = new Hashtable();
  27. // 수신기 정보 해쉬테이블 키 리스트
  28. public static ArrayList LIST_RECEIVER_ID = new ArrayList();
  29. // 맵디자이너중 리스트뷰의 아이템 패널(기기타입)에 아이콘을 추가하기 위해서 사용되는 해쉬테이블
  30. public static Hashtable HASH_XMLDEVTYPE = new Hashtable();
  31. // 맵디자이너중 리스트뷰의 아이템 패널(기기타입)에 아이콘을 추가하기 위해서 사용되는 해쉬테이블 키 리스트
  32. public static ArrayList LIST_XMLDEVTYPE_ID = new ArrayList();
  33. // _Receiver.xml 제거 : cyim 2012.8.29 -> 복구 2013.5.27
  34. //// Read Receiver Xml 전용 해쉬테이블
  35. //public static Hashtable HASH_XMLRECEIVER = new Hashtable();
  36. //// Read Receiver Xml 전용 해쉬테이블 키 리스트
  37. public static ArrayList LIST_XMLRECEIVER_ID = new ArrayList();
  38. // 엑셀에서 포인트 정보를 읽은 결과를 저장하는 리스트
  39. public static ArrayList List_ExcelPoint = new ArrayList();
  40. // 엑셀에서 연동 그룹 정보를 읽은 결과를 저장하는 리스트
  41. public static ArrayList List_ExcelGroup = new ArrayList();
  42. // 엑셀에서 연동 맵 정보를 읽은 결과를 저장하는 리스트
  43. public static ArrayList List_ExcelMap = new ArrayList();
  44. // 엑셀에서 읽은 정보를 토대로 재생성되는 위치 정보, 디바이스 타입, IO 보드, 이벤트 타입 클래스
  45. public static Hashtable HASH_CodePosition = new Hashtable();
  46. public static ArrayList LIST_CodePosition_NAME = new ArrayList();
  47. public static ArrayList LIST_CodeDeviceType = new ArrayList();
  48. public static ArrayList LIST_CodeIOBoard = new ArrayList();
  49. public static ArrayList LIST_CodeEventType = new ArrayList();
  50. public static ArrayList LIST_CodeAnalogLevel = new ArrayList();
  51. public static ArrayList LIST_CodeFireDayTime = new ArrayList();
  52. // XML 데이타를 저장하였는지 최종 확인 (저장직전 해당 수신기 아이디가 리스트 형태로 저장됨)
  53. public static ArrayList LIST_XmlDBNotSave_Receiver = new ArrayList();
  54. // 프로젝트 저장하였는지 최종 확인
  55. public static bool ProJect_Save_Complete = true;
  56. //// 진행바 팝업창 마지막 문구
  57. //public static string Result_Text = _Text.CompleteInform;
  58. // 메뉴를 클릭하여 활성화된 폼
  59. public static Form MenuActivedForm = null;
  60. // 특별히 엑티브 레포트 뷰어는 메뉴 혹은 다른 형태로 생성될 가능성이 많으므로 여러개를 띄우지 않도록 처리
  61. public static bool ActiveReportViewer_Enable = false;
  62. // 디바이스 입출력 포인트 출력용 해쉬테이블 (입력 및 출력 포인트 모두 저장 : 키는 수신기 아이디)
  63. public static Hashtable Hash_ImportPoint = new Hashtable();
  64. // 1회성 데이타 (이전 데이타 저장용)
  65. public static string Temp_DeviceName = null;
  66. public static string Temp_Position = null;
  67. public static string Temp_GroupName = null;
  68. }
  69. }