def main(report_id,gs_report_id,cursor,connect,gs_basic_id,org, id, seqid,regno,gs_py_id): pattern = "report_share" types = config.key_params["report_share"] url = config.main_branch_url headers = config.headers object = Report_Share() info,flag = GetBranchInfo(url,headers,object,types).get_report_share_info(report_id,org, id, seqid,regno) flag = Judge().update_report_info(flag, info, gs_report_id, gs_basic_id, cursor, connect, pattern) Judge().update_py(gs_py_id, share_py, flag)
def main(report_id, gs_report_id, cursor, connect, gs_basic_id, gs_py_id): url = config.main_branch_url headers = config.headers pattern = "report_invest" types = config.key_params["report_invest"] url = url + config.report_params1.format(types, report_id) object = Report_Invest(url, headers) info, flag = object.get_info() flag = Judge().update_report_info(flag, info, gs_report_id, gs_basic_id, cursor, connect, pattern) Judge.update_py(gs_py_id, invest_py, flag)
def main(report_id, gs_report_id, cursor, connect, gs_basic_id, gs_py_id): pattern = "report_permit" types = config.key_params["report_permit"] url = config.main_branch_url headers = config.headers object = Report_Permit() info, flag = GetBranchInfo(url, headers, object, types).get_report_info(report_id) flag = Judge().update_report_info(flag, info, gs_report_id, gs_basic_id, cursor, connect, pattern) Judge().update_py(gs_py_id, permit_py, flag)
def main(report_id,gs_report_id,cursor,connect,gs_basic_id,gs_py_id): url = config.main_branch_url headers = config.headers types = config.key_params["report_lab"] url = url + config.report_params1.format(types,report_id) object = Report_Lab(url,headers) info,flag = object.get_info() if len(info)>0: remark = object.update_to_db(gs_report_id, gs_basic_id, cursor, connect, info) Judge().update_py(gs_py_id,lab_py,remark)
def main(org, id, seq_id, gs_basic_id, gs_py_id): tmp = random.randint(0, 100) url = config.basic_url.format(org, id, seq_id, tmp) headers = config.headers object = Basic(url, headers) info, flag, encryed_code = object.name() if flag == 1: flag = object.update_to_db(info, gs_basic_id) print "basic_flag:%s" % flag Judge().update_py(gs_py_id, update_py, flag) return encryed_code
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "person" flag = Judge().update_info1(pattern, org, id, seqid, regno, Person, gs_basic_id) Judge().update_py(gs_py_id, update_person_py, flag)
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "stock" flag = Judge().update_info2(pattern, org, id, seqid, regno, Stock, gs_basic_id) Judge().update_py(gs_py_id, update_stock_py, flag)
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "punish" flag = Judge().update_info2(pattern, org, id, seqid, regno, Punish, gs_basic_id) Judge().update_py(gs_py_id, update_punish_py, flag)
def main(org, id, seqid, regno, gs_basic_id): pattern = "punish2" flag = Judge().update_info2(pattern, org, id, seqid, regno, Punish, gs_basic_id)
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "except" flag = Judge().update_info2(pattern, org, id, seqid, regno, Except, gs_basic_id) Judge().update_py(gs_py_id, update_except_py, flag)
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "freeze" flag = Judge().update_info2(pattern, org, id, seqid, regno, Freeze, gs_basic_id) Judge().update_py(gs_py_id, update_freeze_py, flag)
def main(org, id, seqid, regno, gs_basic_id): pattern = "stock" Judge().update_info2(pattern, org, id, seqid, regno, Stock, gs_basic_id)
def main(org, id, seq_id, regno, gs_basic_id): pattern = "branch" flag = Judge().update_info1(pattern, org, id, seq_id, regno, Branch, gs_basic_id)
def main(org, id, seqid, regno, gs_basic_id): pattern = "shareholder" flag = Judge().update_info2(pattern, org, id, seqid, regno, Shareholder, gs_basic_id)
def main(org,id,seqid,regno,gs_basic_id,gs_py_id): pattern = "change" flag = Judge().update_info2(pattern, org, id, seqid, regno,Change, gs_basic_id) Judge().update_py(gs_py_id, update_change_py, flag)
def main(org, id, seq_id, regno, gs_basic_id, gs_py_id): pattern = "brand" flag = Judge().update_info1(pattern, org, id, seq_id, regno, Brand, gs_basic_id) Judge().update_py(gs_py_id, update_brand_py, flag)
def main(org, id, seqid, regno, gs_basic_id): pattern = "permit" flag = Judge().update_info2(pattern, org, id, seqid, regno, Permit, gs_basic_id)
def main(org, id, seqid, regno, gs_basic_id, gs_py_id): pattern = "permit2" flag = Judge().update_info2(pattern, org, id, seqid, regno, Permit, gs_basic_id) Judge().update_py(gs_py_id, update_permit_py, flag)
def main(org, id, seq_id, regno, gs_basic_id, gs_py_id): pattern = "clear" flag = Judge().update_info1(pattern, org, id, seq_id, regno, Clear, gs_basic_id) Judge().update_py(gs_py_id, update_clear_py, flag)
def main(org, id, seqid, regno, gs_basic_id): pattern = "mort" flag = Judge().update_info2(pattern, org, id, seqid, regno, Mort, gs_basic_id)
def main(org, id, seqid, regno, gs_basic_id): pattern = "check" flag = Judge().update_info2(pattern, org, id, seqid, regno, Check, gs_basic_id)