loulijun2021
2022-07-02 d24862719714be5f76fb3dc81a3a3da8de4cc5a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{
    "Version":"6.8.5.0",
    "Title":"7-2a.脚本.计算字段",
    "Author":"锐浪报表软件",
    "Description":"在记录集的“提交记录前脚本”属性上写报表脚本,实现计算字段求值。",
    "Font":{
        "Name":"宋体",
        "Size":105000,
        "Weight":400,
        "Charset":134
    },
    "Printer":{
    },
    "DetailGrid":{
        "CenterView":true,
        "PrintAdaptMethod":"ResizeToFit",
        "Recordset":{
            "ConnectionString":"Provider=Microsoft.Jet.OLEDB.4.0;\r\nUser ID=Admin;\r\nData Source=C:\\Grid++Report 6\\Samples\\Data\\Northwind.mdb",
            "QuerySQL":"select d.Productid,p.ProductName,d.Quantity, d.UnitPrice\r\nfrom OrderDetails d inner join Products p on d.ProductID=p.ProductID\r\nwhere d.Productid<10\r\norder by d.Productid",
            "BeforePostRecordScript":"var AmtFld = Sender.Fields.Item(\"Amount\");\r\nvar QtyFld = Sender.Fields.Item(\"Quantity\");\r\nvar PriceFld = Sender.Fields.Item(\"UnitPrice\");\r\nAmtFld.AsFloat = QtyFld.AsFloat*PriceFld.AsFloat;",
            "Field":[
                {
                    "Name":"Productid",
                    "Type":"Integer",
                    "Format":"000"
                },
                {
                    "Name":"ProductName"
                },
                {
                    "Name":"Quantity",
                    "Type":"Float",
                    "Format":"#,##0.##"
                },
                {
                    "Name":"Amount",
                    "Type":"Float",
                    "Format":"#,##0.00"
                },
                {
                    "Name":"UnitPrice",
                    "Type":"Currency"
                }
            ]
        },
        "Column":[
            {
                "Name":"Productid",
                "Width":1.5875
            },
            {
                "Name":"ProductName",
                "Width":3.38667
            },
            {
                "Name":"Quantity",
                "Width":2.38125
            },
            {
                "Name":"UnitPrice",
                "Width":2.2225
            },
            {
                "Name":"Amount",
                "Width":2.77813
            }
        ],
        "ColumnContent":{
            "Height":0.582083,
            "Cursor":"Magnify",
            "ColumnContentCell":[
                {
                    "Column":"Productid",
                    "DataField":"Productid"
                },
                {
                    "Column":"ProductName",
                    "DataField":"ProductName"
                },
                {
                    "Column":"Quantity",
                    "TextAlign":"MiddleRight",
                    "DataField":"Quantity"
                },
                {
                    "Column":"UnitPrice",
                    "TextAlign":"MiddleRight",
                    "DataField":"UnitPrice"
                },
                {
                    "Column":"Amount",
                    "TextAlign":"MiddleRight",
                    "ForeColor":"0000FF",
                    "DataField":"Amount"
                }
            ]
        },
        "ColumnTitle":{
            "Height":0.582083,
            "Font":{
                "Name":"宋体",
                "Size":105000,
                "Bold":true,
                "Charset":134
            },
            "ColumnTitleCell":[
                {
                    "GroupTitle":false,
                    "Column":"Productid",
                    "TextAlign":"MiddleCenter",
                    "Text":"产品编号"
                },
                {
                    "GroupTitle":false,
                    "Column":"ProductName",
                    "TextAlign":"MiddleCenter",
                    "Text":"产品名称"
                },
                {
                    "GroupTitle":false,
                    "Column":"Quantity",
                    "TextAlign":"MiddleCenter",
                    "Text":"数量"
                },
                {
                    "GroupTitle":false,
                    "Column":"UnitPrice",
                    "TextAlign":"MiddleCenter",
                    "Text":"单价"
                },
                {
                    "GroupTitle":false,
                    "Column":"Amount",
                    "TextAlign":"MiddleCenter",
                    "Text":"金额(计算字段)"
                }
            ]
        },
        "Group":[
            {
                "Name":"Group1",
                "GroupHeader":{
                    "Height":0
                },
                "GroupFooter":{
                    "Height":0.582083,
                    "Font":{
                        "Name":"宋体",
                        "Size":90000,
                        "Bold":true,
                        "Charset":134
                    },
                    "Control":[
                        {
                            "Type":"SummaryBox",
                            "Name":"Summary1",
                            "AlignColumn":"Quantity",
                            "Left":4.97417,
                            "Width":2.40771,
                            "Height":0.582083,
                            "TextAlign":"MiddleRight",
                            "DataField":"Quantity"
                        },
                        {
                            "Type":"SummaryBox",
                            "Name":"Summary2",
                            "AlignColumn":"Amount",
                            "Left":9.57792,
                            "Width":2.80458,
                            "Height":0.582083,
                            "TextAlign":"MiddleRight",
                            "DataField":"Amount"
                        },
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox5",
                            "Width":1.98438,
                            "Height":0.582083,
                            "Text":"总计"
                        }
                    ]
                }
            }
        ]
    },
    "PageHeader":{
        "Height":0.79375,
        "Control":[
            {
                "Type":"StaticBox",
                "Name":"StaticBox7",
                "Left":0.185208,
                "Width":3.41313,
                "Height":0.396875,
                "Text":"产品销售汇总表"
            },
            {
                "Type":"SystemVarBox",
                "Name":"SysData1",
                "Left":8.17563,
                "Width":7.62,
                "Height":0.396875,
                "Format":"报表打印时间:yyyy年MM月dd日 HH:mm:ss",
                "SystemVar":"CurrentDateTime"
            },
            {
                "Type":"Line",
                "Name":"Line1",
                "Top":0.608542,
                "Width":16.0073
            }
        ]
    },
    "PageFooter":{
        "Height":0.582083,
        "Control":[
            {
                "Type":"MemoBox",
                "Name":"MemoBox1",
                "Center":"Horizontal",
                "Left":6.21771,
                "Width":3.59833,
                "Height":0.396875,
                "TextAlign":"MiddleCenter",
                "Text":"[#SystemVar(PageNumber)#]/[#SystemVar(PageCount)#]"
            }
        ]
    },
    "ReportHeader":[
        {
            "Height":1.5875,
            "Control":[
                {
                    "Type":"StaticBox",
                    "Name":"MainTitle",
                    "Center":"Horizontal",
                    "Left":4.7625,
                    "Top":0.185208,
                    "Width":6.48229,
                    "Height":0.608542,
                    "Font":{
                        "Name":"宋体",
                        "Size":150000,
                        "Bold":true,
                        "Charset":134
                    },
                    "TextAlign":"MiddleCenter",
                    "Text":"按产品统计销售汇总报表"
                },
                {
                    "Type":"StaticBox",
                    "Name":"SubTitle",
                    "Center":"Horizontal",
                    "Left":1.13771,
                    "Top":0.79375,
                    "Width":13.7319,
                    "Height":0.608542,
                    "Font":{
                        "Name":"宋体",
                        "Size":120000,
                        "Bold":true,
                        "Charset":134
                    },
                    "TextAlign":"MiddleCenter",
                    "Text":"金额字段在记录集的“提交记录前脚本”中计算"
                }
            ]
        }
    ]
}