Click or drag to resize

clsImportCustomerServiceObjectLocation Class

Import for table MPCustomerEquipmentLocation: Current location of a CSO at the client/Project (Location Tree): Access Table: MARIProjektImportCustomerServiceObjectLocation

Use MPInterface.bImportCustomerServiceObjectCategory(clsImportCustomerServiceObjectCategory, clsImportBaseeImportMode) to import.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportCustomerServiceObjectLocation

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsImportCustomerServiceObjectLocation : clsImportBase

The clsImportCustomerServiceObjectLocation type exposes the following members.

Constructors
  NameDescription
Public methodclsImportCustomerServiceObjectLocation
Initializes a new instance of the clsImportCustomerServiceObjectLocation class
Top
Properties
  NameDescription
Public propertyBinLocations
BinLocations all requipred bin location ids as JSON list. (inernal use) Mandatory field for LocationMode.eLocationMode.InLocalWarehouse=1 (if the warehouse has bin locations)
Public propertyContractID
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.
Public propertyContractPositionID
ContractPositionID Internal Position ID Mandatory field for LocationMode.eLocationMode.RentedToProject=2. Especially, when monthly invoices will be created based on the location.
Public propertyCSOLocationID
CSOLocationID: internal id for each transaction
Public propertyCustomerLocationTreeElementID
CustomerLocationTreeElementID
Public propertyCustomerServiceObject
CustomerServiceObject: mandatory link to the relevant CSO
Public propertyEmployee
Employee who has created the transaction or requestion for the CSO. See clsImportEmployee for the employee dimension.
Public propertyLatitude
Latitude
Public propertyLocationChangeDate
LocationChangeDate
Public propertyLocationMode
LocationMode
Public propertyLocationTransactionID
LocationTransactionID ID to group a transaction of several equipment or customer service objects. (internal number)
Public propertyLongitude
Longitude
Public propertyMemo
Memo
Public propertyPhaseID
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.
Public propertyProject
Project Mandatory field for LocationMode.eLocationMode.RentedToProject=2
Public propertyWarehouse
Warehouse Mandatory field for LocationMode.eLocationMode.InLocalWarehouse=1
Top
Methods
Remarks
Examples
Create a customer service object.
private int CreateCustomerServiceObject(string ItemCode, int lCECGroupID) {
    clsImportCustomerServiceObject oCSO = new clsImportCustomerServiceObject();
    oCSO.CompanyID = 1;
    oCSO.itemCode = ItemCode;
    oCSO.itemName = "Name of the CSO";
    oCSO.CECGroupID = lCECGroupID; //Customer Equipment Category
    oCSO.customer = "10000";
    oCSO.manufSN = "19283721987";
    oCSO.internalSN = "13928";
    //standard project
    oCSO.Project = "P100005";

    //Parts
    oCSO.CollectionParts = new List<clsImportCustomerServiceObjectPart>();
    oCSO.CollectionParts.Add(new clsImportCustomerServiceObjectPart() {
        PosType = clsImportCustomerServiceObjectPart.ePosType.SparePart,
        PosValue = "220002" /*ItemCode of sparepart*/
    });
    oCSO.CollectionParts.Add(new clsImportCustomerServiceObjectPart() {
        PosType = clsImportCustomerServiceObjectPart.ePosType.Component,
        PosValue = "220003" /*ItemCode of sparepart*/
    });
    //current Location
    oCSO.CollectionLocations = new List<clsImportCustomerServiceObjectLocation>();
    oCSO.CollectionLocations.Add(new clsImportCustomerServiceObjectLocation() {
        LocationMode = clsImportEquipmentLocation.eLocationMode.InLocalWarehouse,
        Warehouse = "01"
    });

    if (oMPInterface.bImportCustomerServiceObject(oCSO, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) {
        Log($"CreateCustomerServiceObject MPinsID={oCSO.MPinsID}");
        return oCSO.MPinsID;
    } else {
        LogFail("Create_APInvoice: " + oMPInterface.oErrors.PrintErrors());
    }
    return 0;
}
See Also