void _VM_GetVehicleUseAppByIdCompleted(object sender, GetVehicleUseAppByIdCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { VehicleUsrApp = e.Result; if (VehicleUsrApp != null) { txtDepartmentId.Text = VehicleUsrApp.DEPARTMENTID; string departName = GlobalFunction.GetDepartmentNameByID(VehicleUsrApp.DEPARTMENTID); if (departName != null) { txtDepartName.Text = departName; } txtTel.Text = VehicleUsrApp.TEL; dtiStartDate.DateTimeValue = Convert.ToDateTime(VehicleUsrApp.STARTTIME); dtiEndDate.DateTimeValue = Convert.ToDateTime(VehicleUsrApp.ENDTIME); txtNum.Text = VehicleUsrApp.NUM; txtRoute.Text = VehicleUsrApp.ROUTE; txtContent.Text = VehicleUsrApp.CONTENT == null ? "" : VehicleUsrApp.CONTENT; } if (types == FormTypes.Resubmit)//重新提交 { VehicleUsrApp.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } 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()); } }