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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
{
    "Version":"6.8.5.0",
    "Title":"7-1f.脚本.页脚首页不显示",
    "Author":"锐浪报表软件",
    "Description":"在页脚的“格式化脚本”属性上写脚本,控制其在首页不显示",
    "Font":{
        "Name":"宋体",
        "Size":90000,
        "Weight":400,
        "Charset":134
    },
    "Printer":{
    },
    "DetailGrid":{
        "CenterView":true,
        "ShowColLine":false,
        "ShowRowLine":false,
        "Border":{
            "Styles":"[]"
        },
        "ColLine":{
            "Color":"C1C1C1"
        },
        "RowLine":{
            "Color":"C1C1C1"
        },
        "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 m.OrderID,m.CustomerId,c.CompanyName,c.ContactName,c.Address,c.city,c.Region,c.Country,c.Postalcode,\n\nm.OrderDate,M.Freight,d.ProductID,p.ProductName,\r\nd.UnitPrice,d.Quantity,d.Discount,\n\nd.UnitPrice*d.Quantity as Amount, Amount*d.Discount as DiscountAmt, Amount-DiscountAmt as NetAmount\n\n\r\nfrom (Orders m inner join \n\n(OrderDetails d inner join Products p on P.ProductID=D.ProductID) on m.OrderId=d.OrderId)\n\nleft join Customers c on c.CustomerID=m.CustomerID\r\nwhere m.OrderDate between #1/1/97# And #1/31/97#\n\n\r\norder by m.CustomerID,m.OrderDate, m.OrderID",
            "Field":[
                {
                    "Name":"OrderID",
                    "Type":"Integer"
                },
                {
                    "Name":"CustomerID"
                },
                {
                    "Name":"CompanyName"
                },
                {
                    "Name":"OrderDate",
                    "Type":"DateTime",
                    "Format":"yyyy年MM月dd日"
                },
                {
                    "Name":"Freight",
                    "Type":"Float",
                    "Format":"$#,##0.00"
                },
                {
                    "Name":"ProductID",
                    "Type":"Integer"
                },
                {
                    "Name":"ProductName"
                },
                {
                    "Name":"UnitPrice",
                    "Type":"Float",
                    "Format":"#,##0.##"
                },
                {
                    "Name":"Quantity",
                    "Type":"Integer",
                    "Format":"#,##0.##"
                },
                {
                    "Name":"Discount",
                    "Type":"Float",
                    "Format":"0.00%"
                },
                {
                    "Name":"Amount",
                    "Type":"Float",
                    "Format":"#,##0.00"
                },
                {
                    "Name":"DiscountAmt",
                    "Type":"Float",
                    "Format":"#,##0.00"
                },
                {
                    "Name":"NetAmount",
                    "Type":"Float",
                    "Format":"#,##0.00"
                },
                {
                    "Name":"ContactName"
                },
                {
                    "Name":"Address"
                },
                {
                    "Name":"City"
                },
                {
                    "Name":"Country"
                },
                {
                    "Name":"PostalCode"
                }
            ]
        },
        "Column":[
            {
                "Name":"OrderID",
                "Width":1.5875
            },
            {
                "Name":"OrderDate",
                "Width":2.38125
            },
            {
                "Name":"ProductName",
                "Width":3.78354
            },
            {
                "Name":"UnitPrice",
                "Width":1.98438
            },
            {
                "Name":"Quantity",
                "Width":1.5875
            },
            {
                "Name":"Discount",
                "Width":1.79917
            },
            {
                "Name":"NetAmount",
                "Width":2.77813
            }
        ],
        "ColumnContent":{
            "Height":0.79375,
            "Font":{
                "Name":"宋体",
                "Size":105000,
                "Weight":400,
                "Charset":134
            },
            "ColumnContentCell":[
                {
                    "Column":"OrderID",
                    "DataField":"OrderID"
                },
                {
                    "Column":"OrderDate",
                    "DataField":"OrderDate"
                },
                {
                    "Column":"ProductName",
                    "DataField":"ProductName"
                },
                {
                    "Column":"UnitPrice",
                    "TextAlign":"MiddleRight",
                    "DataField":"UnitPrice"
                },
                {
                    "Column":"Quantity",
                    "TextAlign":"MiddleRight",
                    "DataField":"Quantity"
                },
                {
                    "Column":"Discount",
                    "TextAlign":"MiddleRight",
                    "DataField":"Discount"
                },
                {
                    "Column":"NetAmount",
                    "TextAlign":"MiddleRight",
                    "DataField":"NetAmount"
                }
            ]
        },
        "ColumnTitle":{
            "Height":0.582083,
            "Font":{
                "Name":"宋体",
                "Size":105000,
                "Weight":400,
                "Charset":134
            },
            "RepeatStyle":"OnGroupHeader",
            "ColumnTitleCell":[
                {
                    "GroupTitle":false,
                    "Column":"OrderID",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"订单编号"
                },
                {
                    "GroupTitle":false,
                    "Column":"OrderDate",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"订单日期"
                },
                {
                    "GroupTitle":false,
                    "Column":"ProductName",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"产品名称"
                },
                {
                    "GroupTitle":false,
                    "Column":"UnitPrice",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"单价"
                },
                {
                    "GroupTitle":false,
                    "Column":"Quantity",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"数量"
                },
                {
                    "GroupTitle":false,
                    "Column":"Discount",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"折扣"
                },
                {
                    "GroupTitle":false,
                    "Column":"NetAmount",
                    "BackColor":"800000",
                    "TextAlign":"MiddleCenter",
                    "ForeColor":"FFFFFF",
                    "Text":"金额"
                }
            ]
        },
        "Group":[
            {
                "Name":"Group1",
                "ByFields":"CustomerID",
                "GroupHeader":{
                    "CanGrow":true,
                    "Height":1.79917,
                    "Font":{
                        "Name":"宋体",
                        "Size":90000,
                        "Bold":true,
                        "Charset":134
                    },
                    "NewPage":"Before",
                    "Control":[
                        {
                            "Type":"RichTextBox",
                            "Name":"RichTextBox2",
                            "Left":0.185208,
                            "Width":15.584,
                            "Height":1.37583,
                            "CanGrow":true,
                            "RTF":"{\\rtf1\\ansi\\ansicpg936\\deff0\\deflang1033\\deflangfe2052{\\fonttbl{\\f0\\fnil\\fprq2\\fcharset134 \\'cb\\'ce\\'cc\\'e5;}{\\f1\\froman\\fprq2\\fcharset0 Times New Roman;}}\n\n{\\colortbl ;\\red0\\green0\\blue0;\\red0\\green51\\blue102;\\red255\\green102\\blue0;\\red0\\green255\\blue0;\\red0\\green0\\blue255;}\n\n\\viewkind4\\uc1\\pard\\nowidctlpar\\sl240\\slmult0\\b\\f0\\fs28 [#PostalCode#]\\par\n\n[#Country#] [#City#][#Address#]\\cf1\\par\n\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\'d2\\'e5\\'b7\\'e1\\'b8\\'bb\\'b5\\'c4\\cf4\\ul\\b\\i\\'b8\\'f1\\'ca\\'bd\\cf0\\ulnone\\b0\\i0\\'a1\\'a3\\cf5\\ul\\'ce\\'c4\\'b1\\'be\\'d6\\'d0\\'b6\\'a8\\'d2\\'e5\\'c1\\'cb\\'bf\\'c9\\'cc\\'e6\\'bb\\'bb\\'d3\\'f2\\'a3\\'ac\\'d3\\'f2\\'d4\\'da\\'d4\\'cb\\'d0\\'d0\\'ca\\'c7\\'b1\\'bb\\'d3\\'f2\\'d6\\'b5\\'cc\\'e6\\'bb\\'bb\\'a3\\'ac\\'c8\\'e7\\'d0\\'c5\\'bc\\'fe\\'b3\\'c6\\'ce\\'bd\\'d6\\'d0\\'b5\\'c4\\'d3\\'c3\\'bb\\'a7\\'c3\\'fb\\'b3\\'c6\\par\n\n\\pard\\cf0\\kerning0\\ulnone\\b\\fs28\\par\n\n}\n\n"
                        }
                    ]
                },
                "GroupFooter":{
                    "Height":2.38125,
                    "Font":{
                        "Name":"宋体",
                        "Size":90000,
                        "Bold":true,
                        "Charset":134
                    },
                    "Control":[
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox2",
                            "AlignColumn":"Discount",
                            "Left":11.3242,
                            "Top":0.211667,
                            "Width":1.79917,
                            "Height":0.608542,
                            "TextAlign":"MiddleRight",
                            "Text":"合计:"
                        },
                        {
                            "Type":"SummaryBox",
                            "Name":"Summary3",
                            "AlignColumn":"NetAmount",
                            "Left":13.1233,
                            "Top":0.211667,
                            "Width":2.77813,
                            "Height":0.608542,
                            "TextAlign":"MiddleRight",
                            "DataField":"NetAmount"
                        },
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox3",
                            "Left":3.78354,
                            "Top":0.978958,
                            "Width":2.59292,
                            "Height":0.396875,
                            "Text":"此致"
                        },
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox4",
                            "Left":5.79438,
                            "Top":1.5875,
                            "Width":2.59292,
                            "Height":0.423333,
                            "Text":"敬礼"
                        },
                        {
                            "Type":"Line",
                            "Name":"Line2",
                            "AlignColumn":"NetAmount",
                            "Left":13.1233,
                            "Top":0.079375,
                            "Width":2.77812
                        },
                        {
                            "Type":"Line",
                            "Name":"Line3",
                            "AlignColumn":"NetAmount",
                            "Left":13.1233,
                            "Top":0.15875,
                            "Width":2.77812
                        }
                    ]
                }
            }
        ]
    },
    "PageHeader":{
        "Height":0.582083
    },
    "PageFooter":{
        "Height":1.32292,
        "FormatScript":"//只在第一页不显示当前报表节\r\nSender.Visible = (Report.SystemVarValue(3) > 1); \r\n",
        "Font":{
            "Name":"宋体",
            "Size":105000,
            "Weight":400,
            "Charset":134
        },
        "Control":[
            {
                "Type":"MemoBox",
                "Name":"MemoBox2",
                "Anchor":"[Top|Right]",
                "Left":12.1973,
                "Width":3.81,
                "Height":0.608542,
                "TextAlign":"MiddleRight",
                "Text":"第[#SystemVar(PageNumber)-1#]页 共[#SystemVar(PageCount)-1#]页"
            },
            {
                "Type":"MemoBox",
                "Name":"MemoBox3",
                "Width":6.19125,
                "Height":0.608542,
                "Text":"打印时间:[#SystemVar(CurrentDateTime):yyyy年MM月dd日 HH:mm:ss#]"
            }
        ]
    },
    "ReportHeader":[
        {
            "CanGrow":true,
            "Height":1.79917,
            "Control":[
                {
                    "Type":"StaticBox",
                    "Name":"StaticBox1",
                    "Center":"Horizontal",
                    "Left":5.15938,
                    "Top":0.185208,
                    "Width":5.68854,
                    "Height":0.582083,
                    "Font":{
                        "Name":"宋体",
                        "Size":150000,
                        "Bold":true,
                        "Charset":134
                    },
                    "TextAlign":"MiddleCenter",
                    "Text":"客户1997年度订货清单"
                },
                {
                    "Type":"RichTextBox",
                    "Name":"RichTextBox1",
                    "Anchor":"[Left|Top|Right]",
                    "Left":0.185208,
                    "Top":0.79375,
                    "Width":15.6104,
                    "Height":0.820208,
                    "CanGrow":true,
                    "RTF":"{\\rtf1\\ansi\\ansicpg936\\deff0\\deflang1033\\deflangfe2052{\\fonttbl{\\f0\\fnil\\fprq2\\fcharset134 \\'cb\\'ce\\'cc\\'e5;}{\\f1\\froman\\fprq2\\fcharset0 Times New Roman;}{\\f2\\fnil\\fcharset0 MS Shell Dlg 2;}}\n\n\\viewkind4\\uc1\\pard\\nowidctlpar\\qc\\kerning2\\f0\\fs28\\'ca\\'b9\\'d3\\'c3\\f1 RichTextBox\\f0\\'cf\\'d4\\'ca\\'be\\'d0\\'c5\\'bc\\'fe\\'ce\\'c4\\'b1\\'be\\par\n\n\\'ce\\'c4\\'b1\\'be\\'d6\\'d0\\'b6\\'a8\\'d2\\'e5\\'d3\\'f2\\par\n\n\\b\\fs32\\'b1\\'a8\\par\n\n\\'b1\\'ed\\par\n\n\\'b7\\'e2\\par\n\n\\'c3\\'e6\\par\n\n\\pard\\lang2052\\kerning0\\b0\\f2\\fs17\\par\n\n}\n\n"
                }
            ],
            "NewPage":"After"
        }
    ]
}