Attribute VB_Name = "DPC_Common"
Option Explicit

Public Const DPC_BOM_NEW_IDENTNR = "NEW"

Public Const DPC_UOM_M2 As String = "M2"
Public Const DPC_UOM_PCS As String = "PC"
Public Const DPC_UOM_PU As String = "CTN"
Public Const DPC_UOM_UNKNOWN As String = ""

Public Const DPC_BAEURER_COLOR_NORM_RAL = "RAL"
Public Const DPC_BAEURER_COLOR_NORM_NCS = "NCS"
Public Const DPC_BAEURER_COATING_APP_INSIDE = "innen"
Public Const DPC_BAEURER_COATING_APP_OUTSIDE = "aussen"

Public Const DPC_SAP_MATERIAL_CREATE = "api/product/amc/create"
Public Const DPC_SAP_SALESORDER_SIMULATE = "api/salesorder/amc/check"
Public Const DPC_SAP_SALESORDER_CREATE = "api/salesorder/amc/create"
Public Const DPC_SAP_SALESORDER_CHANGE = "api/salesorder/amc/change"
Public Const DPC_SAP_INVENTORY_RECEIPT_CREATE = "api/inventorymovement/amc/create"
Public Const DPC_SAP_STOCK_REPL_PLANNEDORDER_CREATE = "api/manufacturingorder/amc/create"
Public Const DPC_SAP_ADDRESS_LOOKUP = "api/salesorder/amc/getaddress"

Public Const DPC_IMAGE_CACHE As String = "\Cache\DPC_Image\"
Public Const DPC_FILE_CACHE As String = "\Cache\DPC_File\"

'Public Const DPC_TAB_STEP_KEY_SHAPE As String = "fra_Shape"
'Public Const DPC_TAB_STEP_KEY_PANEL As String = "fra_Panel"
'Public Const DPC_TAB_STEP_KEY_BENDING As String = "fra_Bending"
'Public Const DPC_TAB_STEP_KEY_GASKET As String = "fra_Bending"
'Public Const DPC_TAB_STEP_KEY_PERFORATION As String = "fra_Perforation"
'Public Const DPC_TAB_STEP_KEY_INLAY As String = "fra_Inlay"
'Public Const DPC_TAB_STEP_KEY_COATING As String = "fra_Coating"
'Public Const DPC_TAB_STEP_KEY_CUTOUT As String = "fra_Cutout"
'Public Const DPC_TAB_STEP_KEY_VENTILATION As String = "fra_Ventilation"
'Public Const DPC_TAB_STEP_KEY_LOUDSPEAKER As String = "fra_Loudspeaker"
'Public Const DPC_TAB_STEP_KEY_PACKING As String = "fra_Packing"
'Public Const DPC_TAB_STEP_KEY_OPTIONAL As String = "fra_Optional"
'Public Const DPC_TAB_STEP_KEY_SUMMARY As String = "fra_Summary"

Public Const DPC_TAB_STEP_IDX_PANEL As Long = 0
Public Const DPC_TAB_STEP_IDX_BENDING As Long = 1
Public Const DPC_TAB_STEP_IDX_GASKET As Long = 2
Public Const DPC_TAB_STEP_IDX_PERFORATION As Long = 3
Public Const DPC_TAB_STEP_IDX_PACKING As Long = 4
Public Const DPC_TAB_STEP_IDX_INLAY As Long = 5
Public Const DPC_TAB_STEP_IDX_COATING As Long = 6
Public Const DPC_TAB_STEP_IDX_VENTILATION As Long = 7
Public Const DPC_TAB_STEP_IDX_LOUDSPEAKER As Long = 8
Public Const DPC_TAB_STEP_IDX_CUTOUT As Long = 9
Public Const DPC_TAB_STEP_IDX_SHAPE As Long = 10
Public Const DPC_TAB_STEP_IDX_OPTIONAL As Long = 11
Public Const DPC_TAB_STEP_IDX_SUMMARY As Long = 12

