318 lines
7.3 KiB
JSON
318 lines
7.3 KiB
JSON
[
|
|
{
|
|
"name": "產品列表",
|
|
"fileType": "pdf",
|
|
"pageSize": "A4",
|
|
"layout": "portrait",
|
|
"margin": 10,
|
|
"padding": 2,
|
|
"showProgress": true,
|
|
"type": "report",
|
|
"header": [
|
|
{
|
|
"value": "=$reportName",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "14px",
|
|
"span": 1,
|
|
"width": 558,
|
|
"align": "center",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 29.99999237060547,
|
|
"left": 0
|
|
},
|
|
{
|
|
"value": "=\"印表日期: \"+$(\"today\",\"yyyy/MM/dd\")",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 200,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 59.99999237060547,
|
|
"left": 0
|
|
},
|
|
{
|
|
"value": "=\"頁次: \"+$page+\"/\"+$pageCount",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 200,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 59.99999237060547,
|
|
"left": 360
|
|
},
|
|
{
|
|
"value": "Jabez 宣揚電腦",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "18px NSimSun",
|
|
"span": 1,
|
|
"width": 560,
|
|
"align": "center",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 0,
|
|
"left": 0
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"id": "Master",
|
|
"remoteName": "ProdList.Products",
|
|
"whereStr": "",
|
|
"parentObject": "",
|
|
"showHeader": true,
|
|
"repeatHeader": true,
|
|
"headerBackground": "",
|
|
"headerRowHeight": "",
|
|
"showFooter": false,
|
|
"showEmptyTable": false,
|
|
"keepTogether": false,
|
|
"groups": [
|
|
{
|
|
"field": "CategoryID",
|
|
"showHeader": true,
|
|
"showFooter": false,
|
|
"afterGroup": "changePage",
|
|
"row": [],
|
|
"header": []
|
|
}
|
|
],
|
|
"pageRowCount": "",
|
|
"afterRow": "none",
|
|
"color": "",
|
|
"background": "",
|
|
"alterBackground": "",
|
|
"border": "cell",
|
|
"borderColor": "#000000",
|
|
"font": "",
|
|
"onRenderRow": "",
|
|
"type": "table",
|
|
"header": [
|
|
{
|
|
"value": "產品編號",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 0,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "品名",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 1,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "供應商編號",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 2,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "類別",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 60,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 3,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "單位",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 60,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 4,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "單價",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 60,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 5,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "庫存",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 68,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 6,
|
|
"row": 0
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"value": "=#ProductID",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 0,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#ProductName",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 1,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#SupplierID",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 100,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 2,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#CategoryID",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 60,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 3,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#QuantityPerUnit",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 62,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 4,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#UnitPrice",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 64,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 5,
|
|
"row": 0
|
|
},
|
|
{
|
|
"value": "=#UnitsInStock",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 68,
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"column": 6,
|
|
"row": 0
|
|
}
|
|
],
|
|
"footer": [],
|
|
"top": 10,
|
|
"left": 0
|
|
}
|
|
],
|
|
"footer": [
|
|
{
|
|
"value": "=\"印表時間: \"+$(\"today\",\"yyyy/MM/dd hh:mm:ss\")",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": "",
|
|
"align": "",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 0,
|
|
"left": 0
|
|
},
|
|
{
|
|
"value": "=\"用戶名: \"+$userName ",
|
|
"color": "",
|
|
"background": "",
|
|
"font": "",
|
|
"span": 1,
|
|
"width": 200,
|
|
"align": "right",
|
|
"onRender": "",
|
|
"type": "label",
|
|
"top": 0,
|
|
"left": 360
|
|
}
|
|
]
|
|
}
|
|
] |