123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- using System;
- using System.Drawing;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using DataDynamics.ActiveReports;
- using DataDynamics.ActiveReports.Document;
- namespace FPER
- {
-
-
-
- public partial class rptAlarmLog : DataDynamics.ActiveReports.ActiveReport
- {
- private int index;
- private ArrayList details;
- private int tleReceiverId = 0;
- private string tleFromToDate = "";
- private string tleAlarmType = "전체";
- private string tleAlarmLocation = "전체";
- public int ReceiverId { set { this.tleReceiverId = value; } }
- public string FromToDate { set { this.tleFromToDate = value; } }
- public string AlarmType { set { this.tleAlarmType = value; } }
- public string AlarmLocation { set { this.tleAlarmLocation = value; } }
- public ArrayList Details { set { this.details = value; } }
- public rptAlarmLog()
- {
-
-
-
- InitializeComponent();
- }
-
-
-
-
-
-
-
-
-
-
- private void rptAlarmLog_DataInitialize(object sender, System.EventArgs eArgs)
- {
- try
- {
- txtTleReceiverId.Text = this.tleReceiverId.ToString();
- txtTleFromToDate.Text = this.tleFromToDate;
- txtTleAlarmType.Text = this.tleAlarmType;
- txtTleAlarmLocation.Text = this.tleAlarmLocation;
- this.Fields.Add("No");
- this.Fields.Add("AlarmDate");
- this.Fields.Add("AlarmType");
- this.Fields.Add("AlarmLocation");
- this.Fields.Add("ConfirmYes");
- this.Fields.Add("ConfirmDate");
-
-
-
-
-
- this.index = -1;
- }
- catch (Exception ex)
- {
- Util.UErrorMessage(ex, 0, 0);
- }
- }
-
-
-
-
-
-
-
-
-
- private void rptAlarmLog_FetchData(object sender, DataDynamics.ActiveReports.ActiveReport.FetchEventArgs eArgs)
- {
- try
- {
- if (this.index >= this.details.Count - 1)
- {
- eArgs.EOF = true;
- return;
- }
- else
- {
- eArgs.EOF = false;
- }
- AlarmLogDetail row = (AlarmLogDetail)this.details[++this.index];
- this.Fields["No"].Value = row.no;
- this.Fields["AlarmDate"].Value = row.alarmDate;
- this.Fields["AlarmType"].Value = row.alarmType;
- this.Fields["AlarmLocation"].Value = row.alarmLocation;
- this.Fields["ConfirmYes"].Value = row.confirmYes;
- this.Fields["ConfirmDate"].Value = row.confirmDate;
- }
- catch (Exception ex)
- {
- Util.UErrorMessage(ex, 0, 0);
- }
- }
- }
- public class AlarmLogDetail
- {
- public int no;
- public string alarmDate;
- public string alarmType;
- public string alarmLocation;
- public string confirmYes;
- public string confirmDate;
- public AlarmLogDetail(int no, string alarmDate, string alarmType, string alarmLocation, string confirmYes, string confirmDate)
- {
- try
- {
- this.no = no;
- this.alarmDate = alarmDate;
- this.alarmType = alarmType;
- this.alarmLocation = alarmLocation;
- this.confirmYes = confirmYes;
- this.confirmDate = confirmDate;
- }
- catch (Exception ex)
- {
- Util.UErrorMessage(ex, 0, 0);
- }
- }
- public AlarmLogDetail(int no, string alarmDate, string alarmType, string alarmLocation)
- {
- try
- {
- this.no = no;
- this.alarmDate = alarmDate;
- this.alarmType = alarmType;
- this.alarmLocation = alarmLocation;
- }
- catch (Exception ex)
- {
- Util.UErrorMessage(ex, 0, 0);
- }
- }
- }
- }
|