﻿Module modConst
    '// PICS.INI\‘¢‘Ì
    Public Structure PICS_INI
        Public strImport_SPM As String
        Public strImport_PLAN As String
        Public strImport_RCVJUMP As String
        Public strImport_MCLOCATION As String
        Public strImport_MATERIAL As String
        Public strMain_PICS2004 As String          '// DBÚ‘±æ
        Public strExport_SENDJUMP As String
        Public strExport_SENDPACK1 As String
        Public strExport_SENDPACK2 As String
        Public strExport_SENDVAN As String
        Public strErrorLog_Path As String          '// ´×°Û¸ÞÌ§²Ù–¼
        Public strParameter_Path As String
        Public strConstant_DataKeepYear As String
        Public strConstant_EditDate As String
        Public strConstant_WaitTime As String
        Public strOutput_PICSC As String           '// ˆ—Û¸ÞÌ§²Ù–¼
        Public strOutput_PICSH As String
        Public strOutput_PICSI As String
        Public strOutput_PICSM As String
        Public strOutput_KDPA As String
        Public strOutput_KDST As String
        Public strOutput_KDPP As String
        Public strOutput_KDPL As String
        Public strLabelWork_LABELWORK As String    '// Ü°¸Ì§²Ù–¼
        Public strMtlWork_MTLWORK As String        '// Ž‘Þ×ÍÞÙÜ°¸Ì§²Ù–¼
        Public strWork_PSERIAL As String           '// PSERIALÜ°¸Ì§²Ù–¼
        Public strWork_FREELOCATION As String      '// FREELOCATIONÜ°¸Ì§²Ù–¼
        Public strWork_LOOKLCTN As String          '// LOOKLCTNÜ°¸Ì§²Ù–¼
        Public strPicsc114_Def As String            '// ÝŒÉ½Ã°À½ÃÞÌ«ÙÄÌ§²Ù–¼
    End Structure

    '// KDMC.INI\‘¢‘Ì
    Public Structure KDMC_INI
        Public strMain_PicsType As String
        Public strMain_CstmID As String
        Public strMain_CstmCode As String
        Public strMain_CenterCode As String
        Public strMain_Bhk As String
        Public strMain_SectionID As String
        Public strMain_SectionCode As String
    End Structure

    '// Relece.INI\‘¢‘Ì
    Public Structure RELECE_INI
        Public strProduction As String
        Public strShipPlan As String
        Public strProductFrom As String
        Public strProductTo As String
    End Structure

    '// PICSPARAM.INI\‘¢‘Ì
    Public Structure PICSPARAM_INI
        Public strUserID As String
        Public strProgramID As String
        Public strKey() As String
        Public intKeyCount As Integer
    End Structure

    '// ZAIKO.INI\‘¢‘Ì
    Public Structure ZAIKO_INI
        Public strDate As String
    End Structure

    '// ¼½ÃÑ‹¤’Ê•Ï”
    'Public gclsDB As New clsDBAccess                'ÃÞ°ÀÍÞ°½±¸¾½¸×½•Ï”
    Public gclsReg As New clsReg                    'Ú¼Þ½ÄØ‘€ì¸×½•Ï”
    Public gintAppMode As Integer                   '±ÌßØ¹°¼®Ýµ°ÌßÝÓ°ÄÞ 1:V‹K 2:C³Eíœ
    'Public gobjMutex As System.Threading.Mutex      '‹N“®±ÌßØ¹°¼®ÝMutexµÌÞ¼Þª¸Ä
    Public gAppName As String                       '‹N“®APP–¼

    '// INIÌ§²ÙŠÖ˜A•Ï”
    Public gstrctPicsIni As PICS_INI                'PICS.INIî•ñ\‘¢‘Ì
    Public gstrctKdmcIni As KDMC_INI                'KDMC.INIî•ñ\‘¢‘Ì
    Public gstrctReleceIni As RELECE_INI            'RELECE.INIî•ñ\‘¢‘Ì
    Public gstrctParamIni As PICSPARAM_INI          'PICSPARAM.INIî•ñ\‘¢‘Ì
    Public gstrctZaikoIni As ZAIKO_INI              'Zaiko.INIî•ñ\‘¢‘Ì
    Public gstrPicsIniPath As String                'PICS.INIÌ§²ÙÊß½
    Public gstrKdmcIniPath As String                'KDMC.INIÌ§²ÙÊß½
    Public gstrReleceIniPath As String              'RELECE.INIÌ§²ÙÊß½
    Public gstrParamIniPath As String               'PICSPARAM.INIÌ§²ÙÊß½
    Public gstrZaikoIniPath As String               'ZAIKO.INIÌ§²ÙÊß½
    Public gstrAPLinkIniPath As String              'APLINK.INIÌ§²ÙÊß½
    '// •ÏŠ·ÊßÀ°Ý
    Public gintChgPat() As Integer = {0, 1}
    Public gstrChgPat() As String = {"non", "mazda part"}
    Public Enum DispItemChg As Integer
        None = 0
        ToMazda = 1
    End Enum

    'LN2RL\‘¢‘Ì
    Public Structure LN2RL_STR
        Dim PackLine As String
        Dim PreBhk As String
    End Structure

    'RL2RL\‘¢‘Ì
    Public Structure RL2RL_STR
        Dim Bhk As String
        Dim ChgBhk As String
        Dim CenterCode As String
    End Structure

    'LN2LN\‘¢‘Ì
    Public Structure LN2LN_STR
        Dim PackLine As String
        Dim ChgPackLine As String
        Dim CenterCode As String
        Dim CalFlag As String
    End Structure

    'IDCNV\‘¢‘Ì
    Public Structure IDCNV_STR
        Dim Code As String
        Dim Znc As String
    End Structure


    '***************************************************************************
    ' ¸ÞÛ°ÊÞÙ’è‹`
    '***************************************************************************
    '// INIÌ§²ÙŠÖ˜A
    Public Const G_CONST_PICSINI = "PICS.INI"       'PICS.INIÌ§²Ù–¼
    Public Const G_CONST_KDMCINI = "KDMC.INI"       'KDMC.INIÌ§²Ù–¼
    Public Const G_CONST_RELECEINI = "RELECE.INI"   'RELECE.INIÌ§²Ù–¼
    Public Const G_CONST_PARAMINI = "PICSPARAM.INI" 'PICSPARAM.INIÌ§²Ù–¼
    Public Const G_CONST_ZAIKOINI = "ZAIKO.INI"     'ZAIKO.INIÌ§²Ù–¼
    Public Const G_CONST_APLINKINI = "APLINK.INI"   'APLINK.INIÌ§²Ù–¼
    Public Const G_CONST_PicsSec01 = "Import"       'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec02 = "Main"         'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec03 = "Export"       'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec04 = "ErrorLog"     'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec05 = "Parameter"    'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec06 = "Constant"     'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec07 = "Output Log"   'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec08 = "LABELWORK"    'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec09 = "MTLWORK"      'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec10 = "PSERIAL"      'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec11 = "FREELOCATION" 'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec12 = "LOOKLCTN"     'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsSec13 = "STATUSDEF"    'PICS.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_PicsKey01 = "SPM"          'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey02 = "PLAN"         'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey03 = "RCVJUMP"      'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey04 = "MCLOCATION"   'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey05 = "MATERIAL"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey06 = "PICS2004"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey07 = "SENDJUMP"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey08 = "SENDPACK1"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey09 = "SENDPACK2"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey10 = "SENDVAN"      'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey11 = "ERRORLOG"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey12 = "PARAMFILE"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey13 = "DataKeepYear" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey14 = "EditDate"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey15 = "PICSC_LOG"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey16 = "PICSH_LOG"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey17 = "PICSI_LOG"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey18 = "PICSM_LOG"    'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey19 = "KDPA_LOG"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey20 = "WORKFILEPATH" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey21 = "WORKFILEPATH" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey22 = "WORKFILEPATH" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey23 = "WORKFILEPATH" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey24 = "WORKFILEPATH" 'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey25 = "DEF_FILE"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey26 = "KDST_LOG"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey27 = "KDPP_LOG"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey28 = "WaitTime"     'PICS.INI‚Ì·°
    Public Const G_CONST_PicsKey29 = "KDPL_LOG"     'PICS.INI‚Ì·°
    Public Const G_CONST_ParamSec01 = "Main"        'PICSPARAM.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_ParamKey01 = "UserID"      'PICS.INI‚Ì·°
    Public Const G_CONST_ParamKey02 = "ProgramID"   'PICS.INI‚Ì·°
    Public Const G_CONST_ParamKey03 = "Key"         'PICS.INI‚Ì·°
    Public Const G_CONST_RelecSec01 = "Main"        'RELECE.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_RelecKey01 = "Production"  'RELECE.INI‚Ì·°
    Public Const G_CONST_RelecKey02 = "ShipPlan"    'RELECE.INI‚Ì·°
    Public Const G_CONST_RelecKey03 = "ProductFrom" 'RELECE.INI‚Ì·°
    Public Const G_CONST_RelecKey04 = "ProductTo"   'RELECE.INI‚Ì·°
    Public Const G_CONST_KdmcSec01 = "Main"         'KDMC.INI‚Ì¾¸¼®Ý
    Public Const G_CONST_KdmcKey01 = "PicsType"     'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey02 = "CstmID"       'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey03 = "CstmCode"     'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey04 = "CenterCode"   'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey05 = "Bhk"          'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey06 = "SectionID"    'KDMC.INI‚Ì·°
    Public Const G_CONST_KdmcKey07 = "SectionCode"  'KDMC.INI‚Ì·°
    Public Const G_CONST_ZaikoSec01 = "Main"        'ZAIKO.INI‚Ì·°
    Public Const G_CONST_ZaikoKey01 = "Date"        'ZAIKO.INI‚Ì·°
    Public Const G_CONST_APLinkSec01 = "Main"       'APLINK.INI‚Ì·°
    Public Const G_CONST_APLinkKey01 = "CreateAP"   'APLINK.INI‚Ì·° 

    '// ¼½ÃÑ‹¤’Ê’è‹`
    Public Const G_CONST_APP_NEW = 1
    Public Const G_CONST_APP_UPD = 2

    '// iniŽæ“¾Ž¸”sƒGƒ‰[
    Public Const MSG_PICSS0101 = "ini file not found"

    '// “ú•t•ÏŠ·—pƒtƒ@ƒCƒ‹
    Public Const G_CONST_YYYY_CTL = "YYYY.CTL"

    '// Žæ‚èž‚Ýˆ— ƒtƒ@ƒCƒ‹ŒŸõ—p
    Public Const DIR_FDPLAN_BTR = "FDPLAN"
    Public Const DIR_FDSPLY_BTR = "FDSPLY"
    Public Const DIR_FDLCTN_BTR = "FDLCTN"
    Public Const DIR_FDJUMP_BTR = "FDJUMP"
    Public Const DIR_MSZIS1_BTR = "MSZIS1"
    Public Const DIR_MSZIS2_BTR = "MSZIS2"

    Public Const DIR_SPM_BTR = "SPM.BTR"
    Public Const DIR_LN2LN_BTR = "LN2LN.BTR"
    Public Const DIR_PLAN_BTR = "PLAN.BTR"
    Public Const DIR_LCTNMC_BTR = "LCTNMC.BTR"
    Public Const DIR_IDCNV_BTR = "IDCNV.BTR"
    Public Const DIR_RL2RL_BTR = "RL2RL.BTR"
    Public Const DIR_PRESETBHK_BTR = "LN2RL.BTR"
    'Public Const DIR_LCTNMC_ERR = "LCTNMC.ERR"
    Public Const DIR_JUMP_BTR = "JUMP.BTR"
    Public Const DIR_LOCATION_BTR = "LOCATION.BTR"
    Public Const DIR_PARTMTL_BTR = "PARTMTL.BTR"
    Public Const DIR_PARTM_BTR = "PARTM.BTR"

    '// ì‹Æƒo[ƒR[ƒh’è‹`
    Public Const BARCD_FUGUAI = "OCMINUS"       '•s‹ï‡•ñ
    Public Const BARCD_STYPE = "OCWRAPCHG"      'ì‹ÆÀ²Ìß•ÏX
    Public Const BARCD_SAIHAKKO = "OCREPRINT"   'Ä”­s
    Public Const BARCD_ZANSU = "OCZANINF"       'Žc”Æ‰ï
    Public Const BARCD_SJISSEKI = "OCWRAPSUM"   'ì‹ÆŽÀÑŽûW
    Public Const BARCD_ZCANCEL = "OCLOSTZAI"    'ÝŒÉ½·¬Ý·¬Ý¾Ù
    Public Const BARCD_OK = "OCOK"              'OK
    Public Const BARCD_CANCEL = "OCNG"          '·¬Ý¾Ù
    Public Const BARCD_MENUBACK = "OCMENUBACK"  'ÒÆ­°ÊÞ¯¸
    Public Const BARCD_CORRECT = "OCQTYUPD"     '’ù³”—Ê
    Public Const BARCD_SYSEND = "OSYSEND"       'I—¹ì‹ÆI—¹

    Public Const OUTPUT_ALLOUT_TXT = "STOCK_ALLST.DAT"
    Public Const OUTPUT_HT_TXT = ".DAT"
End Module
