Example #1
0
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)
Example #4
0
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)
Example #5
0
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
Example #6
0
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)
Example #7
0
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)
Example #8
0
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)
Example #9
0
def main(org, id, seqid, regno, gs_basic_id):
	pattern = "punish2"
	flag = Judge().update_info2(pattern, org, id, seqid, regno, Punish, gs_basic_id)
Example #10
0
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)
Example #11
0
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)
Example #12
0
def main(org, id, seqid, regno, gs_basic_id):
    pattern = "stock"
    Judge().update_info2(pattern, org, id, seqid, regno, Stock, gs_basic_id)
Example #13
0
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)
Example #14
0
def main(org, id, seqid, regno, gs_basic_id):
    pattern = "shareholder"
    flag = Judge().update_info2(pattern, org, id, seqid, regno, Shareholder,
                                gs_basic_id)
Example #15
0
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)
Example #16
0
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)
Example #17
0
def main(org, id, seqid, regno, gs_basic_id):
    pattern = "permit"
    flag = Judge().update_info2(pattern, org, id, seqid, regno, Permit,
                                gs_basic_id)
Example #18
0
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)
Example #19
0
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)
Example #20
0
def main(org, id, seqid, regno, gs_basic_id):
    pattern = "mort"
    flag = Judge().update_info2(pattern, org, id, seqid, regno, Mort,
                                gs_basic_id)
Example #21
0
def main(org, id, seqid, regno, gs_basic_id):
	pattern = "check"
	flag = Judge().update_info2(pattern, org, id, seqid, regno, Check, gs_basic_id)