Public Const DPC_DEFUALT_BAEURER_CONNECTID = 90000000
Public Const BAE_PLABOX_FromCaptureReady = "0"
Public Const BAE_PLABOX_RequestInProgress = "5"
Public Const BAE_PLABOX_RequestReadyForCapture = "6"
Public Const BAE_PLABOX_RequestAcceptedByCapture = "7"
Public Const BAE_PLABOX_RequestRefusedByCapture = "8"
Public Const BAE_PLABOX_RequestDeadlineTimeout = "9"
Public Const BAE_PLABOX_RequestRefused = "R"
Public Const BAE_PLABOX_RequestConfirmationMarkedDelete = "E"
Public Const BAE_PLABOX_RequestConfirmationDeletedByBaeurer = "D"
Public Const BAE_PLABOX_RequestTrashed = "K"

Public Const DPC_IMAGE_CLICK_MSG As String = "<Click to select item by image>"

Public Enum eDPCScreenMode
  smNone = 0
  smList = 1
  smView = 2
  smAdd = 3
  smUpdate = 4
  smDelete = 5
End Enum

Public Enum eOfferStatus
  osNew = 1
  osOfferDefinition = 2
  osOfferNeedApproval = 3
  osUnderApprovalProcess = 4
  osApproved = 5
  osRejected = 6
  osBaeurerExport = 7
  osBaeurerExportFail = 8
  osExportBaeurerPlanning = 9
  'osExportBaeurerPlanningFail = 10
  osPlanningProcess = 11
  osPlanningProcessReject = 12
  osWaitCustConfirmation = 13
  osDropped = 14
  osSentToCustomer = 15
  osOrder = 16
  'osExportSAPFail = 17
  osSAP = 18
  osBaeurerSalesOrderSent = 19
  osBaeurerSalesOrder = 20
  osBaeurerSalesOrderFail = 21
End Enum

Public Enum eOfferDocument
  odOffer = 1
  odOrder = 2
End Enum

Public Enum eOfferType
  otBudget = 1
  otAdvanced = 2
  otFinal = 3
End Enum

Public Enum eOfferSpecType
  stOfferSpec = 1
  stProductSpec = 2
End Enum

Public Enum eOfferPriority
  opNone = 0
  opNormal = 1
  opPriority = 2
  opTopSpeed = 3
End Enum

Public Enum eDPCPriceBookType
  eUnknown = 0
  eStockCapture = 1
  eStockMetal = 2
  eCustomMetal = 3
  eEngMetal = 4
  eWood = 5
  eSubconstruction = 6
  eVendor = 7
  eManualLine = 8
  eServiceItem = 9
End Enum

Public Enum eDPCOfferDetailMain
  odUnknown = 0
  odMain = 1
  odChild = 2
End Enum

Public Enum eDPCOfferDetailIsAlt
  maMain = 0
  maAltenative = 1
  maOption = 2
End Enum

Public Enum eDPCOfferPosValidManual
  vmNone = 0
  vmSetValid = 1
  vmSetInvalid = 2
End Enum

Public Enum eDPCRowStatus
  rsNone = 0
  rsAdd = 1
  rsUpdate = 2
  rsDrop = 3
End Enum

'Public Enum eDPCPrdStatus
'  psNone = 0
'  psNew = 1
'  psConfiguration = 2
'  psNeedApproval = 3
'  psApproved = 4
'  psRejected = 5
'End Enum

