/// <summary>
 /// 修改交易设置信息
 /// </summary>
 public void ModifyTradingSettingInfo(TradeConfigInfo selInfo)
 {
     TradeSetWindow window = new TradeSetWindow()
                                 {
                                     DataContext = selInfo,
                                     Owner = Application.Current.MainWindow
                                 };
     window.CodeEnable = false;
     if (window.ShowDialog() == true)
     {
         ErrType err = _businessService.ModifyTradeSet(_loginID, selInfo);
         if (err != GeneralErr.Success)
             MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Warning);
     }
     else
     {
         //GetTradingSettingInfo();
     }
 }
 /// <summary>
 /// 添加交易设置信息
 /// </summary>
 public void AddTradingSettingInfo()
 {
     TradeConfigInfo selInfo = new TradeConfigInfo();
     TradeSetWindow window = new TradeSetWindow()
     {
         DataContext = selInfo,
         Owner = Application.Current.MainWindow
     };
     window.CodeEnable = true;
     if (window.ShowDialog() == true)
     {
         if (TradeConfigInfoList.Where(p => p.ObjCode == selInfo.ObjCode).Count() > 0)
         {
             MessageBox.Show("名称编码不能重复,请重新填写", "提示信息", MessageBoxButton.OK, MessageBoxImage.Information);
             AddTradingSettingInfo();
         }
         else
         {
             ErrType err = _businessService.AddTradeSet(selInfo, _loginID);
             if (err != GeneralErr.Success)
                 MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Warning);
             else
                 TradeConfigInfoList.Add(selInfo);
         }
     }
 }