-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMDRC05U1.pas
8460 lines (7045 loc) · 338 KB
/
MDRC05U1.pas
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
{===============================================================================
Program ID : MDRC05U1
Program Name : 소아 성장발육곡선 Charting 및 측정이력 관리
Program Desc. : 소아청소년 성장단계별(신생아, 0~36개월, 2세 ~ 18세)
표준도표 Charting 및 환자의 V/S 자동 Graph + 측정이력 관리
Author : Lee, Se-Ha
Date : 2013.11.19
===============================================================================}
unit MDRC05U1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, ExtCtrls, TFlatPanelUnit, TFlatTabControlUnit, StdCtrls,
TFlatCheckBoxUnit, TFlatButtonUnit, TFlatComboBoxUnit, Grids, BaseGrid,
AdvGrid, TFlatSpeedButtonUnit, AdvPanel, Buttons, Variants, VclTee.TeEngine,
VclTee.Series, VclTee.TeeProcs, VclTee.Chart, AdvObj, VclTee.TeeGDIPlus;
const
// 표준정규누적분포 상수 : 1/sqrt(2*pi)
INVSQRT2PI = 0.3989422804014327;
// Vert - Horiz Axis 초기화 기본값
C_VERTAXIS_MAX_INIT = 200;
C_VERTAXIS_MIN_INIT = 0;
C_HORIZAXIS_MAX_INIT = 100;
C_HORIZAXIS_MIN_INIT = 0;
// 측정내역 Grid Column 정의
C_CHECK = 0;
C_RGTDATE = 1;
C_MEDDEPT = 2;
C_YEAR = 3;
C_MONTH = 4;
C_TOTMONTH = 5;
C_WEIGHT = 6;
C_HEIGHT = 7;
C_HEADCIR = 8;
C_BMI = 9;
C_REMARK = 10;
C_RGTTIME = 11;
C_MEDDATE = 12;
C_MEDTIME = 13;
C_SERIES_CNT = 25; // 표준지표 Series (2007) 총 Count
C_SERIES_2017_CNT = 37; // 2017 표준 D/B Series 총 Count 추가 @ 2018.05.30 LSH
// 환아 측정이력 Line Series index
C_SERIES_IDX_PATHGT = 23;
C_SERIES_IDX_PATWGT = 24;
C_SERIES_IDX_PATHEADCIR = 25;
C_SERIES_IDX_PATBMI = 26;
// flat Tab-Contrl Active Tab 인덱스
AT_NEONATAL = 0;
AT_ZERO2THIRTYSIX = 1;
AT_TWO2EIGHTTEEN = 2;
AT_HEADCIR = 3;
AT_BMI = 4;
// 2007 vs. 2017 두위 표준 D/B 월령범위 변경에 따른 Const. @ 2018.05.29 LSH
C_2007_HEADCIR_MAXRANGE = 81;
C_2017_HEADCIR_MAXRANGE = 72;
// 차트캡쳐 및 메인 Panel 조정하면서 생긴 axis 흔들림 보정용 offset @ 2020.01.22 LSH
C_NEONATAL_TOP_OFFSET = -25;
C_ZERO2THIRTYSIX_TOP_OFFSET = -8; // -10
C_TWO2EIGHTTEEN_TOP_OFFSET = -17; // -15
type
TMDRC05F1 = class(TForm)
stb_Message: TStatusBar;
fpn_Framework: TFlatPanel;
fpn_Chart: TFlatPanel;
ftc_Chart: TFlatTabControl;
chr_PdGrow: TChart;
lb_Age: TLabel;
lb_AxisLocate: TLabel;
Label1: TLabel;
lb_RightHead: TLabel;
lb_RightBmi: TLabel;
lb_Hgt3rd: TLabel;
lb_Wgt3rd: TLabel;
lb_Hgt5th: TLabel;
lb_Hgt10th: TLabel;
lb_Hgt25th: TLabel;
lb_Hgt50th: TLabel;
lb_Hgt75th: TLabel;
lb_Hgt90th: TLabel;
lb_Hgt95th: TLabel;
lb_Hgt97th: TLabel;
lb_Wgt5th: TLabel;
lb_Wgt10th: TLabel;
lb_Wgt25th: TLabel;
lb_Wgt50th: TLabel;
lb_Wgt75th: TLabel;
lb_Wgt90th: TLabel;
lb_Wgt95th: TLabel;
lb_Wgt97th: TLabel;
lb_Neo3Rd: TLabel;
lb_Neo10th: TLabel;
lb_Neo50th: TLabel;
lb_Neo90th: TLabel;
lb_Neo97th: TLabel;
lb_BornWks: TLabel;
lb_Hgt85th: TLabel;
fcb_AxisLocate: TFlatCheckBox;
fcb_ConvertWks: TFlatCheckBox;
Series18: TAreaSeries;
Series17: TAreaSeries;
Series16: TAreaSeries;
Series15: TAreaSeries;
Series14: TAreaSeries;
Series13: TAreaSeries;
Series12: TAreaSeries;
Series11: TAreaSeries;
Series10: TAreaSeries;
Series9: TAreaSeries;
Series7: TAreaSeries;
Series6: TAreaSeries;
Series8: TAreaSeries;
Series5: TAreaSeries;
Series4: TAreaSeries;
Series3: TAreaSeries;
Series2: TAreaSeries;
Series1: TAreaSeries;
Series27: TAreaSeries;
Series26: TAreaSeries;
Series25: TAreaSeries;
Series24: TAreaSeries;
Series23: TAreaSeries;
Series19: TLineSeries;
Series20: TLineSeries;
Series21: TLineSeries;
Series22: TLineSeries;
fpn_PatInfo: TFlatPanel;
Shape3: TShape;
Shape2: TShape;
Label5: TLabel;
Label6: TLabel;
Shape1: TShape;
Label7: TLabel;
Shape4: TShape;
Label8: TLabel;
fsbt_Add: TFlatSpeedButton;
sbt_Refresh: TSpeedButton;
sbt_ZoomIn: TSpeedButton;
fed_PatNo: TEdit;
fed_PatName: TEdit;
fed_SexAge: TEdit;
fcb_MedDept: TFlatComboBox;
fbt_Search: TFlatButton;
fbt_Delete: TFlatButton;
fbt_Close: TFlatButton;
cbx_OtherDept: TCheckBox;
cbx_AdmIncluded: TCheckBox;
fcb_Number: TFlatCheckBox;
fcb_Percent: TFlatCheckBox;
asg_BodyInfo: TAdvStringGrid;
apn_PdBodAdd: TAdvPanel;
asg_PdBodAdd: TAdvStringGrid;
apn_NeoBornWks: TAdvPanel;
FlatPanel2: TFlatPanel;
Shape6: TShape;
Label2: TLabel;
Shape7: TShape;
Label3: TLabel;
Shape8: TShape;
Label4: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
fed_Wks: TEdit;
fed_Day: TEdit;
apn_NormsDist: TAdvPanel;
asg_NormsDist: TAdvStringGrid;
Advpn_Log: TAdvPanel;
Memo1: TMemo;
fpn_LeftHgtAxis: TFlatPanel;
lb_LeftHgt: TLabel;
fpn_LeftWgtAxis: TFlatPanel;
lb_LeftWgt: TLabel;
fpn_RightWgtAxis: TFlatPanel;
lb_RightWgt: TLabel;
fpn_RightHgtAxis: TFlatPanel;
lb_RightHgt: TLabel;
fbt_Print: TFlatButton;
fbt_NeoChart: TFlatButton;
procedure FormShow(Sender: TObject);
procedure chr_PdGrowAfterDraw(Sender: TObject);
procedure chr_PdGrowGetNextAxisLabel(Sender: TChartAxis;
LabelIndex: Integer; var LabelValue: Double; var Stop: Boolean);
procedure fpn_PatInfoMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure ftc_ChartMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure chr_PdGrowMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure chr_PdGrowZoom(Sender: TObject);
procedure chr_PdGrowUndoZoom(Sender: TObject);
procedure asg_BodyInfoGetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
procedure fbt_SearchClick(Sender: TObject);
procedure fed_PatNoKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure fed_PatNoChange(Sender: TObject);
procedure fed_PatNoEnter(Sender: TObject);
procedure ftc_ChartTabChanged(Sender: TObject);
procedure fcb_NumberClick(Sender: TObject);
procedure fcb_PercentClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure fcb_AxisLocateClick(Sender: TObject);
procedure fsbt_AddClick(Sender: TObject);
procedure asg_BodyInfoClick(Sender: TObject);
procedure chr_PdGrowClick(Sender: TObject);
procedure asg_PdBodAddGetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
procedure asg_PdBodAddGetEditorType(Sender: TObject; ACol,
ARow: Integer; var AEditor: TEditorType);
procedure asg_PdBodAddKeyPress(Sender: TObject; var Key: Char);
procedure asg_PdBodAddEditingDone(Sender: TObject);
procedure asg_PdBodAddCanEditCell(Sender: TObject; ARow, ACol: Integer;
var CanEdit: Boolean);
procedure asg_PdBodAddButtonClick(Sender: TObject; ACol,
ARow: Integer);
procedure asg_BodyInfoCanEditCell(Sender: TObject; ARow, ACol: Integer;
var CanEdit: Boolean);
procedure fbt_DeleteClick(Sender: TObject);
procedure fbt_NeoChartClick(Sender: TObject);
procedure fbt_CloseClick(Sender: TObject);
procedure asg_BodyInfoDblClick(Sender: TObject);
procedure asg_BodyInfoMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure fed_DayKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure fed_WksChange(Sender: TObject);
procedure sbt_RefreshClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormDestroy(Sender: TObject);
procedure sbt_ZoomInClick(Sender: TObject);
procedure asg_NormsDistGetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
// 컴포넌트 캡쳐 관련 모듈(from 김정수P) 추가 @ 2020.01.14 LSH
procedure SaveComponentImg(Sender: TObject);
procedure CaptureWinCtrlImage(AWinControl: TWinControl; AImg: TGraphic);
procedure fbt_PrintClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
IsAgeFlag : String;
varPatname,
varResno1,
varResno2,
varBirtdate,
varSex,
varTelno1,
varTelno2,
varTelno3,
varEmail,
varZipcd,
varAddress,
varBldtype,
varScanyn,
varResno3,
varZpaddress,
varAddress2 : String;
varBornWks,
varBornDay : Integer;
FsPatNo : String;
FsPatCls : String; // 입원시 측정이력 연동위한 구분 Flag @ 2017.01.17 LSH
FsMedDate : String; // 진료(입원)일자 (yyyymmdd) @ 2017.01.17 LSH
FsMedTime : String; // 외래 접수시간 (yyyymmddhh24miss) @ 2017.01.17 LSH
FsFromForm : String; // 입원 측정이력 자동포함 Check 위한 Flag @ 2017.01.17 LSH
FsMedDept : String; // 환자 주 진료과 @ 2017.01.18 LSH
FsStandIdx : String; // 성장곡선 D/B 표준 인덱스 (2007/2017/..) @ 2018.05.28 LSH
//-------------------------------------------------------------------
// 성별-월령별 항목별 표준성장지표(D/B) Chart 표기
//-------------------------------------------------------------------
procedure GetStandardMarking(in_Flag,
in_Gubun,
in_Sex,
in_Item : String);
//-------------------------------------------------------------------
// 성별-월령별 항목별 표준성장지표(D/B) Axis 설정
//-------------------------------------------------------------------
procedure SetStandardAxis(in_Flag,
in_Sex : String);
//-------------------------------------------------------------------
// 성별-월령별 Axis Hide Panel 위치 설정
//-------------------------------------------------------------------
procedure SetAxisPanel(in_Flag : String);
//-------------------------------------------------------------------
// 부서명 조회 (FlatCombo)
//-------------------------------------------------------------------
function GetFlatMedDept(FlatCombo : TFlatComboBox) : Integer;
//-------------------------------------------------------------------
// 신체측정 이력 조회
//-------------------------------------------------------------------
procedure SelBodyInfo;
//-------------------------------------------------------------------
// 특정기준별 나이(년, 개월, 총개월수) 계산 함수
//-------------------------------------------------------------------
function GetTransAge(in_Flag,
in_FromDate,
in_BirtDate : String) : String;
//-------------------------------------------------------------------
// 신체측정 종류별 Data 단위변환 함수
// - 신생아 성장발육곡선 입원이력 연동관련
// 환아 연령정보(in_YearInfo) 추가 @ 2017.01.18 LSH (ASPD1610013, PD 신정희)
//-------------------------------------------------------------------
function GetTransData(in_Flag,
in_DataVal,
in_YearInfo : String) : String;
//-------------------------------------------------------------------
// BMI (체질량지수) 계산 함수
//-------------------------------------------------------------------
function CalcBmi(in_Height,
in_Weight : String) : String;
//-------------------------------------------------------------------
// 환아 측정이력 Series Draw
//-------------------------------------------------------------------
procedure DrawPatSeries;
//-------------------------------------------------------------------
// 신생아 재태연령 계산위한 윤년 여부(Y/N) 체크
//-------------------------------------------------------------------
function IsYunYear(in_Year : Integer) : Boolean;
//-------------------------------------------------------------------
// NeoNatal 재태연령 계산 함수
// - 출생일자, 기준 기록일자를 받아서 재태연령을 계산.
//-------------------------------------------------------------------
function CalcNeoWks(in_BornDate,
in_RgtDate : String) : String;
//-------------------------------------------------------------------
// 신생아 간호정보조사지 출생주수 조회 함수
//-------------------------------------------------------------------
function GetNeoBornWks(in_PatNo : String;
var varBornWks, varBornDay : Integer) : Boolean;
//-------------------------------------------------------------------
// 신생아 성장곡선 출생주수 Line Draw
//-------------------------------------------------------------------
procedure NeoBornAfterDraw;
//-------------------------------------------------------------------
// [디버깅] Chart Axis Range 초기화
//-------------------------------------------------------------------
procedure ResetAxisRange;
//-------------------------------------------------------------------
// [함수] 표준정규누적분포 (환아 신체측정 data 백분위수 표기) 계산
// - 2014.05.22 LSH
//-------------------------------------------------------------------
function NormsDist(in_ZScore : Extended ) : Extended;
//-------------------------------------------------------------------
// 표준정규분포 z-Score 및 백분위 계산 @ 2014.05.23 LSH
//-------------------------------------------------------------------
function CalcZScore2Dist(in_Gubun : String;
in_Year,
in_Month,
in_Item : Extended) : String;
//-------------------------------------------------------------------
// 백분위수 Text Drawing @ 2014.05.26 LSH
//-------------------------------------------------------------------
procedure DrawNormsBanner(in_Series : TChartSeries;
in_Gubun : String;
in_Year,
in_Month,
in_TotMon,
in_Item : Extended;
in_Color : TColor);
//-------------------------------------------------------------------
// 표준정규분포 백분위수 계산 및 Panel-on To Grid @ 2014.07.08 LSH
//-------------------------------------------------------------------
procedure CalcZScore2Grid;
//-------------------------------------------------------------------
// [구로] 처방화면에서 도표클릭시 화면 좌표 입력 - 2016.09.07 최영대
//-------------------------------------------------------------------
procedure FormSetting;
public
{ Public declarations }
//-------------------------------------------------------------------
// Cross-Hair (좌표보기) 적용 관련 var.
//-------------------------------------------------------------------
OldX,OldY : Longint;
CrossHairColor : TColor;
CrossHairStyle : TPenStyle;
// 2016.09.07 최영대
// Form_OffSet : Boolean;
published
property prop_PatNo : String read FsPatNo write FsPatNo; // 환자번호 Prop var.
property prop_PatCls : String read FsPatCls write FsPatCls; // 입원시 측정이력 연동위한 Flag @ 2017.01.17 LSH
property prop_MedDate : String read FsMedDate write FsMedDate; // 진료(입원)일자 @ 2017.01.17 LSH
property prop_MedTime : String read FsMedTime write FsMedTime; // 외래 접수시간 @ 2017.01.17 LSH
property prop_FromForm : String read FsFromForm write FsFromForm; // 입원 측정이력 자동포함 여부 Check 위한 Flag @ 2017.01.17 LSH
property prop_MedDept : String read FsMedDept write FsMedDept; // 환자 주 진료과 @ 2017.01.18 LSH
property prop_StandIdx : String read FsStandIdx write FsStandIdx; // 성장곡선 D/B 표준 인덱스 (2007/2017/..) @ 2018.05.28 LSH
end;
var
MDRC05F1: TMDRC05F1;
implementation
uses
ShellAPI,
CComFunc,
VarCom,
TuxCom,
HisUtil,
TpSvc,
MComFunc,
MDCLASS1,
QuickRpt,
Qrctrls,
Math,
MDRC05U1_P01; // 출력양식(QR) 추가 @ 2020.01.14 LSH
{$R *.DFM}
//------------------------------------------------------------------------------
// [조회] 성별-월령별 항목별 표준성장지표 조회
//
// Date : 2013.11.20
// Author : Lee, Se-Ha
//------------------------------------------------------------------------------
procedure TMDRC05F1.GetStandardMarking(in_Flag,
in_Gubun,
in_Sex,
in_Item : String);
var
TpGetGrow : TTpSvc;
i, j, k : Integer;
sType1, sType2, sType3, sType4, sType5, sType6 : String;
begin
// Log
Memo1.Lines.Add('Call GetStandardMarking : ' + in_Flag + ' / ' + in_Gubun + ' / ' + in_Sex + ' / ' + in_Item);
sType1 := in_Flag;
sType2 := in_Gubun;
sType3 := in_Sex;
sType4 := in_Item;
sType5 := '';
//---------------------------------------------------------------------
// Axis 백분위 Label Location 관련 Debugging 처리 @ 2013.12.24 LSH
//---------------------------------------------------------------------
chr_PdGrow.Repaint;
TpGetGrow := TTpSvc.Create;
TpGetGrow.Init(nil);
Screen.Cursor := crHourglass;
try
TpGetGrow.CountField := 'S_STRING1';
TpGetGrow.ShowMsgFlag := False;
if TpGetGrow.GetSvc('MD_PDBOD_L1',
['S_TYPE1' , sType1
, 'S_TYPE2' , sType2
, 'S_TYPE3' , sType3
, 'S_TYPE4' , sType4
, 'S_TYPE5' , sType5
],
[
'S_STRING1' , 'sFromAge'
, 'S_STRING2' , 'sItem'
, 'S_STRING3' , 'sItemName'
, 'S_STRING4' , 's3rd'
, 'S_STRING5' , 's5th'
, 'S_STRING6' , 's10th'
, 'S_STRING7' , 's25th'
, 'S_STRING8' , 's50th'
, 'S_STRING9' , 's75th'
, 'S_STRING10' , 's90th'
, 'S_STRING11' , 's95th'
, 'S_STRING12' , 's97th'
, 'S_STRING13' , 'sDispSeq'
, 'S_STRING37' , 's85th' // BMI 85백분위수 추가 @ 2014.10.23 LSH
, 'S_STRING38' , 's1st' // 2017 표준 D/B 1 백분위수 추가 @ 2018.05.29 LSH
, 'S_STRING39' , 's15th' // 2017 표준 D/B 15 백분위수 추가 @ 2018.05.29 LSH
, 'S_STRING40' , 's99th' // 2017 표준 D/B 99 백분위수 추가 @ 2018.05.29 LSH
])
then
begin
with chr_PdGrow do
begin
// Series 별 Clear
// XE7 선반영. 홍창한.
for j := 0 to C_SERIES_CNT do
begin
{@ConvertPassSTART}
{$IFDEF VER130}
SeriesList.Series[j].Clear;
{$ELSE}
Series[j].Clear;
{$ENDIF}
{@ConvertPassEND}
end;
for i := 0 to TpGetGrow.RowCount - 1 do
begin
if (IsAgeFlag = 'NEONATAL') then
begin
//------------------------------------------------------
// 신생아 체중
//------------------------------------------------------
if (TpGetGrow.GetOutputDataS('sItem', i) = 'WEIGHT') then
begin
// XE7 선반영. 홍창한.
{$IFDEF VER130}
// 3Rd
SeriesList.Series[C_SERIES_CNT - 3].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
SeriesList.Series[C_SERIES_CNT - 4].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
SeriesList.Series[C_SERIES_CNT - 5].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
SeriesList.Series[C_SERIES_CNT - 6].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
SeriesList.Series[C_SERIES_CNT - 7].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ELSE}
// 3Rd
Series[C_SERIES_CNT - 3].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
Series[C_SERIES_CNT - 4].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
Series[C_SERIES_CNT - 5].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
Series[C_SERIES_CNT - 6].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
Series[C_SERIES_CNT - 7].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ENDIF}
// [체중] Vertical Axis
for k := C_SERIES_CNT - 7 to C_SERIES_CNT - 3 do
begin
{$IFDEF VER130}
// [체중] Vertical Axis
SeriesList.Series[k].VertAxis := aRightAxis;
// [체중] Horizontal Axis
SeriesList.Series[k].HorizAxis := aBothHorizAxis;
{$ELSE}
// [체중] Vertical Axis
Series[k].VertAxis := aRightAxis;
// [체중] Horizontal Axis
Series[k].HorizAxis := aBothHorizAxis;
{$ENDIF}
end;
// [체중] 백분위 Label Location
if (i = (TpGetGrow.RowCount - 1)) then
begin
// Log
Memo1.Lines.Add('After Drawing Weight(' + IsAgeFlag + ') Chart & Set 100분위 label --> ' + IntToStr(i) + '번째 Row value(3rd) = ' + TpGetGrow.GetOutputDataS('sFromAge',i) + ' , ' + TpGetGrow.GetOutputDataS('s3rd', i));
{
Memo1.Lines.Add('lb_Wgt3rd X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Wgt3rd Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)))));
Memo1.Lines.Add('lb_Wgt10th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Wgt10th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)))));
Memo1.Lines.Add('lb_Wgt50th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Wgt50th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)))));
Memo1.Lines.Add('lb_Wgt90th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Wgt90th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)))));
Memo1.Lines.Add('lb_Wgt97th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Wgt97th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)))));
}
{$IFDEF VER130}
// 체중 3Rd
lb_Wgt3rd.Top := SeriesList.Series[C_SERIES_CNT - 3].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i))) ;
lb_Wgt3rd.Left := SeriesList.Series[C_SERIES_CNT - 3].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ELSE}
lb_Wgt3rd.Top := Series[C_SERIES_CNT - 3].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i))) ;
lb_Wgt3rd.Left := Series[C_SERIES_CNT - 3].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ENDIF}
lb_Wgt3rd.Visible := True;
// 체중 5th
lb_Wgt5th.Visible := False;
// 체중 10th
{$IFDEF VER130}
lb_Wgt10th.Top := SeriesList.Series[C_SERIES_CNT - 4].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i))) ;
lb_Wgt10th.Left := SeriesList.Series[C_SERIES_CNT - 4].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ELSE}
lb_Wgt10th.Top := Series[C_SERIES_CNT - 4].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i))) ;
lb_Wgt10th.Left := Series[C_SERIES_CNT - 4].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ENDIF}
lb_Wgt10th.Visible := True;
// 체중 25th
lb_Wgt25th.Visible := False;
// 체중 50th
{$IFDEF VER130}
lb_Wgt50th.Top := SeriesList.Series[C_SERIES_CNT - 5].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)));
lb_Wgt50th.Left := SeriesList.Series[C_SERIES_CNT - 5].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ELSE}
lb_Wgt50th.Top := Series[C_SERIES_CNT - 5].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)));
lb_Wgt50th.Left := Series[C_SERIES_CNT - 5].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ENDIF}
lb_Wgt50th.Visible := True;
// 체중 75th
lb_Wgt75th.Visible := False;
// 체중 90th
{$IFDEF VER130}
lb_Wgt90th.Top := SeriesList.Series[C_SERIES_CNT - 6].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)));
lb_Wgt90th.Left := SeriesList.Series[C_SERIES_CNT - 6].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ELSE}
lb_Wgt90th.Top := Series[C_SERIES_CNT - 6].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)));
lb_Wgt90th.Left := Series[C_SERIES_CNT - 6].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ENDIF}
lb_Wgt90th.Visible := True;
// 체중 95th
lb_Wgt95th.Visible := False;
// 체중 97th
{$IFDEF VER130}
lb_Wgt97th.Top := SeriesList.Series[C_SERIES_CNT - 7].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)));
lb_Wgt97th.Left := SeriesList.Series[C_SERIES_CNT - 7].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ELSE}
lb_Wgt97th.Top := Series[C_SERIES_CNT - 7].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)));
lb_Wgt97th.Left := Series[C_SERIES_CNT - 7].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 1);
{$ENDIF}
lb_Wgt97th.Visible := True;
end;
end
//------------------------------------------------------
// 신생아 두위
//------------------------------------------------------
else if (TpGetGrow.GetOutputDataS('sItem', i) = 'HEADSIZE') then
begin
{$IFDEF VER130}
// 3Rd
SeriesList.Series[C_SERIES_CNT - 8].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
SeriesList.Series[C_SERIES_CNT - 10].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
SeriesList.Series[C_SERIES_CNT - 12].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
SeriesList.Series[C_SERIES_CNT - 14].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
SeriesList.Series[C_SERIES_CNT - 16].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ELSE}
// 3Rd
Series[C_SERIES_CNT - 8].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
Series[C_SERIES_CNT - 10].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
Series[C_SERIES_CNT - 12].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
Series[C_SERIES_CNT - 14].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
Series[C_SERIES_CNT - 16].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ENDIF}
for k := C_SERIES_CNT - 16 to C_SERIES_CNT - 8 do
begin
if (k mod 2) <> 0 then
begin
{$IFDEF VER130}
// [두위] Vertical Axis
SeriesList.Series[k].VertAxis := aLeftAxis;
// [두위] Horizontal Axis
SeriesList.Series[k].HorizAxis := aBothHorizAxis;
{$ELSE}
// [두위] Vertical Axis
Series[k].VertAxis := aLeftAxis;
// [두위] Horizontal Axis
Series[k].HorizAxis := aBothHorizAxis;
{$ENDIF}
end;
end;
// [두위] 백분위 Label Location
if (i = (TpGetGrow.RowCount * 2 / 3) - 1) then
begin
// Log
Memo1.Lines.Add('After Drawing HeadCir(' + IsAgeFlag + ') Chart & Set 100분위 label --> ' + IntToStr(i) + '번째 Row value(3rd) = ' + TpGetGrow.GetOutputDataS('sFromAge',i) + ' , ' + TpGetGrow.GetOutputDataS('s3rd', i));
{
Memo1.Lines.Add('lb_Neo3rd X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Neo3rd Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)))));
Memo1.Lines.Add('lb_Neo10th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Neo10th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)))));
Memo1.Lines.Add('lb_Neo50th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Neo50th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)))));
Memo1.Lines.Add('lb_Neo90th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Neo90th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)))));
Memo1.Lines.Add('lb_Neo97th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Neo97th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)))));
}
// 두위 3Rd
{$IFDEF VER130}
lb_Neo3rd.Top := SeriesList.Series[C_SERIES_CNT - 8].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i))- 0.5);
lb_Neo3rd.Left := SeriesList.Series[C_SERIES_CNT - 8].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ELSE}
lb_Neo3rd.Top := Series[C_SERIES_CNT - 8].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i))- 0.5);
lb_Neo3rd.Left := Series[C_SERIES_CNT - 8].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ENDIF}
lb_Neo3rd.Visible := True;
// 두위 10th
{$IFDEF VER130}
lb_Neo10th.Top := SeriesList.Series[C_SERIES_CNT - 10].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)));
lb_Neo10th.Left := SeriesList.Series[C_SERIES_CNT - 10].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ELSE}
lb_Neo10th.Top := Series[C_SERIES_CNT - 10].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)));
lb_Neo10th.Left := Series[C_SERIES_CNT - 10].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ENDIF}
lb_Neo10th.Visible := True;
// 두위 50th
{$IFDEF VER130}
lb_Neo50th.Top := SeriesList.Series[C_SERIES_CNT - 12].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i))) ;
lb_Neo50th.Left := SeriesList.Series[C_SERIES_CNT - 12].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ELSE}
lb_Neo50th.Top := Series[C_SERIES_CNT - 12].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i))) ;
lb_Neo50th.Left := Series[C_SERIES_CNT - 12].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ENDIF}
lb_Neo50th.Visible := True;
// 두위 90th
{$IFDEF VER130}
lb_Neo90th.Top := SeriesList.Series[C_SERIES_CNT - 14].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i))- 0.5);
lb_Neo90th.Left := SeriesList.Series[C_SERIES_CNT - 14].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ELSE}
lb_Neo90th.Top := Series[C_SERIES_CNT - 14].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i))- 0.5);
lb_Neo90th.Left := Series[C_SERIES_CNT - 14].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ENDIF}
lb_Neo90th.Visible := True;
// 두위 97th
{$IFDEF VER130}
lb_Neo97th.Top := SeriesList.Series[C_SERIES_CNT - 16].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)));
lb_Neo97th.Left := SeriesList.Series[C_SERIES_CNT - 16].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ELSE}
lb_Neo97th.Top := Series[C_SERIES_CNT - 16].CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)));
lb_Neo97th.Left := Series[C_SERIES_CNT - 16].CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)) - 4);
{$ENDIF}
lb_Neo97th.Visible := True;
end;
end
//------------------------------------------------------
// 신생아 신장
//------------------------------------------------------
else if (TpGetGrow.GetOutputDataS('sItem', i) = 'HEIGHT') then
begin
{$IFDEF VER130}
// 3Rd
SeriesList.Series[C_SERIES_CNT - 17].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
SeriesList.Series[C_SERIES_CNT - 19].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
SeriesList.Series[C_SERIES_CNT - 21].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
SeriesList.Series[C_SERIES_CNT - 23].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
SeriesList.Series[C_SERIES_CNT - 25].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ELSE}
// 3Rd
Series[C_SERIES_CNT - 17].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)),
'',
clTeeColor);
// 10th
Series[C_SERIES_CNT - 19].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)),
'',
clTeeColor);
// 50th
Series[C_SERIES_CNT - 21].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)),
'',
clTeeColor);
// 90th
Series[C_SERIES_CNT - 23].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)),
'',
clTeeColor);
// 97th
Series[C_SERIES_CNT - 25].AddXy(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge', i)),
StrToFloat(TpGetGrow.GetOutputDataS('s97th', i)),
'',
clTeeColor);
{$ENDIF}
// [신장] Vertical Axis
for k := 0 to C_SERIES_CNT - 17 do
begin
if (k = 0) or
((k mod 2) = 0) then
begin
{$IFDEF VER130}
// [신장] Vertical Axis
SeriesList.Series[k].VertAxis := aLeftAxis;
// [신장] Horizontal Axis
SeriesList.Series[k].HorizAxis := aBothHorizAxis;
{$ELSE}
// [신장] Vertical Axis
Series[k].VertAxis := aLeftAxis;
// [신장] Horizontal Axis
Series[k].HorizAxis := aBothHorizAxis;
{$ENDIF}
end
end;
// [신장] 백분위 Label Location
if (i = (Trunc(TpGetGrow.RowCount / 3)) - 1) then
begin
// Log
Memo1.Lines.Add('After Drawing Height(' + IsAgeFlag + ') Chart & Set 100분위 label --> ' + IntToStr(i) + '번째 Row value(3rd) = ' + TpGetGrow.GetOutputDataS('sFromAge',i) + ' , ' + TpGetGrow.GetOutputDataS('s3rd', i));
{
Memo1.Lines.Add('lb_Hgt3rd X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Hgt3rd Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s3rd', i)))));
Memo1.Lines.Add('lb_Hgt10th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Hgt10th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s10th', i)))));
Memo1.Lines.Add('lb_Hgt50th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Hgt50th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s50th', i)))));
Memo1.Lines.Add('lb_Hgt90th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));
Memo1.Lines.Add('lb_Hgt90th Y좌표 : ' + FloatToStr(LeftAxis.CalcYPosValue(StrToFloat(TpGetGrow.GetOutputDataS('s90th', i)))));
Memo1.Lines.Add('lb_Hgt97th X좌표 : ' + FloatToStr(BottomAxis.CalcXPosValue(StrToFloat(TpGetGrow.GetOutputDataS('sFromAge',i)))));