C# Class Samba.Services.MainDataContext

Mostra file Open project: emreeren/SambaPOS-2 Class Usage Examples

Public Methods

Method Description
AddItemToSelectedTicket ( Samba.Domain.Models.Tickets.TicketItem model ) : void
AddTimeCardEntry ( TimeCardEntry timeCardEntry ) : void
AssignCustomerToSelectedTicket ( Samba.Domain.Models.Customers.Customer customer ) : void
AssignCustomerToTicket ( Samba.Domain.Models.Tickets.Ticket ticket, Samba.Domain.Models.Customers.Customer customer ) : void
AssignTableToSelectedTicket ( int tableId ) : void
CloseTicket ( ) : TicketCommitResult
CreateNewTicket ( ) : void
GetLastTimeCardEntry ( User user ) : TimeCardEntry
GetReason ( int reasonId ) : string
GetUserName ( int userId ) : string
GetVatTemplate ( int menuItemId ) : Samba.Domain.Models.Menus.VatTemplate
LoadTables ( string selectedTableScreen ) : IList
MainDataContext ( ) : System
MoveTicketItems ( IEnumerable selectedItems, int targetTicketId ) : TicketCommitResult
OpenTicket ( int ticketId ) : void
OpenTicketFromTableName ( string tableName ) : void
OpenTicketFromTicketNumber ( string ticketNumber ) : void
Recalculate ( Ticket ticket ) : void
ResetCache ( ) : void
ResetTableDataForSelectedTicket ( ) : void
ResetUserData ( ) : void
SaveTables ( ) : void
StartWorkPeriod ( string description, decimal cashAmount, decimal creditCardAmount, decimal ticketAmount ) : void
StopWorkPeriod ( string description ) : void
UpdateTableData ( TableScreen selectedTableScreen, int pageNo ) : void
UpdateTables ( int tableScreenId, int pageNo ) : void
UpdateTicketNumber ( Ticket ticket ) : void
UpdateTicketNumber ( Ticket ticket, Numerator numerator ) : void
UpdateTicketTable ( Ticket ticket ) : void
UpdateTimeCardEntry ( User user, int timeCardAction ) : void

Private Methods

Method Description
GetLastTwoWorkPeriods ( ) : IEnumerable
ResetTableCustomerCounts ( object state ) : void

Method Details

AddItemToSelectedTicket() public method

public AddItemToSelectedTicket ( Samba.Domain.Models.Tickets.TicketItem model ) : void
model Samba.Domain.Models.Tickets.TicketItem
return void

AddTimeCardEntry() public static method

public static AddTimeCardEntry ( TimeCardEntry timeCardEntry ) : void
timeCardEntry Samba.Domain.Models.Users.TimeCardEntry
return void

AssignCustomerToSelectedTicket() public method

public AssignCustomerToSelectedTicket ( Samba.Domain.Models.Customers.Customer customer ) : void
customer Samba.Domain.Models.Customers.Customer
return void

AssignCustomerToTicket() public method

public AssignCustomerToTicket ( Samba.Domain.Models.Tickets.Ticket ticket, Samba.Domain.Models.Customers.Customer customer ) : void
ticket Samba.Domain.Models.Tickets.Ticket
customer Samba.Domain.Models.Customers.Customer
return void

AssignTableToSelectedTicket() public method

public AssignTableToSelectedTicket ( int tableId ) : void
tableId int
return void

CloseTicket() public method

public CloseTicket ( ) : TicketCommitResult
return TicketCommitResult

CreateNewTicket() public method

public CreateNewTicket ( ) : void
return void

GetLastTimeCardEntry() public static method

public static GetLastTimeCardEntry ( User user ) : TimeCardEntry
user Samba.Domain.Models.Users.User
return Samba.Domain.Models.Users.TimeCardEntry

GetReason() public method

public GetReason ( int reasonId ) : string
reasonId int
return string

GetUserName() public method

public GetUserName ( int userId ) : string
userId int
return string

GetVatTemplate() public method

public GetVatTemplate ( int menuItemId ) : Samba.Domain.Models.Menus.VatTemplate
menuItemId int
return Samba.Domain.Models.Menus.VatTemplate

LoadTables() public method

public LoadTables ( string selectedTableScreen ) : IList
selectedTableScreen string
return IList

MainDataContext() public method

public MainDataContext ( ) : System
return System

MoveTicketItems() public method

public MoveTicketItems ( IEnumerable selectedItems, int targetTicketId ) : TicketCommitResult
selectedItems IEnumerable
targetTicketId int
return TicketCommitResult

OpenTicket() public method

public OpenTicket ( int ticketId ) : void
ticketId int
return void

OpenTicketFromTableName() public method

public OpenTicketFromTableName ( string tableName ) : void
tableName string
return void

OpenTicketFromTicketNumber() public method

public OpenTicketFromTicketNumber ( string ticketNumber ) : void
ticketNumber string
return void

Recalculate() public method

public Recalculate ( Ticket ticket ) : void
ticket Ticket
return void

ResetCache() public method

public ResetCache ( ) : void
return void

ResetTableDataForSelectedTicket() public method

public ResetTableDataForSelectedTicket ( ) : void
return void

ResetUserData() public method

public ResetUserData ( ) : void
return void

SaveTables() public method

public SaveTables ( ) : void
return void

StartWorkPeriod() public method

public StartWorkPeriod ( string description, decimal cashAmount, decimal creditCardAmount, decimal ticketAmount ) : void
description string
cashAmount decimal
creditCardAmount decimal
ticketAmount decimal
return void

StopWorkPeriod() public method

public StopWorkPeriod ( string description ) : void
description string
return void

UpdateTableData() public method

public UpdateTableData ( TableScreen selectedTableScreen, int pageNo ) : void
selectedTableScreen TableScreen
pageNo int
return void

UpdateTables() public method

public UpdateTables ( int tableScreenId, int pageNo ) : void
tableScreenId int
pageNo int
return void

UpdateTicketNumber() public method

public UpdateTicketNumber ( Ticket ticket ) : void
ticket Ticket
return void

UpdateTicketNumber() public method

public UpdateTicketNumber ( Ticket ticket, Numerator numerator ) : void
ticket Ticket
numerator Numerator
return void

UpdateTicketTable() public method

public UpdateTicketTable ( Ticket ticket ) : void
ticket Ticket
return void

UpdateTimeCardEntry() public static method

public static UpdateTimeCardEntry ( User user, int timeCardAction ) : void
user User
timeCardAction int
return void