![]() |
Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Units. More...
Public Member Functions | |
EntityView | GetEntityView () |
Creates meta information of "unit" entity. More... | |
long | Count () |
Counts the number of units. More... | |
IEnumerable< MixERP.Net.Entities.Core.Unit > | Get () |
Returns collection of unit for export. More... | |
MixERP.Net.Entities.Core.Unit | Get (int unitId) |
Returns an instance of unit. More... | |
IEnumerable< MixERP.Net.Entities.Core.Unit > | Get ([FromUri] int[] unitIds) |
IEnumerable< MixERP.Net.Entities.Core.Unit > | GetPagedResult () |
Creates a paginated collection containing 25 units on each page, sorted by the property UnitId. More... | |
IEnumerable< MixERP.Net.Entities.Core.Unit > | GetPagedResult (long pageNumber) |
Creates a paginated collection containing 25 units on each page, sorted by the property UnitId. More... | |
long | CountWhere ([FromBody]dynamic filters) |
Counts the number of units using the supplied filter(s). More... | |
IEnumerable< MixERP.Net.Entities.Core.Unit > | GetWhere (long pageNumber, [FromBody]dynamic filters) |
Creates a filtered and paginated collection containing 25 units on each page, sorted by the property UnitId. More... | |
long | CountFiltered (string filterName) |
Counts the number of units using the supplied filter name. More... | |
IEnumerable< MixERP.Net.Entities.Core.Unit > | GetFiltered (long pageNumber, string filterName) |
Creates a filtered and paginated collection containing 25 units on each page, sorted by the property UnitId. More... | |
IEnumerable< DisplayField > | GetDisplayFields () |
Displayfield is a lightweight key/value collection of units. More... | |
IEnumerable< PetaPoco.CustomField > | GetCustomFields () |
A custom field is a user defined field for units. More... | |
IEnumerable< PetaPoco.CustomField > | GetCustomFields (string resourceId) |
A custom field is a user defined field for units. More... | |
void | AddOrEdit ([FromBody]Newtonsoft.Json.Linq.JArray form) |
Adds or edits your instance of Unit class. More... | |
void | Add (MixERP.Net.Entities.Core.Unit unit) |
Adds your instance of Unit class. More... | |
void | Edit (int unitId, [FromBody] MixERP.Net.Entities.Core.Unit unit) |
Edits existing record with your instance of Unit class. More... | |
List< object > | BulkImport ([FromBody]dynamic collection) |
Adds or edits multiple instances of Unit class. More... | |
void | Delete (int unitId) |
Deletes an existing instance of Unit class via UnitId. More... | |
Properties | |
long | LoginId [get] |
int | UserId [get] |
int | OfficeId [get] |
string | Catalog [get] |
Provides a direct HTTP access to perform various tasks such as adding, editing, and removing Units.
void MixERP.Net.Api.Core.UnitController.Add | ( | MixERP.Net.Entities.Core.Unit | unit | ) |
Adds your instance of Unit class.
unit | Your instance of units class to add. |
void MixERP.Net.Api.Core.UnitController.AddOrEdit | ( | [FromBody] Newtonsoft.Json.Linq.JArray | form | ) |
Adds or edits your instance of Unit class.
unit | Your instance of units class to add or edit. |
List<object> MixERP.Net.Api.Core.UnitController.BulkImport | ( | [FromBody] dynamic | collection | ) |
Adds or edits multiple instances of Unit class.
collection | Your collection of Unit class to bulk import. |
MixERPException | Thrown when your any Unit class in the collection is invalid or malformed. |
long MixERP.Net.Api.Core.UnitController.Count | ( | ) |
Counts the number of units.
long MixERP.Net.Api.Core.UnitController.CountFiltered | ( | string | filterName | ) |
Counts the number of units using the supplied filter name.
filterName | The named filter. |
long MixERP.Net.Api.Core.UnitController.CountWhere | ( | [FromBody] dynamic | filters | ) |
Counts the number of units using the supplied filter(s).
filters | The list of filter conditions. |
void MixERP.Net.Api.Core.UnitController.Delete | ( | int | unitId | ) |
Deletes an existing instance of Unit class via UnitId.
unitId | Enter the value for UnitId in order to find and delete the existing record. |
void MixERP.Net.Api.Core.UnitController.Edit | ( | int | unitId, |
[FromBody] MixERP.Net.Entities.Core.Unit | unit | ||
) |
Edits existing record with your instance of Unit class.
unit | Your instance of Unit class to edit. |
unitId | Enter the value for UnitId in order to find and edit the existing record. |
IEnumerable<MixERP.Net.Entities.Core.Unit> MixERP.Net.Api.Core.UnitController.Get | ( | ) |
Returns collection of unit for export.
MixERP.Net.Entities.Core.Unit MixERP.Net.Api.Core.UnitController.Get | ( | int | unitId | ) |
Returns an instance of unit.
unitId | Enter UnitId to search for. |
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Core.UnitController.GetCustomFields | ( | ) |
A custom field is a user defined field for units.
IEnumerable<PetaPoco.CustomField> MixERP.Net.Api.Core.UnitController.GetCustomFields | ( | string | resourceId | ) |
A custom field is a user defined field for units.
IEnumerable<DisplayField> MixERP.Net.Api.Core.UnitController.GetDisplayFields | ( | ) |
Displayfield is a lightweight key/value collection of units.
EntityView MixERP.Net.Api.Core.UnitController.GetEntityView | ( | ) |
Creates meta information of "unit" entity.
IEnumerable<MixERP.Net.Entities.Core.Unit> MixERP.Net.Api.Core.UnitController.GetFiltered | ( | long | pageNumber, |
string | filterName | ||
) |
Creates a filtered and paginated collection containing 25 units on each page, sorted by the property UnitId.
pageNumber | Enter the page number to produce the resultset. |
filterName | The named filter. |
IEnumerable<MixERP.Net.Entities.Core.Unit> MixERP.Net.Api.Core.UnitController.GetPagedResult | ( | ) |
Creates a paginated collection containing 25 units on each page, sorted by the property UnitId.
IEnumerable<MixERP.Net.Entities.Core.Unit> MixERP.Net.Api.Core.UnitController.GetPagedResult | ( | long | pageNumber | ) |
Creates a paginated collection containing 25 units on each page, sorted by the property UnitId.
pageNumber | Enter the page number to produce the resultset. |
IEnumerable<MixERP.Net.Entities.Core.Unit> MixERP.Net.Api.Core.UnitController.GetWhere | ( | long | pageNumber, |
[FromBody] dynamic | filters | ||
) |
Creates a filtered and paginated collection containing 25 units on each page, sorted by the property UnitId.
pageNumber | Enter the page number to produce the resultset. |
filters | The list of filter conditions. |