taoye 2 years ago
parent
commit
eeb69151e3
3 changed files with 25 additions and 25 deletions
  1. +22
    -22
      DosingSystem/App.xaml.cs
  2. +1
    -1
      DosingSystem/Model/DeviceInquire.cs
  3. +2
    -2
      DosingSystem/View/RecipeSettingsView.xaml

+ 22
- 22
DosingSystem/App.xaml.cs View File

@@ -96,19 +96,19 @@ namespace BPASmartClient.DosingSystem


ParSet.Add(new SubMenumodel() ParSet.Add(new SubMenumodel()
{ {
SubMenuName = "设备控制参数设置",
SubMenuName = "设备参数设置",
SubMenuPermission = new Permission[] { Permission.管理员 }, SubMenuPermission = new Permission[] { Permission.管理员 },
AssemblyName = "BPASmartClient.DosingSystem", AssemblyName = "BPASmartClient.DosingSystem",
ToggleWindowPath = "View.CommParSetView" ToggleWindowPath = "View.CommParSetView"
}); });


ParSet.Add(new SubMenumodel()
{
SubMenuName = "出料口管理设置",
SubMenuPermission = new Permission[] { Permission.管理员 },
AssemblyName = "BPASmartClient.DosingSystem",
ToggleWindowPath = "View.OutletManagementView"
});
//ParSet.Add(new SubMenumodel()
//{
// SubMenuName = "出料口管理设置",
// SubMenuPermission = new Permission[] { Permission.管理员 },
// AssemblyName = "BPASmartClient.DosingSystem",
// ToggleWindowPath = "View.OutletManagementView"
//});


MenuManage.GetInstance.menuModels.Add(new MenuModel() MenuManage.GetInstance.menuModels.Add(new MenuModel()
{ {
@@ -186,13 +186,13 @@ namespace BPASmartClient.DosingSystem
ToggleWindowPath = "Pages.View.DebugLogView" ToggleWindowPath = "Pages.View.DebugLogView"
}); });


InfoLog.Add(new SubMenumodel()
{
SubMenuName = "报表数据",
SubMenuPermission = new Permission[] { Permission.操作员, Permission.管理员, Permission.技术员, Permission.技术员 },
AssemblyName = "BPASmartClient.CustomResource",
ToggleWindowPath = "Pages.View.ReportView"
});
//InfoLog.Add(new SubMenumodel()
//{
// SubMenuName = "报表数据",
// SubMenuPermission = new Permission[] { Permission.操作员, Permission.管理员, Permission.技术员, Permission.技术员 },
// AssemblyName = "BPASmartClient.CustomResource",
// ToggleWindowPath = "Pages.View.ReportView"
//});


MenuManage.GetInstance.menuModels.Add(new MenuModel() MenuManage.GetInstance.menuModels.Add(new MenuModel()
{ {
@@ -255,13 +255,13 @@ namespace BPASmartClient.DosingSystem
ToggleWindowPath = "Pages.View.UserManagerView" ToggleWindowPath = "Pages.View.UserManagerView"
}); });


UserManager.Add(new SubMenumodel()
{
SubMenuName = "NFC登录管理",
SubMenuPermission = new Permission[] { Permission.管理员 },
AssemblyName = "BPASmartClient.CustomResource",
ToggleWindowPath = "Pages.View.NfcSetView"
});
//UserManager.Add(new SubMenumodel()
//{
// SubMenuName = "NFC登录管理",
// SubMenuPermission = new Permission[] { Permission.管理员 },
// AssemblyName = "BPASmartClient.CustomResource",
// ToggleWindowPath = "Pages.View.NfcSetView"
//});


MenuManage.GetInstance.menuModels.Add(new MenuModel() MenuManage.GetInstance.menuModels.Add(new MenuModel()
{ {


+ 1
- 1
DosingSystem/Model/DeviceInquire.cs View File

@@ -114,7 +114,7 @@ namespace BPASmartClient.DosingSystem
{ {
if (!string.IsNullOrEmpty(Json<DevicePar>.Data.BaseParModel.NetworkSegAddress)) IPSegment = Json<DevicePar>.Data.BaseParModel.NetworkSegAddress; if (!string.IsNullOrEmpty(Json<DevicePar>.Data.BaseParModel.NetworkSegAddress)) IPSegment = Json<DevicePar>.Data.BaseParModel.NetworkSegAddress;
else Json<DevicePar>.Data.BaseParModel.NetworkSegAddress = IPSegment; else Json<DevicePar>.Data.BaseParModel.NetworkSegAddress = IPSegment;
//TestData();
TestData();
IpAddressLines(); IpAddressLines();
SiemensDevice.GetInstance.Connect(Json<DevicePar>.Data.BaseParModel.DeviceAddress); SiemensDevice.GetInstance.Connect(Json<DevicePar>.Data.BaseParModel.DeviceAddress);
DeviceDataInit(); DeviceDataInit();


+ 2
- 2
DosingSystem/View/RecipeSettingsView.xaml View File

@@ -65,14 +65,14 @@
IcoText="&#xe626;" IcoText="&#xe626;"
Style="{StaticResource IcoButtonStyle}" />--> Style="{StaticResource IcoButtonStyle}" />-->


<Button
<!--<Button
Width="140" Width="140"
Height="30" Height="30"
Margin="10 0" Margin="10 0"
Command="{Binding NewMaterital}" Command="{Binding NewMaterital}"
Content="新建原料" Content="新建原料"
FontSize="16" FontSize="16"
Style="{StaticResource ImageButtonStyle}" />
Style="{StaticResource ImageButtonStyle}" />-->


<Button <Button
Width="140" Width="140"


Loading…
Cancel
Save