系统新增分厂配置功能,允许客户端进行配置分厂或是部门之类的

This commit is contained in:
dathlin
2017-09-03 11:29:48 +08:00
parent aa6e21f0b2
commit 633f31ab57
12 changed files with 209 additions and 69 deletions

View File

@@ -123,6 +123,7 @@ namespace 软件系统客户端Wpf
MenuItem注册账户.IsEnabled = false;
MenuItem消息发送.IsEnabled = false;
MenuItem开发中心.IsEnabled = false;
MenuItem分厂配置.IsEnabled = false;
}
@@ -211,7 +212,7 @@ namespace 软件系统客户端Wpf
private void MenuItem注册账户_Click(object sender, RoutedEventArgs e)
{
using (FormRegisterAccount fra = new FormRegisterAccount())
using (FormRegisterAccount fra = new FormRegisterAccount(UserClient.SystemFactories.ToArray()))
{
fra.ShowDialog();
}
@@ -370,6 +371,18 @@ namespace 软件系统客户端Wpf
}
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格式更新分厂信息然后提交"))
{
fiaa.ShowDialog();
}
}
#endregion
@@ -756,5 +769,7 @@ namespace 软件系统客户端Wpf
await Task.Delay(2000);
DialogHostWait.IsOpen = false;
}
}
}