更改FTP文件导入
This commit is contained in:
@@ -23,7 +23,7 @@ namespace FATrace.WPLApp.ViewModels
|
||||
_fsql = fsql;
|
||||
_log = log;
|
||||
|
||||
Items = new ObservableCollection<OEMInventoryTransaction>();
|
||||
Items = new ObservableCollection<OEMInOutbound>();
|
||||
|
||||
SearchCommand = new DelegateCommand(async () => await SearchAsync(), () => !IsBusy)
|
||||
.ObservesProperty(() => IsBusy);
|
||||
@@ -67,7 +67,7 @@ namespace FATrace.WPLApp.ViewModels
|
||||
#endregion
|
||||
|
||||
#region 列表与分页
|
||||
public ObservableCollection<OEMInventoryTransaction> Items { get; }
|
||||
public ObservableCollection<OEMInOutbound> Items { get; }
|
||||
|
||||
private bool _isBusy;
|
||||
public bool IsBusy { get => _isBusy; set { _isBusy = value; RaisePropertyChanged(); } }
|
||||
@@ -125,7 +125,7 @@ namespace FATrace.WPLApp.ViewModels
|
||||
|
||||
var data = await Task.Run(() =>
|
||||
{
|
||||
var q = _fsql.Select<OEMInventoryTransaction>();
|
||||
var q = _fsql.Select<OEMInOutbound>();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(Origin))
|
||||
q = q.Where(a => a.Origin != null && a.Origin.Contains(Origin));
|
||||
|
||||
Reference in New Issue
Block a user