本文整理汇总了C#中ITicketService类的典型用法代码示例。如果您正苦于以下问题:C# ITicketService类的具体用法?C# ITicketService怎么用?C# ITicketService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITicketService类属于命名空间,在下文中一共展示了ITicketService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PaymentEditorViewModel
public PaymentEditorViewModel(IApplicationState applicationState, ICacheService cacheService, IExpressionService expressionService,
TicketTotalsViewModel paymentTotals, PaymentEditor paymentEditor, NumberPadViewModel numberPadViewModel,
OrderSelectorViewModel orderSelectorViewModel, ITicketService ticketService,
ForeignCurrencyButtonsViewModel foreignCurrencyButtonsViewModel, PaymentButtonsViewModel paymentButtonsViewModel,
CommandButtonsViewModel commandButtonsViewModel, TenderedValueViewModel tenderedValueViewModel,
ReturningAmountViewModel returningAmountViewModel, ChangeTemplatesViewModel changeTemplatesViewModel, AccountBalances accountBalances)
{
_applicationState = applicationState;
_cacheService = cacheService;
_expressionService = expressionService;
_paymentTotals = paymentTotals;
_paymentEditor = paymentEditor;
_numberPadViewModel = numberPadViewModel;
_orderSelectorViewModel = orderSelectorViewModel;
_ticketService = ticketService;
_foreignCurrencyButtonsViewModel = foreignCurrencyButtonsViewModel;
_commandButtonsViewModel = commandButtonsViewModel;
_tenderedValueViewModel = tenderedValueViewModel;
_returningAmountViewModel = returningAmountViewModel;
_changeTemplatesViewModel = changeTemplatesViewModel;
_accountBalances = accountBalances;
_makePaymentCommand = new CaptionCommand<PaymentType>("", OnMakePayment, CanMakePayment);
_selectChangePaymentTypeCommand = new CaptionCommand<PaymentData>("", OnSelectChangePaymentType);
ClosePaymentScreenCommand = new CaptionCommand<string>(Resources.Close, OnClosePaymentScreen, CanClosePaymentScreen);
paymentButtonsViewModel.SetButtonCommands(_makePaymentCommand, null, ClosePaymentScreenCommand);
}
示例2: ChangeTicketEntity
public ChangeTicketEntity(ITicketService ticketService, IApplicationState applicationState, ICacheService cacheService, IEntityService entityService)
{
_ticketService = ticketService;
_applicationState = applicationState;
_cacheService = cacheService;
_entityService = entityService;
}
示例3: PaymentEditorViewModel
public PaymentEditorViewModel(IApplicationState applicationState, ITicketService ticketService,
IPrinterService printerService, IUserService userService, IAutomationService automationService, TicketTotalsViewModel totals)
{
_applicationState = applicationState;
_ticketService = ticketService;
_printerService = printerService;
_userService = userService;
_automationService = automationService;
_manualPrintCommand = new CaptionCommand<PrintJob>(Resources.Print, OnManualPrint, CanManualPrint);
_makePaymentCommand = new CaptionCommand<PaymentTemplate>("", OnMakePayment, CanMakePayment);
_serviceSelectedCommand = new CaptionCommand<CalculationTemplate>("", OnSelectCalculationTemplate);
SubmitAccountPaymentCommand = new CaptionCommand<string>(Resources.AccountBalance_r, OnSubmitAccountPayment, CanSubmitAccountPayment);
ClosePaymentScreenCommand = new CaptionCommand<string>(Resources.Close, OnClosePaymentScreen, CanClosePaymentScreen);
TenderAllCommand = new CaptionCommand<string>(Resources.All, OnTenderAllCommand);
TypeValueCommand = new DelegateCommand<string>(OnTypeValueExecuted);
SetValueCommand = new DelegateCommand<string>(OnSetValue);
DivideValueCommand = new DelegateCommand<string>(OnDivideValue);
SelectMergedItemCommand = new DelegateCommand<MergedItem>(OnMergedItemSelected);
SetDiscountAmountCommand = new CaptionCommand<string>(Resources.Round, OnSetDiscountAmountCommand, CanSetDiscount);
AutoSetDiscountAmountCommand = new CaptionCommand<string>(Resources.Flat, OnAutoSetDiscount, CanAutoSetDiscount);
SetDiscountRateCommand = new CaptionCommand<string>(Resources.DiscountPercentSign, OnSetDiscountRateCommand, CanSetDiscountRate);
MergedItems = new ObservableCollection<MergedItem>();
ReturningAmountVisibility = Visibility.Collapsed;
Totals = totals;
PaymentButtonGroup = new PaymentButtonGroupViewModel(_makePaymentCommand, null, ClosePaymentScreenCommand);
LastTenderedAmount = "1";
}
示例4: EditSalesViewModel
public EditSalesViewModel(ITicketService ticketService, IEventAggregator eventAggregator)
{
_ticketService = ticketService;
_eventAggregator = eventAggregator;
Tickets = new List<Ticket>(ticketService.GetTickets());
}
示例5: TicketOrdersViewModel
public TicketOrdersViewModel(ITicketService ticketService)
{
_ticketService = ticketService;
_orders = new ObservableCollection<OrderViewModel>();
_itemsViewSource = new CollectionViewSource { Source = _orders };
_itemsViewSource.GroupDescriptions.Add(new PropertyGroupDescription("GroupObject"));
}
示例6: SalesViewModel
public SalesViewModel(IProductService productService, ITicketService ticketService, IEventAggregator eventAggregator, INotifyService notifyService)
{
_productService = productService;
_ticketService = ticketService;
_eventAggregator = eventAggregator;
_notifyService = notifyService;
}
示例7: TicketViewModel
public TicketViewModel(Ticket model, TicketTemplate ticketTemplate, bool forcePayment,
ITicketService ticketService, IAutomationService automationService,
IApplicationState applicationState)
{
_ticketService = ticketService;
_forcePayment = forcePayment;
_model = model;
_ticketTemplate = ticketTemplate;
_automationService = automationService;
_applicationState = applicationState;
_orders = new ObservableCollection<OrderViewModel>(model.Orders.Select(x => new OrderViewModel(x, ticketTemplate, _automationService)).OrderBy(x => x.Model.CreatedDateTime));
_itemsViewSource = new CollectionViewSource { Source = _orders };
_itemsViewSource.GroupDescriptions.Add(new PropertyGroupDescription("GroupObject"));
SelectAllItemsCommand = new CaptionCommand<string>("", OnSelectAllItemsExecute);
PrintJobButtons = _applicationState.CurrentTerminal.PrintJobs
.Where(x => (!string.IsNullOrEmpty(x.ButtonHeader))
&& (x.PrinterMaps.Count(y => y.DepartmentId == 0 || y.DepartmentId == model.DepartmentId) > 0))
.OrderBy(x => x.Order)
.Select(x => new PrintJobButton(x, Model));
if (PrintJobButtons.Count(x => x.Model.UseForPaidTickets) > 0)
{
PrintJobButtons = IsPaid
? PrintJobButtons.Where(x => x.Model.UseForPaidTickets)
: PrintJobButtons.Where(x => !x.Model.UseForPaidTickets);
}
}
示例8: MenuItemSelectorViewModel
public MenuItemSelectorViewModel(IApplicationState applicationState, ITicketService ticketService,
IUserService userService, IMenuService menuService, ISettingService settingService, ICacheService cacheService)
{
_ticketService = ticketService;
_userService = userService;
_applicationState = applicationState;
_menuService = menuService;
_settingService = settingService;
_cacheService = cacheService;
CategoryCommand = new DelegateCommand<ScreenMenuCategory>(OnCategoryCommandExecute);
MenuItemCommand = new DelegateCommand<ScreenMenuItem>(OnMenuItemCommandExecute);
TypeValueCommand = new DelegateCommand<string>(OnTypeValueExecute);
FindLocationCommand = new DelegateCommand<string>(OnFindLocationExecute, CanFindLocation);
FindMenuItemCommand = new DelegateCommand<string>(OnFindMenuItemCommand);
FindTicketCommand = new DelegateCommand<string>(OnFindTicketExecute, CanFindTicket);
IncPageNumberCommand = new CaptionCommand<string>(Localization.Properties.Resources.NextPage + " >>", OnIncPageNumber, CanIncPageNumber);
DecPageNumberCommand = new CaptionCommand<string>("<< " + Localization.Properties.Resources.PreviousPage, OnDecPageNumber, CanDecPageNumber);
SubCategoryCommand = new CaptionCommand<ScreenSubCategoryButton>(".", OnSubCategoryCommand);
EventServiceFactory.EventService.GetEvent<GenericEvent<Department>>().Subscribe(OnDepartmentChanged);
EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnNumeratorReset);
NumeratorValue = "";
SubCategories = new ObservableCollection<ScreenSubCategoryButton>();
}
示例9: MasterController
public MasterController(ITicketService ticketService, IUserRepository userRepo, IProjectRepository projectRepo, ITicketRepository ticketRepo)
{
_ticketService = ticketService;
_userRepo = userRepo;
_projectRepo = projectRepo;
_ticketRepo = ticketRepo;
}
示例10: MyPageViewModel
public MyPageViewModel(ITicketService ticketService, ITicketMapper mapper)
{
_ticketService = ticketService;
_mapper = mapper;
LoadTickets = new ReactiveAsyncCommand(null, 1, RxApp.DeferredScheduler);
LoadTickets.RegisterAsyncFunction(x => loadTickets())
.ToProperty(this, x => x.Tickets);
Observable.Interval(TimeSpan.FromSeconds(10), RxApp.DeferredScheduler)
.InvokeCommand(LoadTickets);
LoadTickets.Execute(null);
_redmineBaseUrl = ConfigurationManager.AppSettings["Redmine.BaseRedmineUrl"];
SortBy = new List<SortByModel>()
{
new SortByModel("Project", c => c.Project),
new SortByModel("Due date", c=> c.DueDate),
new SortByModel("Priority", c => c.Priority),
};
SortByCommand = new ReactiveCommand(this.WhenAny(c => c.Tickets,
((tickets) => tickets.Value != null && tickets.Value.Count > 0)));
SortByCommand.Subscribe(c => sortTickets((SortByModel)c));
}
示例11: ExecutePrintJob
public ExecutePrintJob(ITicketService ticketService, IApplicationState applicationState, ICacheService cacheService, IPrinterService printerService)
{
_ticketService = ticketService;
_applicationState = applicationState;
_cacheService = cacheService;
_printerService = printerService;
}
示例12: PosViewModel
public PosViewModel(IRegionManager regionManager, IApplicationState applicationState, IApplicationStateSetter applicationStateSetter,
ITicketService ticketService, IUserService userService, ICacheService cacheService, TicketListViewModel ticketListViewModel,
TicketTagListViewModel ticketTagListViewModel, MenuItemSelectorViewModel menuItemSelectorViewModel, MenuItemSelectorView menuItemSelectorView,
TicketViewModel ticketViewModel, TicketOrdersViewModel ticketOrdersViewModel,TicketEntityListViewModel ticketEntityListViewModel)
{
_ticketService = ticketService;
_userService = userService;
_cacheService = cacheService;
_applicationState = applicationState;
_applicationStateSetter = applicationStateSetter;
_regionManager = regionManager;
_menuItemSelectorView = menuItemSelectorView;
_ticketViewModel = ticketViewModel;
_ticketOrdersViewModel = ticketOrdersViewModel;
_menuItemSelectorViewModel = menuItemSelectorViewModel;
_ticketListViewModel = ticketListViewModel;
_ticketTagListViewModel = ticketTagListViewModel;
_ticketEntityListViewModel = ticketEntityListViewModel;
EventServiceFactory.EventService.GetEvent<GenericEvent<Ticket>>().Subscribe(OnTicketEventReceived);
EventServiceFactory.EventService.GetEvent<GenericEvent<SelectedOrdersData>>().Subscribe(OnSelectedOrdersChanged);
EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnTicketEvent);
EventServiceFactory.EventService.GetEvent<GenericEvent<ScreenMenuItemData>>().Subscribe(OnMenuItemSelected);
EventServiceFactory.EventService.GetEvent<GenericIdEvent>().Subscribe(OnTicketIdPublished);
EventServiceFactory.EventService.GetEvent<GenericEvent<EntityOperationRequest<Entity>>>().Subscribe(OnEntitySelectedForTicket);
EventServiceFactory.EventService.GetEvent<GenericEvent<TicketTagGroup>>().Subscribe(OnTicketTagSelected);
EventServiceFactory.EventService.GetEvent<GenericEvent<TicketStateData>>().Subscribe(OnTicketStateSelected);
EventServiceFactory.EventService.GetEvent<GenericEvent<Department>>().Subscribe(OnDepartmentChanged);
}
示例13: TicketListViewModel
public TicketListViewModel(ITicketService ticketService)
{
_ticketService = ticketService;
_tickets = new List<TicketButtonViewModel>();
AddTicketCommand = new CaptionCommand<string>(string.Format(Resources.Add_f, Resources.Ticket).Replace(" ", "\r"), OnAddTicket, CanAddTicket);
MergeTicketsCommand = new CaptionCommand<string>(Resources.MergeTickets.Replace(" ", "\r"), OnMergeTickets, CanMergeTickets);
CloseCommand = new CaptionCommand<string>(Resources.Close.Replace(" ", "\r"), OnCloseCommand);
}
示例14: HomeController
public HomeController(IStationService stationService,
ITicketService ticketService,
IOrderService orderService)
{
this.stationService = stationService;
this.ticketService = ticketService;
this.orderService = orderService;
}
示例15: OrderService
public OrderService(IRepository<Order> repository,
ITicketService ticketService,
IOrderQueuedService orderQueuedService,
ISyncLockService syncLockService)
{
this.repository = repository;
this.ticketService = ticketService;
this.orderQueuedService = orderQueuedService;
this.syncLockService = syncLockService;
}