客户端新增系统配置界面,集中处理系统配置功能,完成信任客户端列表功能,v1.4.7

This commit is contained in:
dathlin
2017-09-24 12:42:45 +08:00
parent 8f779ca4de
commit f5a76a7e43
26 changed files with 940 additions and 74 deletions

View File

@@ -62,7 +62,7 @@
</MenuItem>
<Separator />
<MenuItem Header="分厂配置" x:Name="MenuItem分厂配置" Click="MenuItem分厂配置_Click">
<MenuItem Header="系统配置" x:Name="MenuItem系统配置" Click="MenuItem系统配置_Click">
<MenuItem.Icon>
<materialDesign:PackIcon Kind="City" />
</MenuItem.Icon>

View File

@@ -34,9 +34,9 @@ namespace 软件系统客户端Wpf
/***************************************************************************************
*
* 模版日期 2017-07-11
* 创建人 胡少林
* 版权所有 胡少林
* 模版日期 2017-09-24
* 创建人 Richard Hu
* 版权所有 Richard Hu
* 授权说明 模版仅授权个人使用如需商用请联系hsl200909@163.com洽谈
* 说明一 JSON组件引用自james newton-king遵循MIT授权协议
* 说明二 主题及各种主件来自:https://github.com/ButchersBoy/MaterialDesignInXamlToolkit
@@ -123,7 +123,7 @@ namespace 软件系统客户端Wpf
MenuItem注册账户.IsEnabled = false;
MenuItem消息发送.IsEnabled = false;
MenuItem开发中心.IsEnabled = false;
MenuItem分厂配置.IsEnabled = false;
MenuItem系统配置.IsEnabled = false;
}
@@ -375,15 +375,11 @@ namespace 软件系统客户端Wpf
}
private void MenuItem分厂配置_Click(object sender, RoutedEventArgs e)
private void MenuItem系统配置_Click(object sender, RoutedEventArgs e)
{
using (FormInputAndAction fiaa = new FormInputAndAction(
str => UserClient.Net_simplify_client.ReadFromServer(
CommonHeadCode.SimplifyHeadCode., str).IsSuccess,
JArray.FromObject(UserClient.SystemFactories).ToString(),
"请按照JSON格式更新分厂信息然后提交"))
using (FormConfiguration fc = new FormConfiguration())
{
fiaa.ShowDialog();
fc.ShowDialog();
}
}