private void CommandBinding_Executed_ModifyState(object sender, ExecutedRoutedEventArgs e)
        {
            ManagementViewModel vm            = this.DataContext as ManagementViewModel;
            BzjRecoverOrder     selectedOrder = (e.OriginalSource as DataGridRow).DataContext as BzjRecoverOrder;

            vm.ModifyTradeCheck(selectedOrder);
        }
Beispiel #2
0
        /// <summary>
        /// 交割单[买跌]处理
        /// </summary>
        /// <param name="selectData"></param>
        public void ModifyTradeCheck(BzjRecoverOrder selectData)
        {
            ModifyBackTradeWindow window = new ModifyBackTradeWindow()
            {
                Owner       = Application.Current.MainWindow,
                DataContext = this
            };

            if (window.ShowDialog() == true)
            {
                ErrType err = _businessService.ModifyTradeCheck(selectData.OrderId, window.PayTime, _loginID, (int)_accType);
                if (err.Err != ERR.SUCCESS)
                {
                    MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Information);
                }
                else
                {
                    selectData.PayTime     = window.PayTime;
                    selectData.DoPerson    = _accName;
                    selectData.StateString = "已受理";
                }
            }
        }