Exemplo n.º 1
0
        private bool ChangeRequestTime()
        {
            if (this.CurrentTask != null)
            {
                Dialog_ChangeTaskRequestTime _f = new Dialog_ChangeTaskRequestTime(this.CurrentTask.RequestTime);
                if (_f.ShowDialog() == DialogResult.OK)
                {
                    using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
                    {
                        if (_msc.ChangeQueryTaskRequestTime(this.CurrentTask.TaskID, _f.RequestTime))
                        {
                            XtraMessageBox.Show("任务计划执行时间修改成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            RefreshList();
                            return(true);
                        }
                        else
                        {
                            XtraMessageBox.Show("任务计划执行时间修改失败!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            return(true);
                        }
                    }
                }
                return(true);
            }
            else
            {
                return(false);
            }



            return(true);
        }