clsImportEquipmentCategoryBPCatalog Class |
New table with version 5.1: View: MARIEquipmentCategoryBPCatalog: :Table: MPEquipmentCategoryBPCatalog
Table in access: MARIProjektImportEquipmentCategoryBPCatalogRequires record in: View: MARIEquipmentCategory: :Table: MPEquipmentCategory
Use MPInterface.bImportEquipmentCategoryBPCatalog(clsImportEquipmentCategoryBPCatalog, clsImportBaseeImportMode) to import.
Namespace: MARIInterface
The clsImportEquipmentCategoryBPCatalog type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportEquipmentCategoryBPCatalog | Initializes a new instance of the clsImportEquipmentCategoryBPCatalog class |
| Name | Description | |
|---|---|---|
| BPCatalogNumber | BPCatalogNumber number the customer will see in addition to the equipment number (number of the supplier) | |
| CardCode | CardCode | |
| CodeBar | CodeBar barcode the customer/supplier will use | |
| CompanyID | CompanyID. Internal Id for the SBO database. | |
| Description1 | Description1 | |
| Description2 | Description2 | |
| Description3 | Description3 | |
| Description4 | Description4 | |
| EquipmentCategoryBPCID | EquipmentCategoryBPCID Unique key of each line linked to a category. | |
| EquipmentCategoryID | EquipmentCategory: Link to the equipment master.
(IDs < 100000 used in mdb will be replaced after creation of the category)
| |
| ItemCode | ItemCode Only used by suppliers for the purchase item | |
| ItemCodeRentalDay | ItemCodeRentalDay: Item for renting to the client (in days=standard) | |
| ItemCodeRentalHours | ItemCodeRentalHours Item for renting to the client (in hours optional) | |
| ItemCodeRentalMonth | ItemCodeRentalMonth Item for renting to the client (in months optional) | |
| ItemName | ItemName | |
| ItemName2 | ItemName2 | |
| PriceCurrency |
ISO currency code for the business partner price. If empty, the MARIProjet System Currency is used.
| |
| PricePerDay |
PriceDayLoc/PriceDaySys/PriceDayFc: price per day. Use PriceCurrency to define the required currency (ISO Code).
| |
| PricePerHour |
PriceHourLoc/PriceHourSys/PriceHourFc: price per Hour. Use PriceCurrency to define the required currency (ISO Code).
| |
| PricePerMonth |
PriceMonthLoc/PriceMonthSys/PriceMonthFc: price per Month. Use PriceCurrency to define the required currency (ISO Code).
|
| Name | Description | |
|---|---|---|
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
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}"); } }