|
|
@ -110,7 +110,20 @@ namespace BBWY.Client.ViewModels |
|
|
|
Task.Factory.StartNew(() => LoadOrder(1)); |
|
|
|
Task.Factory.StartNew(() => LoadTodayAchievement(StartDate, EndDate)); |
|
|
|
}); |
|
|
|
CopyTextCommand = new RelayCommand<string>(s => Clipboard.SetText(s)); |
|
|
|
CopyTextCommand = new RelayCommand<string>(s => |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
Clipboard.SetText(s); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
Console.ForegroundColor = ConsoleColor.Red; |
|
|
|
Console.WriteLine(ex); |
|
|
|
Console.ResetColor(); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
CopyOrderWaybillCommand = new RelayCommand<Order>(o => Clipboard.SetText(o.WaybillNo)); |
|
|
|
SetSearchDateCommand = new RelayCommand<int>(d => |
|
|
|
{ |
|
|
|