Public Enum eDPCError
  erOfferComment = 1000
  erCoatingName = 1001
  erCoatingDesc = 1002
  erInlayName = 1003
  erInlayDesc = 1004
  erInternalComment = 1005
  
  erPanelALimit = 1
  erPanelBLimit = 2
  erBendingNotDefault = 3
  erModuleLessPanel = 4
  erGapSizeInvalid = 5
  erGasketSizeInvalid = 6
  erMaxOrderQty = 7
  erMandatoryModuleA = 8
  erMandatoryModuleB = 9
  erMandatoryPanelA = 10
  erMandatoryPanelB = 11
  erMandatoryQty = 12
  erMandatoryThickness = 13
  erMandatoryMaterial = 14
  erMandatoryBendings = 15
  erMandatoryGasketType = 16
  erMandatorySpacerType = 17
  
  erCostPanel = 18
  erCostPanelSetupChargeUnp = 19
  erCostPanelChangeLengthUnp = 20
  erCostPanelChangeWidthUnp = 21
  erCostPerforation = 22
  erCostSpacerGasket = 23
  erCostPackaging = 24
  erCostInlay = 25
  erCostInlaySetupCharge = 26
  erCostCoating = 27
  erCostCoatingSetupCharge = 28
  erCostVentilation = 29
  erCostVentilationSetupCharge = 30
  erCostVentilationAddChange = 31
  erCostLoudspeaker = 32
  erCostLoudspeakerSetupCharge = 33
  erCostLoudspeakerAddChange = 34
  erCostCutout = 35
  erCostCutoutAddChange = 36
  erCostCutoutSetupChage = 37
  erCostCutoutSurcharge = 38
  erCostSubconstraction = 39
  erGapSizeNotStandard = 40
  
  erGasketDeliveryMandatory = 41
  'erPerimeterMandatory = 42  unused
  erInOutMandatory = 43
  erMaterialNotStandard = 44
  erCoatingMandatory = 45
  erPerforationMandatory = 46
  erPanelSideVisible = 47
  erPerforationAndCorProtection = 48
  erSpacerDeliveryMandatory = 49
  erSpacerSizeInvalid = 50
  erInlayMandatory = 51
  erVentilationMandatory = 52
  erLoudspeakerMandatory = 53
  erCutoutMandatory = 54
  erCutoutAreaBorderMin = 55
  erTopPanelPlateNotchRivetZero = 56
  erCutoutAreaOutOfPanelA = 57
  erCutoutAreaOutOfPanelB = 58
  erCutoutAreaValueOutOfLimit = 59
  erPackingMandatory = 60
  erGasketTypeDifferent = 61
  erGasketSpacerCombination = 62
  erTopPanelPlateSelected = 63
  erCoatingCustomSelected = 64
  erBendingPrdChangeDesc = 65
  erGapEmpty = 66
  erSpacerInstallPlant = 67
  erPerforationWidth = 68
  erPerforationToolWidth = 69
  erPerforationThickness = 70
  erPerforationThickUndef = 71
  erPerforationLevel2 = 72
  erPerforationBorderMandatory = 73
  erInlayCustomSelected = 74
  
  erSubconstructionSystemMandatory = 75
  erSubconstructionPanelAMandatory = 76
  erSubconstructionPanelBMandatory = 77
  erSubconstructionSurfaceMandatory = 78
  erSubconstructionHangerTypeMandatory = 79
  erSubconstructionHeightMandatory = 80
  erSubconstructionLoadCaseMandatory = 81
  erSubconstructionHangerAlignmentMandatory = 82
  erSubconstructionA0Mandatory = 83
  erSubconstructionA1Mandatory = 84
  erSubconstructionA2Mandatory = 85
  erSubconstructionSecurityNotAvailable = 86
  erSubconstructionHangerAlignNotPossible = 87
  erSubconstructionLoadCaseNotPossible = 88
  erSubconstructionHangerTypeNotPossible = 89
  
  erSubconstructionHValueOutOfLimits = 90
  erSubconstructionA0ValueOutOfLimits = 91
  erSubconstructionA1ValueOutOfLimits = 92
  erSubconstructionA2ValueOutOfLimits = 93
  erSubconstructionPAValueOutOfLimits = 94
  erSubconstructionPBValueOutOfLimits = 95
  erSubconstructionPAValueOutOfLimitsA2 = 96
  erSubconstructionNoArticles = 97
  erSubconstructionNoArticlesSync = 98
  erSubconstructionHangerAlignmentBPossible = 99
  erSubconstructionHeightNotCovered = 100
  erInlayConsiderForPerforatedPanel = 101
  erVentilationNotStandard = 102
  erLoudspeakerNotStandard = 103
  erInlayProductMandatory = 104
  erInlaySizeNotStandard = 105
  erCutoutAreaJMandatory = 106
  erCutoutAreaKMandatory = 107
  erCutoutAreaDMandatory = 108
  erBendingSizeNotDefault = 109
  erCutoutAreaIntersect = 110
  erPanelModuleALessB = 111
  erQtyPUNotMatch = 112
  erPanelNotchingClosed = 113
  erBendingOptional = 114
  erPanelNotchingWrong = 115
  erInlayMoreLayer = 116
  erCostPanelSetupChargePrf = 117
  erCostPanelChangeLengthPrf = 118
  erCostPanelChangeWidthPrf = 119
  
  erBOMCoilOptimisationFail = 120
  erBOMMaterialCodeMissing = 121
  erBOMMaterialNotFoundB7 = 122
  erBOMMaterialProductivityZero = 123
  erBOMMaterialSpecWeightZero = 124
  erBOMPaletteNotFound = 125
  erBOMIncorrectPanelWeight = 126
  erBOMIncorrectPacketSize = 127
  erBOMIncorrectFormula = 128
  
  erBORRoutingSettingMissing = 129
  erBORRoutingNotFoundB7 = 130
  erBORRoutingTimeNotFound = 131
  erBOMCoilNotFound = 132
  erGasketNotStandard = 133
  erSpacerNotStandard = 134
  erWghPointsZero = 135
  erCEValueUnknown = 136
  erGroupProductUnknown = 137
  erGroupArticleUnknown = 138
  erGroupGoodsUnknown = 139
  erGroupObjectUnknown = 140
  
  erGasketNotAllowed = 141
  erSpacerNotAllowed = 142
  
  erBOMCostNotFoundB7 = 143
  erInlayNotDefaultDelivery = 144
  erSubconstructionPMandatory = 145
  erSubconstructionVendorMandatory = 146
  erSubconstructionShipPointMandatory = 147
  erSubconstructionItemNoPrice = 148
  erMandatoryPlantVendor = 149
  erMandatoryShipPoint = 150
  
  erBOMCoilBaeurerExport = 151
  erBOMInlayBaeurerExport = 152
  erBOMInlayNotFound = 153
  erInlayDeliveryMandatory = 154
  erInlaySizeInvalid = 155
  erMandatoryWishDate = 156
  erMandatoryCutAB = 157
  erMandatoryCoilWMinMax = 158
  erCEValueError = 159
  erCoilSizeInvalid = 160
  erCoilCutABInvalid = 161
