def TP0101_STEP7_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 获取交易日志路径"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = None; ACMP_Builtin_LoggerVar(4, "A1", None); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Result_ = P_Cmd_P_GetTradeLogPath(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TD0202_STEP3_NODE15(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 校验有效数据记录"); _Arg0_ = int(__REQ__["Count"]) <> 0; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TD0202_STEP3_NODE17; elif(_Result_[0] == 1): return TD0202_STEP3_NODE19; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TD0202_STEP4_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 设置全局错误"); _Arg0_ = "E"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = "FFFF"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "更新批次状态时出现意外的错误!影响的批次记录数为0"; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = ACMP_Builtin_SetErrorToGlobal(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP4_NODE4; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP4_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP4_NODE4);
def TD0202_STEP3_NODE8(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 行号递增"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "LineNo"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = __REQ__["LineNo"]+1; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = ACMP_Builtin_SetValueToContext(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TD0202_STEP3_NODE13(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 汇总信息累计"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = [ ["Count",__REQ__["Count"]+1], ["Amount","%.2f"%(float(__REQ__["Amount"])+float(__REQ__["OneInfoList"][2]))]]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Result_ = B_ABOP_Dictionary_B_dict_setvalue(_Arg0_,_Arg1_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE6; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TD0202_STEP2_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 设置全局错误"); _Arg0_ = "E"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = "OP10"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "协议号校验未通过"+__REQ__["__BODY__"]["AgreementID"]+"!="+"总公司协议号:"+__REQ__["AgreementID"]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = ACMP_Builtin_SetErrorToGlobal(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP2_NODE4; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP2_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP2_NODE4);
def TD0202_STEP3_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 获取一条数据"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "BatchFile"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Result_ = B_ABOP_File_B_GetOneLineFromFile(_Arg0_,_Arg1_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["OneInfo"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["OneInfo"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE8; elif(_Result_[0] == 2): return TD0202_STEP3_NODE14; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TP0101_STEP8_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 判断用户编号长度"); _Arg0_ = len(__REQ__["CustomerNo"]) == 18; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TP0101_STEP8_NODE12; elif(_Result_[0] == 1): return TP0101_STEP8_NODE5; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15);
def TP0101_STEP8_NODE11(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 请求ESB失败设置"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(3,"A0","__REQ__"); _Arg1_ = [ ["status" ,"F"], ["_Send_Status_" ,"F"], ]; ACMP_Builtin_LoggerVar(3,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Dict_P_Dict_SetValue(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TP0101_STEP8_NODE15; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15);
def TP0101_STEP7_NODE11(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 取全局错误到容器(内建)"); ACMP_Builtin_SetDefaultExceptNode(None); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "status"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "dealcode"; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = "dealmsg"; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = ACMP_Builtin_GetGlobalErrorToDict(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE12; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TP0101_STEP8_NODE4(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 送三方字段处理"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = [ ["BankAccountName",__REQ__.get("BankAccountName","")], ["SignBegDate",__REQ__["newdate"]], ["SignBegDate","2099-12-30"],]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Dict_P_Dict_SetValue(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP8_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15);
def TP0101_STEP7_NODE9(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 查询sqlkey条件赋值"); _Arg0_ = __REQ__["AGENT"]; ACMP_Builtin_LoggerVar(3,"A0",_Arg0_); _Arg1_ = [ ["productcode" , __REQ__["productcode"]], ["templatecode" , __REQ__["templatecode"]], ["transcode" , __REQ__["transcode"]], ["busitype" , __REQ__.get("busitype","0")], ]; ACMP_Builtin_LoggerVar(3,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Dict_P_Dict_SetValue(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE10; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TP0101_STEP7_NODE8(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 创建信息数据字典"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(3,"A0","__REQ__"); _Arg1_ = [ ["AGENT",dict] ]; ACMP_Builtin_LoggerVar(3,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Object_P_Obj_Crt(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE9; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TP0101_STEP7_NODE7(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 超时交易友好拒绝"); _Arg0_ = __REQ__["__MC__"]; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = __REQ__["__TC__"]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = __REQ__["workdate"]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Arg4_ = None; ACMP_Builtin_LoggerVar(4, "A4", None); _Result_ = B_RiskCtrl_B_RiskCtrl_SelTimeOutTrade(_Arg0_,_Arg1_,_Arg2_,_Arg3_,_Arg4_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE8; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TD0202_STEP6_NODE4(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 判断错误信息长度"); _Arg0_ = len(__REQ__["ErrorMsg"])>127; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TD0202_STEP6_NODE6; elif(_Result_[0] == 1): return TD0202_STEP6_NODE5; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7);
def TP0101_STEP8_NODE14(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 字典变量赋值"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = [ ["dealcode",__REQ__.get("thirddealcode","FBAP21")], ["dealmsg",__REQ__.get("thirddealmsg","申请失败")],]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Dict_P_Dict_SetValue(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP8_NODE13; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15);
def TD0202_STEP6_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 设置交易执行失败"); _Arg0_ = __RSP__; ACMP_Builtin_LoggerVar(4,"A0","__RSP__"); _Arg1_ = __REQ__["ErrorCode"]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = __REQ__["ErrorMsg"]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = B_ABOP_Trade_B_SetTradeFaild(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP6_NODE8; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7);
def TP0101_STEP8_NODE16(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 查询是否成功"); _Arg0_ = __REQ__["thirdstatus"] == "S"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TP0101_STEP8_NODE14; elif(_Result_[0] == 1): return TP0101_STEP8_NODE8; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP8_NODE15);
def TD0202_STEP3_NODE5(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 打开批量文件"); _Arg0_ = __REQ__["__BODY__"]["BatchFilePath"]; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = __REQ__["__BODY__"]["BatchFileName"]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "r"; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = B_ABOP_File_B_OpenTheFile(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["BatchFile"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["BatchFile"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE6; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TP0101_STEP7_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 报文拆包"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "natp"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = B_Message_B_Mesg_UnPack(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE4; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);
def TD0202_STEP3_NODE7(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 数据分割成列表"); _Arg0_ = __REQ__["OneInfo"]; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = "|"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Result_ = B_ABOP_File_B_DealOneLineSeparativeSignInfo(_Arg0_,_Arg1_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["OneInfoList"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["OneInfoList"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE9; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TP0101_STEP9_NODE4(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 交易是否异常"); _Arg0_ = __REQ__.has_key("dealcode") and __REQ__["dealcode"] != __REQ__["_Plat_RetCode_Success_"]; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TP0101_STEP9_NODE6; elif(_Result_[0] == 1): return TP0101_STEP9_NODE5; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12);
def TD0202_STEP3_NODE9(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 明细格式校验"); _Arg0_ = (len(__REQ__["OneInfoList"]) == 3) and(len(__REQ__["OneInfoList"][0])<=20 and __REQ__["OneInfoList"][0].strip() != "") and (__REQ__["OneInfoList"][2].strip() != "") and ((len(__REQ__["OneInfoList"][2].split('.'))==1) or (len(__REQ__["OneInfoList"][2].split('.'))==2 and len(__REQ__["OneInfoList"][2].split('.')[1])<=2)); ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Result_ = ACMP_Builtin_BoolFrame(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 0): return TD0202_STEP3_NODE10; elif(_Result_[0] == 1): return TD0202_STEP3_NODE11; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TP0101_STEP9_NODE6(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 通讯参数赋值"); _Arg0_ = __RSP__; ACMP_Builtin_LoggerVar(3,"A0","__RSP__"); _Arg1_ = [ ["MC",__REQ__["__MC__"]], ["TC",__REQ__["__TC__"]] ]; ACMP_Builtin_LoggerVar(3,"A1",_Arg1_); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Arg3_ = None; ACMP_Builtin_LoggerVar(4, "A3", None); _Result_ = P_Dict_P_Dict_SetValue(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP9_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12);
def TD0202_STEP3_NODE14(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 关闭打开的文件"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "BatchFile"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Result_ = B_ABOP_File_B_CloseTheFile(_Arg0_,_Arg1_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE15; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TP0101_STEP9_NODE7(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 接口字典映射"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(3,"A0","__REQ__"); _Arg1_ = "chl->afa"; ACMP_Builtin_LoggerVar(3,"A1",_Arg1_); _Arg2_ = __REQ__["_MSGTYPELIST_RSP_"]; ACMP_Builtin_LoggerVar(3,"A2",_Arg2_); _Arg3_ = __RSP__; ACMP_Builtin_LoggerVar(3,"A3","__RSP__"); _Arg4_ = None; ACMP_Builtin_LoggerVar(4, "A4", None); _Arg5_ = None; ACMP_Builtin_LoggerVar(4, "A5", None); _Result_ = B_Interface_B_API_MapMsg(_Arg0_,_Arg1_,_Arg2_,_Arg3_,_Arg4_,_Arg5_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP9_NODE8; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP9_NODE12);
def TD0202_STEP3_NODE18(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 设置全局错误"); _Arg0_ = "E"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = "OP30"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "批次文件总金额与总笔数与汇总信息不相符,请检查!"; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Result_ = ACMP_Builtin_SetErrorToGlobal(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP3_NODE20; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP3_NODE4);
def TD0202_STEP6_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 取全局错误到容器"); _Arg0_ = __REQ__; ACMP_Builtin_LoggerVar(4,"A0","__REQ__"); _Arg1_ = "ErrorType"; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = "ErrorCode"; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = "ErrorMsg"; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = ACMP_Builtin_GetGlobalErrorToDict(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP6_NODE4; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP6_NODE7);
def TD0202_STEP5_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 设置交易执行成功"); _Arg0_ = __RSP__; ACMP_Builtin_LoggerVar(4,"A0","__RSP__"); _Result_ = B_ABOP_Trade_B_TradeSuccess(_Arg0_); if((_Result_[1] != None) and (_Result_[2] != None)): ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP5_NODE5; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP5_NODE2); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP5_NODE2);
def TP0101_STEP7_NODE5(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 获取系统IP"); _Arg0_ = __REQ__["_NETNAME_"]; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = None; ACMP_Builtin_LoggerVar(4, "A1", None); _Arg2_ = None; ACMP_Builtin_LoggerVar(4, "A2", None); _Result_ = P_Cmd_P_GetIp(_Arg0_,_Arg1_,_Arg2_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["serverip"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["serverip"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TP0101_STEP7_NODE6; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TP0101_STEP7_NODE12);