ActiveReport版本号: 13.2.18671.2
JSON Schema格式:
{"definitions":{"Detail":{"type":"object","properties":{"DetailName":{"type":"string"},"DetailPrices":{"type":"number"},"DetailTotal":{"type":"number"}},"required":["DetailName","DetailPrices","DetailTotal"]},"OrderInfo":{"type":"object","properties":{"RestaurantName":{"type":"string"},"OrderNo":{"type":"string"},"Person":{"type":"integer"},"PayRemark":{"type":"string"}},"required":["RestaurantName","OrderNo","Person","PayRemark"]},"Pay":{"type":"object","properties":{"PayName":{"type":"string"},"PayNum":{"type":"number"},"PayPrice":{"type":"number"}},"required":["PayName","PayNum","PayPrice"]}},"type":"object","properties":{"OrderInfo":{"$ref":"#/definitions/OrderInfo"},"Details":{"type":"array","items":{"$ref":"#/definitions/Detail"}},"Pays":{"type":"array","items":{"$ref":"#/definitions/Pay"}}},"required":["OrderInfo","Details","Pays"]}
JSON内容:
{"OrderInfo":{"RestaurantName":"西城店餐厅","OrderNo":"20201455789124","Person":10,"PayRemark":null},"Details":[{"DetailName":"黄花菜","DetailPrices":30.0,"DetailTotal":60.0},{"DetailName":"猪脚","DetailPrices":50.0,"DetailTotal":50.0}],"Pays":[{"PayName":"现金","PayNum":1.0,"PayPrice":100.0}]}
设计器截图:
打印后文件截图:
|