コード例 #1
0
        private void btnBatchCustomsReject_Click(object sender, RoutedEventArgs e)
        {
            //通关失败;
            List <int> selectedSOSysNos = SelectedSOSysNoList;

            if (selectedSOSysNos != null && selectedSOSysNos.Count > 0)
            {
                SOFacade.BatchOperationUpdateSOStatusToCustomsReject(selectedSOSysNos, (result) =>
                {
                    if (string.IsNullOrWhiteSpace(result))
                    {
                        QuerySO();
                    }
                    else
                    {
                        if (result.Length > 100)
                        {
                            SoTextboxAlert content = new SoTextboxAlert(result);
                            content.Width          = 550D;
                            content.Height         = 350D;
                            IDialog dialog         = this.Window.ShowDialog(ResSO.UC_Title_SoTextboxAlert, content, (obj, args) =>
                            {
                                QuerySO();
                            });
                        }
                        else
                        {
                            Window.Alert(ResSO.UC_Title_SoTextboxAlert, result, MessageType.Warning, (obj, args) => { QuerySO(); });
                        }
                    }
                });
            }
            else
            {
                Window.Alert(ResSO.Msg_SOIsNull, MessageType.Information);
            }
        }