2023-06-23 14:20:48 +09:00

38 lines
1.0 KiB
Python

class BatchContext:
__instance = None
__syor_date: str # 処理日(yyyy/mm/dd形式)
__is_not_business_monthly: bool # 月次バッチ起動日フラグ
def __init__(self) -> None:
self.__is_not_business_monthly = False
@classmethod
def get_instance(cls):
if cls.__instance is None:
cls.__instance = cls()
return cls.__instance
@property
def syor_date(self):
return self.__syor_date
@syor_date.setter
def syor_date(self, syor_date_str: str):
self.__syor_date = syor_date_str
@property
def is_not_business_monthly(self):
return self.__is_not_business_monthly
@is_not_business_monthly.setter
def is_not_business_monthly(self, flag: bool):
self.__is_not_business_monthly = flag
@property
def is_ultmarc_imported(self):
return self.__is_ultmarc_imported
@is_ultmarc_imported.setter
def is_ultmarc_imported(self, flag: bool):
self.__is_ultmarc_imported = flag