Ejemplo n.º 1
0
 def __init__(self, **kwargs):
     self.__logger = ILog(__file__)
     self.path = set_img_res_path(__file__)
     self.robot_no = ''
     self.proc_no = ''
     self.job_no = ''
     self.input_arg = ''
     if ('robot_no' in kwargs.keys()):
         self.robot_no = kwargs['robot_no']
     if ('proc_no' in kwargs.keys()):
         self.proc_no = kwargs['proc_no']
     if ('job_no' in kwargs.keys()):
         self.job_no = kwargs['job_no']
     ILog.JOB_NO, ILog.OLD_STDOUT = self.job_no, sys.stdout
     sys.stdout = StdOutHook(self.job_no, sys.stdout)
     ExceptionHandler.JOB_NO, ExceptionHandler.OLD_STDERR = self.job_no, sys.stderr
     sys.excepthook = ExceptionHandler.handle_exception
     if ('input_arg' in kwargs.keys()):
         self.input_arg = kwargs['input_arg']
         if (len(self.input_arg) <= 0):
             self.input_arg = iinput.load_init(__file__)
         if self.input_arg is None:
             sys.exit(0)
     self.dict_info = {
         'AmountInWords': '佰叁拾圆叁角肆分',
         'NoteDrawer': '谢登梅',
         'SellerAddress':
         '深州市龙华区庆湾街道庆津大道乌庆旺路文汇处民治商务中心1栋115栋、2、3栋、4幢009栋7553323188',
         'CommodityPrice': '[]',
         'CommodityNum': '[]',
         'SellerRegisterNum': '91440300689404127F',
         'SellerBank': '农业银行龙华支行41028900040099987',
         'Remarks': '订单号1047426466044621910支付日期2020-06-07',
         'CommodityTaxRate': '[]',
         'TotalTax': '62.05',
         'CheckCode': '17960524178417916383',
         'InvoiceCode': '044031900111',
         'InvoiceDate': '2020年06月11日',
         'PurchaserRegisterNum': '91440300MA5EGKDJ92',
         'InvoiceTypeOrg': '深圳增值税电子普通发票',
         'Password': '',
         'PurchaserBank': '',
         'AmountInFiguers': '937.34',
         'Checker': '郑晓碧',
         'TotalAmount': '875.29',
         'CommodityAmount': "[{'row':'1','word':'875.29'}]",
         'PurchaserName': '深圳市蓝禾技术有限公司',
         'CommodityType': '[]',
         'InvoiceType': '电子普通发票',
         'PurchaserAddress': '',
         'CommodityTax': "[{'row':'1','word':'62.05'}]",
         'CommodityUnit': '[]',
         'Payee': '刘笑额',
         'SellerName': '深圳康润华商贸有限公司',
         'CommodityName': "[{'row':'1','word':'(详见销货清单'}]",
         'InvoiceNum': '23838102'
     }
Ejemplo n.º 2
0
 def __init__(self,**kwargs):
     self.__logger = ILog(__file__)
     self.path = set_img_res_path(__file__)
     self.robot_no = ''
     self.proc_no = ''
     self.job_no = ''
     self.input_arg = ''
     if('robot_no' in kwargs.keys()):
         self.robot_no = kwargs['robot_no']
     if('proc_no' in kwargs.keys()):
         self.proc_no = kwargs['proc_no']
     if('job_no' in kwargs.keys()):
         self.job_no = kwargs['job_no']
     if('input_arg' in kwargs.keys()):
         self.input_arg = kwargs['input_arg']
         if(len(self.input_arg) <= 0):
             self.input_arg = iinput.load_init(__file__)
         if self.input_arg is None:
             sys.exit(0)
Ejemplo n.º 3
0
 def __init__(self, **kwargs):
     self.__logger = ILog(__file__)
     self.path = set_img_res_path(__file__)
     self.robot_no = ''
     self.proc_no = ''
     self.job_no = ''
     self.input_arg = ''
     if ('robot_no' in kwargs.keys()):
         self.robot_no = kwargs['robot_no']
     if ('proc_no' in kwargs.keys()):
         self.proc_no = kwargs['proc_no']
     if ('job_no' in kwargs.keys()):
         self.job_no = kwargs['job_no']
     ILog.JOB_NO, ILog.OLD_STDOUT = self.job_no, sys.stdout
     sys.stdout = StdOutHook(self.job_no, sys.stdout)
     ExceptionHandler.JOB_NO, ExceptionHandler.OLD_STDERR = self.job_no, sys.stderr
     sys.excepthook = ExceptionHandler.handle_exception
     if ('input_arg' in kwargs.keys()):
         self.input_arg = kwargs['input_arg']
         if (len(self.input_arg) <= 0):
             self.input_arg = iinput.load_init(__file__)
         if self.input_arg is None:
             sys.exit(0)