End Enum

Public Enum eDPCOffferDetailSource
  dsProdConfigPosition = 1
  dsSubconstConfigPosition = 2
  dsManualPosition = 3
  dsOfferOption = 4
End Enum

Public Enum eDPCOfferDetail
  odNone = 0
  odPosition = 1
  odPanelCost = 2
  odPanelSetupChargeUnp = 3
  odPanelChangeLengthCostUnp = 4
  odPanelChangeWidthCostUnp = 5
  odPanelSetupChargePrf = 47
  odPanelChangeLengthCostPrf = 48
  odPanelChangeWidthCostPrf = 49
  odPerforationCost = 6
  odGasketSurcharge = 7
  odPackingCost = 8
  odInlayCost = 9
  odInlaySetupCharge = 10
  odCoatingCost = 11
  odCoatingSetupCharge = 12
  odVentilationCost = 13
  odVentilationSetupCharge = 14
  odVentilationAddChangeCost = 15
  odLoudspeakerCost = 16
  odLoudspeakerSetupCharge = 17
  odLoudspeakerAddChangeCost = 18
  odCutoutCost = 19
  odCutoutSetupCharge = 20
  odCutoutAddChangeCost = 21
  odCutoutSurcharge = 22
  odSubconstructionCost = 23
  odSubconstPosition = 24
  odSubconstItemSusp = 25
  odSpacerSurcharge = 26
  odSystem = 27
  odModuleSize = 28
  odLongSideExecution = 29
  odShortSideExecution = 50
  odNotchingClosed = 51
  odBendingVisible = 52
  odSysExecution = 30
  odMaterial = 31
  odInlayNone = 32
  odFireClass = 33
  odSubconstItemGrid = 34
  odSubconstItemPanelSecurity = 35
  odSubconstItemAdditional = 36
  odManualPosition = 37
  odManualSize = 38
  odManualFinish = 39
  odManualPerforation = 40
  odManualInfil = 41
  odManualPackaging = 42
  odManualPU = 43
  odManualOther = 44
  odManualSetupCharge = 45
  odLabelingCost = 46
  odOfferComment = 53
  odOption = 54
End Enum

Public Enum eDPCScreen
  psNone = 0
  psPanel = 1
  psPerforation = 2
  psGasket = 3
  psPacking = 4
  psInlay = 5
  psCoating = 6
  psVentilation = 7
  psLoudspeaker = 8
  psCutout = 9
  psBending = 12
  psOption = 13
  psPanelSummary = 14
  psPanelShape = 15
  psSubconstructionSummary = 100
  psSubconstruction = 101
  psSubconstructionArticle = 102
