public frmSinoSZ_QueryResult(MDQuery_Task _task) { InitializeComponent(); string _title = _task.TaskName.Split('\n')[0]; this.Text = string.Format("查询任务[{0}]的结果", _title.Length > 10 ? _title.Substring(0, 10) + "..." : _title); _queryType = "TaskResult"; _queryTask = _task; }
private void bgWorker_BGD_DoWork(object sender, DoWorkEventArgs e) { //建查询 bool IsQuerying = true; while (IsQuerying) { Thread.Sleep(3000); using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient()) { QueryTaskID_BGD = _msc.GetQueryTaskStateByID(CurrentTaskID); } if (QueryTaskID_BGD.TaskState > 2) { IsQuerying = false; } } }
public Dialog_TaskQuery_Log(MDQuery_Task task) { InitializeComponent(); CurrentTask = task; }
public Dialog_TaskRequest(MDQuery_Task _task) { InitializeComponent(); _taskDefine = _task; InitForm(); }