from zhak_projects.interface_request.safety_inspection.interface_document.interfacefactory import \
    InterfaceRequestFactory

doc_type = "docNewDsrcssbbl"
factory = InterfaceRequestFactory(doc_type)
guid = '62772d8d-1589-47ea-870e-f3a0221a0ff9'
checkLogGuid = "DC70E9EB-F158-3DAB-04AF-18400A9533B2"
ilist = factory.list()
ilist.payload = {}
ilist().print()

# icreatedoc = factory.createDoc()
# icreatedoc.payload = {"guid": guid,
#                       "checkLogGuid": checkLogGuid,
#                       }

# guid = "sdafdfsa2ssa333f"
# isavedoc = factory.saveDoc()
# payload=icreatedoc().pure()
# payload["checkLogGuid"]=checkLogGuid
# isavedoc.payload =payload
#
# isavedoc().print()

ipdfExport = factory.pdfExport(guid)
ipdfExport()
ipdfExport.open_pdf()
Beispiel #2
0
from zhak_projects.interface_request.safety_inspection.interface_document.interfacefactory import \
    InterfaceRequestFactory

doc_type = "docDelayRectification"
factory = InterfaceRequestFactory(doc_type)
guid = 'b5178ca2-d352-4912-92d9-d0e532aef058'
checkLogGuid = "DC70E9EB-F158-3DAB-04AF-18400A9533B2"
# ilist=factory.list()
# ilist.payload={}
# ilist().print()

icreatedoc = factory.createDoc()
icreatedoc.payload = {
    "guid": guid,
    "checkLogGuid": checkLogGuid,
}

guid = "sdafdfsa2ssa333f"
isavedoc = factory.saveDoc()
payload = icreatedoc().pure()
payload["checkLogGuid"] = checkLogGuid
isavedoc.payload = payload

isavedoc().print()

# ipdfExport = factory.pdfExport(guid)
# ipdfExport()
# ipdfExport.open_pdf()
Beispiel #3
0
from zhak_projects.interface_request.safety_inspection.interface_document.interfacefactory import \
    InterfaceRequestFactory

doc_type = "docNewInquiryRecord"
factory = InterfaceRequestFactory(doc_type)
guid = '2c5e8903-82f4-4ad6-9736-3fd1c8a1dabc'
checkLogGuid = "2dd9a725-8bc1-4a50-83a5-bd6b754855e2"
# ilist=factory.list()
# # ilist.payload={}
# ilist().print()

# igetdoclist = factory.get_doc_list()
# igetdoclist.payload={"wsGuid":guid}
# igetdoclist().print()

icreatedoc = factory.createDoc()
icreatedoc.payload = {
    "wsGuid": guid,
    "checkLogGuid": checkLogGuid,
}
#
d = icreatedoc()
d.print()

isavedoc = factory.saveDoc()
payload = d.pure()
payload["partyMember"] = '否'
payload["sex"] = '222'
payload["age"] = 'fasdf1'

isavedoc.payload = payload
import requests
import json
from zhak_projects.interface_request import environment
from zhak_projects.interface_request.safety_inspection.interface_document.interfacefactory import \
    InterfaceRequestFactory

doc_type = "docPenaltyScene"

factory = InterfaceRequestFactory(doc_type)
guid = '2b5eecfd-b4e9-4bb5-bf6c-1d7e69461ad2'
checkLogGuid = "6BFB82A5-96F4-55CF-F8BE-560B095FC688"
ilist = factory.list()
# ilist.payload={}
ilist().print()

# igetdoclist = factory.get_doc_list()
# igetdoclist.payload={"wsGuid":guid}
# igetdoclist().print()

# icreatedoc = factory.createDoc()
# icreatedoc.payload = {"wsGuid": guid,
#                       # "checkLogGuid": checkLogGuid,
#                       }
# #
# d=icreatedoc()
# d.print()
#
# isavedoc = factory.saveDoc()
# payload=d.pure()
# payload["personAddress"]='personAddress'
# payload["performanceMethod"]=True