-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMDN110UO.pas
2487 lines (2290 loc) · 62 KB
/
MDN110UO.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
unit MDN110UO;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, Buttons, Grids, UltraGrid, Mask, ComCtrls, Qrctrls,
Variants;
type
TMDN110FO = class(TForm)
pc_ICU: TPageControl;
ts_ICU1: TTabSheet;
ts_ICU2: TTabSheet;
Bevel370: TBevel;
stb_Message: TStatusBar;
Panel57: TPanel;
ed_PatNm: TEdit;
pn_PatNo: TPanel;
pn_Age: TPanel;
pn_Sex: TPanel;
Panel20: TPanel;
Panel58: TPanel;
Panel59: TPanel;
dtp_ActDate: TDateTimePicker;
Panel80: TPanel;
ed_Edit: TEdit;
Bevel36: TBevel;
Panel7: TPanel;
Panel25: TPanel;
Panel8: TPanel;
Bevel16: TBevel;
Bevel17: TBevel;
B0201_1: TRadioButton;
B0201_2: TRadioButton;
B0201_3: TRadioButton;
B0001_1: TEdit;
B0002_1: TEdit;
B0003_1: TEdit;
B0004_1: TEdit;
B0005_1: TEdit;
B0006_1: TEdit;
B0007_1: TEdit;
B0008_1: TEdit;
Panel2: TPanel;
Panel3: TPanel;
B0202_1: TEdit;
dtp_Item01: TDateTimePicker;
dtp_Item02: TDateTimePicker;
Panel1: TPanel;
B0208_1: TRadioButton;
Panel6: TPanel;
B0209_1: TRadioButton;
B0009_1: TEdit;
B0010_1: TEdit;
B0011_1: TEdit;
B0012_1: TEdit;
B0013_1: TEdit;
B0014_1: TEdit;
B0205_1: TMemo;
Bevel6: TBevel;
B0201_1E: TEdit;
Panel117: TPanel;
Bevel2: TBevel;
B0207_2: TRadioButton;
Bevel5: TBevel;
B0208_2: TRadioButton;
Bevel7: TBevel;
B0209_2: TRadioButton;
Panel5: TPanel;
Bevel9: TBevel;
B0210_1: TRadioButton;
B0210_2: TRadioButton;
Panel10: TPanel;
Bevel11: TBevel;
B0211_1: TRadioButton;
B0211_2: TRadioButton;
Panel46: TPanel;
Bevel18: TBevel;
B0212_1: TRadioButton;
B0212_2: TRadioButton;
Panel15: TPanel;
Bevel35: TBevel;
B0213_1: TRadioButton;
B0213_2: TRadioButton;
B0203_1: TMaskEdit;
B0204_1: TMaskEdit;
B0207_1: TRadioButton;
Panel9: TPanel;
bbt_Close: TBitBtn;
bbt_Add: TBitBtn;
bbt_Delete: TBitBtn;
pn_AdmDate: TPanel;
ed_EditID: TEdit;
Bevel52: TBevel;
Label5: TLabel;
Bevel53: TBevel;
Label6: TLabel;
Bevel54: TBevel;
Label7: TLabel;
Bevel55: TBevel;
Label8: TLabel;
Bevel57: TBevel;
Label9: TLabel;
Bevel58: TBevel;
Label10: TLabel;
Bevel223: TBevel;
Label11: TLabel;
Bevel224: TBevel;
Label12: TLabel;
Bevel225: TBevel;
Label13: TLabel;
Bevel226: TBevel;
Label14: TLabel;
Bevel227: TBevel;
Label15: TLabel;
Bevel228: TBevel;
Label16: TLabel;
Bevel229: TBevel;
Label17: TLabel;
Bevel230: TBevel;
Label18: TLabel;
Bevel231: TBevel;
Label19: TLabel;
Bevel232: TBevel;
Label20: TLabel;
Bevel233: TBevel;
Label21: TLabel;
Bevel234: TBevel;
Label22: TLabel;
Bevel235: TBevel;
Label24: TLabel;
Bevel237: TBevel;
Label26: TLabel;
Bevel238: TBevel;
Label27: TLabel;
Bevel239: TBevel;
Label28: TLabel;
Bevel240: TBevel;
Label29: TLabel;
Bevel242: TBevel;
Label30: TLabel;
Bevel236: TBevel;
Label1: TLabel;
Bevel243: TBevel;
Label2: TLabel;
Bevel244: TBevel;
Label25: TLabel;
Bevel245: TBevel;
Label31: TLabel;
Bevel246: TBevel;
Label32: TLabel;
Bevel219: TBevel;
Label60: TLabel;
B0206_2E: TEdit;
Panel4: TPanel;
Bevel3: TBevel;
B0206_1: TRadioButton;
B0206_2: TRadioButton;
Bevel215: TBevel;
Label59: TLabel;
B0208_2E: TEdit;
Bevel41: TBevel;
Bevel42: TBevel;
Bevel43: TBevel;
Bevel44: TBevel;
Bevel46: TBevel;
C0210_1: TCheckBox;
C0210_2: TCheckBox;
C0210_3: TCheckBox;
C0210_4: TCheckBox;
C0210_5: TCheckBox;
C0210_5E: TEdit;
Bevel327: TBevel;
Bevel13: TBevel;
Bevel21: TBevel;
Bevel12: TBevel;
Bevel22: TBevel;
Bevel28: TBevel;
C0201_1: TCheckBox;
C0201_2: TCheckBox;
C0201_3: TCheckBox;
C0201_4: TCheckBox;
C0201_5: TCheckBox;
C0201_6: TCheckBox;
C0201_6E: TEdit;
Bevel19: TBevel;
Bevel20: TBevel;
Bevel23: TBevel;
Bevel24: TBevel;
Bevel25: TBevel;
C0211_1: TCheckBox;
C0211_2: TCheckBox;
C0211_3: TCheckBox;
C0211_4: TCheckBox;
C0211_5: TCheckBox;
C0211_5E: TEdit;
Bevel26: TBevel;
Bevel27: TBevel;
Bevel30: TBevel;
Bevel31: TBevel;
Bevel32: TBevel;
C0212_1: TCheckBox;
C0212_2: TCheckBox;
C0212_3: TCheckBox;
C0212_4: TCheckBox;
C0212_5: TCheckBox;
C0212_5E: TEdit;
Bevel71: TBevel;
Bevel72: TBevel;
Bevel73: TBevel;
Bevel74: TBevel;
Bevel75: TBevel;
Bevel76: TBevel;
Bevel77: TBevel;
C0213_1: TCheckBox;
C0213_2: TCheckBox;
C0213_3: TCheckBox;
C0213_4: TCheckBox;
C0213_5: TCheckBox;
C0213_6: TCheckBox;
C0213_7E: TEdit;
C0213_7: TCheckBox;
Bevel37: TBevel;
sbox_Tab2: TScrollBox;
Bevel90: TBevel;
Bevel48: TBevel;
Bevel134: TBevel;
Bevel147: TBevel;
Bevel160: TBevel;
Bevel168: TBevel;
Bevel169: TBevel;
Bevel108: TBevel;
Bevel247: TBevel;
Label33: TLabel;
Bevel248: TBevel;
Label34: TLabel;
Bevel249: TBevel;
Label35: TLabel;
Bevel250: TBevel;
Label36: TLabel;
Bevel251: TBevel;
Label37: TLabel;
Bevel252: TBevel;
Label38: TLabel;
Bevel83: TBevel;
Bevel84: TBevel;
Bevel85: TBevel;
Bevel86: TBevel;
Bevel51: TBevel;
Label23: TLabel;
Bevel213: TBevel;
Bevel214: TBevel;
Bevel218: TBevel;
Bevel220: TBevel;
Bevel221: TBevel;
Bevel222: TBevel;
Bevel1: TBevel;
Label39: TLabel;
Bevel4: TBevel;
Label40: TLabel;
Bevel8: TBevel;
Label41: TLabel;
Bevel10: TBevel;
Label42: TLabel;
Bevel14: TBevel;
Label43: TLabel;
Bevel15: TBevel;
Label44: TLabel;
Bevel29: TBevel;
Label45: TLabel;
Bevel33: TBevel;
Label46: TLabel;
Bevel34: TBevel;
Label47: TLabel;
Bevel91: TBevel;
Bevel92: TBevel;
Bevel94: TBevel;
Bevel95: TBevel;
Bevel98: TBevel;
Bevel47: TBevel;
Bevel49: TBevel;
Label48: TLabel;
Bevel38: TBevel;
Bevel39: TBevel;
Bevel40: TBevel;
Bevel45: TBevel;
Bevel60: TBevel;
Label49: TLabel;
Bevel56: TBevel;
Bevel59: TBevel;
Bevel62: TBevel;
Bevel65: TBevel;
Bevel66: TBevel;
Bevel67: TBevel;
Bevel68: TBevel;
Bevel69: TBevel;
Bevel63: TBevel;
Label50: TLabel;
Bevel80: TBevel;
Label51: TLabel;
Bevel96: TBevel;
Label52: TLabel;
Bevel111: TBevel;
Label53: TLabel;
Bevel119: TBevel;
Label54: TLabel;
Bevel106: TBevel;
Label55: TLabel;
Bevel122: TBevel;
Label56: TLabel;
Bevel135: TBevel;
Label57: TLabel;
Bevel136: TBevel;
Label58: TLabel;
Bevel70: TBevel;
Label3: TLabel;
Bevel78: TBevel;
Label4: TLabel;
Bevel79: TBevel;
Bevel89: TBevel;
Bevel151: TBevel;
Label61: TLabel;
Bevel93: TBevel;
Label62: TLabel;
Bevel217: TBevel;
Bevel216: TBevel;
Label91: TLabel;
Bevel241: TBevel;
Label92: TLabel;
Bevel153: TBevel;
Label63: TLabel;
Bevel102: TBevel;
Bevel103: TBevel;
Bevel104: TBevel;
Bevel105: TBevel;
Bevel107: TBevel;
Bevel157: TBevel;
Label64: TLabel;
Bevel123: TBevel;
Label66: TLabel;
Bevel201: TBevel;
Label67: TLabel;
Bevel253: TBevel;
Label68: TLabel;
Bevel254: TBevel;
Label69: TLabel;
Bevel255: TBevel;
Label70: TLabel;
Bevel256: TBevel;
Label71: TLabel;
Bevel257: TBevel;
Label72: TLabel;
Bevel258: TBevel;
Label73: TLabel;
Panel27: TPanel;
Bevel97: TBevel;
B0303_1: TRadioButton;
B0303_2: TRadioButton;
Panel36: TPanel;
Bevel112: TBevel;
Bevel113: TBevel;
B0405_1: TRadioButton;
B0405_2: TRadioButton;
B0405_3: TRadioButton;
B0401_1: TEdit;
B0402_1: TEdit;
B0403_1: TEdit;
B0404_1: TEdit;
Panel34: TPanel;
Bevel82: TBevel;
Bevel87: TBevel;
Bevel88: TBevel;
Label65: TLabel;
B0407_1E: TEdit;
B0407_1: TRadioButton;
B0407_2: TRadioButton;
Panel60: TPanel;
Panel61: TPanel;
Panel11: TPanel;
Bevel50: TBevel;
B0301_1: TRadioButton;
B0301_2: TRadioButton;
Panel12: TPanel;
Panel13: TPanel;
Panel14: TPanel;
Bevel61: TBevel;
B0304_1: TRadioButton;
B0304_2: TRadioButton;
Panel17: TPanel;
Bevel64: TBevel;
B0305_1: TRadioButton;
B0305_2: TRadioButton;
Panel18: TPanel;
Panel19: TPanel;
Panel22: TPanel;
Panel24: TPanel;
Panel32: TPanel;
Bevel124: TBevel;
Bevel125: TBevel;
B0504_1: TRadioButton;
B0504_2: TRadioButton;
B0504_3: TRadioButton;
Panel47: TPanel;
Panel66: TPanel;
Panel33: TPanel;
Bevel81: TBevel;
B0406_1: TRadioButton;
B0406_2: TRadioButton;
Panel48: TPanel;
Bevel137: TBevel;
B0601_1: TRadioButton;
B0601_2: TRadioButton;
Panel67: TPanel;
Bevel138: TBevel;
Bevel139: TBevel;
Bevel140: TBevel;
B0602_1: TRadioButton;
B0602_2: TRadioButton;
B0602_3: TRadioButton;
B0602_4: TRadioButton;
Panel37: TPanel;
Panel50: TPanel;
Panel53: TPanel;
Bevel158: TBevel;
Bevel159: TBevel;
B0702_1: TRadioButton;
B0702_2: TRadioButton;
B0702_3: TRadioButton;
Panel54: TPanel;
Panel55: TPanel;
pn_Item08: TPanel;
Bevel100: TBevel;
Bevel99: TBevel;
Bevel101: TBevel;
C0801_1: TRadioButton;
C0801_3: TRadioButton;
C0801_2: TRadioButton;
C0801_4: TRadioButton;
Panel70: TPanel;
Panel71: TPanel;
pn_Item09: TPanel;
Bevel116: TBevel;
Bevel117: TBevel;
Bevel118: TBevel;
Bevel109: TBevel;
C0901_1: TRadioButton;
C0901_2: TRadioButton;
C0901_3: TRadioButton;
C0901_4: TRadioButton;
C0901_5: TRadioButton;
C0901_5E: TEdit;
pn_Item10: TPanel;
Bevel114: TBevel;
Bevel128: TBevel;
Bevel129: TBevel;
Bevel130: TBevel;
C0902_1: TRadioButton;
C0902_2: TRadioButton;
C0902_3: TRadioButton;
C0902_4: TRadioButton;
C0902_5: TRadioButton;
C0902_5E: TEdit;
pn_Item11: TPanel;
Bevel142: TBevel;
Bevel143: TBevel;
Bevel144: TBevel;
Bevel145: TBevel;
C0903_1: TRadioButton;
C0903_2: TRadioButton;
C0903_3: TRadioButton;
C0903_4: TRadioButton;
C0903_5: TRadioButton;
C0903_5E: TEdit;
pn_Item12: TPanel;
Bevel166: TBevel;
Bevel167: TBevel;
Bevel170: TBevel;
Bevel171: TBevel;
C0904_1: TRadioButton;
C0904_2: TRadioButton;
C0904_3: TRadioButton;
C0904_4: TRadioButton;
C0904_5: TRadioButton;
C0904_5E: TEdit;
pn_Item13: TPanel;
Bevel176: TBevel;
Bevel177: TBevel;
Bevel178: TBevel;
Bevel179: TBevel;
C0905_1: TRadioButton;
C0905_2: TRadioButton;
C0905_3: TRadioButton;
C0905_4: TRadioButton;
C0905_5: TRadioButton;
C0905_5E: TEdit;
pn_Item14: TPanel;
Bevel184: TBevel;
Bevel185: TBevel;
Bevel186: TBevel;
Bevel187: TBevel;
C0906_1: TRadioButton;
C0906_2: TRadioButton;
C0906_3: TRadioButton;
C0906_4: TRadioButton;
C0906_5: TRadioButton;
C0906_5E: TEdit;
pn_Item15: TPanel;
Bevel193: TBevel;
Bevel202: TBevel;
Bevel203: TBevel;
Bevel204: TBevel;
C0908_1: TRadioButton;
C0908_2: TRadioButton;
C0908_3: TRadioButton;
C0908_4: TRadioButton;
C0908_5: TRadioButton;
C0908_5E: TEdit;
Panel133: TPanel;
Bevel163: TBevel;
Bevel164: TBevel;
B0903_1: TRadioButton;
B0903_2: TRadioButton;
B0903_3: TRadioButton;
Panel137: TPanel;
Bevel173: TBevel;
Bevel174: TBevel;
B0904_1: TRadioButton;
B0904_2: TRadioButton;
B0904_3: TRadioButton;
Panel141: TPanel;
Bevel181: TBevel;
Bevel182: TBevel;
B0905_1: TRadioButton;
B0905_2: TRadioButton;
B0905_3: TRadioButton;
Panel145: TPanel;
Bevel189: TBevel;
Bevel190: TBevel;
B0906_1: TRadioButton;
B0906_2: TRadioButton;
B0906_3: TRadioButton;
Panel149: TPanel;
Bevel206: TBevel;
Bevel212: TBevel;
B0908_1: TRadioButton;
B0908_2: TRadioButton;
B0908_3: TRadioButton;
B0907_1: TEdit;
C0301_2: TCheckBox;
C0301_1: TCheckBox;
C0301_4: TCheckBox;
C0301_3: TCheckBox;
B0302_1: TCheckBox;
B0302_2: TCheckBox;
B0302_3: TCheckBox;
B0302_4: TCheckBox;
B0302_5: TCheckBox;
B0302_6: TCheckBox;
B0501_1: TCheckBox;
B0501_2: TCheckBox;
B0501_3: TCheckBox;
B0501_4: TCheckBox;
B0501_5: TCheckBox;
C0501_2: TCheckBox;
C0501_1: TCheckBox;
C0501_4: TCheckBox;
C0501_3: TCheckBox;
B0502_3: TCheckBox;
B0502_4: TCheckBox;
B0502_5: TCheckBox;
B0502_6: TCheckBox;
B0502_7: TCheckBox;
B0502_1: TCheckBox;
B0502_2: TCheckBox;
Panel31: TPanel;
Bevel120: TBevel;
Bevel121: TBevel;
B0503_1: TRadioButton;
B0503_2: TRadioButton;
B0503_3: TRadioButton;
Panel38: TPanel;
Bevel148: TBevel;
Bevel149: TBevel;
Bevel150: TBevel;
Bevel152: TBevel;
B0701_1: TRadioButton;
B0701_2: TRadioButton;
B0701_3: TRadioButton;
B0701_4: TRadioButton;
B0701_5: TRadioButton;
Panel73: TPanel;
Bevel154: TBevel;
Bevel155: TBevel;
Bevel156: TBevel;
B0801_1: TRadioButton;
B0801_2: TRadioButton;
B0801_3: TRadioButton;
B0801_4: TRadioButton;
Panel74: TPanel;
Bevel161: TBevel;
Bevel162: TBevel;
B0802_1: TRadioButton;
B0802_2: TRadioButton;
B0802_3: TRadioButton;
B0803_1: TEdit;
B0804_1: TEdit;
B0805_1: TCheckBox;
B0808_1: TCheckBox;
B0806_1: TEdit;
B0807_1: TEdit;
B0809_1: TCheckBox;
B0809_2: TCheckBox;
B0809_3: TCheckBox;
B0809_4: TCheckBox;
B0809_5: TCheckBox;
Panel128: TPanel;
Bevel132: TBevel;
Bevel133: TBevel;
B0902_1: TRadioButton;
B0902_2: TRadioButton;
B0902_3: TRadioButton;
Panel125: TPanel;
Bevel126: TBevel;
Bevel127: TBevel;
B0901_1: TRadioButton;
B0901_2: TRadioButton;
B0901_3: TRadioButton;
Bevel259: TBevel;
Label74: TLabel;
Bevel260: TBevel;
Label75: TLabel;
Bevel261: TBevel;
Label76: TLabel;
Bevel262: TBevel;
Label77: TLabel;
Bevel263: TBevel;
Label78: TLabel;
Bevel198: TBevel;
Bevel199: TBevel;
Bevel200: TBevel;
B1001_1: TCheckBox;
B1001_2: TCheckBox;
B1001_3: TCheckBox;
Bevel207: TBevel;
Bevel208: TBevel;
Bevel209: TBevel;
Bevel210: TBevel;
Bevel211: TBevel;
Bevel192: TBevel;
Bevel194: TBevel;
Bevel195: TBevel;
Bevel196: TBevel;
Bevel197: TBevel;
C1001_1: TCheckBox;
C1001_2: TCheckBox;
C1001_3: TCheckBox;
C1001_4: TCheckBox;
C1001_5: TCheckBox;
C1001_6: TCheckBox;
C1001_7: TCheckBox;
C1001_8: TCheckBox;
C1001_9: TCheckBox;
C1001_10: TCheckBox;
C1001_11: TCheckBox;
Bevel110: TBevel;
bbt_Print: TBitBtn;
lb_Meddept: TLabel;
procedure bbt_CloseClick(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormShow(Sender: TObject);
procedure pc_ICUChange(Sender: TObject);
procedure B0201_1Click(Sender: TObject);
procedure B0201_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0201_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0203_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0206_2Click(Sender: TObject);
procedure B0206_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0207_2Click(Sender: TObject);
procedure B0207_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0201_6Click(Sender: TObject);
procedure B0208_2Click(Sender: TObject);
procedure B0208_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0210_2Click(Sender: TObject);
procedure B0210_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0210_5Click(Sender: TObject);
procedure B0211_2Click(Sender: TObject);
procedure B0211_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0211_5Click(Sender: TObject);
procedure B0212_2Click(Sender: TObject);
procedure B0212_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0212_5Click(Sender: TObject);
procedure B0213_2Click(Sender: TObject);
procedure B0213_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0213_7Click(Sender: TObject);
procedure B0301_2Click(Sender: TObject);
procedure B0301_2KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0407_1Click(Sender: TObject);
procedure B0407_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0501_1Click(Sender: TObject);
procedure B0805_1Click(Sender: TObject);
procedure B0808_1Click(Sender: TObject);
procedure B0901_1Click(Sender: TObject);
procedure B0901_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0901_5Click(Sender: TObject);
procedure C0901_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0902_3Click(Sender: TObject);
procedure B0902_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0902_5Click(Sender: TObject);
procedure C0902_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0903_3Click(Sender: TObject);
procedure B0903_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0903_5Click(Sender: TObject);
procedure C0903_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0904_3Click(Sender: TObject);
procedure B0904_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0904_5Click(Sender: TObject);
procedure C0904_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0905_3Click(Sender: TObject);
procedure B0905_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0905_5Click(Sender: TObject);
procedure C0905_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0906_3Click(Sender: TObject);
procedure B0906_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0906_5Click(Sender: TObject);
procedure C0906_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0908_3Click(Sender: TObject);
procedure B0908_3KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure C0908_5Click(Sender: TObject);
procedure C0908_5KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B1001_2Click(Sender: TObject);
procedure dtp_Item01Change(Sender: TObject);
procedure dtp_Item02Change(Sender: TObject);
procedure bbt_AddClick(Sender: TObject);
procedure B0203_1Change(Sender: TObject);
procedure B0204_1Change(Sender: TObject);
procedure bbt_DeleteClick(Sender: TObject);
procedure bbt_PrintClick(Sender: TObject);
procedure B0001_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0002_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0004_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0003_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0005_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0006_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0007_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0008_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0009_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0010_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0011_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0012_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0013_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0401_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0402_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure B0403_1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
private
procedure GetPatInfo;
procedure GetIcuSelect;
function GetIcuInfo(patno, Admdate: String): Boolean;
procedure Clear_Screen;
{ Private declarations }
public
{ Public declarations }
end;
var
MDN110FO: TMDN110FO;
implementation
uses
CComFunc, VarCom, TuxCom, MsgCom, MDCLASS1, MComFunc, HisUtil,
MDN110UO_P01;
{$R *.DFM}
procedure TMDN110FO.bbt_CloseClick(Sender: TObject);
begin
close;
end;
procedure TMDN110FO.FormDestroy(Sender: TObject);
begin
MDN110FO := nil;
end;
procedure TMDN110FO.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := Cafree;
end;
procedure TMDN110FO.FormShow(Sender: TObject);
var
temp_str :String;
begin
lb_Meddept.Caption := '';
pc_ICU.ActivePageIndex := 0;
sbox_Tab2.HorzScrollBar.Position := 0;
sbox_Tab2.VertScrollBar.Position := 0;
dtp_Actdate.Date := Date;
dtp_Item01.Date := Date;
dtp_Item02.Date := Date;
if md_PatNo <> '' then
begin
ed_PatNm.Text := md_PatNo;
if ChkInteger(ed_PatNm.Text) then
// 환자명으로 대상자찾기 (Result=True:자료선택)
ed_PatNm.Tag := 0;
// Result=True ==> 자료가 선택된 경우
if (GetPatName(ed_PatNm, pn_PatNo, ed_PatNm)) then
begin
GetPatInfo; //환자기본정보 조회하여 display
//중환자실 기록지 작성여부 조회
temp_str := CopyByte(pn_AdmDate.Caption,1,4)+CopyByte(pn_AdmDate.Caption,6,2)+ CopyByte(pn_AdmDate.Caption,9,2);
if GetIcuInfo(pn_PatNo.Caption,temp_str) then
begin
// 작성일 경우 작성된 내용 처리
GetIcuSelect;
end
else
begin
// 미작성인 경우 기본 환자 정보 처리
ed_Edit.Text := md_UserNm;
ed_EditID.Text := md_UserId;
B0002_1.Text := md_DiagName;
B0003_1.Text := md_Address;
B0006_1.Text := md_TelNo1;
B0007_1.Text := md_TelNo2;
B0008_1.Text := md_TelNo3;
end;
end;
ed_PatNm.Tag := 1;
end;
end;
procedure TMDN110FO.GetPatInfo;
var
RowNo : Integer;
PatName,PatNo,Cond : String;
begin
//환자기본정보 조회하여 Display
Screen.Cursor := crHourglass;
try
//Create Class
mdPatinf := HmdPatinf.Create;
//Assign Input Parameter(s).
Cond := '4'; //조건:'3'=재원환자번호로..
PatNo := pn_PatNo.Caption; //환자번호
PatName := ''; //환자명
//공통Class Function Call (환자 List SELECT)
RowNo := mdPatinf.ListPatbat(Cond,PatNo,PatName);
//오류시 Message처리, Exit
if (RowNo = -1) then
begin
mdPatinf.Free;
ShowErrMsg(stb_Message);
Exit;
end;
//자료건수=0인경우, Exit
if (RowNo = 0) then
begin
mdPatinf.Free;
Exit;
end;
//Select된 Data를 Grid에 Display
ed_PatNm.Text := mdPatinf.sPatName[0]; //환자명
pn_Sex.Caption := mdPatinf.sSex[0];
pn_Age.Caption := Trim(Calc_Age(Date,mdPatinf.sBirtDate[0]));
pn_AdmDate.Caption := CopyByte(mdPatinf.sAdmDate[0],1,4) + '-' +
CopyByte(mdPatinf.sAdmDate[0],5,2) + '-' +
CopyByte(mdPatinf.sAdmDate[0],7,2);
lb_MedDept.Caption := mdPatinf.sMedDept[0];
mdPatinf.Free;
finally
Screen.Cursor := crDefault;
end;
end;
function TMDN110FO.GetIcuInfo(patno, Admdate : String): Boolean;
var
sFlag1, sType1, sType2, sType3, sType4 : String;
RowNo : Integer;
begin
GetIcuInfo := True;
sFlag1 := 'M';
sType1 := 'ICU';
sType2 := pn_PatNo.Caption;
sType3 := DelChar(pn_AdmDate.Caption,'-');
sType4 := '';
Screen.Cursor := crHourglass;
try
mdIcuinf := HmdIcuinf.Create;
RowNo := mdIcuinf.getIcuinflist(sFlag1,sType1,sType2,sType3,sType4,G_LOCATE);
// SYSTEM ERROR
if RowNo = -1 then
begin
mdIcuinf.Free;
ShowErrMsg(stb_Message);
Exit;
end;
// 조회건수 없음
if RowNo = 0 then
begin
mdIcuinf.Free;
GetIcuInfo := False;
Exit;
end;
with mdIcuinf do
begin
dtp_Actdate.date := strtodate(CopyByte(sActdate[0],1,4) + '-' +
CopyByte(sActdate[0],5,2) + '-' +
CopyByte(sActdate[0],7,2));
ed_Edit.Text := sEditnm[0];
ed_EditID.Text := sEditid[0];
end;
mdIcuinf.Free;
GetIcuInfo := True;
finally
Screen.Cursor := crDefault;
end;
end;
procedure TMDN110FO.GetIcuSelect;
var
RowNo,i : integer;
sName : String;
sFlag1, sType1, sType2, sType3, sType4, sType5 : String;
begin
Screen.Cursor := crHourglass;
sFlag1 := 'M';
sType1 := 'ICU';
sType2 := pn_Patno.Caption;
sType3 := '';
sType4 := DelChar(pn_AdmDate.Caption,'-');
sType5 := 'M';
try
mdIcuinf := HmdIcuinf.Create;
RowNo := mdIcuinf.getIcuinfwt(sFlag1, sType1, sType2, sType3, sType4, sType5);