|
|
@ -3,6 +3,7 @@ using BBWY.Client.Models.PackTask; |
|
|
|
using BBWY.Controls; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO.Packaging; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Windows; |
|
|
@ -21,9 +22,10 @@ namespace BBWY.Client.Views.StorePickSelf |
|
|
|
/// </summary>
|
|
|
|
public partial class StorePickProductWindow : BWindow |
|
|
|
{ |
|
|
|
public StorePickProductWindow(StoreGetSelfResponse model) |
|
|
|
public StorePickProductWindow(StoreGetSelfResponse model, Func<int, string, bool> SaveData) |
|
|
|
{ |
|
|
|
StoreGetSelfResponse=model; |
|
|
|
this. SaveData=SaveData; |
|
|
|
StoreGetSelfResponse =model; |
|
|
|
InitializeComponent(); |
|
|
|
this.DataContext = this; |
|
|
|
} |
|
|
@ -42,10 +44,13 @@ namespace BBWY.Client.Views.StorePickSelf |
|
|
|
public StoreGetSelfResponse StoreGetSelfResponse { get=> storeGetSelfResponse; set {Set(ref storeGetSelfResponse,value); } } |
|
|
|
private void BButton_Click(object sender, RoutedEventArgs e) |
|
|
|
{ |
|
|
|
this.DialogResult = true; |
|
|
|
|
|
|
|
if (SaveData != null&& SaveData(Count, UserName)) |
|
|
|
{ |
|
|
|
this.Close(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private Func<int, string,bool> SaveData { get; set; } |
|
|
|
private void BButton_Click_1(object sender, RoutedEventArgs e) |
|
|
|
{ |
|
|
|
Count = StoreGetSelfResponse.PickMaxCount; |
|
|
|