public ClearanceRecordForm(int gateTotal) { InitializeComponent(); this.comboBox_sex.SelectedIndex = 0; //以下初始化通道 object[] items = new object[gateTotal + 1]; items[0] = "全部"; for (int i = 1; i < gateTotal + 1; i++) { items[i] = i.ToString(); } this.comboBox__channel.Items.AddRange(items); this.comboBox__channel.SelectedIndex = 0; //异常类型 this.comboBox_abnormal.Items.AddRange(zhuhai.util.AbnormalType.getAllAbnormalTypeNames()); this.comboBox_abnormal.SelectedIndex = 0; this.dateTimePicker_startTime.Format = DateTimePickerFormat.Custom; this.dateTimePicker_startTime.Text = DateTime.Now.ToString(); this.dateTimePicker_startTime_time.Text = DateTime.Now.ToString(); this.dateTimePicker_endTime.Format = DateTimePickerFormat.Custom; this.dateTimePicker_endTime.Text = DateTime.Now.ToString(); this.dateTimePicker_endTime_time.Text = DateTime.Now.ToString(); clearanceRecordService = ClearanceRecordService.getInstance(); pageUpControl_query.MyControl = gridControl_query; pageUpControl_query.QueryService = clearanceRecordService; }
public static ClearanceRecordService getInstance() { if (clearanceRecordService == null) { clearanceRecordService = new ClearanceRecordService(); } return clearanceRecordService; }
public static ClearanceRecordService getInstance() { if (clearanceRecordService == null) { clearanceRecordService = new ClearanceRecordService(); } return(clearanceRecordService); }