private async void OnSLsDropDownOpened()
        {
            _allSL = await _sLsService.GetSLsActiveAsync();

            SLs = new ObservableCollection <SLSetting>(_allSL.Select(x => new SLSetting {
                SLId = x.SLId.ToString(), Title = x.Title
            }));
        }
Esempio n. 2
0
        private async void OnAddStock()
        {
            _allSLs = await _sLsService.GetSLsActiveAsync();

            SLs = new ObservableCollection <SL>(_allSLs);
            if (Products == null)
            {
                _allProducts = await _productsService.GetProductsAsync();

                //  SLs = new ObservableCollection<SL>(_allSLs);
                //  Products = new ObservableCollection<Product>(_allProducts);
                _allProducts = await _productsService.GetProductsAsync();
            }

            if (SLs?.Any() != true)
            {
                Error(".سند معین ثبت نشده است");
            }
            //else if (Products?.Any() != true)
            //{
            //    DialogParameters parameters = new DialogParameters();
            //    parameters.OkButtonContent = "بله";
            //    parameters.Header = "اخطار";
            //    parameters.Content = "کالا ثبت نشده است";
            //    // parameters.Closed = OnClosed;
            //    RadWindow.Alert(parameters);
            //}
            else
            {
                AddStockRequested(new Stock());
            }
        }
Esempio n. 3
0
 private void OnSLsDropDownOpened()
 {
     _allSLs = _sLsService.GetSLsActiveAsync().Result;
     SLs     = new ObservableCollection <SL>(_allSLs);
 }
        private async void OnSLsDropDownOpened()
        {
            _allSLs = await _sLsService.GetSLsActiveAsync();

            SLs = new ObservableCollection <SL>(_allSLs);
        }