Exemple #1
0
        public void RefreshItemSource()
        {
            // TODO : Refresh with a new Query.
            var current       = ViewModelManager.GetCurretBaseModel();
            var warehouseCode = selectedBranch != null && selectedBranch.WhsCode != null
                ? SelectedBranch.WhsCode
                : string.Empty;

            if (current == null)
            {
                return;
            }

            this.Keyword            = TextFilter;
            current.Keyword         = TextFilter;
            current.SelectedSerie   = this.SelectedSerie;
            current.localStatus     = localStatus;
            current.WarehouseCode   = warehouseCode;
            current.StartDate       = _startDate;
            current.LastDate        = _lastDate;
            current.ForceRefresh    = true;
            current.ABSelectedGroup = selectedgroup;
            current.RefreshItemSource();
        }