Пример #1
0
        public AlarmTemporaryUpdateHandledResponse Execute(AlarmTemporaryUpdateHandledRequest request)
        {
            AlarmTemporaryUpdateHandledResponse updateHandledResponse = new AlarmTemporaryUpdateHandledResponse();

            ServiceHelper.LoadService <IAlarmService>().UpdateAlarmTemporaryHandled(request.AlarmTemporaryDID, request.HandlerId);
            return(updateHandledResponse);
        }
Пример #2
0
        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();
            }
        }