public UncashedCommisionStatisticsViewModel(ICommonInfo dimensionService)
        {
            Stores        = dimensionService.GetStoreList();
            QueryCriteria = new UncashedCommisionStatisticsQueryCriteria();

            QueryCommand  = new AsyncDelegateCommand(OnQuery);
            ExportCommand = new AsyncDelegateCommand(OnExport);
        }
Ejemplo n.º 2
0
        public CounterListViewModel(ICommonInfo dimensionService)
        {
            EnableCommand  = new AsyncDelegateCommand(() => OnEnable(false), CanExecute);
            DisableCommand = new AsyncDelegateCommand(() => OnEnable(true), CanExecute);

            Stores        = dimensionService.GetStoreList();
            QueryCriteria = new QueryCounterByComposition();
        }
        public GiftCardStatisticsViewModel(ICommonInfo dimensionService)
        {
            Stores         = dimensionService.GetStoreList();
            PaymentMethods = dimensionService.GetPayMethod();
            QueryCriteria  = new GiftCardStatisticsQueryCriteria();

            QueryCommand  = new AsyncDelegateCommand(OnQuery);
            ExportCommand = new AsyncDelegateCommand(OnExport);
        }
        public CashedCommisionStatisticsViewModel(ICommonInfo dimensionService, IService <Bank> bankService)
        {
            Stores        = dimensionService.GetStoreList();
            Banks         = bankService.QueryAll(new QueryAll());
            QueryCriteria = new CashedCommisionStatisticsQueryCriteria();

            QueryCommand  = new AsyncDelegateCommand(OnQuery);
            ExportCommand = new AsyncDelegateCommand(OnExport);
        }
Ejemplo n.º 5
0
 public ApprovalViewModel(ICommonInfo dimensionService)
 {
     QueryCriteria           = new ApplicationQueryCriteria();
     Stores                  = dimensionService.GetStoreList();
     ApprovalStatuses        = EnumerationUtility.ToList <ApprovalStatus>();
     QueryCommand            = new AsyncDelegateCommand(OnQuery);
     ApproveCommand          = new AsyncDelegateCommand(OnApprove, CanCommandExecute);
     SelectAllCommand        = new DelegateCommand <bool?>(OnSelectAll);
     ReloadDepartmentCommand = new AsyncDelegateCommand(OnDepartmentReload);
 }
Ejemplo n.º 6
0
 public AssociateViewModel(ICommonInfo dimensionService)
 {
     QueryCriteria           = new AssociateQueryCriteria();
     Stores                  = dimensionService.GetStoreList();
     PermissionLevels        = EnumerationUtility.ToList <AssociatePermission>();
     QueryCommand            = new AsyncDelegateCommand(OnQuery);
     RenotifyCommand         = new AsyncDelegateCommand(OnNotify, CanCommandExecute);
     DemoteCommand           = new AsyncDelegateCommand(OnDemote, CanCommandExecute);
     SelectAllCommand        = new DelegateCommand <bool?>(OnSelectAll);
     ReloadDepartmentCommand = new AsyncDelegateCommand(OnDepartmentReload);
 }