void ShowAll(object param) { this.YearmonthQuartTrue = false; //added after client feedback this.StartEndDateTrue = false; //added after client feedback this.CountAndAdjustStockList = FullPQList; this.CountAndAdjustStockListcmb = FullPQList; if (this.ShowAllTrue == false) { this.ShowSelectedCount = this.CountAndAdjustStockList.Count(); } else { this.ShowSelectedCount = 0; } this.SelectedSearchEndDate = null; this.SelectedSearchMonth = null; this.SelectedSearchQuarter = null; this.SelectedSearchYear = null; this.SelectedSearchStartDate = null; this.SelectedSearchEndDate = null; //commented and added on 23 may 2017 this.CountAndAdjustStockList = FullPQList.ToList(); this.CountAndAdjustStockListDate = this.CountAndAdjustStockList.GroupBy(x => x.CountAndAdjustStockDateDatetime).Select(y => y.First()).OrderBy(x => x.CountAndAdjustStockDateDatetime).Distinct().ToList(); this.CountAndAdjustStockListSCNo = CountAndAdjustStockList.OrderBy(e => e.CountAndAdjustStockNo).ToList(); this.CountAndAdjustStockListAmount = this.CountAndAdjustStockList.GroupBy(x => x.AdjustedAmountd).Select(y => y.First()).OrderBy(x => x.AdjustedAmountd).Distinct().ToList(); //if (this.IncludingGSTTrue == true) // this.PurchaseQuotationList = FullPQList.Where(x => x.ExcIncGST == true).ToList(); //else // this.PurchaseQuotationList = FullPQList.Where(x => x.ExcIncGST == false).ToList(); Mouse.OverrideCursor = Cursors.Wait; Search(null); Mouse.OverrideCursor = null; }
void ShowAll(object param) { this.YearmonthQuartTrue = false; //added after client feedback this.StartEndDateTrue = false; //added after client feedback Mouse.OverrideCursor = Cursors.Wait; this.PurchaseOrderList = FullPQList; this.PurchaseOrderListcmb = FullPQList; this.PurchaseOrderListcmbSup = this.PurchaseOrderList.GroupBy(x => x.SupplierName).Select(y => y.First()).OrderBy(x => x.SupplierName).Distinct().ToList(); this.PurchaseOrderListcmbONo = this.PurchaseOrderList.GroupBy(x => x.OrderNo).Select(y => y.First()).OrderBy(x => x.SortOrderNo).Distinct().ToList(); if (this.ShowAllTrue == false) { this.ShowSelectedCount = this.PurchaseOrderList.Count(); } else { this.ShowSelectedCount = 0; } this.SelectedSearchEndDate = null; this.SelectedSearchMonth = null; this.SelectedSearchQuarter = null; this.SelectedSearchYear = null; this.SelectedSearchStartDate = null; this.SelectedSearchEndDate = null; //if (this.IncludingGSTTrue == true) // this.PurchaseOrderList = FullPQList.Where(x => x.ExcIncGST == true).ToList(); //else // this.PurchaseOrderList = FullPQList.Where(x => x.ExcIncGST == false).ToList(); this.PurchaseOrderList = FullPQList.ToList(); Search(null); Mouse.OverrideCursor = null; }