End Enum

Public Enum eDPCCategory
  cgNone = 0
  cgMetalCustomRectPanel = 1
  cgPerforation = 2
  cgGasket = 3
  cgPacking = 4
  cgInlay = 5
  cgCoating = 6
  cgVentilation = 7
  cgLoudspeaker = 8
  cgCutout = 9
  cgSubconstruction = 10
  cgSurcharge = 11
  cgBending = 12
  cgOption = 13
  cgSubconstructionArticle = 14
  cgCaptureSystemItem = 15
  cgLinkedInlay = 16
  cgLinkedCutout = 17
  cgLinkedWood = 18
  cgLinkedVended = 19
  cgManualMetal = 20
  cgMetalPanelSKU = 21
  cgMetalCustomPanelTemplate = 22
'  cgMetalEngPanelTemplate = 23 'not used anymore - lev_id
'  cgMetalEngRectPanel = 24 'not used anymore - lev_Id
  cgLabeling = 25
  cgServiceItem = 26
End Enum

Public Enum eDPCLevel
  lvNone = 0
  lvStandard = 1
  lvCustom = 2
  lvEngineered = 3
End Enum

Public Enum eDPCErrorType
  etNone = 0
  etInfo = 1
  etNeedApproval = 2
  etStop = 3
End Enum

Public Enum eDPCQtyType
  qtUnknown = 0
  qtPCS = 1
  qtM2 = 2
  qtPU = 3
End Enum

Public Enum eDPCSide
  esSideC = 0
  esSideD = 1
  esSideE = 2
  esSideF = 3
End Enum

Public Enum eDPCCutoutType
  eNone = 0
  eVentilation = 1
  eLoudspeaker = 2
  eCutout = 3
End Enum

Public Enum eDPCGasketType
  gtNone = 0
  gtGasket = 1
  gtSpacer = 2
End Enum

Public Enum eDPCGasketDelivery
  gdUndef = 0
  gdNoneGasket = 1
  gdInstalled = 2
  gdSeparate = 3
End Enum

Public Enum eDPCSpacerDelivery
  sdUndef = 0
  sdNoneSpacer = 1
  sdInstalled = 2
  sdSeparate = 3
  sdNotchOnly = 4
End Enum

Public Enum eDPCPerimeterDelivery
  pdUndef = 0
  pdNoPerimeter = 1
  pdSeparate = 2
End Enum

Public Enum eDPCInlayDelivery
  idUndef = 0
  idFixedInPanel = 1
  idFixedLayedIn = 4
  idGluedOnlyOnShortSide = 5
  idGluedInAirtight = 6
End Enum

Public Enum eDPCInlayPurchaseType
  ipUndef = 0
  ipOrderedSize = 1
  ipCutToSize = 2
End Enum

Public Enum eDPCPerforationBorderType
  pbUndef = 0
  pbStandardUnperforated = 1
  pbOverperforatedAllSides = 2
  pbOther = 3
End Enum

Public Enum eDPCPanelInOut
  ioUndef = 0
  ioInside = 1
  ioOutside = 2
End Enum

Public Enum eDPCInlayType
  itNone = 0
  itFleece = 1
  itAcousticPad = 2
  itCustomized = 3
End Enum

Public Enum eDPCPlateType
  bpNone = 0
  bpPlateNotch = 1
  bpPlateRivet = 2
End Enum

Public Enum eDPCSystemDefaultType
  sdBending = 1
  sdPacking = 2
  sdGasket = 3
  sdSpacer = 4
  sdInlay = 5
End Enum

Public Enum eDPCSystemAllowGasket
  sgUndef = 0
  sgNone = 1
  sgGasket = 2
  sgSpacer = 3
  sgGasketOrSpacer = 4
  sgGasketAndSpacer = 5
  sdGasket = 3
  sdSpacer = 4
End Enum

Public Enum eDPCCutoutShape
  eNone = 0
  eRectangular = 1
  eRound = 2
End Enum

Public Enum eDPCHangerAlignment
  sfUnknown = 0
  sfFallA = 1
  sfFallB = 2
End Enum

