pd9427
This commit is contained in:
25
core/core_utils.py
Normal file
25
core/core_utils.py
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
class CoreUtils:
|
||||
|
||||
@staticmethod
|
||||
def get_number_by_mould_code(mould_code:str=''):
|
||||
"""获取分块号"""
|
||||
"""根据模块码获取块号"""
|
||||
if '-' in mould_code:
|
||||
block_number = mould_code.split('-')[0][-2:]
|
||||
else:
|
||||
block_number=''
|
||||
return block_number
|
||||
|
||||
@staticmethod
|
||||
def get_size_by_mould_code(mould_code:str=''):
|
||||
"""获取模具尺寸"""
|
||||
if mould_code.startswith('SHR'):
|
||||
return '6600*1500'
|
||||
elif mould_code.startswith('SHZ'):
|
||||
return '6600*1200'
|
||||
else:
|
||||
return '0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user