pry 2 years ago
parent
commit
c18f3b1602
8 changed files with 15 additions and 14 deletions
  1. +1
    -1
      BPASmartClient.JXJFoodBigStation/Model/RawMaterial/RawMaterial.cs
  2. +1
    -1
      BPASmartClient.JXJFoodBigStation/Model/RawMaterial/RecipeData.cs
  3. +6
    -7
      BPASmartClient.JXJFoodBigStation/View/RecipeReceiveView.xaml
  4. +2
    -2
      BPASmartClient.JXJFoodBigStation/ViewModel/RecipeReceiveViewModel.cs
  5. +1
    -1
      BPASmartClient.JXJFoodSmallStation/App.xaml.cs
  6. +1
    -1
      BPASmartClient.JXJFoodSmallStation/View/NewLocalRecipeView.xaml
  7. +2
    -0
      BPASmartClient.JXJFoodSmallStation/View/NewLocalRecipeView.xaml.cs
  8. +1
    -1
      BPASmartClient.JXJFoodSmallStation/ViewModel/RecipeReceiveViewModel.cs

+ 1
- 1
BPASmartClient.JXJFoodBigStation/Model/RawMaterial/RawMaterial.cs View File

@@ -15,7 +15,7 @@ namespace BPASmartClient.JXJFoodBigStation.Model
/// <summary>
/// 原料名称
/// </summary>
public string RawMaterialName { get { return _mRawMaterialName; } set { _mRawMaterialName = value; } }
public string RawMaterialName { get { return _mRawMaterialName; } set { _mRawMaterialName = value; OnPropertyChanged(); } }
private string _mRawMaterialName;

/// <summary>


+ 1
- 1
BPASmartClient.JXJFoodBigStation/Model/RawMaterial/RecipeData.cs View File

@@ -19,7 +19,7 @@ namespace BPASmartClient.JXJFoodBigStation.Model
/// <summary>
/// 配方ID
/// </summary>
public string RecipeCode { get { return _mRecipeCode; } set { _mRecipeCode = value; } }
public string RecipeCode { get { return _mRecipeCode; } set { _mRecipeCode = value;OnPropertyChanged(); } }
private string _mRecipeCode;
/// <summary>


+ 6
- 7
BPASmartClient.JXJFoodBigStation/View/RecipeReceiveView.xaml View File

@@ -11,11 +11,13 @@
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">

<UserControl.DataContext>
<vm:RecipeReceiveViewModel/>
</UserControl.DataContext>
<UserControl.Resources>


<SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
<SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
<SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
@@ -145,12 +147,8 @@
</Setter>
</Style>
<!--#endregion-->
</UserControl.Resources>

<UserControl.DataContext>
<vm:RecipeReceiveViewModel/>
</UserControl.DataContext>
</UserControl.Resources>

<Grid>
<Grid.RowDefinitions>
@@ -194,6 +192,7 @@
</StackPanel>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Hidden">
<ListBox
Grid.Row="2"
Margin="5"
VerticalAlignment="Top"


+ 2
- 2
BPASmartClient.JXJFoodBigStation/ViewModel/RecipeReceiveViewModel.cs View File

@@ -102,13 +102,13 @@ namespace BPASmartClient.JXJFoodBigStation.ViewModel
}

public RelayCommand<object> DetailsCommand { get; set; }
public RelayCommand NewSimulateRecipe { get; set; }
// public RelayCommand NewSimulateRecipe { get; set; }
public RelayCommand ClearAllRecipe { get; set; }

public RelayCommand NewRecipe { get; set; }

public RelayCommand<string> RemoveCommand { get; set; }
public ObservableCollection<RecipeData> Recipes { get; set; } = new ObservableCollection<RecipeData>();
}
}

+ 1
- 1
BPASmartClient.JXJFoodSmallStation/App.xaml.cs View File

@@ -29,7 +29,7 @@ namespace BPASmartClient.JXJFoodSmallStation
MenuInit();
DataInit();
DeviceInquire.GetInstance.Init();//配料机设备上线监听,设备列表初始化
ProcessControl.GetInstance.Init();
// ProcessControl.GetInstance.Init();
MainView mv = new MainView();
LoginView lv = new LoginView();
var res = lv.ShowDialog();


+ 1
- 1
BPASmartClient.JXJFoodSmallStation/View/NewLocalRecipeView.xaml View File

@@ -11,7 +11,7 @@
Height="520"
AllowsTransparency="True"
Background="{x:Null}"
Topmost="True"
Topmost="false"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
mc:Ignorable="d">


+ 2
- 0
BPASmartClient.JXJFoodSmallStation/View/NewLocalRecipeView.xaml.cs View File

@@ -29,5 +29,7 @@ namespace BPASmartClient.JXJFoodSmallStation.View
ActionManage.GetInstance.CancelRegister("CloseNewRemoteRecipeView");
ActionManage.GetInstance.Register(new Action(() => { this.Close(); }), "CloseNewRemoteRecipeView");
}

}
}

+ 1
- 1
BPASmartClient.JXJFoodSmallStation/ViewModel/RecipeReceiveViewModel.cs View File

@@ -31,7 +31,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel
IsUseWindSendDosing = GVL_SmallStation.GetInstance.IsUseWindSend;
//Json<LocaPar>.Read();
Recipes = Json<LocalRecipeDataColl>.Data.Recipes;
NewRecipe = new RelayCommand(() =>
{
NewLocalRecipeView NewLocalRecipe = new NewLocalRecipeView();


Loading…
Cancel
Save