| | |
| | | //调度 |
| | | private void btnSchedule_Click(object sender, EventArgs e) |
| | | { |
| | | //var day = this.dtDay.DateTime; |
| | | //var day_value = DayValueHelper.GetDayValue(day); |
| | | //if (day_value == null) |
| | | //{ |
| | | // XtraMessageBox.Show("无法加载日期数据!"); |
| | | // return; |
| | | //} |
| | | //this.memoInfo.Text = string.Empty; |
| | | var day = this.dtDay.DateTime; |
| | | var day_value = DayValueHelper.GetDayValue(day); |
| | | if (day_value == null) |
| | | { |
| | | XtraMessageBox.Show("无法加载日期数据!"); |
| | | return; |
| | | } |
| | | this.memoInfo.Text = string.Empty; |
| | | |
| | | //var day_value_list = new List<DayValue>() { day_value }; |
| | | var day_value_list = new List<DayValue>() { day_value }; |
| | | WaitHelper.ShowWaitForm(); |
| | | |
| | | var msg = ScadaScheduleHelper.Schedule( |
| | | //day_value_list, |
| | | //this.cekStation1.Checked, |
| | | //this.cekStation2.Checked, |
| | | day_value_list, |
| | | this.cekStation1.Checked, |
| | | this.cekStation2.Checked, |
| | | out List<Station1ScadaSchedule> all_station1_scada_schedule_list, |
| | | out List<Station2ScadaSchedule> all_station2_scada_schedule_list); |
| | | |