-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExport.cs
1356 lines (1067 loc) · 86.5 KB
/
Export.cs
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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using OfficeOpenXml;
using OfficeOpenXml.Style;
using System.Drawing;
namespace comTest
{
class Export
{
public float[][][] m_Measurements;
public float[][][] m_Errors;
public string[] m_BodyStr;
public string[] m_BodyAngleStr;
public string[] m_RateStr;
public float[] m_TestWeightLevels;
public float[][] m_TestWeightResults;
public string[] m_WeightPositionLevels;
public string m_MachineType;
public string m_SerialNumber;
public string m_ProductSerialNumber;
public float[][][] m_PhaseAngles;
public float[][] m_OriginValues;
public void export()
{
//Create a new ExcelPackage
using (ExcelPackage excelPackage = new ExcelPackage())
{
try
{
DateTime nowDate = DateTime.Now;
//Set some properties of the Excel document
excelPackage.Workbook.Properties.Author = "AINST";
excelPackage.Workbook.Properties.Title = "成品检验报告-CNDS-0318";
excelPackage.Workbook.Properties.Subject = "AINST";
excelPackage.Workbook.Properties.Created = nowDate;
//Create the WorkSheet
ExcelWorksheet worksheet = excelPackage.Workbook.Worksheets.Add("报告单");
double ra = 1.2;
worksheet.Column(1).Width = 10.5 * ra; //A
worksheet.Column(2).Width = 5.63 * ra; //B
worksheet.Column(3).Width = 4.75 * ra; //C
worksheet.Column(4).Width = 5.88 * ra; //D
worksheet.Column(5).Width = 10.13 * ra; //E
worksheet.Column(6).Width = 6.5 * ra; //F
worksheet.Column(7).Width = 6.5 * ra; //G
worksheet.Column(8).Width = 6.5 * ra; //H
worksheet.Column(9).Width = 6.5 * ra; //I
worksheet.Column(10).Width = 6.5 * ra; //J
worksheet.Column(11).Width = 6.5 * ra; //K
worksheet.Column(12).Width = 6.5 * ra; //L
worksheet.Column(13).Width = 13.5 * ra; //M
worksheet.Cells["A1:M73"].Style.Font.Size = 10;
worksheet.Cells["A1:M73"].Style.Font.Name = "宋体";
worksheet.Cells["A1:M73"].Style.Border.Top.Style = ExcelBorderStyle.Thin;
worksheet.Cells["A18:J18"].Style.Border.Top.Color.SetColor(Color.Black);
worksheet.Cells["A1:M73"].Style.Border.Right.Style = ExcelBorderStyle.Thin;
worksheet.Cells["A18:J18"].Style.Border.Right.Color.SetColor(Color.Black);
worksheet.Cells["A1:M73"].Style.Border.Bottom.Style = ExcelBorderStyle.Thin;
worksheet.Cells["A18:J18"].Style.Border.Bottom.Color.SetColor(Color.Black);
worksheet.Cells["A1:M73"].Style.Border.Left.Style = ExcelBorderStyle.Thin;
worksheet.Cells["A18:J18"].Style.Border.Left.Color.SetColor(Color.Black);
worksheet.Row(1).Height = 15;
worksheet.Cells["A1:M1"].Merge = true;
worksheet.Cells["A1"].Style.Font.Size = 10.5f;
worksheet.Cells["A1"].Value = "编号:CX0901-R01 版本:V1.0";
worksheet.Row(2).Height = 21;
worksheet.Cells["A2:M2"].Merge = true;
worksheet.Cells["A2"].Style.Font.Size = 16;
worksheet.Cells["A2"].Style.Font.Bold = true;
worksheet.Cells["A2"].Value = "江苏康爱营养科技有限责任公司";
worksheet.Cells["A2"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Row(3).Height = 21;
worksheet.Cells["A3:M3"].Merge = true;
worksheet.Cells["A3"].Style.Font.Size = 16;
worksheet.Cells["A3"].Style.Font.Bold = true;
worksheet.Cells["A3"].Value = "成品检验报告单";
worksheet.Cells["A3"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Row(4).Height = 17.25;
worksheet.Cells["A4:M4"].Merge = true;
worksheet.Cells["A4"].Style.Font.Size = 10.5f;
worksheet.Cells["A4"].Value = string.Format("编号:{0}", m_SerialNumber);
worksheet.Cells["A4"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Right;
worksheet.Row(5).Height = 29.5;
worksheet.Cells["A5"].Value = "产品名称";
worksheet.Cells["A5"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["A5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B5:D5"].Merge = true;
worksheet.Cells["B5"].Value = "临床营养检测分析仪";
worksheet.Cells["B5"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E5"].Value = "规格型号";
worksheet.Cells["E5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F5:H5"].Merge = true;
worksheet.Cells["F5"].Value = m_MachineType;
worksheet.Cells["F5"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["I5:K5"].Merge = true;
worksheet.Cells["I5"].Value = "产品编号";
worksheet.Cells["I5"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["I5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L5:M5"].Merge = true;
worksheet.Cells["L5"].Value = m_ProductSerialNumber;
worksheet.Cells["L5"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["L5"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(6).Height = 29.5;
worksheet.Cells["A6"].Value = "生产日期";
worksheet.Cells["A6"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["A6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B6:D6"].Merge = true;
worksheet.Cells["B6"].Value = nowDate;
worksheet.Cells["B6"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B6"].Style.Numberformat.Format = "yyyy.MM.dd";
worksheet.Cells["E6"].Value = "使用期限";
worksheet.Cells["E6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F6:H6"].Merge = true;
worksheet.Cells["F6"].Value = "十年";
worksheet.Cells["F6"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["I6:K6"].Merge = true;
worksheet.Cells["I6"].Value = "检验数量";
worksheet.Cells["I6"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["I6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L6:M6"].Merge = true;
worksheet.Cells["L6"].Value = "1台";
worksheet.Cells["L6"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["L6"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(7).Height = 47.75;
worksheet.Cells["A7"].Value = "送检日期";
worksheet.Cells["A7"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["A7"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B7:D7"].Merge = true;
worksheet.Cells["B7"].Value = nowDate;
worksheet.Cells["B7"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B7"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B7"].Style.Numberformat.Format = "yyyy.MM.dd";
worksheet.Cells["E7"].Value = "检验依据";
worksheet.Cells["E7"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F7:M7"].Merge = true;
worksheet.Cells["F7"].Value = "1.《临床营养检测分析仪AiNST-CNDS成品质量标准及检验规程》ZL-JY(CNDS)-02\n2.《老化测试作业指导书》ZL - JY(CNDS & KNDS)-01";
worksheet.Cells["F7"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F7"].Style.WrapText = true;
worksheet.Row(8).Height = 39.5;
worksheet.Row(9).Height = 39;
worksheet.Cells["A8:A9"].Merge = true;
worksheet.Cells["A8"].Value = "检验设备及编号";
worksheet.Cells["A8"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["A8"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A8"].Style.WrapText = true;
worksheet.Cells["B8:D8"].Merge = true;
worksheet.Cells["B8"].Value = "示波器(ZL005)";
worksheet.Cells["B8"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B8"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E8:G8"].Merge = true;
worksheet.Cells["E8"].Value = "阻抗采集工装1(ZLGZ001)\n阻抗采集工装2(ZLGZ002)";
worksheet.Cells["E8"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E8"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E8"].Style.WrapText = true;
worksheet.Cells["H8:J8"].Merge = true;
worksheet.Cells["H8"].Value = "数字万用表(ZL001)";
worksheet.Cells["H8"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["H8"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["K8:M8"].Merge = true;
worksheet.Cells["K8"].Value = "砝码(ZL006)";
worksheet.Cells["K8"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["K8"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B9:D9"].Merge = true;
worksheet.Cells["B9"].Value = "医用漏电流测试仪(ZL003)";
worksheet.Cells["B9"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B9"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B9"].Style.WrapText = true;
worksheet.Cells["E9:G9"].Merge = true;
worksheet.Cells["E9"].Value = "医用耐压测试仪(ZL004)";
worksheet.Cells["E9"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E9"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E9"].Style.WrapText = true;
worksheet.Cells["H9:J9"].Merge = true;
worksheet.Cells["H9"].Value = "医用接地电阻测试仪(ZL002)";
worksheet.Cells["H9"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["H9"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["H9"].Style.WrapText = true;
worksheet.Cells["K9:M9"].Merge = true;
worksheet.Row(10).Height = 39;
worksheet.Cells["A10"].Value = "检验项目";
worksheet.Cells["A10"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["A10"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A10"].Style.Font.Bold = true;
worksheet.Cells["B10:F10"].Merge = true;
worksheet.Cells["B10"].Value = "具体内容";
worksheet.Cells["B10"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B10"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B10"].Style.Font.Bold = true;
worksheet.Cells["G10:L10"].Merge = true;
worksheet.Cells["G10"].Value = "具体内容";
worksheet.Cells["G10"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["G10"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G10"].Style.Font.Bold = true;
worksheet.Cells["M10"].Value = "单项结论";
worksheet.Cells["M10"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M10"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M10"].Style.Font.Bold = true;
worksheet.Row(11).Height = 121;
worksheet.Cells["A11"].Value = "2.1外观和一般性能";
worksheet.Cells["A11"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A11"].Style.WrapText = true;
worksheet.Cells["B11:F11"].Merge = true;
worksheet.Cells["B11"].Value = "a)仪器外观应整齐、色泽均匀、无伤痕、划痕等缺陷;\nb)仪器上文字和图示标志应清晰可见;\nc)仪器控制机构应灵活可靠、紧固部位无松动;\nd)仪器的塑料件应无起泡、开裂、变形、飞边现象;\ne)电极表面应平整、无毛刺;\nf)液晶显示器显示应清晰。";
worksheet.Cells["B11"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B11"].Style.WrapText = true;
worksheet.Cells["G11:L11"].Merge = true;
worksheet.Cells["G11"].Value = "仪器外观整齐、无伤痕划痕;\n仪器上文字、图标清晰;\n仪器控制机构灵活、紧固部位无松动;\n仪器的塑料件无起泡、开裂、变形、飞边;\n电极表面平整、无毛刺;\n液晶显示器晰";
worksheet.Cells["G11"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G11"].Style.WrapText = true;
worksheet.Cells["M11"].Value = "√合格 □不合格";
worksheet.Cells["M11"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M11"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(12).Height = 26.25;
worksheet.Row(13).Height = 26.25;
for (int i = 14; i <= 31; i++)
{
worksheet.Row(i).Height = 30;
}
worksheet.Cells["A12:A29"].Merge = true;
worksheet.Cells["A12"].Value = "2.3阻抗测量";
worksheet.Cells["A12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A12"].Style.WrapText = true;
worksheet.Cells["B12:C29"].Merge = true;
worksheet.Cells["B12"].Value = "阻抗测量功能:上肢阻抗测量范围:200Ω~690Ω,测量允差±5%;躯干阻抗测量范围:10Ω~35Ω,测量允差±10%;下肢阻抗测量范围:160Ω~500Ω,测量允差±5%。";
worksheet.Cells["B12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B12"].Style.WrapText = true;
worksheet.Cells["D12:F13"].Merge = true;
worksheet.Cells["D12"].Value = "电阻值";
worksheet.Cells["D12"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["D12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G12:H12"].Merge = true;
worksheet.Cells["G12"].Value = string.Format("上肢\n({0}、{1})", m_BodyStr[1], m_BodyStr[4]);
worksheet.Cells["G12"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["G12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G12"].Style.WrapText = true;
worksheet.Cells["G13"].Value = "最大值";
worksheet.Cells["G13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["G13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["H13"].Value = "最小值";
worksheet.Cells["H13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["H13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["I12:J12"].Merge = true;
worksheet.Cells["I12"].Value = string.Format("下肢\n({0}、{1})", m_BodyStr[0], m_BodyStr[3]);
worksheet.Cells["I12"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["I12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["I12"].Style.WrapText = true;
worksheet.Cells["I13"].Value = "最大值";
worksheet.Cells["I13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["I13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["J13"].Value = "最小值";
worksheet.Cells["J13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["J13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["K12:L12"].Merge = true;
worksheet.Cells["K12"].Value = string.Format("躯干\n({0})", m_BodyStr[2]);
worksheet.Cells["K12"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["K12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["K12"].Style.WrapText = true;
worksheet.Cells["K13"].Value = "最大值";
worksheet.Cells["K13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["K13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L13"].Value = "最小值";
worksheet.Cells["L13"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["L13"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M12:M13"].Merge = true;
worksheet.Cells["M12"].Value = "/";
worksheet.Cells["M12"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M12"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
string[] unitDescs = {
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗校准工装测量({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗采集工装({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗采集工装({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)",
"阻抗采集工装({0}={1}Ω、{2}={3}Ω、{4}={5}Ω、{6}={7}Ω、{8}={9}Ω)"
};
string[] valueFields = { "G", "H", "I", "J", "K", "L" };
int unitRow = 14;
for (int unitIndex = 0; unitIndex < 8; unitIndex++)
{
int rowIndex = unitRow + 2 * unitIndex;
int rowIndex1 = rowIndex + 1;
worksheet.Cells[string.Format("D{0}:E{1}", rowIndex, rowIndex1)].Merge = true;
string d0 = string.Format("D{0}", rowIndex);
float[] org = m_OriginValues[unitIndex];
worksheet.Cells[d0].Value = string.Format(unitDescs[unitIndex], m_BodyStr[1], org[1], m_BodyStr[4], org[4], m_BodyStr[0], org[0], m_BodyStr[3], org[3], m_BodyStr[2], org[2]);
worksheet.Cells[d0].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[d0].Style.WrapText = true;
string f0 = string.Format("F{0}", rowIndex);
worksheet.Cells[f0].Value = "测量值";
worksheet.Cells[f0].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[f0].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
string f1 = string.Format("F{0}", rowIndex1);
worksheet.Cells[f1].Value = "误差值";
worksheet.Cells[f1].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[f1].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
if (m_Measurements != null && unitIndex < m_Measurements.Length)
{
(double max, double min)[] measureValue = new (double max, double min)[3];
float[][] measureValues = m_Measurements[unitIndex];
float[] ra_values = measureValues[1];
float[] la_values = measureValues[4];
float[] tt_values = measureValues[2];
float[] rl_values = measureValues[0];
float[] ll_values = measureValues[3];
float[] ra_la = new float[ra_values.Length + la_values.Length];
ra_values.CopyTo(ra_la, 0);
la_values.CopyTo(ra_la, ra_values.Length);
float[] rl_ll = new float[rl_values.Length + ll_values.Length];
rl_values.CopyTo(rl_ll, 0);
ll_values.CopyTo(rl_ll, rl_values.Length);
measureValue[0] = (ra_la.Max(), ra_la.Min());
measureValue[1] = (rl_ll.Max(), rl_ll.Min());
measureValue[2] = (tt_values.Max(), tt_values.Min());
for (int i = 0; i < measureValue.Length; i++)
{
(double max, double min) maxmin = measureValue[i];
if (maxmin.max >= 0)
{
string maxField = string.Format("{0}{1}", valueFields[i * 2], rowIndex);
worksheet.Cells[maxField].Value = maxmin.max;
worksheet.Cells[maxField].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[maxField].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[maxField].Style.Numberformat.Format = "0.00";
}
if (maxmin.min >= 0)
{
string minField = string.Format("{0}{1}", valueFields[i * 2 + 1], rowIndex);
worksheet.Cells[minField].Value = maxmin.min;
worksheet.Cells[minField].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[minField].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[minField].Style.Numberformat.Format = "0.00";
}
}
}
if (m_Errors != null && unitIndex < m_Errors.Length)
{
(double max, double min)[] errorValue = new (double max, double min)[3];
float[][] errorValues = m_Errors[unitIndex];
float[] ra_values = errorValues[1];
float[] la_values = errorValues[4];
float[] tt_values = errorValues[2];
float[] rl_values = errorValues[0];
float[] ll_values = errorValues[3];
float[] ra_la = new float[ra_values.Length + la_values.Length];
ra_values.CopyTo(ra_la, 0);
la_values.CopyTo(ra_la, ra_values.Length);
float[] rl_ll = new float[rl_values.Length + ll_values.Length];
rl_values.CopyTo(rl_ll, 0);
ll_values.CopyTo(rl_ll, rl_values.Length);
errorValue[0] = (ra_la.Max(), ra_la.Min());
errorValue[1] = (rl_ll.Max(), rl_ll.Min());
errorValue[2] = (tt_values.Max(), tt_values.Min());
for (int i = 0; i < errorValue.Length; i++)
{
(double max, double min) maxmin = errorValue[i];
string maxField = string.Format("{0}{1}", valueFields[i * 2], rowIndex1);
worksheet.Cells[maxField].Value = maxmin.max == -1 ? "" : (maxmin.max == 0 ? "0" : string.Format("{0}{1}%", maxmin.max > 0 ? "+" : "", Math.Round(maxmin.max, 2)));
worksheet.Cells[maxField].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[maxField].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
string minField = string.Format("{0}{1}", valueFields[i * 2 + 1], rowIndex1);
worksheet.Cells[minField].Value = maxmin.min == -1 ? "" : (maxmin.min == 0 ? "0" : string.Format("{0}{1}%", maxmin.min > 0 ? "+" : "", Math.Round(maxmin.min, 2)));
worksheet.Cells[minField].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[minField].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
}
worksheet.Cells[string.Format("M{0}:M{1}", rowIndex, rowIndex1)].Merge = true;
string m0 = string.Format("M{0}", rowIndex);
worksheet.Cells[m0].Value = "□合格 □不合格";
worksheet.Cells[m0].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[m0].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
}
}
worksheet.Row(30).Height = 30;
worksheet.Row(31).Height = 30;
worksheet.Row(32).Height = 30;
worksheet.Row(33).Height = 30;
worksheet.Row(34).Height = 30;
worksheet.Row(35).Height = 30;
worksheet.Row(36).Height = 30;
worksheet.Cells["A30:A36"].Merge = true;
worksheet.Cells["A30"].Value = "2.4相位角测量";
worksheet.Cells["A30"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A30"].Style.WrapText = true;
worksheet.Cells["B30:C36"].Merge = true;
worksheet.Cells["B30"].Value = "±0.2°";
worksheet.Cells["B30"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["B30"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B30"].Style.WrapText = true;
worksheet.Cells["D30:E30"].Merge = true;
worksheet.Cells["D30"].Value = "相位角值";
worksheet.Cells["D30"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["D30"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D31:D32"].Merge = true;
worksheet.Cells["D31"].Value = "50Hz";
worksheet.Cells["D31"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["D31"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D31"].Style.WrapText = true;
worksheet.Cells["E31"].Value = "测量值";
worksheet.Cells["E31"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E31"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E32"].Value = "误差值";
worksheet.Cells["E32"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E32"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D33:D34"].Merge = true;
worksheet.Cells["D33"].Value = "250Hz";
worksheet.Cells["D33"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["D33"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D33"].Style.WrapText = true;
worksheet.Cells["E33"].Value = "测量值";
worksheet.Cells["E33"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E33"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E34"].Value = "误差值";
worksheet.Cells["E34"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E34"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D35:D36"].Merge = true;
worksheet.Cells["D35"].Value = "500Hz";
worksheet.Cells["D35"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["D35"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["D35"].Style.WrapText = true;
worksheet.Cells["E35"].Value = "测量值";
worksheet.Cells["E35"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E35"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["E36"].Value = "误差值";
worksheet.Cells["E36"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["E36"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
string[] valueFields1 = { "F", "G", "H", "I", "J", "K", "L" };
for (int i = 0; i < 7; i++)
{
string field = string.Format("{0}30", valueFields1[i]);
worksheet.Cells[field].Value = m_BodyAngleStr[i];
worksheet.Cells[field].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[field].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
}
worksheet.Cells["M30"].Value = "/";
worksheet.Cells["M30"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M30"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M31:M32"].Merge = true;
worksheet.Cells["M31"].Value = "□合格 □不合格";
worksheet.Cells["M31"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M31"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M33:M34"].Merge = true;
worksheet.Cells["M33"].Value = "□合格 □不合格";
worksheet.Cells["M33"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M33"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M35:M36"].Merge = true;
worksheet.Cells["M35"].Value = "□合格 □不合格";
worksheet.Cells["M35"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M35"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 7; j++)
{
if(m_PhaseAngles[0][j][i] > -1)
{
string field = string.Format("{0}{1}", valueFields1[j], 31 + i * 2);
worksheet.Cells[field].Value = m_PhaseAngles[3][j][i];
worksheet.Cells[field].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[field].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[field].Style.Numberformat.Format = "0.00";
}
}
}
worksheet.Row(37).Height = 29.25;
worksheet.Cells["A37"].Value = "2.5输出电流";
worksheet.Cells["A37"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A37"].Style.WrapText = true;
worksheet.Cells["B37:F37"].Merge = true;
worksheet.Cells["B37"].Value = "最大输出电流≤450μA。";
worksheet.Cells["B37"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G37:L37"].Merge = true;
worksheet.Cells["G37"].Value = "最大测量值为320μA";
worksheet.Cells["M37"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["G37"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M37"].Value = "□合格 □不合格";
worksheet.Cells["M37"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M37"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(38).Height = 30;
worksheet.Row(39).Height = 45;
worksheet.Row(40).Height = 45;
worksheet.Row(41).Height = 30;
worksheet.Row(42).Height = 30;
worksheet.Cells["A38:A42"].Merge = true;
worksheet.Cells["A38"].Value = "2.6体重测量功能";
worksheet.Cells["A38"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A38"].Style.WrapText = true;
worksheet.Cells["B38:E40"].Merge = true;
worksheet.Cells["B38"].Value = "体重测量功能\na)在体重测量范围10kg~120kg内,体重测量允差±0.5kg;\nb)同一载荷在不同位置的示值,其示值允差应不大于±0.5kg;\nc)载荷超过额定量程时应显示“NaN”,并有文字提示“体重超出检测范围”;";
worksheet.Cells["B38"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B38"].Style.WrapText = true;
worksheet.Cells["F38"].Value = "测量结果";
worksheet.Cells["F38"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F38"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F38"].Style.WrapText = true;
Boolean isMerge = false;
for (int i = 0; i < m_TestWeightLevels.Length; i++)
{
string fieldName = valueFields[isMerge ? i + 1 : i];
int weightLevel = (int)m_TestWeightLevels[i];
if(weightLevel == 15)
{
worksheet.Cells[string.Format("{0}38:{1}38", valueFields[i], valueFields[i + 1])].Merge = true;
worksheet.Cells[string.Format("{0}39:{1}39", valueFields[i], valueFields[i + 1])].Merge = true;
worksheet.Cells[string.Format("{0}40:{1}40", valueFields[i], valueFields[i + 1])].Merge = true;
isMerge = true;
}
string field = string.Format("{0}38", fieldName);
worksheet.Cells[field].Value = string.Format("{0}kg", weightLevel);
worksheet.Cells[field].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[field].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
string vfield = string.Format("{0}39", fieldName);
worksheet.Cells[vfield].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[vfield].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[vfield].Style.WrapText = true;
string efield = string.Format("{0}40", fieldName);
worksheet.Cells[efield].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells[efield].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells[efield].Style.WrapText = true;
float[] testWeights = m_TestWeightResults[i];
List<string> weightValues = new List<string>();
List<string> weightErrorValues = new List<string>();
int testedIndex = 0;
for (int j = 0; j < testWeights.Length; j++)
{
float testWeight = testWeights[j];
string weightPos = m_WeightPositionLevels[j];
if (testWeight >= 0)
{
testedIndex = j;
weightValues.Add(string.Format("{0} {1}", weightPos, Math.Round(testWeight, 2)));
weightErrorValues.Add(string.Format("{0} {1}", weightPos, Math.Round(testWeight - weightLevel, 2)));
}
}
{
}
if (weightLevel == 15)
{
worksheet.Cells[vfield].Value = string.Join(",", weightValues);
worksheet.Cells[efield].Value = string.Join(",", weightErrorValues);
}
else if (weightValues.Count == 1 && testedIndex == 0)
{
float testWeight = testWeights[0];
if (testWeight >= 0)
{
worksheet.Cells[vfield].Value = Math.Round(testWeight, 2);
worksheet.Cells[efield].Value = Math.Round(testWeight - weightLevel, 2);
}
}
}
worksheet.Cells["L38"].Value = "125kg";
worksheet.Cells["L38"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["L38"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["M38"].Value = "/";
worksheet.Cells["M38"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M38"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F39"].Value = "测量值";
worksheet.Cells["F39"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F39"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F40"].Value = "误差值";
worksheet.Cells["F40"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F40"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L39:L40"].Merge = true;
worksheet.Cells["L39"].Value = "显示“NaN”,并有文字提示“体重超出检测范围”";
worksheet.Cells["L39"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L39"].Style.WrapText = true;
worksheet.Cells["M39:M40"].Merge = true;
worksheet.Cells["M39"].Value = "□合格 □不合格";
worksheet.Cells["M39"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M39"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B41:E42"].Merge = true;
worksheet.Cells["B41"].Value = "d)载荷超过额定量程的125%,1分钟后卸载,秤体表面无损坏,性能符合a)的要求。";
worksheet.Cells["B41"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B41"].Style.WrapText = true;
worksheet.Cells["F41"].Value = "测量值";
worksheet.Cells["F41"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F41"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["F42"].Value = "误差值";
worksheet.Cells["F42"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["F42"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["J41:K42"].Merge = true;
worksheet.Cells["J41"].Value = "/";
worksheet.Cells["J41"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["J41"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["J41"].Style.WrapText = true;
worksheet.Cells["L41:L42"].Merge = true;
worksheet.Cells["L41"].Value = "1分钟后卸载,秤体表面无损坏。";
worksheet.Cells["L41"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["L41"].Style.WrapText = true;
worksheet.Cells["M41:M42"].Merge = true;
worksheet.Cells["M41"].Value = "□合格 □不合格";
worksheet.Cells["M41"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M41"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(43).Height = 168;
worksheet.Cells["A43"].Value = "2.7.1 软件主要功能—数据采集功能";
worksheet.Cells["A43"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A43"].Style.WrapText = true;
worksheet.Cells["B43:F43"].Merge = true;
worksheet.Cells["B43"].Value = "a)具有新建患者信息,已建患者信息查询功能;\nb)人体成分分析:具有理想体重范围、体重、细胞内液、细胞外液、蛋白质、无机盐、肌肉量、体脂肪、总体水、去脂体重、体脂百分比、基础代谢率、体质指数(BMI)、骨骼肌、肌肉分析指标;\nc)实验室数据:可录入实验室检查结果;\nd)NRS - 2002:可录入营养风险筛查检查结果;\ne)PG - SGA:可录入肿瘤患者主观整体营养评估检查结果;\nf)膳食调查:可录入简明膳食调查法评分结果;\ng)体能消耗调查:可录入体能消耗调查结果;\nh)干预疗法:可录入营养处方用量和次数。";
worksheet.Cells["B43"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B43"].Style.WrapText = true;
worksheet.Cells["G43:L43"].Merge = true;
worksheet.Cells["G43"].Value = "a)患者新建功能正常、可以正常查询\nb)人体成分分析可以正常检测\nc)实验室数据可正常录入检查结果\nd)NRS - 2002可正常录入营养风险筛查结果\ne)PG - SGA可正常录入肿瘤患者主观整体营养评估检查结果\nf)膳食调查录入功能正常\ng)体能消耗调查录入功能正常\nh)干预疗法录入功能正常";
worksheet.Cells["G43"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G43"].Style.WrapText = true;
worksheet.Cells["M43"].Value = "□合格 □不合格";
worksheet.Cells["M43"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M43"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(44).Height = 39.5;
worksheet.Cells["A44"].Value = "2.7.2 档案管理功能";
worksheet.Cells["A44"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A44"].Style.WrapText = true;
worksheet.Cells["B44:F44"].Merge = true;
worksheet.Cells["B44"].Value = "记录所有测试过的用户的数据。提供列表显示,并且可以查看任意一次历史测试的结果。";
worksheet.Cells["B44"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B44"].Style.WrapText = true;
worksheet.Cells["G44:L44"].Merge = true;
worksheet.Cells["G44"].Value = "列表显示正常,点击任意一条可查看历史信息,无报错";
worksheet.Cells["G44"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G44"].Style.WrapText = true;
worksheet.Cells["M44"].Value = "□合格 □不合格";
worksheet.Cells["M44"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M44"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(45).Height = 35.25;
worksheet.Cells["A45"].Value = "2.7.3 信息统计功能";
worksheet.Cells["A45"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A45"].Style.WrapText = true;
worksheet.Cells["B45:F45"].Merge = true;
worksheet.Cells["B45"].Value = "可以根据不同条件做出筛选,并以图形形式展示统计结果。";
worksheet.Cells["B45"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B45"].Style.WrapText = true;
worksheet.Cells["G45:L45"].Merge = true;
worksheet.Cells["G45"].Value = "信息统计模块,信息、图表正常显示,无报错";
worksheet.Cells["G45"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G45"].Style.WrapText = true;
worksheet.Cells["M45"].Value = "□合格 □不合格";
worksheet.Cells["M45"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M45"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(46).Height = 222.5;
worksheet.Cells["A46"].Value = "2.7.4软件主要功能(系统设置功能)";
worksheet.Cells["A46"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A46"].Style.WrapText = true;
worksheet.Cells["B46:F46"].Merge = true;
worksheet.Cells["B46"].Value = "a)基本信息:显示系统名称、系统名称(英文)、系统标题、版本、产品型号、版权;\nb)参数设置:可以对医院名称、NRS - 2002报表标题、PG - SGA报表标题、体重校准、时间校准、实验室数据、科室床号进行设置;\nc)权限管理:具有新建权限信息、编辑权限信息、删除权限信息,其中管理员权限只有编辑查看功能;\nd)账号管理:具有新建账号信息、编辑账号信息、删除账号信息,其中分析仪管理员账号只有编辑查看功能;\ne)营养补充剂(肠内):具有全营养、特定全营养、非全营养新建信息,编辑信息,删除信息功能,已建信息查询功能;\nf)营养补充剂(肠外):具有添加肠外药品信息、删除肠外药品信息功能,已增肠外药品查询功能。";
worksheet.Cells["B46"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B46"].Style.WrapText = true;
worksheet.Cells["G46:L46"].Merge = true;
worksheet.Cells["G46"].Value = "a)基本信息页面功能正常\nb)参数设置页面功能正常\nc)权限管理页面功能正常\nd)账号管理页面功能正常\nd)营养补充剂(肠内)页面功能正常\nf)营养补充剂(肠外)页面功能正常";
worksheet.Cells["G46"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G46"].Style.WrapText = true;
worksheet.Cells["M46"].Value = "□合格 □不合格";
worksheet.Cells["M46"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M46"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(47).Height = 81.75;
worksheet.Cells["A47"].Value = "2.8.1网络安全功能—数据接口";
worksheet.Cells["A47"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A47"].Style.WrapText = true;
worksheet.Cells["B47:F47"].Merge = true;
worksheet.Cells["B47"].Value = "a)USB接口:可用于系统信息统计数据保存至存储媒介;\nb)网络接口:可连接局域网,数据使用http协议和tcp / ip协议;\nc)存储格式:用户数据以.frm和.ibd 两种格式储存在该设备中。";
worksheet.Cells["B47"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B47"].Style.WrapText = true;
worksheet.Cells["G47:L47"].Merge = true;
worksheet.Cells["G47"].Value = "a)USB接口正常,插入U盘可以正常拷贝文件\nb)网络接口正常,输入项目地址 127.0.0.1 / cnds100 可以正常打开系统\nc)存储方式正常,mysql安装目录查看文件格式一致";
worksheet.Cells["G47"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G47"].Style.WrapText = true;
worksheet.Cells["M47"].Value = "□合格 □不合格";
worksheet.Cells["M47"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M47"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(48).Height = 66.5;
worksheet.Cells["A48"].Value = "2.8.2用户访问限制";
worksheet.Cells["A48"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A48"].Style.WrapText = true;
worksheet.Cells["B48:F48"].Merge = true;
worksheet.Cells["B48"].Value = "a)用户应通过登录窗口,经ID号、密码验证正确后,方可进入系统;\nb)不同类型的用户(分析仪管理员、分析仪操作者),登录后的界面、管理的内容及权限不同。";
worksheet.Cells["B48"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B48"].Style.WrapText = true;
worksheet.Cells["G48:L48"].Merge = true;
worksheet.Cells["G48"].Value = "a)正确用户名密码,可正常登录系统,错误不能登录\nb)不同用户权限不一致,登录后看到的页面不同\n111用户登录,所有权限\n001用户登录,只有数据采集权限";
worksheet.Cells["G48"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G48"].Style.WrapText = true;
worksheet.Cells["M48"].Value = "□合格 □不合格";
worksheet.Cells["M48"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M48"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(49).Height = 33;
worksheet.Cells["A49"].Value = "2.8.3数据保密性";
worksheet.Cells["A49"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A49"].Style.WrapText = true;
worksheet.Cells["B49:F49"].Merge = true;
worksheet.Cells["B49"].Value = "只有在ID号、密码验证通过后,其测试数据,才具有可得性";
worksheet.Cells["B49"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B49"].Style.WrapText = true;
worksheet.Cells["G49:L49"].Merge = true;
worksheet.Cells["G49"].Value = "在未登录、登录状态下,数据保密性功能符合要求";
worksheet.Cells["G49"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G49"].Style.WrapText = true;
worksheet.Cells["M49"].Value = "□合格 □不合格";
worksheet.Cells["M49"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M49"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(50).Height = 45;
worksheet.Cells["A50"].Value = "2.9电气安全保护接地";
worksheet.Cells["A50"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A50"].Style.WrapText = true;
worksheet.Cells["B50:F50"].Merge = true;
worksheet.Cells["B50"].Value = "GB9706.1-2007标准中18)要求:具有电源输入插口的保护接地点与已保护接地的所有可触及金属部分之间的阻抗,不应超过0.1Ω; ";
worksheet.Cells["B50"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B50"].Style.WrapText = true;
worksheet.Cells["G50:L50"].Merge = true;
worksheet.Cells["G50"].Value = "测量数值为______Ω";
worksheet.Cells["G50"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G50"].Style.WrapText = true;
worksheet.Cells["M50"].Value = "□合格 □不合格";
worksheet.Cells["M50"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M50"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(51).Height = 47.75;
worksheet.Cells["A51"].Value = "2.9电气安全对地漏电流";
worksheet.Cells["A51"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A51"].Style.WrapText = true;
worksheet.Cells["B51:F51"].Merge = true;
worksheet.Cells["B51"].Value = "GB9706.1-2007标准中19)要求:正常状态≤0.5mA;单一故障状态≤1mA ";
worksheet.Cells["B51"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B51"].Style.WrapText = true;
worksheet.Cells["G51:L51"].Merge = true;
worksheet.Cells["G51"].Value = "正常状态: ______mA\n单一故障状态:______mA";
worksheet.Cells["G51"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G51"].Style.WrapText = true;
worksheet.Cells["M51"].Value = "□合格 □不合格";
worksheet.Cells["M51"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M51"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(52).Height = 36;
worksheet.Cells["A52"].Value = "2.9电气安全外壳漏电流";
worksheet.Cells["A52"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A52"].Style.WrapText = true;
worksheet.Cells["B52:F52"].Merge = true;
worksheet.Cells["B52"].Value = "GB9706.1-2007标准中19)要求:正常状态≤0.1mA;单一故障状态≤0.5mA";
worksheet.Cells["B52"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B52"].Style.WrapText = true;
worksheet.Cells["G52:L52"].Merge = true;
worksheet.Cells["G52"].Value = "正常状态: ______mA\n单一故障状态:______mA";
worksheet.Cells["G52"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G52"].Style.WrapText = true;
worksheet.Cells["M52"].Value = "□合格 □不合格";
worksheet.Cells["M52"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M52"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(53).Height = 48;
worksheet.Cells["A53"].Value = "2.9电气安全患者漏电流(ac)";
worksheet.Cells["A53"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A53"].Style.WrapText = true;
worksheet.Cells["B53:F53"].Merge = true;
worksheet.Cells["B53"].Value = "GB9706.1-2007标准中19)要求:正常状态≤0.1mA;单一故障状态≤0.5mA";
worksheet.Cells["B53"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B53"].Style.WrapText = true;
worksheet.Cells["G53:L53"].Merge = true;
worksheet.Cells["G53"].Value = "正常状态: ______mA\n单一故障状态:______mA";
worksheet.Cells["G53"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G53"].Style.WrapText = true;
worksheet.Cells["M53"].Value = "□合格 □不合格";
worksheet.Cells["M53"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M53"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(54).Height = 48;
worksheet.Cells["A54"].Value = "2.9电气安全患者漏电流(dc)";
worksheet.Cells["A54"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A54"].Style.WrapText = true;
worksheet.Cells["B54:F54"].Merge = true;
worksheet.Cells["B54"].Value = "GB9706.1-2007标准中19)要求:正常状态≤0.01mA;单一故障状态≤0.05mA";
worksheet.Cells["B54"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B54"].Style.WrapText = true;
worksheet.Cells["G54:L54"].Merge = true;
worksheet.Cells["G54"].Value = "正常状态: ______mA\n单一故障状态:______mA";
worksheet.Cells["G54"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G54"].Style.WrapText = true;
worksheet.Cells["M54"].Value = "□合格 □不合格";
worksheet.Cells["M54"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
worksheet.Cells["M54"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Row(55).Height = 69.75;
worksheet.Cells["A55"].Value = "2.9电气安全患者辅助漏电流(应用部分加网电压)";
worksheet.Cells["A55"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["A55"].Style.WrapText = true;
worksheet.Cells["B55:F55"].Merge = true;
worksheet.Cells["B55"].Value = "B9706.1-2007标准中19):单一故障状态≤5mA";
worksheet.Cells["B55"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["B55"].Style.WrapText = true;
worksheet.Cells["G55:L55"].Merge = true;
worksheet.Cells["G55"].Value = "单一故障状态:______mA";
worksheet.Cells["G55"].Style.VerticalAlignment = ExcelVerticalAlignment.Center;
worksheet.Cells["G55"].Style.WrapText = true;