DataTabAttributes.cs
28.1 KB
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
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
/*----------------------------------------------------------------
// 文件名:DataTab.cs
// 文件功能描述:数据标签属性集结构体
//
//
// 创建标识:赵丽 2011-12-18
//----------------------------------------------------------------*/
using System;
using System.Text;
using Microsoft.Office.Core;
namespace SunVoteARSPPT
{
/// <summary>
/// 数据标签属性集结构体
/// </summary>
public class DataTabAttributes
{
/// <summary>
/// 数据标签的类型
/// </summary>
public MsoAutoShapeType ShapeType
{
get;
set;
}
/// <summary>
/// 数据标签左边起点的位置
/// </summary>
public float Left
{
get;
set;
}
/// <summary>
/// 数据标签顶部起点的位置
/// </summary>
public float Top
{
get;
set;
}
/// <summary>
/// 数据标签的宽度
/// </summary>
public float Width
{
get;
set;
}
/// <summary>
/// 数据标签的高度
/// </summary>
public float Height
{
get;
set;
}
/// <summary>
/// 数据标签的文本内容
/// </summary>
public string Text
{
get;
set;
}
/// <summary>
/// 标签的业务类型,例如签到人数、评分平均分等
/// </summary>
public string Style
{
get;
set;
}
/// <summary>
/// 数据标签的文本字体大小
/// </summary>
public float FontSize
{
get;
set;
}
/// <summary>
/// 数据标签的文本是否为粗体
/// </summary>
public MsoTriState FontBold
{
get;
set;
}
/// <summary>
/// 时 间:2010-06-28
/// 创建人:易峰宇
/// 修 改:阙湘成 2010-8-10
/// 说 明:构造函数,根据类型初始化不同的实例
/// 0-计时器,1-应到人数,2-反馈人数,3-正确答案,4-答对人数,5-评分总分,6-评分平均分,
/// 7-反馈人数百分比,8-反馈人数数值+百分比,9-答对人数百分比,10-答对人数数值+百分比
/// 16-评委分组平均分,17-评委分组平均分表格
/// 杨斌 2016-03-29。19-median中间值,20-range投票范围
/// </summary>
/// <param name="type">
/// 0-计时器,1-应到人数,2-反馈人数,3-正确答案,4-答对人数,5-评分总分,6-评分平均分,7-反馈人数百分比,8-反馈人数数值+百分比,9-答对人数百分比,10-答对人数数值+百分比,11-参与人数,12-平均值Mean,26-实到人数
/// 杨斌 2012-03-12 补充注释11
/// 杨斌 2014-04-14 补充12
/// 杨斌 2018-12-25 补充26-实到人数
/// 杨斌 2019-01-14 补充27-未签到人数
/// 杨斌 2019-01-14 补充28-未投票人数2=已签到人数中未投票的人数
/// 杨斌 2019-06-06,":"两边增加空格
/// </param>
public DataTabAttributes(int type, bool useRate = false)
{
//2012-11-30 数据标签向下移动 赵丽
int top = 60; //设置PPT页面底部的数据标签高度 杨斌 2014-09-01由45提高标签高度
//杨斌 2012-03-23
float showWith = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width;//幻灯片宽度
float labBottomWith = showWith / 5 * (float)0.95;//底部标签宽度
float labBottomLeftFirst = (showWith - labBottomWith * 5) / 6;//底部第一个标签左边距离
float labBottomStep = labBottomLeftFirst + labBottomWith;//底部标签位移
//标签位置顺序:应到人数,参与人数,投票人数,答对人数,正确答案
switch (type)
{
case 0:
ShapeType = MsoAutoShapeType.msoShapeRoundedRectangle;
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width - 135;
Top = 20;
Width = 125;
Height = 50;
//2012-08-01 日本定制 时间默认15秒
if (GlobalInfo.OEMLogo == OEMLogos.oem3eAnalyzer)
Text = "00:15";
else
Text = "00:30";
Style = "TIMER";
FontSize = 32;
FontBold = MsoTriState.msoTrue;
break;
case 1:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst;//杨斌 2012-03-23
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith - 12;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "Shouldnumber", "应到人数") + " : 0";
Style = "DUENO";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 2:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber2", "反馈票数") + " : 0";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0";
Style = "VOTENO";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 7: //投票人数百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber2", "反馈票数") + " : 0%";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0%";
Style = "VOTENOP";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 8: //投票人数数值+百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber2", "反馈票数") + " : 0 0%";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0 0%";
Style = "VOTENOPV";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 12: //平均值,杨斌 2014-04-14
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingmean", "Mean") + " : 0";
Style = "VOTEMEAN";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 29: //评议平均分,杨斌 2019-06-27
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 4;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "avgscore", "平均分") + " : 0";
Style = "GradeAvg";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 3:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 4;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "answer", "正确答案") + " : ";
Style = "ANSWER";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 4:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith + 24;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "correctno", "答对人数") + " : 0";
Style = "CRRECTNO";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 9: //答对人数百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith + 24;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "correctno", "答对人数") + " : 0%";
Style = "CRRECTNOP";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 10: //答对人数数值+百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith + 24;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "correctno", "答对人数") + " : 0 0%";
Style = "CRRECTNOPV";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 5:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width / 2 - 30;//杨斌 2014-10-20
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height * 0.4f - 100;
Width = 150;//200杨斌 2015-11-24
Height = 70;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "sumscore", "总分") + " : 0";
Style = "SUMSCORE";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 6:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width / 2 - 30;//杨斌 2014-10-20
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height * 0.4f;
Width = 150;//200杨斌 2015-11-24
Height = 70;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "avgscore", "平均分") + " : 0";
Style = "AVGSCORE";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 11:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep - 12;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith - 12;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "participate2", "参与票数") + " : 0";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "participate", "参与人数") + " : 0";
Style = "PARTICIPATE";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
//杨斌 2015-04-20
case 13:
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss2", "未按票数") + " : 0";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss", "未按人数") + " : 0";
Style = "VOTEMiss";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 14: //投票人数百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss2", "未按票数") + " : 0%";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss", "未按人数") + " : 0%";
Style = "VOTEMissP";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 15: //投票人数数值+百分比
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
if (useRate)
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss2", "未按票数") + " : 0 0%";
else
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMiss", "未按人数") + " : 0 0%";
Style = "VOTEMissPV";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 16://评委分组平均分
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width / 2 - 30;//杨斌 2014-10-20
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height * 0.4f + 100;
Width = 150;//200杨斌 2015-11-24
Height = 70;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "groupAvgScore", "分组平均分") + " : 0";
Style = "AVGScoreGroup";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 17://评委分组平均分表格
ShapeType = MsoAutoShapeType.msoShapeRectangle;//保留无用,实际是表格
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width / 2 - 340;//杨斌 2014-10-20
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height * 0.4f - 100;
Width = 300;
Height = 200;
Text = "";//GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "groupAvgScoreTableCol2", "分组平均分") + " : 0";
Style = "AVGScoreTableGroup";
FontSize = 9;
FontBold = MsoTriState.msoFalse;
break;
case 18://评委分组平均分表格组明细
ShapeType = MsoAutoShapeType.msoShapeRectangle;//保留无用,实际是表格
Left = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Width - 220;//杨斌 2014-10-20
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height * 0.4f - 100;
Width = 200;
Height = 200;
Text = "";//GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "groupAvgScoreTableCol2", "分组平均分") + " : 0";
Style = "AVGScoreTableGroupDetail";
FontSize = 9;
FontBold = MsoTriState.msoFalse;
break;
case 19://中间值
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VoteMedian", "Median") + " : 0";
Style = "VoteMedian";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 20://投票范围
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VoteRange", "Range") + ":-";
Style = "VoteRange";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 21://表决通过结果。杨斌 2018-07-25
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 3 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
//VotePassResult,VotePass,VoteNotPass
//Text = GlobalInfo.SysLanguage.LPT.ReadString("PanelVote", "VoteNotPass", "Not Pass");
Text = GlobalInfo.SysLanguage.LPT.ReadString("PanelVote", "VotePassResult", "Vote Pass Result") + ":-";
Style = "VotePassResult";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 22://杨斌 2018-07-30
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep - 12;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith - 12;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "participate", "参与人数") + " : 0";
Style = "PARTICIPATE_Men";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 23://杨斌 2018-07-30
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0";
Style = "VOTENO_Men";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 24://杨斌 2018-07-30
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0%";
Style = "VOTENOP_Men";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 25://杨斌 2018-07-30
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep * 2 - 24;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "votingnumber", "反馈人数") + " : 0 0%";
Style = "VOTENOPV_Men";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 26://杨斌 2018-12-25
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "SIGNED", "实到人数") + " : 0";
Style = "SIGNED";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 27://杨斌 2019-01-14
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "NOTSIGNED", "未到人数") + " : 0";
Style = "NOTSIGNED";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
case 28://杨斌 2019-01-14
ShapeType = MsoAutoShapeType.msoShapeRectangle;
Left = labBottomLeftFirst + labBottomStep;
Top = Globals.SunVoteARSAddIn.Application.ActivePresentation.SlideMaster.Height - top;
Width = labBottomWith;
Height = 40;
Text = GlobalInfo.SysLanguage.LPT.ReadString("PPTOper", "VotingMissSigned", "已到未按人数") + " : 0";
Style = "VotingMissSigned";
FontSize = 16;
FontBold = MsoTriState.msoTrue;
break;
}
}
/// <summary>
/// 获得标签类型编号
/// </summary>
/// <param name="typeName"></param>
/// <returns></returns>
public int GetLableType(string typeName)
{
int index = -1;
switch (typeName)
{
case "TIMER":
index = 0;
break;
case "DUENO":
index = 1;
break;
case "VOTENO":
index = 2;
break;
case "VOTENOP":
index = 7;
break;
case "VOTENOPV":
index = 8;
break;
case "ANSWER":
index = 3;
break;
case "CRRECTNO":
index = 4;
break;
case "CRRECTNOP":
index = 9;
break;
case "CRRECTNOPV":
index = 10;
break;
case "SUMSCORE":
index = 5;
break;
case "AVGSCORE":
index = 6;
break;
case "PARTICIPATE":
index = 11;
break;
case "VOTEMEAN"://杨斌 2014-04-14
index = 12;
break;
case "VOTEMiss"://杨斌 2015-04-20
index = 13;
break;
case "VOTEMissP":
index = 14;
break;
case "VOTEMissPV":
index = 15;
break;
case "AVGScoreGroup":
index = 16;
break;
case "AVGScoreTableGroup":
index = 17;
break;
case "AVGScoreTableGroupDetail"://杨斌 2015-11-24
index = 18;
break;
case "VoteMedian"://杨斌 2016-03-29
index = 19;
break;
case "VoteRange"://杨斌 2016-03-29
index = 20;
break;
case "VotePassResult"://杨斌 2018-07-30
index = 21;
break;
case "PARTICIPATE_Men":
index = 22;
break;
case "VOTENO_Men":
index = 23;
break;
case "VOTENOP_Men":
index = 24;
break;
case "VOTENOPV_Men":
index = 25;
break;
case "SIGNED"://实到人数。杨斌 2018-12-25
index = 26;
break;
case "NOTSIGNED"://未到人数。杨斌 2019-01-14
index = 27;
break;
case "VotingMissSigned"://已到未按人数。杨斌 2019-01-14
index = 28;
break;
case "GradeAvg"://杨斌 2019-06-27
index = 29;
break;
}
return index;
}
}
}