void ShowBoth(object param)
        {
            this.ShowDetailTrue  = true;
            this.ShowSummaryTrue = false;
            ITodoUnpaidDetailRepository paymentRepository = new TodoUnpaidDetailRepository();

            //GetOptionsandTaxValues();
            this.ListDueDays        = paymentRepository.GetAllData(2);
            this.UnpaidPurchaseTrue = false;
            this.UnpaidPurSalesTrue = true;
            this.UnpaidSalesTrue    = false;
            this.UnpaidSummaryTrue  = false;
            DefaultList             = this.ListDueDays;
            this.ListDueDayscmbSup  = this.ListDueDays.GroupBy(x => x.Name).Select(y => y.First()).OrderBy(x => x.Name).ToList();
            this.ListDueDayscmbInv  = this.ListDueDays.GroupBy(x => x.InvoiceNo).Select(y => y.First()).OrderBy(x => x.InvoiceNo).ToList();
            this.ShowSelectedCount  = this.ListDueDays.Count();
        }
        //void NavigateToSupplier(object param)
        //{
        //    string obj = param.ToString();
        //    SharedValues.getValue = obj;
        //    var mainview = ServiceLocator.Current.GetInstance<SupplierDetailView>();
        //    var mainregion = this.regionManager.Regions[RegionNames.MainRegion];
        //    mainregion.Add(mainview);
        //    if (mainregion != null)
        //    {
        //        mainregion.Activate(mainview);
        //    }


        //    var tabview = ServiceLocator.Current.GetInstance<SupplierTabView>();
        //    var tabregion = this.regionManager.Regions[RegionNames.MenuBarRegion];
        //    tabregion.Add(tabview);
        //    if (tabregion != null)
        //    {
        //        tabregion.Activate(tabview);
        //    }

        //    eventAggregator.GetEvent<TabVisibilityEvent>().Publish(true);
        //    eventAggregator.GetEvent<SubTabVisibilityEvent>().Publish(false);
        //    eventAggregator.GetEvent<TitleChangedEvent>().Publish("Suppliers Details Form");
        //}
        void ShowSales(object param)
        {
            this.ShowDetailTrue  = true;
            this.ShowSummaryTrue = false;
            ITodoUnpaidDetailRepository paymentRepository = new TodoUnpaidDetailRepository();

            //GetOptionsandTaxValues();
            this.ListDueDays        = paymentRepository.GetAllData(1);
            this.UnpaidPurchaseTrue = false;
            this.UnpaidPurSalesTrue = false;
            this.UnpaidSalesTrue    = true;
            this.UnpaidSummaryTrue  = false;
            DefaultList             = this.ListDueDays;
            this.ListDueDayscmbSup  = this.ListDueDays.GroupBy(x => x.Name).Select(y => y.First()).OrderBy(x => x.Name).ToList();
            this.ListDueDayscmbInv  = this.ListDueDays.GroupBy(x => x.InvoiceNo).Select(y => y.First()).OrderBy(x => x.InvoiceNo).ToList();
            this.ShowSelectedCount  = this.ListDueDays.Count();
            OptionsEntity             oData = new OptionsEntity();
            ISalesOrderListRepository purchaseRepository = new SalesOrderListRepository();

            oData = purchaseRepository.GetOptionSettings();
            this.DateformatStr = oData.DateFormat.ToString();
        }