Click or drag to resize

clsImportEquipmentCategoryBPCatalog Class

Import for table MPEquipmentCategoryBPCatalog: EquipmentCategory: Business Partner Catalog Number

New table with version 5.1: View: MARIEquipmentCategoryBPCatalog: :Table: MPEquipmentCategoryBPCatalog

Table in access: MARIProjektImportEquipmentCategoryBPCatalog

Requires record in: View: MARIEquipmentCategory: :Table: MPEquipmentCategory

Use MPInterface.bImportEquipmentCategoryBPCatalog(clsImportEquipmentCategoryBPCatalog, clsImportBaseeImportMode) to import.

Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportEquipmentCategoryBPCatalog

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

The clsImportEquipmentCategoryBPCatalog type exposes the following members.

Constructors
  NameDescription
Public methodclsImportEquipmentCategoryBPCatalog
Initializes a new instance of the clsImportEquipmentCategoryBPCatalog class
Top
Properties
  NameDescription
Public propertyBPCatalogNumber
BPCatalogNumber number the customer will see in addition to the equipment number (number of the supplier)
Public propertyCardCode
CardCode
Public propertyCodeBar
CodeBar barcode the customer/supplier will use
Public propertyCompanyID
CompanyID. Internal Id for the SBO database.
Public propertyDescription1
Description1
Public propertyDescription2
Description2
Public propertyDescription3
Description3
Public propertyDescription4
Description4
Public propertyEquipmentCategoryBPCID
EquipmentCategoryBPCID Unique key of each line linked to a category.
Public propertyEquipmentCategoryID
EquipmentCategory: Link to the equipment master. (IDs < 100000 used in mdb will be replaced after creation of the category)
Public propertyItemCode
ItemCode Only used by suppliers for the purchase item
Public propertyItemCodeRentalDay
ItemCodeRentalDay: Item for renting to the client (in days=standard)
Public propertyItemCodeRentalHours
ItemCodeRentalHours Item for renting to the client (in hours optional)
Public propertyItemCodeRentalMonth
ItemCodeRentalMonth Item for renting to the client (in months optional)
Public propertyItemName
ItemName
Public propertyItemName2
ItemName2
Public propertyPriceCurrency
ISO currency code for the business partner price. If empty, the MARIProjet System Currency is used.
Public propertyPricePerDay
PriceDayLoc/PriceDaySys/PriceDayFc: price per day. Use PriceCurrency to define the required currency (ISO Code).
Public propertyPricePerHour
PriceHourLoc/PriceHourSys/PriceHourFc: price per Hour. Use PriceCurrency to define the required currency (ISO Code).
Public propertyPricePerMonth
PriceMonthLoc/PriceMonthSys/PriceMonthFc: price per Month. Use PriceCurrency to define the required currency (ISO Code).
Top
Methods
Examples
Create Equipment Category Business Partner Catalog Number
public void AddEquipmentCategoryBPCatalog(int lEquipmentCategory) {
    Log($"AddEquipmentCategoryBPCatalog({lEquipmentCategory})");
    MARIInterface.clsImportEquipmentCategoryBPCatalog NewEquipmentCategoryBPCatalog = new MARIInterface.clsImportEquipmentCategoryBPCatalog();

    NewEquipmentCategoryBPCatalog.CompanyID = 1; // Company 1
    NewEquipmentCategoryBPCatalog.CardCode = "10000"; // Customer Example
    NewEquipmentCategoryBPCatalog.BPCatalogNumber = "CustomerCode1234"; // Item Code the customer knows (and uses for purchasing)
    NewEquipmentCategoryBPCatalog.Description1 = "The name of the product, the customer is using";
    NewEquipmentCategoryBPCatalog.PricePerDay = 12.50m;

    //Make link to the equpment category
    NewEquipmentCategoryBPCatalog.EquipmentCategoryID = lEquipmentCategory; //SELECT EquipmentCategory FROM MARIEquipmentCategory


    if (!oMPInterface.bImportEquipmentCategoryBPCatalog(NewEquipmentCategoryBPCatalog, MARIInterface.clsImportBase.eImportMode.ValidateAndImport)) {
        //NewEquipmentCategory.oErrors contains all Errors
        LogFail(oMPInterface.oErrors.PrintErrors());
    } else {
        Log($"New Equipment Category BP Catalog. Internal Key BPCatalogNumber={NewEquipmentCategoryBPCatalog.BPCatalogNumber}");
    }
}
See Also