Home > Net >  Want to put the message through a form command button a string format
Want to put the message through a form command button a string format

Time:09-21

"Json" :
{
"DTTSEventS" : {
"DTTSIDENTITY" : ", "
"DTTSEvent" : [{
"DatasetName" : "CirculateWareHouseIn",//a fixed value
"EventBodyList" : {
"EventBody" : [{
"RecTime" : "the 2019-08-08 13:40:00",//the current upload time
"EventID" : ", "
"EvtBasic" : {
"SHDBH" : "receipt number",
"FHDBH" : "invoice number",
"DHDBH" : "order number",
"FHJGMC" : "name of the shipping agency,"
"TYSHXYDMFHJG" : "unified social credit code (shipping),
"WSJGDMFHJG" : "health organization code (delivery),"
"FHDZ" : "shipping address",
The name "SHJGMC" : "receiving",
"TYSHXYDMSHJG" : "unified social credit code (receiving),
"SHDZ" : "shipping address",
"SHLX" : "receiving type,"
"SHR" : "consignee",
"SHSJ" : "the goods time,"
"DJYZZT" : "document verification status,"
"DJYZRQ" : "document validation date,"
"DJYZWTGYY" : "document validation by no reason,"
"SFJKYP" : "whether the imported drugs,"
"RKSJ" : "inbound date
"},
"ItemList" : {
"ItemDetail" : [{
"GJYPBSM" : "00509000502" (national drug identification code),
"YPTYMC" : "drug generic names,"
"YPYWMC" : "pharmaceutical English name,"
"JKYPZWYM" : "imported drugs in Chinese translation,"
"YPSPMC" : "drug name of commodity,"
"JX" : "form",
"ZJGG" : "specification",
"BZGG" : "packaging specification",
"BZZHB" : "packaging conversion ratio,"
"YPYXQ" : "the 2030-08-08 validity (drug),"
"YPYXQDW" : "the 2030-08-08 (M: drug unit D: the validity day month Y years)",
Approval number "YPPZWH" : ", "
"YPPZWHYXQ" : "the validity of the document of approval for drugs,"
"JKYPZCZH" : "imported drug registration number",
"JKYPZCZYXQ" : "imported drug registration certificate is valid,"
"JKYPPJH" : "import drug approval documents",
"JKYPPJYXQ" : "imported drugs the certificate is valid,"
"YPZCFL" : "drug registration classification,"
"GJJBYWBS", "national essential drugs identification (True, False)",
"TSYPGLFL" : "special drug classification management (appendix a. 2)",
"CFYBS" : "prescription drugs (prescription and non-prescription drugs, other)",
"YPSCRQ" : "the 2019-08-08 (pharmaceutical production date),"
"YPYXQJZRQ" : "the 2030-08-08 (drug for deadline),"
"YPSCPH" : "drug production batch number,"
"YSHSL" : "should be receiving the number,"
"SJSHSL" : "the goods actual quantity,"
"YPSSXKCYR" : "drug marketing authorisation holder,"
"TYSHXYDMYPSSXKCYR" : "unified social credit code (drug marketing authorisation holder or id card)",
"ZJHYPSSXKCYR" : "id (drug marketing authorisation holder)",
"ZJLX" : "card type",
Production enterprise name "SCQYMC" : "",
"TYSHXYDMSCQY" : "unified social credit code (manufacturer)",
"GSMCZW" : "company name (in Chinese),"
"GSMCYW" : "company name (English),"
"SCCMCZW" : "manufacturer name (in Chinese),"
"SCCMCYW" : "manufacturer name (English),"
"JWYPSCQYDM" : "overseas pharmaceutical production enterprise code,"
"JKYPDLQYMC" : "import agent enterprise name,"
"TYSHXYDMJKYPDLQY" : "unified social credit code (import agent)",
"CPLX" : "the product type,"
"InstanceList" : {
"InstanceDetail" : [{
"YPZSM" : "88060890003881291636 (drug back yards),"
"BZCJ" : "3 (packaging level),"
"SYJBZYPZSM" : "packaging drugs back yards at the next higher level,"
"BHZXXSBZDYSL" : "1 (including minimum number of sales package unit)",
"ZSMYZZT" : "traceability code validation status
"},
{
"YPZSM" : "88060890003881291635 (drug back yards),"
"BZCJ" : "2 (packaging level),"
"SYJBZYPZSM" : "88060890003881291636 (packaging drugs back yards) at the next higher level",
"BHZXXSBZDYSL" : "1 (including minimum number of sales package unit)",
"ZSMYZZT" : "traceability code validation status
"},
{
"YPZSM" : "880608900038812916350 (drug back yards),"
"BZCJ" : "1 (packaging level),"
"SYJBZYPZSM" : "88060890003981291635 (packaging drugs back yards) at the next higher level",
"BHZXXSBZDYSL" : "1 (including minimum number of sales package unit)",
"ZSMYZZT" : "traceability code validation status
"}
]
}
}]
}
}]
}
}]
}
}

Want to pass a form command button spell this message format into a string

CodePudding user response:

1, according to the first message definition class
2, create the class of objects, to initialize the data you want
3, the object can be converted to a string (with JavaScriptSerializer)
  • Related