private void client_GetHireAppByIDCompleted(object sender, GetHireAppByIDCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error == null) { if (e.Result != null) { if (actionFlag == DataActionFlag.SubmitFlow) { //SumbitFlow(); return; } else { hireApp = e.Result.ToList()[0]; client.GetHireAppByHouseListIDAsync(hireApp.T_OA_HOUSELIST.HOUSELISTID); } this.sDate.SelectedDate = hireApp.STARTDATE; this.eDate.SelectedDate = hireApp.ENDDATE; this.bDate.SelectedDate = hireApp.BACKDATE; if (action == Action.AUDIT) { //audit.XmlObject = DataObjectToXml<T_OA_HIREAPP>.ObjListToXml(hireApp, "OA"); } //BindAduitInfo(); RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }