''' 交易名称:${tadeCode} 说 明:${desc} ''' def COMP_${tadeCode}_ENTRY(__REQ__,__RSP__,__SND__,__RCV__): try: CGC_Debug("开始业务组件 ${tadeCode}:${desc}") CGC_SET_DEF_EXCP_NODE(None) objResult = False objMethod = ${firstMothod} while(type(objMethod) is FunctionType): objResult = objMethod(__REQ__,__RSP__,__SND__,__RCV__) objMethod = objResult CGC_Debug("结束业务组件 ${tadeCode}:${desc}") return (objMethod == True) except Exception,PyExcp: CGC_SET_GLB_ERROR("E","BAPC0E001",str(PyExcp)) CGC_Debug(str(PyExcp)) return False