MixERP.Net.Api.Office.CounterController Class Reference

Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Counters. More...

Inheritance diagram for MixERP.Net.Api.Office.CounterController:

Public Member Functions

EntityView GetEntityView ()
 Creates meta information of "counter" entity. More...
 
long Count ()
 Counts the number of counters. More...
 
IEnumerable< MixERP.Net.Entities.Office.CounterGet ()
 Returns collection of counter for export. More...
 
MixERP.Net.Entities.Office.Counter Get (int counterId)
 Returns an instance of counter. More...
 
IEnumerable< MixERP.Net.Entities.Office.CounterGet ([FromUri] int[] counterIds)
 
IEnumerable< MixERP.Net.Entities.Office.CounterGetPagedResult ()
 Creates a paginated collection containing 25 counters on each page, sorted by the property CounterId. More...
 
IEnumerable< MixERP.Net.Entities.Office.CounterGetPagedResult (long pageNumber)
 Creates a paginated collection containing 25 counters on each page, sorted by the property CounterId. More...
 
long CountWhere ([FromBody]dynamic filters)
 Counts the number of counters using the supplied filter(s). More...
 
IEnumerable< MixERP.Net.Entities.Office.CounterGetWhere (long pageNumber, [FromBody]dynamic filters)
 Creates a filtered and paginated collection containing 25 counters on each page, sorted by the property CounterId. More...
 
long CountFiltered (string filterName)
 Counts the number of counters using the supplied filter name. More...
 
IEnumerable< MixERP.Net.Entities.Office.CounterGetFiltered (long pageNumber, string filterName)
 Creates a filtered and paginated collection containing 25 counters on each page, sorted by the property CounterId. More...
 
IEnumerable< DisplayFieldGetDisplayFields ()
 Displayfield is a lightweight key/value collection of counters. More...
 
IEnumerable< PetaPoco.CustomFieldGetCustomFields ()
 A custom field is a user defined field for counters. More...
 
IEnumerable< PetaPoco.CustomFieldGetCustomFields (string resourceId)
 A custom field is a user defined field for counters. More...
 
void AddOrEdit ([FromBody]Newtonsoft.Json.Linq.JArray form)
 Adds or edits your instance of Counter class. More...
 
void Add (MixERP.Net.Entities.Office.Counter counter)
 Adds your instance of Counter class. More...
 
void Edit (int counterId, [FromBody] MixERP.Net.Entities.Office.Counter counter)
 Edits existing record with your instance of Counter class. More...
 
List< object > BulkImport ([FromBody]dynamic collection)
 Adds or edits multiple instances of Counter class. More...
 
void Delete (int counterId)
 Deletes an existing instance of Counter class via CounterId. More...
 

Properties

long LoginId [get]
 
int UserId [get]
 
int OfficeId [get]
 
string Catalog [get]
 

Detailed Description

Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Counters.

Member Function Documentation

void MixERP.Net.Api.Office.CounterController.Add ( MixERP.Net.Entities.Office.Counter  counter)

Adds your instance of Counter class.

Parameters
counterYour instance of counters class to add.
void MixERP.Net.Api.Office.CounterController.AddOrEdit ( [FromBody] Newtonsoft.Json.Linq.JArray  form)

Adds or edits your instance of Counter class.

Parameters
counterYour instance of counters class to add or edit.
List<object> MixERP.Net.Api.Office.CounterController.BulkImport ( [FromBody] dynamic  collection)

Adds or edits multiple instances of Counter class.

Parameters
collectionYour collection of Counter class to bulk import.
Returns
Returns list of imported counterIds.
Exceptions
MixERPExceptionThrown when your any Counter class in the collection is invalid or malformed.
long MixERP.Net.Api.Office.CounterController.Count ( )

Counts the number of counters.

Returns
Returns the count of the counters.
long MixERP.Net.Api.Office.CounterController.CountFiltered ( string  filterName)

Counts the number of counters using the supplied filter name.

Parameters
filterNameThe named filter.
Returns
Returns the count of filtered counters.
long MixERP.Net.Api.Office.CounterController.CountWhere ( [FromBody] dynamic  filters)

Counts the number of counters using the supplied filter(s).

Parameters
filtersThe list of filter conditions.
Returns
Returns the count of filtered counters.
void MixERP.Net.Api.Office.CounterController.Delete ( int  counterId)

Deletes an existing instance of Counter class via CounterId.

Parameters
counterIdEnter the value for CounterId in order to find and delete the existing record.
void MixERP.Net.Api.Office.CounterController.Edit ( int  counterId,
[FromBody] MixERP.Net.Entities.Office.Counter  counter 
)

Edits existing record with your instance of Counter class.

Parameters
counterYour instance of Counter class to edit.
counterIdEnter the value for CounterId in order to find and edit the existing record.
IEnumerable<MixERP.Net.Entities.Office.Counter> MixERP.Net.Api.Office.CounterController.Get ( )

Returns collection of counter for export.

Returns
MixERP.Net.Entities.Office.Counter MixERP.Net.Api.Office.CounterController.Get ( int  counterId)

Returns an instance of counter.

Parameters
counterIdEnter CounterId to search for.
Returns
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Office.CounterController.GetCustomFields ( )

A custom field is a user defined field for counters.

Returns
Returns an enumerable custom field collection of counters.
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Office.CounterController.GetCustomFields ( string  resourceId)

A custom field is a user defined field for counters.

Returns
Returns an enumerable custom field collection of counters.
IEnumerable<DisplayField> MixERP.Net.Api.Office.CounterController.GetDisplayFields ( )

Displayfield is a lightweight key/value collection of counters.

Returns
Returns an enumerable key/value collection of counters.
EntityView MixERP.Net.Api.Office.CounterController.GetEntityView ( )

Creates meta information of "counter" entity.

Returns
Returns the "counter" meta information to perform CRUD operation.
IEnumerable<MixERP.Net.Entities.Office.Counter> MixERP.Net.Api.Office.CounterController.GetFiltered ( long  pageNumber,
string  filterName 
)

Creates a filtered and paginated collection containing 25 counters on each page, sorted by the property CounterId.

Parameters
pageNumberEnter the page number to produce the resultset.
filterNameThe named filter.
Returns
Returns the requested page from the collection using the supplied filters.
IEnumerable<MixERP.Net.Entities.Office.Counter> MixERP.Net.Api.Office.CounterController.GetPagedResult ( )

Creates a paginated collection containing 25 counters on each page, sorted by the property CounterId.

Returns
Returns the first page from the collection.
IEnumerable<MixERP.Net.Entities.Office.Counter> MixERP.Net.Api.Office.CounterController.GetPagedResult ( long  pageNumber)

Creates a paginated collection containing 25 counters on each page, sorted by the property CounterId.

Parameters
pageNumberEnter the page number to produce the resultset.
Returns
Returns the requested page from the collection.
IEnumerable<MixERP.Net.Entities.Office.Counter> MixERP.Net.Api.Office.CounterController.GetWhere ( long  pageNumber,
[FromBody] dynamic  filters 
)

Creates a filtered and paginated collection containing 25 counters on each page, sorted by the property CounterId.

Parameters
pageNumberEnter the page number to produce the resultset.
filtersThe list of filter conditions.
Returns
Returns the requested page from the collection using the supplied filters.

The documentation for this class was generated from the following file: