public AlarmTemporaryUpdateHandledResponse Execute(AlarmTemporaryUpdateHandledRequest request) { AlarmTemporaryUpdateHandledResponse updateHandledResponse = new AlarmTemporaryUpdateHandledResponse(); ServiceHelper.LoadService <IAlarmService>().UpdateAlarmTemporaryHandled(request.AlarmTemporaryDID, request.HandlerId); return(updateHandledResponse); }
private void btnHandle_Click(object sender, RoutedEventArgs e) { AlarmTemporaryUpdateHandledResponse updateHandledResponse = LocalApi.Execute(new AlarmTemporaryUpdateHandledRequest() { AlarmTemporaryDID = this.AlarmTemporaryDID, HandlerId = AppContext.Current.UserId }); if (updateHandledResponse.IsError) { int num1 = (int)MessageBox.Show(updateHandledResponse.ErrMsg, "提示"); } else { int num2 = (int)MessageBox.Show("提交成功", "提示"); this.NavigationService.GoBack(); } }