Click or drag to resize

clsImportCustomerServiceObject Class

Info for table MPCustomerEquipmentCard: Advanced table to sbo standard customer equipment card. Using the access table MARIProjektImportCustomerServiceObjects.

Use MPInterface.bImportCustomerServiceObject(clsImportCustomerServiceObject, clsImportBaseeImportMode) to import.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportCustomerServiceObject

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

The clsImportCustomerServiceObject type exposes the following members.

Constructors
  NameDescription
Public methodclsImportCustomerServiceObject
Initializes a new instance of the clsImportCustomerServiceObject class
Top
Properties
  NameDescription
Public propertyAddrBlock
NVARCHAR (100) AddrBlock
Public propertyAddrBuilding
NTEXT AddrBuilding
Public propertyAddrCity
NVARCHAR (100) AddrCity
Public propertyAddrCountry
NVARCHAR (3) AddrCountry
Public propertyAddrCounty
NVARCHAR (100) AddrCounty
Public propertyAddrGlbLocNum
NVARCHAR (50) AddrGlbLocNum
Public propertyAddrState
NVARCHAR (3) AddrState
Public propertyAddrStreet
NVARCHAR (100) AddrStreet
Public propertyAddrStreetNo
NVARCHAR (100) AddrStreetNo
Public propertyAddrType
NVARCHAR (100) AddrType
Public propertyAddrZipCode
NVARCHAR (20) AddrZipCode
Public propertyCECGroupID
INT Customer Equipment Category
Public propertyCheckList
CheckList
Public propertycntctPhone
NVARCHAR (20) cntctPhone
Public propertyCollectionLocations
List of locations (At the client/Project or at in the warehouse)
Public propertyCollectionParts
List of spare parts, ware parts, components for the new customer service object
Public propertyCompanyID
SMALLINT CompanyID
Public propertycontactCod
INT contactCod
Public propertyContractID
ContractID
Public propertyContractPosition
ContractPosition
Public propertycustmrName
NVARCHAR (100) custmrName
Public propertycustomer
NVARCHAR (20) customer
Public propertyCustomerLocationTreeElementID
INT CustomerLocationTreeElementID
Public propertyinternalSN
NVARCHAR (32) internalSN
Public propertyitemCode
NVARCHAR (20) itemCode
Public propertyitemName
NVARCHAR (100) itemName
Public propertymanufDate
Datetime (8) manufDate
Public propertymanufSN
NVARCHAR (32) manufSN
Public propertyMemo
Memo
Public propertyMPinsID
INT MPinsID
Public propertyPhaseID
PhaseID
Public propertyPictureArrayOfBytes
The picture can be transfered via a byte array instead of a PictureFileName.
Public propertyPictureFileName
Linking a file name, will load this file into the database. The file content has to be accessable from the import process.

The picture content is stored in: View: MARIPictures : : Table: MPBilder

Public propertyPictureID
PictureID (for the import only existing key in table MPBilder supported.
Public propertyProject
Projectnumber
Public propertyStatus
Status
Public propertywarranty
Boolean
Public propertywrrntyEnd
Datetime (8) wrrntyEnd
Public propertywrrntyStrt
Datetime (8) wrrntyStrt
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