Public Enum eDPCSubconstCategory
  scSuspension = 1
  scGrid = 2
  scSecurity = 3
  scAdditional = 4
End Enum

Public Enum eDPCSubconstHangTypeGroup
  hgNoGroup = 5
  hgGemaGrid = 1
  hgDirekt = 2
  hgFlur = 3
  hgDP12 = 4
End Enum

Public Enum eDPCReferenceML
  rfPerforationHoleShape = 800
  rfPerforationHoleArrangement = 801
  rfOfferStatus = 802
  rfOfferDeliveryConditions = 803
  rfOfferPayementConditions = 804
  rfOfferType = 805
  rfOfferProductType = 806
  rfCoatingApplication = 807
  rfCoatingColorNorm = 808
  rfCoatingMaterial = 809
  rfInlayType = 810
  rfCoatingType = 811
  rfCutType = 812
  rfSubHangAlignment = 813
  rfSubLoadCase = 814
  rfSubA0Name = 815
  rfSubA1Name = 816
  rfSubA2Name = 817
  rfSubHangType = 818
  rfSubArticleMaterial = 819
  rfSubconstType = 820
  rfSubconstHangTypeGroup = 821
  rfCoatingSideApp = 822
  rfCutShapeType = 823
  rfBORCategory = 824
  rfProductCategory = 825
  rfBOMCategory = 826
  'UNUSED previos rfBORCategory  = 827  = 824
  rfGasketSpacerType = 828
  rfBOMBORStatus = 829
  rfOfferDetailMainAlt = 830
  rfErrorType = 831
  rfCoatingBendingSide = 832
  rfPerforationBorderType = 833
  rfInlayPurchaseType = 834
  rfInlayDeliveryKind = 835
  rfGasketDeliveryKind = 836
  rfSpacerDeliveryKind = 837
  rfBOMPackingItemType = 838
  rfPanelGroupType = 839
  rfPanelGroupParamOperator = 840
  rfPanelCostCalc = 841
  rfSystemAllowGasket = 842
  rfOfferSource = 843
  rfOfferDocument = 844
  rfOfferPriority = 845
End Enum

Public Enum eDPCXmlExportType
  etBae_Customer = 1
  etBae_ArticleMaster = 2
  etBae_BOM = 3
  etBae_BOR = 4
  etBae_Material = 5
  etSAP_SalesOrderLineCancelAddReplace = 6
  etSAP_MaterialCreate = 7
  etSAP_SalesOrderCreate = 8
  etBae_SalesOrderCreate = 9
  'etAMC_SalesOrderLineCancelAddReplace_v2 = 10
End Enum

Public Enum eDPCXmlSqlType
  stNone = 0
  stList = 1
  stFlat = 2
End Enum

Public Enum eDPCBOMMaterial
  bcNone = 0
  bcCoil = 1
  bcSpacer = 2
  bcGasket = 3
  bcCoating = 4
  bcInlay = 5
  bcPacking = 6
  bcOther = 7
End Enum

Public Enum eDPCBOROperation
  eNone = 0
  ePerforation = 1
  eRerolling = 2
  eCutting = 3
  ePunchNotching = 4
  eBending = 5
  eCoating = 6
  eGasketSpacer = 7
  eInlay = 8
  ePacking = 9
End Enum

Public Enum eDPCCodeConversionBaeurer
  ccUnitOfMeasure = 1
  ccCurrency = 2
  ccCountry = 3
  ccPBorder = 4
End Enum

Public Enum eDPCCodeConversionAMC
  ccLanguage = 1
  ccCurrency = 2
  ccCountry = 3
  ccYesNo = 4
End Enum

Public Enum eDPCCoatingExecution
  ceUndef = 0
  ceOneSide = 1
  ceBothSide = 2
  ceBackSideFull = 3
End Enum

Public Enum eDPCCoatingApplication
  caUndef = 0
  ceInside = 1
  ceOutside = 2
End Enum

Public Enum eDPCCoatingMaterial
  cmUndef = 0
  cmPowder = 1
  cmPaint = 2
  cmOther = 3
End Enum

Public Enum eDPCColorNorm
  cnUndef = 0
  cnRAL = 1
  cnNCS = 2
  cnOther = 3
End Enum

