forked from WEGA-project/wega-hpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit1.pas
5433 lines (4227 loc) · 160 KB
/
unit1.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 Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, SpinEx, Forms, Controls, Graphics,
Dialogs, StdCtrls, Spin, ComCtrls, strutils, LCLIntf, ExtCtrls, Menus,
EditBtn , Types;
const
StdWordDelims = ['='] + Brackets;
type
{ TKf }
TKf = class(TForm)
bdst1: TButton;
bload: TButton;
bloadpf: TButton;
bdst: TButton;
bKorrect: TButton;
bsend: TButton;
bsend1: TButton;
bsend2: TButton;
bsend3: TButton;
Button1: TButton;
bMacro: TButton;
bMicro: TButton;
bRasch: TButton;
bIzg: TButton;
bfile: TButton;
bsrc: TButton;
Label109: TLabel;
Label113: TLabel;
Label115: TLabel;
mkorr: TMemo;
nmix: TSpinEdit;
tojrnl: TButton;
Button11: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Button8: TButton;
btch: TButton;
Button9: TButton;
Ca_0: TFloatSpinEdit;
Ca_1: TFloatSpinEdit;
Ca_k: TFloatSpinEdit;
Ca_2: TFloatSpinEdit;
cgCaCl2: TFloatSpinEdit;
CheckBox8: TCheckBox;
Cl_0: TFloatSpinEdit;
Cl_1: TFloatSpinEdit;
Cl_k: TFloatSpinEdit;
Cl_2: TFloatSpinEdit;
cnCaCl2: TLabel;
dateAdd: TButton;
dateChange: TButton;
CheckBox1: TCheckBox;
cbCmplx: TCheckBox;
cbCu: TCheckBox;
cbZn: TCheckBox;
cbB: TCheckBox;
cbSi: TCheckBox;
cbCo: TCheckBox;
cbMo: TCheckBox;
CheckBox2: TCheckBox;
CheckBox3: TCheckBox;
CheckBox4: TCheckBox;
CheckBox5: TCheckBox;
CheckBox6: TCheckBox;
CheckBox7: TCheckBox;
cbMn: TCheckBox;
cbFe: TCheckBox;
chkComplex: TCheckBox;
de1: TDateEdit;
EC: TFloatSpinEdit;
EC_0: TFloatSpinEdit;
EC_1: TFloatSpinEdit;
EC_k: TFloatSpinEdit;
EC_2: TFloatSpinEdit;
eComment: TEdit;
addrMixer: TEdit;
cgB: TFloatSpinEdit;
cgCaNO3: TFloatSpinEdit;
cgCmplx: TFloatSpinEdit;
cgCo: TFloatSpinEdit;
cgCu: TFloatSpinEdit;
cgFe: TFloatSpinEdit;
cgK2SO4: TFloatSpinEdit;
cgKH2PO4: TFloatSpinEdit;
cgKNO3: TFloatSpinEdit;
cgMgNO3: TFloatSpinEdit;
cgMgSO4: TFloatSpinEdit;
cgMn: TFloatSpinEdit;
cgMo: TFloatSpinEdit;
cgNH4NO3: TFloatSpinEdit;
cgSi: TFloatSpinEdit;
cgZn: TFloatSpinEdit;
Cl: TFloatSpinEdit;
N_0: TFloatSpinEdit;
Image2: TImage;
BITCOIN: TLabeledEdit;
Image3: TImage;
K_0: TFloatSpinEdit;
K_1: TFloatSpinEdit;
K_k: TFloatSpinEdit;
K_2: TFloatSpinEdit;
Label100: TLabel;
Label101: TLabel;
Label102: TLabel;
Label103: TLabel;
Label104: TLabel;
Label105: TLabel;
Label106: TLabel;
Label107: TLabel;
Label108: TLabel;
Label110: TLabel;
Label111: TLabel;
Label112: TLabel;
Label114: TLabel;
Label97: TLabel;
Label98: TLabel;
Label99: TLabel;
lMicro: TEdit;
Memo1: TMemo;
Mg_0: TFloatSpinEdit;
Mg_1: TFloatSpinEdit;
Mg_k: TFloatSpinEdit;
Mg_2: TFloatSpinEdit;
N_1: TFloatSpinEdit;
N_k: TFloatSpinEdit;
N_2: TFloatSpinEdit;
NH4_0: TFloatSpinEdit;
NH4_1: TFloatSpinEdit;
NH4_k: TFloatSpinEdit;
NH4_2: TFloatSpinEdit;
nnNH4NO4: TLabel;
nnNH4NO5: TLabel;
nnNH4NO6: TLabel;
nnNH4NO7: TLabel;
NO3_0: TFloatSpinEdit;
NO3_1: TFloatSpinEdit;
NO3_k: TFloatSpinEdit;
NO3_2: TFloatSpinEdit;
P_0: TFloatSpinEdit;
P_1: TFloatSpinEdit;
P_k: TFloatSpinEdit;
P_2: TFloatSpinEdit;
S_0: TFloatSpinEdit;
S_1: TFloatSpinEdit;
S_k: TFloatSpinEdit;
S_2: TFloatSpinEdit;
TabSheet8: TTabSheet;
TabSheet9: TTabSheet;
Tmicro: TFloatSpinEdit;
kMicro: TEdit;
g2gCaCl2: TEdit;
gCaCl2: TFloatSpinEdit;
ggCaCl2: TFloatSpinEdit;
glCaCl2: TFloatSpinEdit;
gmlCaCl2: TFloatSpinEdit;
Image1: TImage;
cnCaNO3: TLabel;
cnK2SO4: TLabel;
cnKH2PO4: TLabel;
cnKNO3: TLabel;
cnMgNO3: TLabel;
cnMgSO4: TLabel;
cnNH4NO3: TLabel;
cnB: TLabel;
cnCmplx: TLabel;
cnCo: TLabel;
cnCu: TLabel;
cnFe: TLabel;
cnMn: TLabel;
cnMo: TLabel;
cnSi: TLabel;
cnZn: TLabel;
CaCl2_Ca: TFloatSpinEdit;
CaCl2_Cl: TFloatSpinEdit;
k2nCaCl2: TLabel;
knCaCl2: TLabel;
Label91: TLabel;
Label92: TLabel;
Label93: TLabel;
Label94: TLabel;
Label95: TLabel;
Label96: TLabel;
pka: TLabel;
lprice: TLabel;
mlCaCl2: TFloatSpinEdit;
mCaCl2: TEdit;
nCaCl2: TLabel;
rCl: TLabel;
sSoil: TFloatSpinEdit;
Label87: TLabel;
Label88: TLabel;
Label89: TLabel;
Label90: TLabel;
sumA: TLabel;
sumB: TLabel;
TabSheet7: TTabSheet;
tAml: TFloatSpinEdit;
Label1: TLabel;
Label70: TLabel;
Label71: TLabel;
Label72: TLabel;
g2gFe: TEdit;
g2gMn: TEdit;
g2gB: TEdit;
g2gZn: TEdit;
g2gCu: TEdit;
g2gMo: TEdit;
g2gCo: TEdit;
g2gSi: TEdit;
g2gCaNO3: TEdit;
Label73: TLabel;
l2Cmplx: TLabel;
Label74: TLabel;
Label75: TLabel;
Label76: TLabel;
Label77: TLabel;
Label78: TLabel;
Label79: TLabel;
Label80: TLabel;
Label81: TLabel;
Label82: TLabel;
Label83: TLabel;
Label84: TLabel;
Label85: TLabel;
Label86: TLabel;
rZn: TLabel;
rCo: TLabel;
rB: TLabel;
rMo: TLabel;
rN: TLabel;
lb1: TListBox;
lVolA: TLabel;
lVolB: TLabel;
mCmplx: TEdit;
m1: TMemo;
mFe: TEdit;
mMn: TEdit;
mB: TEdit;
mZn: TEdit;
mCu: TEdit;
mMo: TEdit;
mCo: TEdit;
mSi: TEdit;
mCaNO3: TEdit;
eFileName: TEdit;
ggCmplx: TFloatSpinEdit;
glB: TFloatSpinEdit;
glCmplx: TFloatSpinEdit;
gmlB: TFloatSpinEdit;
gmlCmplx: TFloatSpinEdit;
k2nCaNO3: TLabel;
k2nK2SO4: TLabel;
k2nKH2PO4: TLabel;
k2nKNO3: TLabel;
k2nMgNO3: TLabel;
k2nMgSO4: TLabel;
k2nNH4NO3: TLabel;
Label30: TLabel;
Label59: TLabel;
l2B: TLabel;
lCmplx: TLabel;
l2Co: TLabel;
l2Cu: TLabel;
l2Fe: TLabel;
l2Mn: TLabel;
l2Mo: TLabel;
l2Si: TLabel;
l2Zn: TLabel;
g2gCmplx: TEdit;
g2gK2SO4: TEdit;
g2gKH2PO4: TEdit;
mKNO3: TEdit;
g2gKNO3: TEdit;
g2gMgNO3: TEdit;
g2gMgSO4: TEdit;
mNH4NO3: TEdit;
mMgNO3: TEdit;
mMgSO4: TEdit;
mKH2PO4: TEdit;
mK2SO4: TEdit;
mlB: TFloatSpinEdit;
ggB: TFloatSpinEdit;
glCo: TFloatSpinEdit;
gmlCo: TFloatSpinEdit;
mlCo: TFloatSpinEdit;
ggCo: TFloatSpinEdit;
glCu: TFloatSpinEdit;
gmlCu: TFloatSpinEdit;
mlCu: TFloatSpinEdit;
ggCu: TFloatSpinEdit;
glFe: TFloatSpinEdit;
gmlFe: TFloatSpinEdit;
mlFe: TFloatSpinEdit;
ggFe: TFloatSpinEdit;
glMn: TFloatSpinEdit;
gmlMn: TFloatSpinEdit;
mlCmplx: TFloatSpinEdit;
mlMn: TFloatSpinEdit;
ggMn: TFloatSpinEdit;
glMo: TFloatSpinEdit;
gmlMo: TFloatSpinEdit;
mlMo: TFloatSpinEdit;
ggMo: TFloatSpinEdit;
glSi: TFloatSpinEdit;
gmlSi: TFloatSpinEdit;
mlSi: TFloatSpinEdit;
ggSi: TFloatSpinEdit;
glZn: TFloatSpinEdit;
gmlZn: TFloatSpinEdit;
mlZn: TFloatSpinEdit;
ggZn: TFloatSpinEdit;
glCaNO3: TFloatSpinEdit;
gmlCaNO3: TFloatSpinEdit;
mlCaNO3: TFloatSpinEdit;
ggCaNO3: TFloatSpinEdit;
gCmplx: TFloatSpinEdit;
gB: TFloatSpinEdit;
gCo: TFloatSpinEdit;
gCu: TFloatSpinEdit;
gFe: TFloatSpinEdit;
glK2SO4: TFloatSpinEdit;
gmlK2SO4: TFloatSpinEdit;
mlK2SO4: TFloatSpinEdit;
ggK2SO4: TFloatSpinEdit;
glKH2PO4: TFloatSpinEdit;
gmlKH2PO4: TFloatSpinEdit;
mlKH2PO4: TFloatSpinEdit;
ggKH2PO4: TFloatSpinEdit;
glKNO3: TFloatSpinEdit;
gmlKNO3: TFloatSpinEdit;
mlKNO3: TFloatSpinEdit;
ggKNO3: TFloatSpinEdit;
glMgNO3: TFloatSpinEdit;
gmlMgNO3: TFloatSpinEdit;
mlMgNO3: TFloatSpinEdit;
ggMgNO3: TFloatSpinEdit;
glMgSO4: TFloatSpinEdit;
gmlMgSO4: TFloatSpinEdit;
mlMgSO4: TFloatSpinEdit;
ggMgSO4: TFloatSpinEdit;
gMn: TFloatSpinEdit;
gMo: TFloatSpinEdit;
glNH4NO3: TFloatSpinEdit;
gmlNH4NO3: TFloatSpinEdit;
mlNH4NO3: TFloatSpinEdit;
ggNH4NO3: TFloatSpinEdit;
gSi: TFloatSpinEdit;
gZn: TFloatSpinEdit;
Fe: TFloatSpinEdit;
B: TFloatSpinEdit;
Cu: TFloatSpinEdit;
Co: TFloatSpinEdit;
dFe: TFloatSpinEdit;
dMn: TFloatSpinEdit;
dB: TFloatSpinEdit;
dZn: TFloatSpinEdit;
dCu: TFloatSpinEdit;
dMo: TFloatSpinEdit;
dCo: TFloatSpinEdit;
dSi: TFloatSpinEdit;
Label68: TLabel;
Label69: TLabel;
lSi: TLabel;
lCo: TLabel;
lMo: TLabel;
lCu: TLabel;
lZn: TLabel;
lB: TLabel;
lMn: TLabel;
lFe: TLabel;
knCaNO3: TLabel;
knK2SO4: TLabel;
knKH2PO4: TLabel;
knKNO3: TLabel;
knMgNO3: TLabel;
knMgSO4: TLabel;
knNH4NO3: TLabel;
g2gNH4NO3: TEdit;
od1: TOpenDialog;
PageControl2: TPageControl;
pr2: TEdit;
rFe: TLabel;
rNO3: TLabel;
rNH4: TLabel;
rP: TLabel;
rK: TLabel;
rCa: TLabel;
rMg: TLabel;
rMn: TLabel;
rS: TLabel;
rCu: TLabel;
rSi: TLabel;
sd1: TSaveDialog;
Si: TFloatSpinEdit;
Mo: TFloatSpinEdit;
StaticText1: TStaticText;
StaticText2: TStaticText;
StaticText3: TStaticText;
StaticText4: TStaticText;
TabSheet3: TTabSheet;
TabSheet4: TTabSheet;
TabSheet5: TTabSheet;
TabSheet6: TTabSheet;
tBml: TFloatSpinEdit;
ToggleBox1: TToggleBox;
ToggleBox2: TToggleBox;
ToggleBox3: TToggleBox;
V_1: TFloatSpinEdit;
V_2: TFloatSpinEdit;
V_k: TFloatSpinEdit;
Zn: TFloatSpinEdit;
Mn: TFloatSpinEdit;
Label31: TLabel;
Label32: TLabel;
Label33: TLabel;
Label34: TLabel;
Label35: TLabel;
Label56: TLabel;
Label57: TLabel;
Label58: TLabel;
Label60: TLabel;
Label61: TLabel;
Label62: TLabel;
Label63: TLabel;
Label64: TLabel;
Label65: TLabel;
Label66: TLabel;
Label67: TLabel;
PageControl1: TPageControl;
save: TButton;
chK2SO4: TCheckBox;
chMgNO3: TCheckBox;
gMgNO3: TFloatSpinEdit;
pkf: TLabel;
MgNO3_Mg: TFloatSpinEdit;
MgNO3_NO3: TFloatSpinEdit;
Label54: TLabel;
Label55: TLabel;
nMgNO3: TLabel;
parse: TButton;
profile: TEdit;
gCaNO3: TFloatSpinEdit;
gK2SO4: TFloatSpinEdit;
gKH2PO4: TFloatSpinEdit;
gKNO3: TFloatSpinEdit;
Label22: TLabel;
Label23: TLabel;
Label24: TLabel;
Label25: TLabel;
Label26: TLabel;
Label27: TLabel;
Label29: TLabel;
nnNH4NO3: TLabel;
Label53: TLabel;
gMgSO4: TFloatSpinEdit;
gNH4NO3: TFloatSpinEdit;
nKNO3: TLabel;
nCaNO3: TLabel;
nMgSO4: TLabel;
nKH2PO4: TLabel;
nK2SO4: TLabel;
nNH4NO3: TLabel;
Label36: TLabel;
Label37: TLabel;
Label38: TLabel;
Label39: TLabel;
Label40: TLabel;
Label41: TLabel;
Label42: TLabel;
Label43: TLabel;
Label44: TLabel;
Label45: TLabel;
Label46: TLabel;
Label47: TLabel;
Label48: TLabel;
Label49: TLabel;
Label50: TLabel;
Label51: TLabel;
Label52: TLabel;
CaNO3_Ca: TFloatSpinEdit;
NK: TFloatSpinEdit;
KNO3_K: TFloatSpinEdit;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
V: TFloatSpinEdit;
NMg: TFloatSpinEdit;
MgSO4_Mg: TFloatSpinEdit;
K2SO4_K: TFloatSpinEdit;
KH2PO4_K: TFloatSpinEdit;
NH4NO3_NH4: TFloatSpinEdit;
CaNO3_NO3: TFloatSpinEdit;
KNO3_NO3: TFloatSpinEdit;
MgSO4_S: TFloatSpinEdit;
K2SO4_S: TFloatSpinEdit;
PN: TFloatSpinEdit;
PK: TFloatSpinEdit;
PMg: TFloatSpinEdit;
KN: TFloatSpinEdit;
KMg: TFloatSpinEdit;
CaN: TFloatSpinEdit;
CaK: TFloatSpinEdit;
CaMg: TFloatSpinEdit;
MgN: TFloatSpinEdit;
MgK: TFloatSpinEdit;
KH2PO4_P: TFloatSpinEdit;
NH4NO3_NO3: TFloatSpinEdit;
CaNO3_NH4: TFloatSpinEdit;
SN: TFloatSpinEdit;
SK: TFloatSpinEdit;
SMg: TFloatSpinEdit;
NP: TFloatSpinEdit;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Label13: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
Label17: TLabel;
Label18: TLabel;
Label19: TLabel;
Label20: TLabel;
Label21: TLabel;
N: TFloatSpinEdit;
NH4NO3: TFloatSpinEdit;
NCa: TFloatSpinEdit;
CaS: TFloatSpinEdit;
MgP: TFloatSpinEdit;
MgCa: TFloatSpinEdit;
MgS: TFloatSpinEdit;
SP: TFloatSpinEdit;
SCa: TFloatSpinEdit;
NS: TFloatSpinEdit;
PCa: TFloatSpinEdit;
PS: TFloatSpinEdit;
KP: TFloatSpinEdit;
KCa: TFloatSpinEdit;
KS: TFloatSpinEdit;
CaP: TFloatSpinEdit;
P: TFloatSpinEdit;
K: TFloatSpinEdit;
Ca: TFloatSpinEdit;
Mg: TFloatSpinEdit;
S: TFloatSpinEdit;
NO3: TFloatSpinEdit;
NH4: TFloatSpinEdit;
version: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
procedure BChange(Sender: TObject);
procedure bdst1Click(Sender: TObject);
procedure bdstClick(Sender: TObject);
procedure bfileClick(Sender: TObject);
procedure bIzgClick(Sender: TObject);
procedure bKorrectClick(Sender: TObject);
procedure bloadClick(Sender: TObject);
procedure bloadpfClick(Sender: TObject);
procedure bMacroClick(Sender: TObject);
procedure bMicroClick(Sender: TObject);
procedure bRaschClick(Sender: TObject);
procedure bsend1Click(Sender: TObject);
procedure bsend2Click(Sender: TObject);
procedure bsend3Click(Sender: TObject);
procedure bsendClick(Sender: TObject);
procedure bsrcClick(Sender: TObject);
procedure btchClick(Sender: TObject);
procedure Button10Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure Button7Click(Sender: TObject);
procedure Button8Click(Sender: TObject);
procedure Button9Click(Sender: TObject);
procedure CaChange(Sender: TObject);
procedure C(Sender: TObject);
procedure CaCl2_CaChange(Sender: TObject);
procedure CaCl2_ClChange(Sender: TObject);
procedure CaKChange(Sender: TObject);
procedure CaKClick(Sender: TObject);
procedure CaMgChange(Sender: TObject);
procedure CaMgClick(Sender: TObject);
procedure CaNChange(Sender: TObject);
procedure CaNClick(Sender: TObject);
procedure CaNO3_CaChange(Sender: TObject);
procedure CaNO3_NH4Change(Sender: TObject);
procedure CaNO3_NH4EditingDone(Sender: TObject);
procedure CaNO3_NO3Change(Sender: TObject);
procedure CaNO3_NO3KeyDown(Sender: TObject);
procedure CaPChange(Sender: TObject);
procedure CaPClick(Sender: TObject);
procedure CaSChange(Sender: TObject);
procedure CaSClick(Sender: TObject);
procedure Ca_2Change(Sender: TObject);
procedure Ca_kChange(Sender: TObject);
procedure chK2SO4Change(Sender: TObject);
procedure chkComplexChange(Sender: TObject);
procedure chkComplexClick(Sender: TObject);
procedure chMgNO3Change(Sender: TObject);
procedure ClChange(Sender: TObject);
procedure Cl_2Change(Sender: TObject);
procedure Cl_kChange(Sender: TObject);
procedure CoChange(Sender: TObject);
procedure CuChange(Sender: TObject);
procedure dateAddClick(Sender: TObject);
procedure dateChangeClick(Sender: TObject);
procedure dBChange(Sender: TObject);
procedure dCoChange(Sender: TObject);
procedure dCuChange(Sender: TObject);
procedure dFeChange(Sender: TObject);
procedure dMnChange(Sender: TObject);
procedure dMoChange(Sender: TObject);
procedure dSiChange(Sender: TObject);
procedure dZnChange(Sender: TObject);
procedure ECChange(Sender: TObject);
procedure ECClick(Sender: TObject);
procedure e1Change(Sender: TObject);
procedure EC_0Change(Sender: TObject);
procedure EC_2Change(Sender: TObject);
procedure eFileNameChange(Sender: TObject);
procedure korr(Sender: TObject);
procedure FeChange(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure FormChangeBounds(Sender: TObject);
procedure FormClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure g2gCaNO3Change(Sender: TObject);
procedure gBChange(Sender: TObject);
procedure gCaCl2Change(Sender: TObject);
procedure gCaNO3Change(Sender: TObject);
procedure gCmplxChange(Sender: TObject);
procedure gCoChange(Sender: TObject);
procedure gCuChange(Sender: TObject);
procedure gFeChange(Sender: TObject);
procedure ggMgNO3Change(Sender: TObject);
procedure gK2SO4Change(Sender: TObject);
procedure gKH2PO4Change(Sender: TObject);
procedure gKNO3Change(Sender: TObject);
procedure glBChange(Sender: TObject);
procedure glCaCl2Change(Sender: TObject);
procedure glCaNO3Change(Sender: TObject);
procedure glCoChange(Sender: TObject);
procedure glCuChange(Sender: TObject);
procedure glFeChange(Sender: TObject);
procedure glK2SO4Change(Sender: TObject);
procedure glKH2PO4Change(Sender: TObject);
procedure glKNO3Change(Sender: TObject);
procedure glMgNO3Change(Sender: TObject);
procedure glMgSO4Change(Sender: TObject);
procedure glMnChange(Sender: TObject);
procedure glMoChange(Sender: TObject);
procedure glNH4NO3Change(Sender: TObject);
procedure glSiChange(Sender: TObject);
procedure glZnChange(Sender: TObject);
procedure gMgNO3Change(Sender: TObject);
procedure gMgSO4Change(Sender: TObject);
procedure CalcConcChange(Sender: TObject);
procedure gmlMgNO3Change(Sender: TObject);
procedure gMnChange(Sender: TObject);
procedure gMoChange(Sender: TObject);
procedure gNH4NO3Change(Sender: TObject);
procedure gSiChange(Sender: TObject);
procedure gZnChange(Sender: TObject);
procedure Image1Click(Sender: TObject);
procedure Image3Click(Sender: TObject);
procedure k2nCaNO3Click(Sender: TObject);
procedure K2SO4_KChange(Sender: TObject);
procedure K2SO4_KClick(Sender: TObject);
procedure K2SO4_SChange(Sender: TObject);
procedure K2SO4_SClick(Sender: TObject);
procedure KCaChange(Sender: TObject);
procedure KCaClick(Sender: TObject);
procedure KChange(Sender: TObject);
procedure KClick(Sender: TObject);
procedure KH2PO4_KChange(Sender: TObject);
procedure KH2PO4_KClick(Sender: TObject);
procedure KH2PO4_PChange(Sender: TObject);
procedure KH2PO4_PClick(Sender: TObject);
procedure KMgChange(Sender: TObject);
procedure KMgClick(Sender: TObject);
procedure KNChange(Sender: TObject);
procedure KNClick(Sender: TObject);
procedure KNO3_KChange(Sender: TObject);
procedure KNO3_KClick(Sender: TObject);
procedure KNO3_NO3Change(Sender: TObject);
procedure KNO3_NO3Click(Sender: TObject);
procedure KPChange(Sender: TObject);
procedure KPClick(Sender: TObject);
procedure KSChange(Sender: TObject);
procedure KSClick(Sender: TObject);
procedure K_2Change(Sender: TObject);
procedure K_kChange(Sender: TObject);
procedure Label95Click(Sender: TObject);
procedure Label97Click(Sender: TObject);
procedure lb1Click(Sender: TObject);
procedure lpriceClick(Sender: TObject);
procedure mCaNO3Change(Sender: TObject);
procedure Memo1Change(Sender: TObject);
procedure Mg_1Change(Sender: TObject);
procedure Mg_2Change(Sender: TObject);
procedure Mg_kChange(Sender: TObject);
procedure mlMgNO3Change(Sender: TObject);
procedure Change(Sender: TObject);
procedure NChange(Sender: TObject);
procedure NH4_2Change(Sender: TObject);
procedure NH4_kChange(Sender: TObject);
procedure NO3_1Change(Sender: TObject);
procedure NO3_2Change(Sender: TObject);
procedure NO3_kChange(Sender: TObject);
procedure N_1Change(Sender: TObject);
procedure N_2Change(Sender: TObject);
procedure N_kChange(Sender: TObject);
procedure P_2Change(Sender: TObject);
procedure P_kChange(Sender: TObject);
procedure S_1Change(Sender: TObject);
procedure TabSheet5ContextPopup(Sender: TObject; MousePos: TPoint;
var Handled: Boolean);
procedure TabSheet7ContextPopup(Sender: TObject; MousePos: TPoint;
var Handled: Boolean);
procedure TabSheet9Show(Sender: TObject);
procedure tAmlChange(Sender: TObject);
procedure tBmlChange(Sender: TObject);
procedure TmicroChange(Sender: TObject);
procedure ToggleBox1Change(Sender: TObject);
procedure ToggleBox2Change(Sender: TObject);
procedure ToggleBox3Change(Sender: TObject);
procedure tojrnlClick(Sender: TObject);
procedure versionClick(Sender: TObject);
procedure MnChange(Sender: TObject);
procedure MoChange(Sender: TObject);
procedure pkfClick(Sender: TObject);
procedure Label54Click(Sender: TObject);
procedure MgCaChange(Sender: TObject);
procedure MgKChange(Sender: TObject);
procedure MgNChange(Sender: TObject);
procedure MgNO3_MgChange(Sender: TObject);
procedure MgNO3_NO3Change(Sender: TObject);
procedure MgPChange(Sender: TObject);
procedure MgSChange(Sender: TObject);
procedure MgSO4_MgChange(Sender: TObject);
procedure MgSO4_SChange(Sender: TObject);
procedure MgSO4_SClick(Sender: TObject);
procedure NCaChange(Sender: TObject);
procedure NH4NO3_NH4Change(Sender: TObject);
procedure NH4NO3_NO3Change(Sender: TObject);
procedure nKH2PO4Click(Sender: TObject);
procedure nK2SO4Click(Sender: TObject);
procedure MgCaClick(Sender: TObject);
procedure MgChange(Sender: TObject);
procedure MgClick(Sender: TObject);
procedure MgKClick(Sender: TObject);
procedure MgNClick(Sender: TObject);
procedure MgPClick(Sender: TObject);
procedure MgSClick(Sender: TObject);
procedure NCaClick(Sender: TObject);
procedure Corrector(Sender: TObject);
procedure NClick(Sender: TObject);
procedure NEditingDone(Sender: TObject);
procedure NH4Change(Sender: TObject);
procedure NH4Click(Sender: TObject);
procedure NH4EditingDone(Sender: TObject);
procedure NH4Exit(Sender: TObject);
procedure NH4NO3Change(Sender: TObject);
procedure NH4NO3Click(Sender: TObject);
procedure NH4NO3_NH4Click(Sender: TObject);
procedure NH4NO3_NO3Click(Sender: TObject);
procedure NKChange(Sender: TObject);
procedure NKClick(Sender: TObject);
procedure NMgChange(Sender: TObject);
procedure NMgClick(Sender: TObject);
procedure NO3Change(Sender: TObject);
procedure NO3Click(Sender: TObject);
procedure NO3Enter(Sender: TObject);
procedure NO3Exit(Sender: TObject);
procedure NPChange(Sender: TObject);
procedure NSChange(Sender: TObject);
procedure NSClick(Sender: TObject);
procedure parseClick(Sender: TObject);
procedure PCaChange(Sender: TObject);
procedure PCaClick(Sender: TObject);
procedure PChange(Sender: TObject);
procedure PClick(Sender: TObject);
procedure PKChange(Sender: TObject);
procedure PMgChange(Sender: TObject);
procedure PNChange(Sender: TObject);
procedure profileChange(Sender: TObject);
procedure PSChange(Sender: TObject);
procedure saveClick(Sender: TObject);
procedure SCaChange(Sender: TObject);
procedure SChange(Sender: TObject);
procedure SiChange(Sender: TObject);
procedure SKChange(Sender: TObject);
procedure SMgChange(Sender: TObject);
procedure SNChange(Sender: TObject);
procedure SPChange(Sender: TObject);
procedure TabSheet2Show(Sender: TObject);
procedure TabSheet3Show(Sender: TObject);
procedure VChange(Sender: TObject);
procedure V_1Change(Sender: TObject);
procedure V_2Change(Sender: TObject);
procedure ZnChange(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Kf: TKf;
vN,vNO3,vNH4,vP,vK,vCa,vMg,vS,vCl,vEC,V,vSUM:Double;
vFe,vMn,vB,vZn,vCu,vMo,vCo,vSi:Double;
molN,molP,molK,molCa,molMg,molS,molCl:Double;
r,rN,rK,rCa,rMg,rNH4:Double;
vKMg,vKCa,vKN,vNH4NO3:Double;
sMgSO4,sKH2PO4,sCaNO3,sNH4NO3,sKNO3,sK2SO4,sMgNO3,sCaCl2:Double;
Mg_MgSO4,S_MgSO4,P_KH2PO4,K_KH2PO4,Ca_CaNO3,NO3_CaNO3,NH4_CaNO3,NH4_NH4NO3,NO3_NH4NO3,K_KNO3,NO3_KNO3,S_K2SO4,K_K2SO4,Cl_CaCl2,Ca_CaCl2:Double;
vCaCl2_Ca,vCaCl2_Cl,vMgSO4_Mg,vMgSO4_S,vKH2PO4_P,vKH2PO4_K,vCaNO3_Ca,vCaNO3_NO3,vCaNO3_NH4,vNH4NO3_NH4,vNH4NO3_NO3,vKNO3_K,vKNO3_NO3,vK2SO4_S,vK2SO4_K,vMgNO3_Mg,vMgNO3_NO3:Double;
xNH4, xNO3, xS: Double;
vEC0,vKN0,vCaN0,vKP0,vKCa0,vKMg0,vN0:Double;
ps,s:string;
MyFormatSettings: TFormatSettings;
gmSUM,agFe,agMn,agB,agZn,agCu,agMo,agCo,agSi:double;
vdFe, vdMn, vdB, vdZn, vdCu, vdMo, vdCo, vdSi: double;
tfOut: TextFile;
tfIn: TextFile;
str: string;
C_FNAME,N_FNAME: string;
DStr: TStringList;
i: integer;
StrDate,StrCmnt:string;
implementation
{$R *.lfm}
{ TKf }
procedure getVar;
begin
molN:=14.0067;
molP:=30.973762;
molK:=39.0983;
molCa:=40.078;
molMg:=24.305;
molS:=32.065;
molCl:=35.453;
vNO3:=Kf.NO3.value;
vNH4:=Kf.NH4.value;
vP:=Kf.P.value;
vK:=Kf.K.value;
vCa:=Kf.Ca.value;
vMg:=Kf.Mg.value;
vS:=Kf.S.value;
vCl:=Kf.Cl.value;
vKMg:=Kf.KMg.value;
vKCa:=Kf.KCa.value;
vKN:=Kf.KN.value;
vNH4NO3:= Kf.NH4NO3.value;
vFe:=Kf.Fe.Value;
vMn:=Kf.Mn.Value;
vB:=Kf.B.Value;
vZn:=Kf.Zn.Value;
vCu:=Kf.Cu.Value;
vMo:=Kf.Mo.Value;
vCo:=Kf.Co.Value;
vSi:=Kf.Si.Value;
end;