void client_GetFlowDefineListCompleted(object sender, GetFlowDefineListCompletedEventArgs e) { if (e.Error == null) { if (!isPager) { if (e.Result.Count == 1) { if (SelectFlow != null) { SelectFlow(e.Result[0].FlowCode, true); } } if (e.Result.Count > 1) { if (SelectFlow != null) { SelectFlow(e.Result[0].FlowCode, false); } } } isPager = false; dgrFlows.ItemsSource = e.Result; dataPager1.PageCount = e.pageCount; } else { ComfirmWindow.ConfirmationBox("提示信息", "异常信息:" + e.Error.Message, "确定"); } pBar.Stop(); }
void client_GetFlowDefineListCompleted(object sender, GetFlowDefineListCompletedEventArgs e) { if (e.Error == null) { if (!isPager) { if (e.Result.Count == 1) { if (SelectFlow != null) SelectFlow(e.Result[0].FlowCode, true); } if (e.Result.Count > 1) { if (SelectFlow != null) SelectFlow(e.Result[0].FlowCode, false); } } isPager = false; dgrFlows.ItemsSource = e.Result; dataPager1.PageCount = e.pageCount; } else { ComfirmWindow.ConfirmationBox("提示信息", "异常信息:" + e.Error.Message, "确定"); } pBar.Stop(); }
void client_GetFlowDefineListCompleted(object sender, GetFlowDefineListCompletedEventArgs e) { pBar.Stop(); if (e.Error == null) { if (e.Result != null) { if (!isPager) { if (e.Result.Count == 1) { if (SelectFlow != null) SelectFlow(e.Result[0].FlowCode, true); } if (e.Result.Count > 1) { if (SelectFlow != null) SelectFlow(e.Result[0].FlowCode, false); } } isPager = false; dgrFlows.ItemsSource = e.Result; dataPager1.PageCount = e.pageCount; }else { MessageBox.Show("获取的流程定义数据为空,请联系管理员"); } } else { MessageBox.Show( "异常信息:" + e.Error.Message); } }