Public Enum eDPCCoatingType
  ctUndef = 0
  ctTopRALNCS = 1
  ctOtherRALNCS = 2
  ctCustomized = 3
End Enum

Public Enum eDPCBOMBORStatus
  boNone = 0
  boGeneratedOK = 1
  boGeneratedError = 2
End Enum

Public Enum eDPCBaeurerExportStatus
  esNone = 0
  esReadyToExport = 1
  esExported = 2
  esExportOK = 3
  esExportFailed = 4
End Enum

Public Enum eDPCInterfaceStatus
  isNone = 0
  isOK = 1
  isFailed = 2
End Enum

Public Enum eDPCCEClass
  esNone = 0
  esFireClass = 1
End Enum

Public Type tDPCCoating
  COA_Id As String
  COA_Name As String
  COA_Desc As String
  COA_App As eDPCCoatingApplication
  COA_Mat As eDPCCoatingMaterial
  COA_Norm As eDPCColorNorm
  COA_Type As eDPCCoatingType
End Type

Public Type tPriceCritForCategory
  CAT_Id As Long
  PRD_IdPar As Boolean
  CUA_Id  As Boolean
  PCR_AMin    As Boolean
  PCR_AMax As Boolean
  PCR_BMin As Boolean
  PCR_BMax As Boolean
  MAT_Id As Boolean
  PCR_Thick As Boolean
  PCR_TMin    As Boolean
  PCR_TMax As Boolean
  PCR_IsPrf As Boolean
  PCR_GaCnt As Boolean
  PCR_CoSid As Boolean
End Type

Public Enum eDPCGroupType
  gtArticleGroup = 1
  gtGoodsGroup = 2
  gtProductGroup = 3
  gtObjectGroup = 4
End Enum

Public Enum eDPCGroupParamOperator
  goEqual = 1
  gtNotEqual = 2
  gtGreaterEqual = 3
  gtGreater = 4
  gtLessEqual = 5
  gtLess = 6
  gtIn = 7
End Enum

Public Enum eDPCSpecialPackage
  spUndef = 0
  spThermoPalette = 1
End Enum

Public Enum eDPCFormulaType
  ftBOMPacking = 1
End Enum

Public Enum eDPCBOMPackingItemType
  ptUndef = 0
  ptFoil = 1
  ptCarton = 2
  ptPalette = 3
  ptBand = 4
  ptLabel = 5
  ptEdgeProtection = 6
  ptEdgeProtectionL = 7
  ptEdgeProtectionH = 8
End Enum

Public Enum eDPCB7ArticleStatus
  asUndef = 0
  asActive = 1
End Enum

Public Enum eDPCBaeurerReference
  brUndef = 0
  brOrderType = 1
  brPartner = 2
  brClerkInCharge = 3
  brDeliveryCondition = 4
  brDeliveryType = 5
  brAddressNo = 6
  brPackType = 7
  brKonto = 8
End Enum

Public Enum eDPCCostCalculation
  ccRawmaterial = 100
  ccMachineEnergy = 200
  ccPersonDirect = 300
  ccSubTotal = 400
  ccWasteMaterial = 500
  ccRejectMaterial = 600
  ccWorkTimeReject = 700
  ccDirectCosts = 800
  ccMPE1 = 900
  ccMPE2 = 1000
  ccManufacturingCosts = 1100
  ccAdminCosts = 1200
  ccPlantCosts = 1300
  ccRawmaterialInflation = 1400
  ccFullCost = 1500
  ccICTPRate = 1600
  ccICTPPrice = 1700
  ccSetupCost = 1800
  ccSetupWidthCost = 1900 '2000
  ccSetupLengthCost = 2000 '1900
End Enum

Public Enum eDPCMemoType
  mtDefault = 0
  mtDisclaimer = 1
End Enum

Public Enum eDPCImageType
  itDefault = 0
  itLogo = 1
End Enum

Public Enum eDPCCoilLock
  clCoilWidth = 1
  clCoilMinMax = 2
  clCutAB = 4
  clBendingUZA = 8
End Enum

Public Enum eDPCProductStatus
  psBOMExist = 1
  psBOMError = 2
  psBORExist = 4
  psBORError = 8
End Enum

Public Enum eDPCBaeurerZipExport
  zeZip1 = 1
  zeZip2 = 2
  zeZip = 3
End Enum

