/// <summary> /// 获取数据后 /// </summary> private void Get_ESurveyAppsCompleted(object sender, Get_ESurveyAppsCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("GETDATAFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } //if (e.Result == null) //{ // ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "EmployeeSurveyApp"), Utility.GetResourceStr("CONFIRM")); // return; //} ObservableCollection <T_OA_REQUIRE> dataList = e.Result; _isQuery = false; if (dataList != null) { BindDateGrid(dataList); } else { BindDateGrid(null); } }
/// <summary> /// 获取数据后 /// </summary> private void Get_ESurveyAppsCompleted(object sender, Get_ESurveyAppsCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("GETDATAFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } //if (e.Result == null) //{ // ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "EmployeeSurveyApp"), Utility.GetResourceStr("CONFIRM")); // return; //} ObservableCollection<T_OA_REQUIRE> dataList = e.Result; _isQuery = false; if (dataList != null) { BindDateGrid(dataList); } else { BindDateGrid(null); } }