clsImportEquipmentLocation Class |
Use MPInterface.bImportEquipmentLocation(clsImportEquipmentLocation, clsImportBaseeImportMode) to import.
Namespace: MARIInterface
The clsImportEquipmentLocation type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportEquipmentLocation | Initializes a new instance of the clsImportEquipmentLocation class |
| Name | Description | |
|---|---|---|
| BinLocations | BinLocations all requipred bin location ids as JSON list. (inernal use)
Mandatory field for LocationMode.eLocationMode.InLocalWarehouse=1 (if the warehouse has bin locations)
| |
| CardCode | CardCode | |
| CompanyID | Company mandatory fields for all LocationModes | |
| ContractID | ContractID. Internal Contract ID (not the visible contract number)
Mandatory field for LocationMode.eLocationMode.RentedToProject=2. Especially, when monthly invoices will be created based on the location.
| |
| ContractPositionID | ContractPositionID Internal Position ID
Mandatory field for LocationMode.eLocationMode.RentedToProject=2. Especially, when monthly invoices will be created based on the location.
| |
| CustomerLocationTreeElementID | CustomerLocationTreeElementID | |
| Employee | Employee who has created the transaction or has requested the equipment. See clsImportEmployee for the employee dimension.
| |
| EquipmentCode | EquipmentCode | |
| EquipmentLocationID | EquipmentLocationID internal id. Automatically created | |
| Latitude | Latitude GEO Location | |
| LinkToEquipmentCode | LinkToEquipmentCode when the equipment will be imported to an equipment assembly, the code of the father goes in this field
Mandatory field for LocationMode.eLocationMode.EqupimentInAssembly=4
| |
| LocationChangeDate | LocationChangeDate: Transaction date. This date must be newer than all other location transactions on the equipment. | |
| LocationMode | LocationMode Defines the type of transaction. | |
| LocationTransactionID | LocationTransactionID ID to group a transaction of several equipment or customer service objects. (internal number) | |
| Longitude | Longitude GEO Location | |
| Memo | Memo | |
| PhaseID | PhaseID based on the planning version 3
Mandatory field (only when the project uses phases) for LocationMode.eLocationMode.RentedToProject=2. Especially, when monthly invoices will be created based on the location.
| |
| Project | Project
Mandatory field for LocationMode.eLocationMode.RentedToProject=2
| |
| Quantity | Quantity Quantiy only allowd for equipment of the EquipmentType eEquipmentMasterType.EquipmentMasterQtyNoSN | |
| Warehouse | Warehouse
Mandatory field for LocationMode.eLocationMode.InLocalWarehouse=1
|
| Name | Description | |
|---|---|---|
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
private bool ImportEquipmentLocationChange(string sEqupmentNo, string sWhs, DateTime dtLocationChangeDate) { //Example to move one equipment back to warehouse clsImportEquipmentLocation oLocation = new clsImportEquipmentLocation(); oLocation.LocationMode = clsImportEquipmentLocation.eLocationMode.InLocalWarehouse; oLocation.EquipmentCode = sEqupmentNo; oLocation.Warehouse = sWhs; oLocation.CompanyID = 1; oLocation.LocationChangeDate = dtLocationChangeDate; oLocation.Memo = "Changes by MARIInterface " + DateTime.Now.ToString(); if (oMPInterface.bImportEquipmentLocation(oLocation, clsImportBase.eImportMode.ValidateAndImport)) { return true; } else { Assert.False(true, oMPInterface.oErrors.PrintErrors()); return false; } }