AReportLog.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using DataDynamics.ActiveReports;
  7. using DataDynamics.ActiveReports.Document;
  8. using System.Data;
  9. namespace FPER
  10. {
  11. /// <summary>
  12. /// Summary description for NewActiveReport1.
  13. /// </summary>
  14. public partial class AReportLog : DataDynamics.ActiveReports.ActiveReport
  15. {// ActiveReport Class
  16. int index = 0;
  17. private ArrayList details;
  18. public bool findTime = false;
  19. public DateTime findStartTime;
  20. public DateTime findEndTime;
  21. public List<string> findType = null;
  22. private int tleReceiverId = 0;
  23. private string tleFromToDate = "";
  24. private string tleAlarmType = "전체";
  25. private string tleAlarmLocation = "전체";
  26. public int ReceiverId { set { this.tleReceiverId = value; } }
  27. public string FromToDate { set { this.tleFromToDate = value; } }
  28. public string AlarmType { set { this.tleAlarmType = value; } }
  29. public string AlarmLocation { set { this.tleAlarmLocation = value; } }
  30. public ArrayList Details { set { this.details = value; } }
  31. public List<CEventLogData> LEventLog;
  32. bool live = false;
  33. public AReportLog(bool live)
  34. {
  35. //
  36. // Required for Windows Form Designer support
  37. //
  38. InitializeComponent();
  39. this.live = live;
  40. }
  41. private void AReportLog_DataInitialize(object sender, System.EventArgs eArgs)
  42. {// data init function
  43. try
  44. {
  45. //txtTleReceiverId.Text = this.tleReceiverId.ToString();
  46. //txtTleFromToDate.Text = this.tleFromToDate;
  47. //txtTleAlarmType.Text = this.tleAlarmType;
  48. //txtTleAlarmLocation.Text = this.tleAlarmLocation;
  49. if (this.live)
  50. {
  51. this.label1.Text = "수신기 이력 보고서 (현재내역)";
  52. }
  53. else
  54. {
  55. this.label1.Text = "수신기 이력 보고서 (과거내역)";
  56. }
  57. if (findTime)
  58. {
  59. this.textBox1.Text = string.Format("{0:D4}-{1:D2}-{2:D2} {3:D2}:{4:D2}:{5:D2} ~{6:D4}-{7:D2}-{8:D2} {9:D2}:{10:D2}:{11:D2}",
  60. this.findStartTime.Year, this.findStartTime.Month, this.findStartTime.Day,
  61. this.findStartTime.Hour, this.findStartTime.Minute, this.findStartTime.Second,
  62. this.findEndTime.Year, this.findEndTime.Month, this.findEndTime.Day,
  63. this.findEndTime.Hour, this.findEndTime.Minute, this.findEndTime.Second);
  64. }
  65. else
  66. {
  67. this.textBox1.Text = "전체";
  68. }
  69. if (findType != null && findType.Count > 0)
  70. {
  71. this.textBox2.Text = "";
  72. foreach (string text in findType)
  73. {
  74. this.textBox2.Text += text;
  75. this.textBox2.Text += ", ";
  76. }
  77. this.textBox2.Text = this.textBox2.Text.Substring(0, this.textBox2.Text.Length - 2);
  78. }
  79. else
  80. {
  81. this.textBox2.Text = "전체";
  82. }
  83. this.PageSettings.Margins.Bottom = 0.3F;
  84. this.PageSettings.Margins.Left = 0.4F;
  85. this.PageSettings.Margins.Right = 0.3F;
  86. this.PageSettings.Margins.Top = 1F;
  87. this.PageSettings.PaperHeight = 11F;
  88. this.PageSettings.PaperWidth = 8.5F;
  89. this.Fields.Add("EventNumber");
  90. this.Fields.Add("EventTime");
  91. this.Fields.Add("DeviceName");
  92. this.Fields.Add("EventName");
  93. this.Fields.Add("EventPosition");
  94. this.Fields.Add("Circuit");
  95. this.Fields.Add("EventErrorStatus");
  96. this.textBox9.Text = string.Format("수신기 : {0}번", this.tleReceiverId);
  97. //this.Fields.Add("ConfirmYes");
  98. //this.Fields.Add("ConfirmDate");
  99. // Init some test data:
  100. //this.details = new ArrayList();
  101. //this.details.Add(new ReportDetail("A", 10.00, 2));
  102. //this.details.Add(new ReportDetail("B", 0.12, 1));
  103. //this.details.Add(new ReportDetail("C", 5.92, 3));
  104. //this.index = -1;
  105. }
  106. catch (Exception ex)
  107. {
  108. Util.UErrorMessage(ex, 0, 0);
  109. }
  110. }
  111. //private void AReportLog_FetchData(object sender, DataDynamics.ActiveReports.ActiveReport.FetchEventArgs eArgs) {
  112. // try {
  113. // if (this.index >= this.details.Count - 1) {
  114. // eArgs.EOF = true;
  115. // return;
  116. // }
  117. // else {
  118. // eArgs.EOF = false;
  119. // }
  120. // AlarmLogPostDetail row = (AlarmLogPostDetail)this.details[++this.index];
  121. // this.Fields["EventNumber"].Value = row.no;
  122. // this.Fields["EventTime"].Value = row.alarmDate;
  123. // this.Fields["DeviceName"].Value = row.alarmLocation;
  124. // this.Fields["EventName"].Value = row.alarmType;
  125. // this.Fields["EventPosition"].Value = row.alarmLocation;
  126. // this.Fields["EventErrorStatus"].Value = row.no;
  127. // this.Fields["EventTime"].Value = row.alarmDate;
  128. // this.Fields["AlarmType"].Value = row.alarmType;
  129. // this.Fields["AlarmLocation"].Value = row.alarmLocation;
  130. // //this.Fields["ConfirmYes"].Value = row.confirmYes;
  131. // //this.Fields["ConfirmDate"].Value = row.confirmDate;
  132. // }
  133. // catch (Exception ex) {
  134. // Util.UErrorMessage(ex, 0, 0);
  135. // }
  136. //}
  137. private void AReportLog_FetchData(object sender, FetchEventArgs eArgs)
  138. { // set display data funtion
  139. if (LEventLog == null || LEventLog.Count <= 0 || index >= LEventLog.Count)
  140. {
  141. eArgs.EOF = true;
  142. }
  143. else
  144. {
  145. if (LEventLog.Count > this.index)
  146. {
  147. CEventLogData eventLog = this.LEventLog[this.index];
  148. //if (FindReceiver(eventLog.receiverID) >= 0)
  149. {
  150. //Receiver receiver = this.LReceiver[FindReceiver(eventLog.receiverID)];
  151. this.Fields["EventNumber"].Value = this.index + 1;
  152. this.Fields["EventTime"].Value = eventLog.EventTime;
  153. this.Fields["EventPosition"].Value = eventLog.devicePosition;
  154. this.Fields["EventName"].Value = eventLog.eventTypeName;//this.GetEventTypeName(eventLog.eventType);//LEventLog[this.index].EventName;
  155. this.Fields["DeviceName"].Value = eventLog.deviceName;//this.GetDeviceName(eventLog);
  156. this.Fields["Circuit"].Value = eventLog.Report_EventPositon;//eventLog.EventPositon; // cyim 2015.9.23 프린트 정보와 일치하도록 수정
  157. switch (eventLog.Report_EventErrorStatus)//switch (eventLog.EventErrorStatus)// cyim 2015.9.23 프린트 정보와 일치하도록 수정
  158. {// 0 : 운영,기타 , 1: 화재 발생, 2 : 화재 해제 3: 설비 작동 4: 설비 멈춤 5: 이상 발생 6: 이상 해제
  159. case 0:
  160. this.Fields["EventErrorStatus"].Value = "조작";
  161. this.detail.BackColor = Color.White;
  162. this.textBox8.BackColor = Color.White;
  163. this.textBox8.ForeColor = Color.Black;
  164. break;
  165. case 1:
  166. this.Fields["EventErrorStatus"].Value = "발생";
  167. this.detail.BackColor = Color.FromArgb(255, 140, 140);
  168. this.textBox8.BackColor = Color.White;
  169. this.textBox8.ForeColor = Color.Red;
  170. break;
  171. case 2:
  172. this.Fields["EventErrorStatus"].Value = "해제";
  173. this.detail.BackColor = Color.FromArgb(255, 140, 140);
  174. this.textBox8.BackColor = Color.White;
  175. this.textBox8.ForeColor = Color.Blue;
  176. break;
  177. case 3:
  178. this.Fields["EventErrorStatus"].Value = "발생";
  179. this.detail.BackColor = Color.FromArgb(140, 140, 255);
  180. this.textBox8.BackColor = Color.White;
  181. this.textBox8.ForeColor = Color.Red;
  182. break;
  183. case 4:
  184. this.Fields["EventErrorStatus"].Value = "해제";
  185. this.detail.BackColor = Color.FromArgb(140, 140, 255);
  186. this.textBox8.BackColor = Color.White;
  187. this.textBox8.ForeColor = Color.Blue;
  188. break;
  189. case 5:
  190. this.Fields["EventErrorStatus"].Value = "발생";
  191. this.detail.BackColor = Color.FromArgb(220, 220, 220);
  192. this.textBox8.BackColor = Color.White;
  193. this.textBox8.ForeColor = Color.Red;
  194. break;
  195. case 6:
  196. this.Fields["EventErrorStatus"].Value = "해제";
  197. this.detail.BackColor = Color.FromArgb(220, 220, 220);
  198. this.textBox8.BackColor = Color.White;
  199. this.textBox8.ForeColor = Color.Blue;
  200. break;
  201. }
  202. this.index++;
  203. eArgs.EOF = false;
  204. }
  205. }
  206. }
  207. }
  208. //private void NewActiveReport1_FetchData(object sender, FetchEventArgs eArgs) {
  209. // if (LEventLog == null || LEventLog.Count <= 0 || index >= LEventLog.Count) {
  210. // eArgs.EOF = true;
  211. // }
  212. // else {
  213. // if (LEventLog.Count > this.index) {
  214. // CEventLogData eventLog = this.LEventLog[this.index];
  215. // if (FindReceiver(eventLog.receiverID) >= 0) {
  216. // Receiver receiver = this.LReceiver[FindReceiver(eventLog.receiverID)];
  217. // this.Fields["EventNumber"].Value = this.index + 1;
  218. // this.Fields["EventTime"].Value = eventLog.EventTime;
  219. // this.Fields["EventPosition"].Value = eventLog.EventPositon;
  220. // this.Fields["EventName"].Value = this.GetEventTypeName(eventLog.eventType);//LEventLog[this.index].EventName;
  221. // this.Fields["DeviceName"].Value = this.GetDeviceName(eventLog);
  222. // //switch (eventLog.ioType) {
  223. // // case "A": {//전체
  224. // // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  225. // // this.Fields["DeviceName"].Value = receiver.Name;
  226. // // //DBAccess.GetReceiverNameFromDB(this.receiverID);
  227. // // }
  228. // // break;
  229. // // }
  230. // // case "C": {// 통신
  231. // // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  232. // // this.Fields["DeviceName"].Value = receiver.Name;
  233. // // }
  234. // // break;
  235. // // }
  236. // // case "B": {// 보드deviceName = DBAccess.GetBoardNameFromDB(this.receiverID, this.boardID);
  237. // // break;
  238. // // }
  239. // // case "L": {// 루프
  240. // // this.Fields["DeviceName"].Value = receiver.board[eventLog.boardID - 1].Name;
  241. // // // this.Fields["DeviceName"].Value = DBAccess.GetBoardNameFromDB(this.receiverID, this.boardID);
  242. // // this.Fields["DeviceName"].Value += string.Format(":{0}계통", LEventLog[this.index].loopNO.ToString());
  243. // // break;
  244. // // }
  245. // // case "R": {//중계기
  246. // // this.Fields["DeviceName"].Value = receiver.board[eventLog.boardID - 1].loop[eventLog.loopNO].repeater[eventLog.repeaterID - 1].Name;
  247. // // //this.Fields["DeviceName"].Value = DBAccess.GetRepeaterNameFromDB(this.receiverID, this.boardID, this.loopNO, this.repeaterID);
  248. // // break;
  249. // // }
  250. // // case "D": {// 장치
  251. // // break;
  252. // // }
  253. // // case "I": {//입력회로
  254. // // this.Fields["DeviceName"].Value = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 1);
  255. // // //this.Fields["DeviceName"].Value = DBAccess.GetDeviceNameFromDB((this.receiverID), (this.boardID), (this.loopNO), (this.repeaterID), (this.deviceID), this.ioType);
  256. // // break;
  257. // // }
  258. // // case "O": {//출력회로
  259. // // this.Fields["DeviceName"].Value = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 2);
  260. // // //this.Fields["DeviceName"].Value = DBAccess.GetDeviceNameFromDB(this.receiverID, (this.boardID), (this.loopNO), (this.repeaterID), (this.deviceID), this.ioType);
  261. // // break;
  262. // // }
  263. // // default: {
  264. // // break;
  265. // // }
  266. // //}
  267. // // this.Fields["DeviceName"].Value = LEventLog[this.index].DeviceName;
  268. // switch (eventLog.EventErrorStatus) {
  269. // case 0:
  270. // this.Fields["EventErrorStatus"].Value = "조작";
  271. // break;
  272. // case 1:
  273. // case 3:
  274. // case 5:
  275. // this.Fields["EventErrorStatus"].Value = "발생";
  276. // break;
  277. // case 2:
  278. // case 4:
  279. // case 6:
  280. // this.Fields["EventErrorStatus"].Value = "해제";
  281. // break;
  282. // default:
  283. // this.Fields["EventErrorStatus"].Value = "기타";
  284. // break;
  285. // }
  286. // this.index++;
  287. // eArgs.EOF = false;
  288. // }
  289. // }
  290. // }
  291. //}
  292. //List<Receiver> LReceiver;
  293. //List<CEventType> LEventType;
  294. //public List<CEventLogData> LEventLog;
  295. //int index = 0;
  296. //string GetEventTypeName(string eventType) {
  297. // string ret = "";
  298. // foreach (CEventType etype in this.LEventType) {
  299. // if (eventType == etype.eventType) {
  300. // ret = etype.eventTypeName;
  301. // break;
  302. // }
  303. // }
  304. // return ret;
  305. //}
  306. //public AReportLog(List<Receiver> LReceiver, List<CEventType> LEventType) {
  307. // //
  308. // // Required for Windows Form Designer support
  309. // //
  310. // InitializeComponent();
  311. // this.LReceiver = LReceiver;
  312. // this.LEventType = LEventType;
  313. //}
  314. //private void NewActiveReport1_FetchData(object sender, FetchEventArgs eArgs) {
  315. // if (LEventLog == null || LEventLog.Count <= 0 || index >= LEventLog.Count) {
  316. // eArgs.EOF = true;
  317. // }
  318. // else {
  319. // if (LEventLog.Count > this.index) {
  320. // CEventLogData eventLog = this.LEventLog[this.index];
  321. // if (FindReceiver(eventLog.receiverID) >= 0) {
  322. // Receiver receiver = this.LReceiver[FindReceiver(eventLog.receiverID)];
  323. // this.Fields["EventNumber"].Value = this.index + 1;
  324. // this.Fields["EventTime"].Value = eventLog.EventTime;
  325. // this.Fields["EventPosition"].Value = eventLog.EventPositon;
  326. // this.Fields["EventName"].Value = this.GetEventTypeName(eventLog.eventType);//LEventLog[this.index].EventName;
  327. // this.Fields["DeviceName"].Value = this.GetDeviceName(eventLog);
  328. // //switch (eventLog.ioType) {
  329. // // case "A": {//전체
  330. // // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  331. // // this.Fields["DeviceName"].Value = receiver.Name;
  332. // // //DBAccess.GetReceiverNameFromDB(this.receiverID);
  333. // // }
  334. // // break;
  335. // // }
  336. // // case "C": {// 통신
  337. // // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  338. // // this.Fields["DeviceName"].Value = receiver.Name;
  339. // // }
  340. // // break;
  341. // // }
  342. // // case "B": {// 보드deviceName = DBAccess.GetBoardNameFromDB(this.receiverID, this.boardID);
  343. // // break;
  344. // // }
  345. // // case "L": {// 루프
  346. // // this.Fields["DeviceName"].Value = receiver.board[eventLog.boardID - 1].Name;
  347. // // // this.Fields["DeviceName"].Value = DBAccess.GetBoardNameFromDB(this.receiverID, this.boardID);
  348. // // this.Fields["DeviceName"].Value += string.Format(":{0}계통", LEventLog[this.index].loopNO.ToString());
  349. // // break;
  350. // // }
  351. // // case "R": {//중계기
  352. // // this.Fields["DeviceName"].Value = receiver.board[eventLog.boardID - 1].loop[eventLog.loopNO].repeater[eventLog.repeaterID - 1].Name;
  353. // // //this.Fields["DeviceName"].Value = DBAccess.GetRepeaterNameFromDB(this.receiverID, this.boardID, this.loopNO, this.repeaterID);
  354. // // break;
  355. // // }
  356. // // case "D": {// 장치
  357. // // break;
  358. // // }
  359. // // case "I": {//입력회로
  360. // // this.Fields["DeviceName"].Value = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 1);
  361. // // //this.Fields["DeviceName"].Value = DBAccess.GetDeviceNameFromDB((this.receiverID), (this.boardID), (this.loopNO), (this.repeaterID), (this.deviceID), this.ioType);
  362. // // break;
  363. // // }
  364. // // case "O": {//출력회로
  365. // // this.Fields["DeviceName"].Value = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 2);
  366. // // //this.Fields["DeviceName"].Value = DBAccess.GetDeviceNameFromDB(this.receiverID, (this.boardID), (this.loopNO), (this.repeaterID), (this.deviceID), this.ioType);
  367. // // break;
  368. // // }
  369. // // default: {
  370. // // break;
  371. // // }
  372. // //}
  373. // // this.Fields["DeviceName"].Value = LEventLog[this.index].DeviceName;
  374. // switch (eventLog.EventErrorStatus) {
  375. // case 0:
  376. // this.Fields["EventErrorStatus"].Value = "조작";
  377. // break;
  378. // case 1:
  379. // case 3:
  380. // case 5:
  381. // this.Fields["EventErrorStatus"].Value = "발생";
  382. // break;
  383. // case 2:
  384. // case 4:
  385. // case 6:
  386. // this.Fields["EventErrorStatus"].Value = "해제";
  387. // break;
  388. // default:
  389. // this.Fields["EventErrorStatus"].Value = "기타";
  390. // break;
  391. // }
  392. // this.index++;
  393. // eArgs.EOF = false;
  394. // }
  395. // }
  396. // }
  397. //}
  398. //public int FindReceiver(int ReceiverID) {
  399. // int ret = -1;
  400. // for (int i = 0; i < LReceiver.Count; i++) {
  401. // if (this.LReceiver[i] != null && LReceiver[i].ReceiverID == ReceiverID) {
  402. // ret = i;
  403. // break;
  404. // }
  405. // }
  406. // return ret;
  407. //}
  408. //string GetDeviceName(CEventLogData eventLog) {
  409. // string ret = "";
  410. // if (FindReceiver(eventLog.receiverID) >= 0) {
  411. // Receiver receiver = this.LReceiver[FindReceiver(eventLog.receiverID)];
  412. // switch (eventLog.ioType) {
  413. // case "A": {//전체
  414. // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  415. // ret = receiver.Name;
  416. // //DBAccess.GetReceiverNameFromDB(this.receiverID);
  417. // }
  418. // break;
  419. // }
  420. // case "C": {// 통신
  421. // if (Convert.ToInt32(eventLog.receiverID) > 0) {
  422. // ret = receiver.Name;
  423. // }
  424. // break;
  425. // }
  426. // case "B": {// 보드deviceName = DBAccess.GetBoardNameFromDB(this.receiverID, this.boardID);
  427. // break;
  428. // }
  429. // case "L": {// 루프
  430. // ret = receiver.board[eventLog.boardID - 1].Name;
  431. // ret += string.Format(":{0}계통", LEventLog[this.index].loopNO.ToString());
  432. // break;
  433. // }
  434. // case "R": {//중계기
  435. // ret = receiver.board[eventLog.boardID - 1].loop[eventLog.loopNO].repeater[eventLog.repeaterID - 1].Name;
  436. // break;
  437. // }
  438. // case "D": {// 장치
  439. // break;
  440. // }
  441. // case "I": {//입력회로
  442. // ret = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 1);
  443. // break;
  444. // }
  445. // case "O": {//출력회로
  446. // ret = receiver.GetDeviceName(eventLog.boardID, eventLog.loopNO, eventLog.repeaterID, eventLog.deviceID, 2);
  447. // break;
  448. // }
  449. // default: {
  450. // break;
  451. // }
  452. // }
  453. // }
  454. // return ret;
  455. //}
  456. //public bool findTime = false;
  457. //public DateTime findStartTime;
  458. //public DateTime findEndTime;
  459. //public List<string> findType = null;
  460. //private void NewActiveReport1_DataInitialize(object sender, EventArgs e) {
  461. // if (findTime) {
  462. // this.textBox1.Text = string.Format("{0:D4}-{1:D2}-{2:D2} {3:D2}:{4:D2}:{5:D2} ~{6:D4}-{7:D2}-{8:D2} {9:D2}:{10:D2}:{11:D2}",
  463. // this.findStartTime.Year, this.findStartTime.Month, this.findStartTime.Day,
  464. // this.findStartTime.Hour, this.findStartTime.Minute, this.findStartTime.Second,
  465. // this.findEndTime.Year, this.findEndTime.Month, this.findEndTime.Day,
  466. // this.findEndTime.Hour, this.findEndTime.Minute, this.findEndTime.Second);
  467. // }
  468. // else {
  469. // this.textBox1.Text = "전체";
  470. // }
  471. // if (findType != null && findType.Count > 0) {
  472. // this.textBox2.Text = "";
  473. // foreach (string text in findType) {
  474. // this.textBox2.Text += text;
  475. // this.textBox2.Text += ", ";
  476. // }
  477. // this.textBox2.Text = this.textBox2.Text.Substring(0, this.textBox2.Text.Length - 2);
  478. // }
  479. // else {
  480. // this.textBox2.Text = "전체";
  481. // }
  482. ////public DateTime FindStartTime;
  483. ////public DateTime FindEndTime;
  484. ////public List<string> FindType;
  485. // this.PageSettings.Margins.Bottom = 0.3F;
  486. // this.PageSettings.Margins.Left = 0.4F;
  487. // this.PageSettings.Margins.Right = 0.3F;
  488. // this.PageSettings.Margins.Top = 1F;
  489. // this.PageSettings.PaperHeight = 11F;
  490. // this.PageSettings.PaperWidth = 8.5F;
  491. // this.Fields.Add("EventNumber");
  492. // this.Fields.Add("EventTime");
  493. // this.Fields.Add("EventPosition");
  494. // this.Fields.Add("EventName");
  495. // this.Fields.Add("DeviceName");
  496. // this.Fields.Add("EventErrorStatus");
  497. //}
  498. }
  499. }