Commit b897aaf0 by wangonghui

修改bug

parent b41c642d
......@@ -12,6 +12,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
using VIZ.Package.Domain;
using VIZ.Package.Module;
namespace VIZ.TVP.CBA.Module
......@@ -19,7 +20,7 @@ namespace VIZ.TVP.CBA.Module
/// <summary>
/// Interaction logic for HttpUrlConfigView.xaml
/// </summary>
public partial class HttpUrlConfigView : UserControl
public partial class HttpUrlConfigView : UserControl, IPluginSettingView
{
public HttpUrlConfigView()
{
......
......@@ -195,8 +195,18 @@ namespace VIZ.TVP.CBA.Module
public void Save()
{
HttpUrlConfigEntity config = AppSetup_InitCBALiteDB.HttpUrlConfigEntity;
config.Url = this.Url;
config.AppId = this.AppId;
config.AppKey = this.AppKey;
config.BUrl = this.BUrl;
config.BAppId = this.BAppId;
config.BAppKey = this.BAppKey;
AppSetup_InitCBALiteDB.cBALocalDbContext.HttpUrlConfig.Upsert(config);
}
}
......
......@@ -43,7 +43,7 @@ namespace VIZ.TVP.CBA.Module
/// <summary>
/// CBA数据库Context
/// </summary>
public CBALocalDbContext cBALocalDbContext { get; set; }
public static CBALocalDbContext cBALocalDbContext { get; set; }
public static HttpUrlConfigEntity HttpUrlConfigEntity { get; set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment