Révision 9 UnitDeclaration.pas
UnitDeclaration.pas | ||
---|---|---|
8 | 8 |
|
9 | 9 |
const |
10 | 10 |
CALORIE = 4.184; // Conversion J -> cal |
11 |
NDF_ADF = 3.0;
|
|
12 |
NDF_CB = 3.5;
|
|
11 |
NDF_CB = 3.0;
|
|
12 |
NDF_ADF = 2.5;
|
|
13 | 13 |
CoefMAT = 14.73 * 100 * CALORIE / 1000; |
14 | 14 |
CoefMG = 52.4 * 100 * CALORIE / 1000; |
15 | 15 |
CoefMM = -44.6 * 100 * CALORIE / 1000; |
... | ... | |
707 | 707 |
RapMS := ClientDataSetInraAfzMS.Value; |
708 | 708 |
ClientDataSetIngredientsMS.Value := OutputProximal(RapMS, 1, 1, FormOptions.Proximal); |
709 | 709 |
ClientDataSetIngredientsMS2.Value := OutputProximal(1, RapMS, FormOptions.Expression, FormOptions.Proximal); |
710 |
if ClientDataSetInraAfzMM.IsNull |
|
710 |
ClientDataSetIngredientsMM.Value := OutputProximal(ClientDataSetInraAfzMM.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
711 |
RapMAT := ClientDataSetInraAfzMAT.Value; |
|
712 |
ClientDataSetIngredientsMAT.Value := OutputProximal(RapMAT, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
713 |
ClientDataSetIngredientsMG.Value := OutputProximal(ClientDataSetInraAfzMG.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
714 |
ClientDataSetIngredientsCB.Value := OutputProximal(ClientDataSetInraAfzCB.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
715 |
ClientDataSetIngredientsNDF.Value := OutputProximal(ClientDataSetInraAfzNDF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
716 |
ClientDataSetIngredientsADF.Value := OutputProximal(ClientDataSetInraAfzADF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
717 |
ClientDataSetIngredientsADL.Value := OutputProximal(ClientDataSetInraAfzADL.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
718 |
ClientDataSetIngredientsAmidon.Value := OutputProximal(ClientDataSetInraAfzAmidon.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
719 |
ClientDataSetIngredientsSucres.Value := OutputProximal(ClientDataSetInraAfzSucres.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
720 |
// Energie |
|
721 |
ClientDataSetIngredientsEB.Value := OutputEnergy(ClientDataSetInraAfzEB.Value, RapMS, FormOptions.Expression, FormOptions.Energy); |
|
722 |
ClientDataSetIngredientsBonus.Value := 0; |
|
723 |
if ClientDataSetIngredientsEB.Value = 0 |
|
711 | 724 |
then |
712 |
ClientDataSetIngredientsMM.Clear
|
|
725 |
ClientDataSetIngredientsdEt.Clear
|
|
713 | 726 |
else |
714 |
ClientDataSetIngredientsMM.Value := OutputProximal(ClientDataSetInraAfzMM.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
715 |
if ClientDataSetInraAfzMAT.IsNull |
|
727 |
ClientDataSetIngredientsdEc.Value := ClientDataSetInraAfzdEc.Value * 100; |
|
728 |
ClientDataSetIngredientsEDc.Value := ClientDataSetIngredientsEB.Value * ClientDataSetIngredientsdEc.Value / 100; |
|
729 |
if ClientDataSetIngredientsEDc.Value = 0 |
|
716 | 730 |
then |
717 |
ClientDataSetIngredientsMAT.Clear
|
|
731 |
ClientDataSetIngredientsEMc_EDc.Clear
|
|
718 | 732 |
else |
719 |
begin |
|
720 |
RapMAT := ClientDataSetInraAfzMAT.Value; |
|
721 |
ClientDataSetIngredientsMAT.Value := OutputProximal(RapMAT, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
722 |
end; |
|
723 |
if ClientDataSetInraAfzMG.IsNull |
|
733 |
ClientDataSetIngredientsEMc_EDc.Value := ClientDataSetInraAfzEMc_EDc.Value * 100; |
|
734 |
ClientDataSetIngredientsEMc.Value := ClientDataSetIngredientsEDc.Value * ClientDataSetIngredientsEMc_EDc.Value / 100; |
|
735 |
if ClientDataSetIngredientsEMc.Value = 0 |
|
724 | 736 |
then |
725 |
ClientDataSetIngredientsMG.Clear
|
|
737 |
ClientDataSetIngredientsENc_EMc.Clear
|
|
726 | 738 |
else |
727 |
ClientDataSetIngredientsMG.Value := OutputProximal(ClientDataSetInraAfzMG.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
728 |
if ClientDataSetInraAfzCB.IsNull |
|
739 |
ClientDataSetIngredientsENc_EMc.Value := ClientDataSetInraAfzENc_EMc.Value * 100; |
|
740 |
ClientDataSetIngredientsENc.Value := ClientDataSetIngredientsEMc.Value * ClientDataSetIngredientsENc_EMc.Value / 100; |
|
741 |
if ClientDataSetIngredientsEDc.Value = 0 |
|
729 | 742 |
then |
730 |
ClientDataSetIngredientsCB.Clear
|
|
743 |
ClientDataSetIngredientsEDt_EDc.Clear
|
|
731 | 744 |
else |
732 |
ClientDataSetIngredientsCB.Value := OutputProximal(ClientDataSetInraAfzCB.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
733 |
if ClientDataSetInraAfzNDF.IsNull |
|
745 |
ClientDataSetIngredientsEDt_EDc.Value := ClientDataSetInraAfzEDt_EDc.Value * 100; |
|
746 |
ClientDataSetIngredientsEDt.Value := ClientDataSetIngredientsEDc.Value * ClientDataSetIngredientsEDt_EDc.Value / 100; |
|
747 |
if ClientDataSetIngredientsEDt.Value = 0 |
|
734 | 748 |
then |
735 |
ClientDataSetIngredientsNDF.Clear
|
|
749 |
ClientDataSetIngredientsEMt_EDt.Clear
|
|
736 | 750 |
else |
737 |
ClientDataSetIngredientsNDF.Value := OutputProximal(ClientDataSetInraAfzNDF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
738 |
if ClientDataSetInraAfzADF.IsNull |
|
751 |
ClientDataSetIngredientsEMt_EDt.Value := ClientDataSetInraAfzEMt_EDt.Value * 100; |
|
752 |
ClientDataSetIngredientsEMt.Value := ClientDataSetIngredientsEDt.Value * ClientDataSetIngredientsEMt_EDt.Value / 100; |
|
753 |
if ClientDataSetIngredientsEMt.Value = 0 |
|
739 | 754 |
then |
740 |
ClientDataSetIngredientsADF.Clear
|
|
755 |
ClientDataSetIngredientsENt_EMt.Clear
|
|
741 | 756 |
else |
742 |
ClientDataSetIngredientsADF.Value := OutputProximal(ClientDataSetInraAfzADF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
743 |
if ClientDataSetInraAfzADL.IsNull |
|
744 |
then |
|
745 |
ClientDataSetIngredientsADL.Clear |
|
746 |
else |
|
747 |
ClientDataSetIngredientsADL.Value := OutputProximal(ClientDataSetInraAfzADL.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
748 |
if ClientDataSetInraAfzAmidon.IsNull |
|
749 |
then |
|
750 |
ClientDataSetIngredientsAmidon.Clear |
|
751 |
else |
|
752 |
ClientDataSetIngredientsAmidon.Value := OutputProximal(ClientDataSetInraAfzAmidon.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
753 |
if ClientDataSetInraAfzSucres.IsNull |
|
754 |
then |
|
755 |
ClientDataSetIngredientsSucres.Clear |
|
756 |
else |
|
757 |
ClientDataSetIngredientsSucres.Value := OutputProximal(ClientDataSetInraAfzSucres.Value, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
758 |
// Energie |
|
759 |
ClientDataSetIngredientsEB.Value := OutputEnergy(ClientDataSetInraAfzEB.Value, RapMS, FormOptions.Expression, FormOptions.Energy); |
|
760 |
ClientDataSetIngredientsBonus.Value := 0; |
|
761 |
ClientDataSetIngredientsdEc.Value := ClientDataSetInraAfzdEc.Value * 100; |
|
762 |
ClientDataSetIngredientsEDc.Value := ClientDataSetIngredientsEB.Value * ClientDataSetIngredientsdEc.Value / 100; |
|
763 |
ClientDataSetIngredientsEMc_EDc.Value := ClientDataSetInraAfzEMc_EDc.Value * 100; |
|
764 |
ClientDataSetIngredientsEMc.Value := ClientDataSetIngredientsEDc.Value * ClientDataSetIngredientsEMc_EDc.Value / 100; |
|
765 |
ClientDataSetIngredientsENc_EMc.Value := ClientDataSetInraAfzENc_EMc.Value * 100; |
|
766 |
ClientDataSetIngredientsENc.Value := ClientDataSetIngredientsEMc.Value * ClientDataSetIngredientsENc_EMc.Value / 100; |
|
767 |
ClientDataSetIngredientsEDt_EDc.Value := ClientDataSetInraAfzEDt_EDc.Value * 100; |
|
768 |
ClientDataSetIngredientsEDt.Value := ClientDataSetIngredientsEDc.Value * ClientDataSetIngredientsEDt_EDc.Value / 100; |
|
769 |
ClientDataSetIngredientsEMt_EDt.Value := ClientDataSetInraAfzEMt_EDt.Value * 100; |
|
770 |
ClientDataSetIngredientsEMt.Value := ClientDataSetIngredientsEDt.Value * ClientDataSetIngredientsEMt_EDt.Value / 100; |
|
771 |
ClientDataSetIngredientsENt_EMt.Value := ClientDataSetInraAfzENt_EMt.Value * 100; |
|
757 |
ClientDataSetIngredientsENt_EMt.Value := ClientDataSetInraAfzENt_EMt.Value * 100; |
|
772 | 758 |
ClientDataSetIngredientsENt.Value := ClientDataSetIngredientsEMt.Value * ClientDataSetIngredientsENt_EMt.Value / 100; |
773 | 759 |
if ClientDataSetIngredientsEB.Value = 0 |
774 | 760 |
then |
775 |
ClientDataSetIngredientsdEt.Value := ClientDataSetIngredientsdEc.Value
|
|
761 |
ClientDataSetIngredientsdEt.Clear
|
|
776 | 762 |
else |
777 | 763 |
ClientDataSetIngredientsdEt.Value := ClientDataSetIngredientsEDt.Value / ClientDataSetIngredientsEB.Value * 100; |
778 | 764 |
if ClientDataSetIngredientsEMc.Value = 0 |
779 | 765 |
then |
780 |
ClientDataSetIngredientsEMt_EMc.Value := 100
|
|
766 |
ClientDataSetIngredientsEMt_EMc.Clear
|
|
781 | 767 |
else |
782 | 768 |
ClientDataSetIngredientsEMt_EMc.Value := ClientDataSetIngredientsEMt.Value / ClientDataSetIngredientsEMc.Value * 100; |
783 | 769 |
if ClientDataSetIngredientsENc.Value = 0 |
784 | 770 |
then |
785 |
ClientDataSetIngredientsENt_ENc.Value := 100
|
|
771 |
ClientDataSetIngredientsENt_ENc.Clear
|
|
786 | 772 |
else |
787 | 773 |
ClientDataSetIngredientsENt_ENc.Value := ClientDataSetIngredientsENt.Value / ClientDataSetIngredientsENc.Value * 100; |
788 | 774 |
// Digestibilit? f?cale de l'azote |
789 |
if ClientDataSetInraAfzdNc.IsNull
|
|
775 |
if RapMAT = 0
|
|
790 | 776 |
then |
791 | 777 |
ClientDataSetIngredientsdNc.Clear |
792 | 778 |
else |
793 | 779 |
ClientDataSetIngredientsdNc.Value := ClientDataSetInraAfzdNc.Value * 100; |
794 |
if ClientDataSetInraAfzdNt.IsNull
|
|
780 |
if RapMAT = 0
|
|
795 | 781 |
then |
796 | 782 |
ClientDataSetIngredientsdNt.Clear |
797 | 783 |
else |
... | ... | |
801 | 787 |
then // En l'absence de MAT, il n'y a pas d'acides amin?s |
802 | 788 |
begin |
803 | 789 |
// Teneurs |
804 |
ClientDataSetIngredientsLys.Clear;
|
|
805 |
ClientDataSetIngredientsThr.Clear;
|
|
806 |
ClientDataSetIngredientsMet.Clear;
|
|
807 |
ClientDataSetIngredientsCys.Clear;
|
|
808 |
ClientDataSetIngredientsMetCys.Clear;
|
|
809 |
ClientDataSetIngredientsTrp.Clear;
|
|
810 |
ClientDataSetIngredientsIle.Clear;
|
|
811 |
ClientDataSetIngredientsVal.Clear;
|
|
812 |
ClientDataSetIngredientsLeu.Clear;
|
|
813 |
ClientDataSetIngredientsPhe.Clear;
|
|
814 |
ClientDataSetIngredientsTyr.Clear;
|
|
815 |
ClientDataSetIngredientsPheTyr.Clear;
|
|
816 |
ClientDataSetIngredientsHis.Clear;
|
|
817 |
ClientDataSetIngredientsArg.Clear;
|
|
818 |
ClientDataSetIngredientsAla.Clear;
|
|
819 |
ClientDataSetIngredientsAsp.Clear;
|
|
820 |
ClientDataSetIngredientsGlu.Clear;
|
|
821 |
ClientDataSetIngredientsGly.Clear;
|
|
822 |
ClientDataSetIngredientsSer.Clear;
|
|
823 |
ClientDataSetIngredientsPro.Clear;
|
|
790 |
ClientDataSetIngredientsLys.Value := 0;
|
|
791 |
ClientDataSetIngredientsThr.Value := 0;
|
|
792 |
ClientDataSetIngredientsMet.Value := 0;
|
|
793 |
ClientDataSetIngredientsCys.Value := 0;
|
|
794 |
ClientDataSetIngredientsMetCys.Value := 0;
|
|
795 |
ClientDataSetIngredientsTrp.Value := 0;
|
|
796 |
ClientDataSetIngredientsIle.Value := 0;
|
|
797 |
ClientDataSetIngredientsVal.Value := 0;
|
|
798 |
ClientDataSetIngredientsLeu.Value := 0;
|
|
799 |
ClientDataSetIngredientsPhe.Value := 0;
|
|
800 |
ClientDataSetIngredientsTyr.Value := 0;
|
|
801 |
ClientDataSetIngredientsPheTyr.Value := 0;
|
|
802 |
ClientDataSetIngredientsHis.Value := 0;
|
|
803 |
ClientDataSetIngredientsArg.Value := 0;
|
|
804 |
ClientDataSetIngredientsAla.Value := 0;
|
|
805 |
ClientDataSetIngredientsAsp.Value := 0;
|
|
806 |
ClientDataSetIngredientsGlu.Value := 0;
|
|
807 |
ClientDataSetIngredientsGly.Value := 0;
|
|
808 |
ClientDataSetIngredientsSer.Value := 0;
|
|
809 |
ClientDataSetIngredientsPro.Value := 0;
|
|
824 | 810 |
// % MAT |
825 | 811 |
ClientDataSetIngredientsLys_MAT.Clear; |
826 | 812 |
ClientDataSetIngredientsThr_MAT.Clear; |
... | ... | |
864 | 850 |
ClientDataSetIngredientsdSer.Clear; |
865 | 851 |
ClientDataSetIngredientsdPro.Clear; |
866 | 852 |
// Teneurs digestibles |
867 |
ClientDataSetIngredientsLysd.Clear;
|
|
868 |
ClientDataSetIngredientsThrd.Clear;
|
|
869 |
ClientDataSetIngredientsMetd.Clear;
|
|
870 |
ClientDataSetIngredientsCysd.Clear;
|
|
871 |
ClientDataSetIngredientsMetCysd.Clear;
|
|
872 |
ClientDataSetIngredientsTrpd.Clear;
|
|
873 |
ClientDataSetIngredientsIled.Clear;
|
|
874 |
ClientDataSetIngredientsVald.Clear;
|
|
875 |
ClientDataSetIngredientsLeud.Clear;
|
|
876 |
ClientDataSetIngredientsPhed.Clear;
|
|
877 |
ClientDataSetIngredientsTyrd.Clear;
|
|
878 |
ClientDataSetIngredientsPheTyrd.Clear;
|
|
879 |
ClientDataSetIngredientsHisd.Clear;
|
|
880 |
ClientDataSetIngredientsArgd.Clear;
|
|
881 |
ClientDataSetIngredientsAlad.Clear;
|
|
882 |
ClientDataSetIngredientsAspd.Clear;
|
|
883 |
ClientDataSetIngredientsGlud.Clear;
|
|
884 |
ClientDataSetIngredientsGlyd.Clear;
|
|
885 |
ClientDataSetIngredientsSerd.Clear;
|
|
886 |
ClientDataSetIngredientsProd.Clear;
|
|
853 |
ClientDataSetIngredientsLysd.Value := 0;
|
|
854 |
ClientDataSetIngredientsThrd.Value := 0;
|
|
855 |
ClientDataSetIngredientsMetd.Value := 0;
|
|
856 |
ClientDataSetIngredientsCysd.Value := 0;
|
|
857 |
ClientDataSetIngredientsMetCysd.Value := 0;
|
|
858 |
ClientDataSetIngredientsTrpd.Value := 0;
|
|
859 |
ClientDataSetIngredientsIled.Value := 0;
|
|
860 |
ClientDataSetIngredientsVald.Value := 0;
|
|
861 |
ClientDataSetIngredientsLeud.Value := 0;
|
|
862 |
ClientDataSetIngredientsPhed.Value := 0;
|
|
863 |
ClientDataSetIngredientsTyrd.Value := 0;
|
|
864 |
ClientDataSetIngredientsPheTyrd.Value := 0;
|
|
865 |
ClientDataSetIngredientsHisd.Value := 0;
|
|
866 |
ClientDataSetIngredientsArgd.Value := 0;
|
|
867 |
ClientDataSetIngredientsAlad.Value := 0;
|
|
868 |
ClientDataSetIngredientsAspd.Value := 0;
|
|
869 |
ClientDataSetIngredientsGlud.Value := 0;
|
|
870 |
ClientDataSetIngredientsGlyd.Value := 0;
|
|
871 |
ClientDataSetIngredientsSerd.Value := 0;
|
|
872 |
ClientDataSetIngredientsProd.Value := 0;
|
|
887 | 873 |
end |
888 | 874 |
else |
889 | 875 |
begin |
890 | 876 |
// Lys |
891 |
if ClientDataSetInraAfzLys.IsNull
|
|
877 |
if ClientDataSetInraAfzLys.Value = 0
|
|
892 | 878 |
then |
893 | 879 |
begin |
894 |
ClientDataSetIngredientsLys.Clear;
|
|
880 |
ClientDataSetIngredientsLys.Value := 0;
|
|
895 | 881 |
ClientDataSetIngredientsLys_MAT.Clear; |
896 | 882 |
ClientDataSetIngredientsdLys.Clear; |
897 |
ClientDataSetIngredientsLysd.Clear;
|
|
883 |
ClientDataSetIngredientsLysd.Value := 0;
|
|
898 | 884 |
end |
899 | 885 |
else |
900 | 886 |
begin |
901 | 887 |
ClientDataSetIngredientsLys.Value := OutputAA(ClientDataSetInraAfzLys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
902 |
ClientDataSetIngredientsLys_MAT.Value := InputAA(ClientDataSetIngredientsLys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
888 |
if ClientDataSetIngredientsLys.Value = 0 |
|
889 |
then |
|
890 |
ClientDataSetIngredientsLys_MAT.Clear |
|
891 |
else |
|
892 |
ClientDataSetIngredientsLys_MAT.Value := InputAA(ClientDataSetIngredientsLys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
903 | 893 |
if ClientDataSetInraAfzdLys.IsNull |
904 | 894 |
then |
905 | 895 |
ClientDataSetIngredientsdLys.Value := dLys * 100 |
... | ... | |
908 | 898 |
ClientDataSetIngredientsLysd.Value := ClientDataSetIngredientsdLys.Value / 100 * ClientDataSetIngredientsLys.Value; |
909 | 899 |
end; |
910 | 900 |
// Thr |
911 |
if ClientDataSetInraAfzThr.IsNull
|
|
901 |
if ClientDataSetInraAfzThr.Value = 0
|
|
912 | 902 |
then |
913 | 903 |
begin |
914 |
ClientDataSetIngredientsThr.Clear;
|
|
904 |
ClientDataSetIngredientsThr.Value := 0;
|
|
915 | 905 |
ClientDataSetIngredientsThr_MAT.Clear; |
916 | 906 |
ClientDataSetIngredientsdThr.Clear; |
917 |
ClientDataSetIngredientsThrd.Clear;
|
|
907 |
ClientDataSetIngredientsThrd.Value := 0;
|
|
918 | 908 |
end |
919 | 909 |
else |
920 | 910 |
begin |
921 | 911 |
ClientDataSetIngredientsThr.Value := OutputAA(ClientDataSetInraAfzThr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
922 |
ClientDataSetIngredientsThr_MAT.Value := InputAA(ClientDataSetIngredientsThr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
912 |
if ClientDataSetIngredientsThr.Value = 0 |
|
913 |
then |
|
914 |
ClientDataSetIngredientsThr_MAT.Clear |
|
915 |
else |
|
916 |
ClientDataSetIngredientsThr_MAT.Value := InputAA(ClientDataSetIngredientsThr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
923 | 917 |
if ClientDataSetInraAfzdThr.IsNull |
924 | 918 |
then |
925 | 919 |
ClientDataSetIngredientsdThr.Value := dThr * 100 |
... | ... | |
928 | 922 |
ClientDataSetIngredientsThrd.Value := ClientDataSetIngredientsdThr.Value / 100 * ClientDataSetIngredientsThr.Value; |
929 | 923 |
end; |
930 | 924 |
// Met |
931 |
if ClientDataSetInraAfzMet.IsNull
|
|
925 |
if ClientDataSetInraAfzMet.Value = 0
|
|
932 | 926 |
then |
933 | 927 |
begin |
934 |
ClientDataSetIngredientsMet.Clear;
|
|
928 |
ClientDataSetIngredientsMet.Value := 0;
|
|
935 | 929 |
ClientDataSetIngredientsMet_MAT.Clear; |
936 | 930 |
ClientDataSetIngredientsdMet.Clear; |
937 |
ClientDataSetIngredientsMetd.Clear;
|
|
931 |
ClientDataSetIngredientsMetd.Value := 0;
|
|
938 | 932 |
end |
939 | 933 |
else |
940 | 934 |
begin |
941 | 935 |
ClientDataSetIngredientsMet.Value := OutputAA(ClientDataSetInraAfzMet.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
942 |
ClientDataSetIngredientsMet_MAT.Value := InputAA(ClientDataSetIngredientsMet.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
936 |
if ClientDataSetIngredientsMet.Value = 0 |
|
937 |
then |
|
938 |
ClientDataSetIngredientsMet_MAT.Clear |
|
939 |
else |
|
940 |
ClientDataSetIngredientsMet_MAT.Value := InputAA(ClientDataSetIngredientsMet.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
943 | 941 |
if ClientDataSetInraAfzdMet.IsNull |
944 | 942 |
then |
945 | 943 |
ClientDataSetIngredientsdMet.Value := dMet * 100 |
... | ... | |
948 | 946 |
ClientDataSetIngredientsMetd.Value := ClientDataSetIngredientsdMet.Value / 100 * ClientDataSetIngredientsMet.Value; |
949 | 947 |
end; |
950 | 948 |
// Cys |
951 |
if ClientDataSetInraAfzCys.IsNull
|
|
949 |
if ClientDataSetInraAfzCys.Value = 0
|
|
952 | 950 |
then |
953 | 951 |
begin |
954 |
ClientDataSetIngredientsCys.Clear;
|
|
952 |
ClientDataSetIngredientsCys.Value := 0;
|
|
955 | 953 |
ClientDataSetIngredientsCys_MAT.Clear; |
956 | 954 |
ClientDataSetIngredientsdCys.Clear; |
957 |
ClientDataSetIngredientsCysd.Clear;
|
|
955 |
ClientDataSetIngredientsCysd.Value := 0;
|
|
958 | 956 |
end |
959 | 957 |
else |
960 | 958 |
begin |
961 | 959 |
ClientDataSetIngredientsCys.Value := OutputAA(ClientDataSetInraAfzCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
962 |
ClientDataSetIngredientsCys_MAT.Value := InputAA(ClientDataSetIngredientsCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
960 |
if ClientDataSetIngredientsCys.Value = 0 |
|
961 |
then |
|
962 |
ClientDataSetIngredientsCys_MAT.Clear |
|
963 |
else |
|
964 |
ClientDataSetIngredientsCys_MAT.Value := InputAA(ClientDataSetIngredientsCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
963 | 965 |
if ClientDataSetInraAfzdCys.IsNull |
964 | 966 |
then |
965 | 967 |
ClientDataSetIngredientsdCys.Value := dCys * 100 |
... | ... | |
968 | 970 |
ClientDataSetIngredientsCysd.Value := ClientDataSetIngredientsdCys.Value / 100 * ClientDataSetIngredientsCys.Value; |
969 | 971 |
end; |
970 | 972 |
// Met + Cys |
971 |
if ClientDataSetInraAfzMetCys.IsNull
|
|
973 |
if ClientDataSetInraAfzMetCys.Value = 0
|
|
972 | 974 |
then |
973 | 975 |
begin |
974 |
ClientDataSetIngredientsMetCys.Clear;
|
|
976 |
ClientDataSetIngredientsMetCys.Value := 0;
|
|
975 | 977 |
ClientDataSetIngredientsMetCys_MAT.Clear; |
976 | 978 |
ClientDataSetIngredientsdMetCys.Clear; |
977 |
ClientDataSetIngredientsMetCysd.Clear;
|
|
979 |
ClientDataSetIngredientsMetCysd.Value := 0;
|
|
978 | 980 |
end |
979 | 981 |
else |
980 | 982 |
begin |
981 | 983 |
ClientDataSetIngredientsMetCys.Value := OutputAA(ClientDataSetInraAfzMetCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
982 |
ClientDataSetIngredientsMetCys_MAT.Value := InputAA(ClientDataSetIngredientsMetCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
984 |
if ClientDataSetIngredientsMetCys.Value = 0 |
|
985 |
then |
|
986 |
ClientDataSetIngredientsMetCys_MAT.Clear |
|
987 |
else |
|
988 |
ClientDataSetIngredientsMetCys_MAT.Value := InputAA(ClientDataSetIngredientsMetCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
983 | 989 |
if ClientDataSetInraAfzdMetCys.IsNull |
984 | 990 |
then |
985 | 991 |
ClientDataSetIngredientsdMetCys.Value := dMetCys * 100 |
... | ... | |
988 | 994 |
ClientDataSetIngredientsMetCysd.Value := ClientDataSetIngredientsdMetCys.Value / 100 * ClientDataSetIngredientsMetCys.Value; |
989 | 995 |
end; |
990 | 996 |
// Trp |
991 |
if ClientDataSetInraAfzTrp.IsNull
|
|
997 |
if ClientDataSetInraAfzTrp.Value = 0
|
|
992 | 998 |
then |
993 | 999 |
begin |
994 |
ClientDataSetIngredientsTrp.Clear;
|
|
1000 |
ClientDataSetIngredientsTrp.Value := 0;
|
|
995 | 1001 |
ClientDataSetIngredientsTrp_MAT.Clear; |
996 | 1002 |
ClientDataSetIngredientsdTrp.Clear; |
997 |
ClientDataSetIngredientsTrpd.Clear;
|
|
1003 |
ClientDataSetIngredientsTrpd.Value := 0;
|
|
998 | 1004 |
end |
999 | 1005 |
else |
1000 | 1006 |
begin |
1001 | 1007 |
ClientDataSetIngredientsTrp.Value := OutputAA(ClientDataSetInraAfzTrp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1002 |
ClientDataSetIngredientsTrp_MAT.Value := InputAA(ClientDataSetIngredientsTrp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1008 |
if ClientDataSetIngredientsTrp.Value = 0 |
|
1009 |
then |
|
1010 |
ClientDataSetIngredientsTrp_MAT.Clear |
|
1011 |
else |
|
1012 |
ClientDataSetIngredientsTrp_MAT.Value := InputAA(ClientDataSetIngredientsTrp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1003 | 1013 |
if ClientDataSetInraAfzdTrp.IsNull |
1004 | 1014 |
then |
1005 | 1015 |
ClientDataSetIngredientsdTrp.Value := dTrp * 100 |
... | ... | |
1008 | 1018 |
ClientDataSetIngredientsTrpd.Value := ClientDataSetIngredientsdTrp.Value / 100 * ClientDataSetIngredientsTrp.Value; |
1009 | 1019 |
end; |
1010 | 1020 |
// Ile |
1011 |
if ClientDataSetInraAfzIle.IsNull
|
|
1021 |
if ClientDataSetInraAfzIle.Value = 0
|
|
1012 | 1022 |
then |
1013 | 1023 |
begin |
1014 |
ClientDataSetIngredientsIle.Clear;
|
|
1024 |
ClientDataSetIngredientsIle.Value := 0;
|
|
1015 | 1025 |
ClientDataSetIngredientsIle_MAT.Clear; |
1016 | 1026 |
ClientDataSetIngredientsdIle.Clear; |
1017 |
ClientDataSetIngredientsIled.Clear;
|
|
1027 |
ClientDataSetIngredientsIled.Value := 0;
|
|
1018 | 1028 |
end |
1019 | 1029 |
else |
1020 | 1030 |
begin |
1021 | 1031 |
ClientDataSetIngredientsIle.Value := OutputAA(ClientDataSetInraAfzIle.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1022 |
ClientDataSetIngredientsIle_MAT.Value := InputAA(ClientDataSetIngredientsIle.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1032 |
if ClientDataSetIngredientsIle.Value = 0 |
|
1033 |
then |
|
1034 |
ClientDataSetIngredientsIle_MAT.Clear |
|
1035 |
else |
|
1036 |
ClientDataSetIngredientsIle_MAT.Value := InputAA(ClientDataSetIngredientsIle.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1023 | 1037 |
if ClientDataSetInraAfzdIle.IsNull |
1024 | 1038 |
then |
1025 | 1039 |
ClientDataSetIngredientsdIle.Value := dIle * 100 |
... | ... | |
1028 | 1042 |
ClientDataSetIngredientsIled.Value := ClientDataSetIngredientsdIle.Value / 100 * ClientDataSetIngredientsIle.Value; |
1029 | 1043 |
end; |
1030 | 1044 |
// Val |
1031 |
if ClientDataSetInraAfzVal.IsNull
|
|
1045 |
if ClientDataSetInraAfzVal.Value = 0
|
|
1032 | 1046 |
then |
1033 | 1047 |
begin |
1034 |
ClientDataSetIngredientsVal.Clear;
|
|
1048 |
ClientDataSetIngredientsVal.Value := 0;
|
|
1035 | 1049 |
ClientDataSetIngredientsVal_MAT.Clear; |
1036 | 1050 |
ClientDataSetIngredientsdVal.Clear; |
1037 |
ClientDataSetIngredientsVald.Clear;
|
|
1051 |
ClientDataSetIngredientsVald.Value := 0;
|
|
1038 | 1052 |
end |
1039 | 1053 |
else |
1040 | 1054 |
begin |
1041 | 1055 |
ClientDataSetIngredientsVal.Value := OutputAA(ClientDataSetInraAfzVal.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1042 |
ClientDataSetIngredientsVal_MAT.Value := InputAA(ClientDataSetIngredientsVal.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1056 |
if ClientDataSetIngredientsVal.Value = 0 |
|
1057 |
then |
|
1058 |
ClientDataSetIngredientsVal_MAT.Clear |
|
1059 |
else |
|
1060 |
ClientDataSetIngredientsVal_MAT.Value := InputAA(ClientDataSetIngredientsVal.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1043 | 1061 |
if ClientDataSetInraAfzdVal.IsNull |
1044 | 1062 |
then |
1045 | 1063 |
ClientDataSetIngredientsdVal.Value := dVal * 100 |
... | ... | |
1048 | 1066 |
ClientDataSetIngredientsVald.Value := ClientDataSetIngredientsdVal.Value / 100 * ClientDataSetIngredientsVal.Value; |
1049 | 1067 |
end; |
1050 | 1068 |
// Leu |
1051 |
if ClientDataSetInraAfzLeu.IsNull
|
|
1069 |
if ClientDataSetInraAfzLeu.Value = 0
|
|
1052 | 1070 |
then |
1053 | 1071 |
begin |
1054 |
ClientDataSetIngredientsLeu.Clear;
|
|
1072 |
ClientDataSetIngredientsLeu.Value := 0;
|
|
1055 | 1073 |
ClientDataSetIngredientsLeu_MAT.Clear; |
1056 | 1074 |
ClientDataSetIngredientsdLeu.Clear; |
1057 |
ClientDataSetIngredientsLeud.Clear;
|
|
1075 |
ClientDataSetIngredientsLeud.Value := 0;
|
|
1058 | 1076 |
end |
1059 | 1077 |
else |
1060 | 1078 |
begin |
1061 | 1079 |
ClientDataSetIngredientsLeu.Value := OutputAA(ClientDataSetInraAfzLeu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1062 |
ClientDataSetIngredientsLeu_MAT.Value := InputAA(ClientDataSetIngredientsLeu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1080 |
if ClientDataSetIngredientsLeu.Value = 0 |
|
1081 |
then |
|
1082 |
ClientDataSetIngredientsLeu_MAT.Clear |
|
1083 |
else |
|
1084 |
ClientDataSetIngredientsLeu_MAT.Value := InputAA(ClientDataSetIngredientsLeu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1063 | 1085 |
if ClientDataSetInraAfzdLeu.IsNull |
1064 | 1086 |
then |
1065 | 1087 |
ClientDataSetIngredientsdLeu.Value := dLeu * 100 |
... | ... | |
1068 | 1090 |
ClientDataSetIngredientsLeud.Value := ClientDataSetIngredientsdLeu.Value / 100 * ClientDataSetIngredientsLeu.Value; |
1069 | 1091 |
end; |
1070 | 1092 |
// Phe |
1071 |
if ClientDataSetInraAfzPhe.IsNull
|
|
1093 |
if ClientDataSetInraAfzPhe.Value = 0
|
|
1072 | 1094 |
then |
1073 | 1095 |
begin |
1074 |
ClientDataSetIngredientsPhe.Clear;
|
|
1096 |
ClientDataSetIngredientsPhe.Value := 0;
|
|
1075 | 1097 |
ClientDataSetIngredientsPhe_MAT.Clear; |
1076 | 1098 |
ClientDataSetIngredientsdPhe.Clear; |
1077 |
ClientDataSetIngredientsPhed.Clear;
|
|
1099 |
ClientDataSetIngredientsPhed.Value := 0;
|
|
1078 | 1100 |
end |
1079 | 1101 |
else |
1080 | 1102 |
begin |
1081 | 1103 |
ClientDataSetIngredientsPhe.Value := OutputAA(ClientDataSetInraAfzPhe.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1082 |
ClientDataSetIngredientsPhe_MAT.Value := InputAA(ClientDataSetIngredientsPhe.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1104 |
if ClientDataSetIngredientsPhe.Value = 0 |
|
1105 |
then |
|
1106 |
ClientDataSetIngredientsPhe_MAT.Clear |
|
1107 |
else |
|
1108 |
ClientDataSetIngredientsPhe_MAT.Value := InputAA(ClientDataSetIngredientsPhe.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1083 | 1109 |
if ClientDataSetInraAfzdPhe.IsNull |
1084 | 1110 |
then |
1085 | 1111 |
ClientDataSetIngredientsdPhe.Value := dPhe * 100 |
... | ... | |
1088 | 1114 |
ClientDataSetIngredientsPhed.Value := ClientDataSetIngredientsdPhe.Value / 100 * ClientDataSetIngredientsPhe.Value; |
1089 | 1115 |
end; |
1090 | 1116 |
// Tyr |
1091 |
if ClientDataSetInraAfzTyr.IsNull
|
|
1117 |
if ClientDataSetInraAfzTyr.Value = 0
|
|
1092 | 1118 |
then |
1093 | 1119 |
begin |
1094 |
ClientDataSetIngredientsTyr.Clear;
|
|
1120 |
ClientDataSetIngredientsTyr.Value := 0;
|
|
1095 | 1121 |
ClientDataSetIngredientsTyr_MAT.Clear; |
1096 | 1122 |
ClientDataSetIngredientsdTyr.Clear; |
1097 |
ClientDataSetIngredientsTyrd.Clear;
|
|
1123 |
ClientDataSetIngredientsTyrd.Value := 0;
|
|
1098 | 1124 |
end |
1099 | 1125 |
else |
1100 | 1126 |
begin |
1101 | 1127 |
ClientDataSetIngredientsTyr.Value := OutputAA(ClientDataSetInraAfzTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1102 |
ClientDataSetIngredientsTyr_MAT.Value := InputAA(ClientDataSetIngredientsTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1128 |
if ClientDataSetIngredientsTyr.Value = 0 |
|
1129 |
then |
|
1130 |
ClientDataSetIngredientsTyr_MAT.Clear |
|
1131 |
else |
|
1132 |
ClientDataSetIngredientsTyr_MAT.Value := InputAA(ClientDataSetIngredientsTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1103 | 1133 |
if ClientDataSetInraAfzdTyr.IsNull |
1104 | 1134 |
then |
1105 | 1135 |
ClientDataSetIngredientsdTyr.Value := dTyr * 100 |
... | ... | |
1108 | 1138 |
ClientDataSetIngredientsTyrd.Value := ClientDataSetIngredientsdTyr.Value / 100 * ClientDataSetIngredientsTyr.Value; |
1109 | 1139 |
end; |
1110 | 1140 |
// Phe + Tyr |
1111 |
if ClientDataSetInraAfzPheTyr.IsNull
|
|
1141 |
if ClientDataSetInraAfzPheTyr.Value = 0
|
|
1112 | 1142 |
then |
1113 | 1143 |
begin |
1114 |
ClientDataSetIngredientsPheTyr.Clear;
|
|
1144 |
ClientDataSetIngredientsPheTyr.Value := 0;
|
|
1115 | 1145 |
ClientDataSetIngredientsPheTyr_MAT.Clear; |
1116 | 1146 |
ClientDataSetIngredientsdPheTyr.Clear; |
1117 |
ClientDataSetIngredientsPheTyrd.Clear;
|
|
1147 |
ClientDataSetIngredientsPheTyrd.Value := 0;
|
|
1118 | 1148 |
end |
1119 | 1149 |
else |
1120 | 1150 |
begin |
1121 | 1151 |
ClientDataSetIngredientsPheTyr.Value := OutputAA(ClientDataSetInraAfzPheTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1122 |
ClientDataSetIngredientsPheTyr_MAT.Value := InputAA(ClientDataSetIngredientsPheTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1152 |
if ClientDataSetIngredientsPheTyr.Value = 0 |
|
1153 |
then |
|
1154 |
ClientDataSetIngredientsPheTyr_MAT.Clear |
|
1155 |
else |
|
1156 |
ClientDataSetIngredientsPheTyr_MAT.Value := InputAA(ClientDataSetIngredientsPheTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1123 | 1157 |
if ClientDataSetInraAfzdPheTyr.IsNull |
1124 | 1158 |
then |
1125 | 1159 |
ClientDataSetIngredientsdPheTyr.Value := dPheTyr * 100 |
... | ... | |
1128 | 1162 |
ClientDataSetIngredientsPheTyrd.Value := ClientDataSetIngredientsdPheTyr.Value / 100 * ClientDataSetIngredientsPheTyr.Value; |
1129 | 1163 |
end; |
1130 | 1164 |
// His |
1131 |
if ClientDataSetInraAfzHis.IsNull
|
|
1165 |
if ClientDataSetInraAfzHis.Value = 0
|
|
1132 | 1166 |
then |
1133 | 1167 |
begin |
1134 |
ClientDataSetIngredientsHis.Clear;
|
|
1168 |
ClientDataSetIngredientsHis.Value := 0;
|
|
1135 | 1169 |
ClientDataSetIngredientsHis_MAT.Clear; |
1136 | 1170 |
ClientDataSetIngredientsdHis.Clear; |
1137 |
ClientDataSetIngredientsHisd.Clear;
|
|
1171 |
ClientDataSetIngredientsHisd.Value := 0;
|
|
1138 | 1172 |
end |
1139 | 1173 |
else |
1140 | 1174 |
begin |
1141 | 1175 |
ClientDataSetIngredientsHis.Value := OutputAA(ClientDataSetInraAfzHis.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1142 |
ClientDataSetIngredientsHis_MAT.Value := InputAA(ClientDataSetIngredientsHis.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1176 |
if ClientDataSetIngredientsHis.Value = 0 |
|
1177 |
then |
|
1178 |
ClientDataSetIngredientsHis_MAT.Clear |
|
1179 |
else |
|
1180 |
ClientDataSetIngredientsHis_MAT.Value := InputAA(ClientDataSetIngredientsHis.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1143 | 1181 |
if ClientDataSetInraAfzdHis.IsNull |
1144 | 1182 |
then |
1145 | 1183 |
ClientDataSetIngredientsdHis.Value := dHis * 100 |
... | ... | |
1148 | 1186 |
ClientDataSetIngredientsHisd.Value := ClientDataSetIngredientsdHis.Value / 100 * ClientDataSetIngredientsHis.Value; |
1149 | 1187 |
end; |
1150 | 1188 |
// Arg |
1151 |
if ClientDataSetInraAfzArg.IsNull
|
|
1189 |
if ClientDataSetInraAfzArg.Value = 0
|
|
1152 | 1190 |
then |
1153 | 1191 |
begin |
1154 |
ClientDataSetIngredientsArg.Clear;
|
|
1192 |
ClientDataSetIngredientsArg.Value := 0;
|
|
1155 | 1193 |
ClientDataSetIngredientsArg_MAT.Clear; |
1156 | 1194 |
ClientDataSetIngredientsdArg.Clear; |
1157 |
ClientDataSetIngredientsArgd.Clear;
|
|
1195 |
ClientDataSetIngredientsArgd.Value := 0;
|
|
1158 | 1196 |
end |
1159 | 1197 |
else |
1160 | 1198 |
begin |
1161 | 1199 |
ClientDataSetIngredientsArg.Value := OutputAA(ClientDataSetInraAfzArg.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1162 |
ClientDataSetIngredientsArg_MAT.Value := InputAA(ClientDataSetIngredientsArg.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1200 |
if ClientDataSetIngredientsArg.Value = 0 |
|
1201 |
then |
|
1202 |
ClientDataSetIngredientsArg_MAT.Clear |
|
1203 |
else |
|
1204 |
ClientDataSetIngredientsArg_MAT.Value := InputAA(ClientDataSetIngredientsArg.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1163 | 1205 |
if ClientDataSetInraAfzdArg.IsNull |
1164 | 1206 |
then |
1165 | 1207 |
ClientDataSetIngredientsdArg.Value := dArg * 100 |
... | ... | |
1168 | 1210 |
ClientDataSetIngredientsArgd.Value := ClientDataSetIngredientsdArg.Value / 100 * ClientDataSetIngredientsArg.Value; |
1169 | 1211 |
end; |
1170 | 1212 |
// Ala |
1171 |
if ClientDataSetInraAfzAla.IsNull
|
|
1213 |
if ClientDataSetInraAfzAla.Value = 0
|
|
1172 | 1214 |
then |
1173 | 1215 |
begin |
1174 |
ClientDataSetIngredientsAla.Clear;
|
|
1216 |
ClientDataSetIngredientsAla.Value := 0;
|
|
1175 | 1217 |
ClientDataSetIngredientsAla_MAT.Clear; |
1176 | 1218 |
ClientDataSetIngredientsdAla.Clear; |
1177 |
ClientDataSetIngredientsAlad.Clear;
|
|
1219 |
ClientDataSetIngredientsAlad.Value := 0;
|
|
1178 | 1220 |
end |
1179 | 1221 |
else |
1180 | 1222 |
begin |
1181 | 1223 |
ClientDataSetIngredientsAla.Value := OutputAA(ClientDataSetInraAfzAla.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1182 |
ClientDataSetIngredientsAla_MAT.Value := InputAA(ClientDataSetIngredientsAla.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1224 |
if ClientDataSetIngredientsAla.Value = 0 |
|
1225 |
then |
|
1226 |
ClientDataSetIngredientsAla_MAT.Clear |
|
1227 |
else |
|
1228 |
ClientDataSetIngredientsAla_MAT.Value := InputAA(ClientDataSetIngredientsAla.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1183 | 1229 |
if ClientDataSetInraAfzdAla.IsNull |
1184 | 1230 |
then |
1185 | 1231 |
ClientDataSetIngredientsdAla.Value := dAla * 100 |
... | ... | |
1188 | 1234 |
ClientDataSetIngredientsAlad.Value := ClientDataSetIngredientsdAla.Value / 100 * ClientDataSetIngredientsAla.Value; |
1189 | 1235 |
end; |
1190 | 1236 |
// Asp |
1191 |
if ClientDataSetInraAfzAsp.IsNull
|
|
1237 |
if ClientDataSetInraAfzAsp.Value = 0
|
|
1192 | 1238 |
then |
1193 | 1239 |
begin |
1194 |
ClientDataSetIngredientsAsp.Clear;
|
|
1240 |
ClientDataSetIngredientsAsp.Value := 0;
|
|
1195 | 1241 |
ClientDataSetIngredientsAsp_MAT.Clear; |
1196 | 1242 |
ClientDataSetIngredientsdAsp.Clear; |
1197 |
ClientDataSetIngredientsAspd.Clear;
|
|
1243 |
ClientDataSetIngredientsAspd.Value := 0;
|
|
1198 | 1244 |
end |
1199 | 1245 |
else |
1200 | 1246 |
begin |
1201 | 1247 |
ClientDataSetIngredientsAsp.Value := OutputAA(ClientDataSetInraAfzAsp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1202 |
ClientDataSetIngredientsAsp_MAT.Value := InputAA(ClientDataSetIngredientsAsp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1248 |
if ClientDataSetIngredientsAsp.Value = 0 |
|
1249 |
then |
|
1250 |
ClientDataSetIngredientsAsp_MAT.Clear |
|
1251 |
else |
|
1252 |
ClientDataSetIngredientsAsp_MAT.Value := InputAA(ClientDataSetIngredientsAsp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1203 | 1253 |
if ClientDataSetInraAfzdAsp.IsNull |
1204 | 1254 |
then |
1205 | 1255 |
ClientDataSetIngredientsdAsp.Value := dAsp * 100 |
... | ... | |
1208 | 1258 |
ClientDataSetIngredientsAspd.Value := ClientDataSetIngredientsdAsp.Value / 100 * ClientDataSetIngredientsAsp.Value; |
1209 | 1259 |
end; |
1210 | 1260 |
// Glu |
1211 |
if ClientDataSetInraAfzGlu.IsNull
|
|
1261 |
if ClientDataSetInraAfzGlu.Value = 0
|
|
1212 | 1262 |
then |
1213 | 1263 |
begin |
1214 |
ClientDataSetIngredientsGlu.Clear;
|
|
1264 |
ClientDataSetIngredientsGlu.Value := 0;
|
|
1215 | 1265 |
ClientDataSetIngredientsGlu_MAT.Clear; |
1216 | 1266 |
ClientDataSetIngredientsdGlu.Clear; |
1217 |
ClientDataSetIngredientsGlud.Clear;
|
|
1267 |
ClientDataSetIngredientsGlud.Value := 0;
|
|
1218 | 1268 |
end |
1219 | 1269 |
else |
1220 | 1270 |
begin |
1221 | 1271 |
ClientDataSetIngredientsGlu.Value := OutputAA(ClientDataSetInraAfzGlu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1222 |
ClientDataSetIngredientsGlu_MAT.Value := InputAA(ClientDataSetIngredientsGlu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1272 |
if ClientDataSetIngredientsGlu.Value = 0 |
|
1273 |
then |
|
1274 |
ClientDataSetIngredientsGlu_MAT.Clear |
|
1275 |
else |
|
1276 |
ClientDataSetIngredientsGlu_MAT.Value := InputAA(ClientDataSetIngredientsGlu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1223 | 1277 |
if ClientDataSetInraAfzdGlu.IsNull |
1224 | 1278 |
then |
1225 | 1279 |
ClientDataSetIngredientsdGlu.Value := dGlu * 100 |
... | ... | |
1228 | 1282 |
ClientDataSetIngredientsGlud.Value := ClientDataSetIngredientsdGlu.Value / 100 * ClientDataSetIngredientsGlu.Value; |
1229 | 1283 |
end; |
1230 | 1284 |
// Gly |
1231 |
if ClientDataSetInraAfzGly.IsNull
|
|
1285 |
if ClientDataSetInraAfzGly.Value = 0
|
|
1232 | 1286 |
then |
1233 | 1287 |
begin |
1234 |
ClientDataSetIngredientsGly.Clear;
|
|
1288 |
ClientDataSetIngredientsGly.Value := 0;
|
|
1235 | 1289 |
ClientDataSetIngredientsGly_MAT.Clear; |
1236 | 1290 |
ClientDataSetIngredientsdGly.Clear; |
1237 |
ClientDataSetIngredientsGlyd.Clear;
|
|
1291 |
ClientDataSetIngredientsGlyd.Value := 0;
|
|
1238 | 1292 |
end |
1239 | 1293 |
else |
1240 | 1294 |
begin |
1241 | 1295 |
ClientDataSetIngredientsGly.Value := OutputAA(ClientDataSetInraAfzGly.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1242 |
ClientDataSetIngredientsGly_MAT.Value := InputAA(ClientDataSetIngredientsGly.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1296 |
if ClientDataSetIngredientsGly.Value = 0 |
|
1297 |
then |
|
1298 |
ClientDataSetIngredientsGly_MAT.Clear |
|
1299 |
else |
|
1300 |
ClientDataSetIngredientsGly_MAT.Value := InputAA(ClientDataSetIngredientsGly.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1243 | 1301 |
if ClientDataSetInraAfzdGly.IsNull |
1244 | 1302 |
then |
1245 | 1303 |
ClientDataSetIngredientsdGly.Value := dGly * 100 |
... | ... | |
1248 | 1306 |
ClientDataSetIngredientsGlyd.Value := ClientDataSetIngredientsdGly.Value / 100 * ClientDataSetIngredientsGly.Value; |
1249 | 1307 |
end; |
1250 | 1308 |
// Ser |
1251 |
if ClientDataSetInraAfzSer.IsNull
|
|
1309 |
if ClientDataSetInraAfzSer.Value = 0
|
|
1252 | 1310 |
then |
1253 | 1311 |
begin |
1254 |
ClientDataSetIngredientsSer.Clear;
|
|
1312 |
ClientDataSetIngredientsSer.Value := 0;
|
|
1255 | 1313 |
ClientDataSetIngredientsSer_MAT.Clear; |
1256 | 1314 |
ClientDataSetIngredientsdSer.Clear; |
1257 |
ClientDataSetIngredientsSerd.Clear;
|
|
1315 |
ClientDataSetIngredientsSerd.Value := 0;
|
|
1258 | 1316 |
end |
1259 | 1317 |
else |
1260 | 1318 |
begin |
1261 | 1319 |
ClientDataSetIngredientsSer.Value := OutputAA(ClientDataSetInraAfzSer.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1262 |
ClientDataSetIngredientsSer_MAT.Value := InputAA(ClientDataSetIngredientsSer.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1320 |
if ClientDataSetIngredientsSer.Value = 0 |
|
1321 |
then |
|
1322 |
ClientDataSetIngredientsSer_MAT.Clear |
|
1323 |
else |
|
1324 |
ClientDataSetIngredientsSer_MAT.Value := InputAA(ClientDataSetIngredientsSer.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1263 | 1325 |
if ClientDataSetInraAfzdSer.IsNull |
1264 | 1326 |
then |
1265 | 1327 |
ClientDataSetIngredientsdSer.Value := dSer * 100 |
... | ... | |
1268 | 1330 |
ClientDataSetIngredientsSerd.Value := ClientDataSetIngredientsdSer.Value / 100 * ClientDataSetIngredientsSer.Value; |
1269 | 1331 |
end; |
1270 | 1332 |
// Pro |
1271 |
if ClientDataSetInraAfzPro.IsNull
|
|
1333 |
if ClientDataSetInraAfzPro.Value = 0
|
|
1272 | 1334 |
then |
1273 | 1335 |
begin |
1274 |
ClientDataSetIngredientsPro.Clear;
|
|
1336 |
ClientDataSetIngredientsPro.Value := 0;
|
|
1275 | 1337 |
ClientDataSetIngredientsPro_MAT.Clear; |
1276 | 1338 |
ClientDataSetIngredientsdPro.Clear; |
1277 |
ClientDataSetIngredientsProd.Clear;
|
|
1339 |
ClientDataSetIngredientsProd.Value := 0;
|
|
1278 | 1340 |
end |
1279 | 1341 |
else |
1280 | 1342 |
begin |
1281 | 1343 |
ClientDataSetIngredientsPro.Value := OutputAA(ClientDataSetInraAfzPro.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1282 |
ClientDataSetIngredientsPro_MAT.Value := InputAA(ClientDataSetIngredientsPro.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1344 |
if ClientDataSetIngredientsPro.Value = 0 |
|
1345 |
then |
|
1346 |
ClientDataSetIngredientsPro_MAT.Clear |
|
1347 |
else |
|
1348 |
ClientDataSetIngredientsPro_MAT.Value := InputAA(ClientDataSetIngredientsPro.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1283 | 1349 |
if ClientDataSetInraAfzdPro.IsNull |
1284 | 1350 |
then |
1285 | 1351 |
ClientDataSetIngredientsdPro.Value := dPro * 100 |
... | ... | |
1289 | 1355 |
end; |
1290 | 1356 |
end; |
1291 | 1357 |
// Min?raux |
1292 |
if ClientDataSetInraAfzCa.IsNull |
|
1293 |
then |
|
1294 |
ClientDataSetIngredientsCa.Clear |
|
1295 |
else |
|
1296 |
ClientDataSetIngredientsCa.Value := OutputMinerals(ClientDataSetInraAfzCa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1297 |
if ClientDataSetInraAfzP.IsNull |
|
1298 |
then |
|
1299 |
ClientDataSetIngredientsP.Clear |
|
1300 |
else |
|
1301 |
ClientDataSetIngredientsP.Value := OutputMinerals(ClientDataSetInraAfzP.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1302 |
if ClientDataSetInraAfzNa.IsNull |
|
1303 |
then |
|
1304 |
ClientDataSetIngredientsNa.Clear |
|
1305 |
else |
|
1306 |
ClientDataSetIngredientsNa.Value := OutputMinerals(ClientDataSetInraAfzNa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1307 |
if ClientDataSetInraAfzK.IsNull |
|
1308 |
then |
|
1309 |
ClientDataSetIngredientsK.Clear |
|
1310 |
else |
|
1311 |
ClientDataSetIngredientsK.Value := OutputMinerals(ClientDataSetInraAfzK.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1312 |
if ClientDataSetInraAfzCl.IsNull |
|
1313 |
then |
|
1314 |
ClientDataSetIngredientsCl.Clear |
|
1315 |
else |
|
1316 |
ClientDataSetIngredientsCl.Value := OutputMinerals(ClientDataSetInraAfzCl.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1317 |
if ClientDataSetIngredientsNa.IsNull or ClientDataSetIngredientsK.IsNull or ClientDataSetIngredientsCl.IsNull |
|
1318 |
then |
|
1319 |
ClientDataSetIngredientsBE.Clear |
|
1320 |
else |
|
1321 |
ClientDataSetIngredientsBE.Value := CalcBilanElectrolytique(InputMinerals(ClientDataSetIngredientsNa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals), InputMinerals(ClientDataSetIngredientsK.Value, RapMS, FormOptions.Expression, FormOptions.Minerals), InputMinerals(ClientDataSetIngredientsCl.Value, RapMS, FormOptions.Expression, FormOptions.Minerals)); |
|
1358 |
ClientDataSetIngredientsCa.Value := OutputMinerals(ClientDataSetInraAfzCa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1359 |
ClientDataSetIngredientsP.Value := OutputMinerals(ClientDataSetInraAfzP.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1360 |
ClientDataSetIngredientsNa.Value := OutputMinerals(ClientDataSetInraAfzNa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1361 |
ClientDataSetIngredientsK.Value := OutputMinerals(ClientDataSetInraAfzK.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1362 |
ClientDataSetIngredientsCl.Value := OutputMinerals(ClientDataSetInraAfzCl.Value, RapMS, FormOptions.Expression, FormOptions.Minerals); |
|
1363 |
ClientDataSetIngredientsBE.Value := CalcBilanElectrolytique(InputMinerals(ClientDataSetIngredientsNa.Value, RapMS, FormOptions.Expression, FormOptions.Minerals), InputMinerals(ClientDataSetIngredientsK.Value, RapMS, FormOptions.Expression, FormOptions.Minerals), InputMinerals(ClientDataSetIngredientsCl.Value, RapMS, FormOptions.Expression, FormOptions.Minerals)); |
|
1322 | 1364 |
if ClientDataSetIngredientsP.Value = 0 |
1323 | 1365 |
then // En l'absence de P, il n'y a pas de dP |
1324 | 1366 |
begin |
... | ... | |
1803 | 1845 |
then // En l'absence de MAT, il n'y a pas d'acides amin?s |
1804 | 1846 |
begin |
1805 | 1847 |
// Teneurs |
1806 |
ClientDataSetIngredientsLys.Clear;
|
|
1807 |
ClientDataSetIngredientsThr.Clear;
|
|
1808 |
ClientDataSetIngredientsMet.Clear;
|
|
1809 |
ClientDataSetIngredientsCys.Clear;
|
|
1810 |
ClientDataSetIngredientsMetCys.Clear;
|
|
1811 |
ClientDataSetIngredientsTrp.Clear;
|
|
1812 |
ClientDataSetIngredientsIle.Clear;
|
|
1813 |
ClientDataSetIngredientsVal.Clear;
|
|
1814 |
ClientDataSetIngredientsLeu.Clear;
|
|
1815 |
ClientDataSetIngredientsPhe.Clear;
|
|
1816 |
ClientDataSetIngredientsTyr.Clear;
|
|
1817 |
ClientDataSetIngredientsPheTyr.Clear;
|
|
1818 |
ClientDataSetIngredientsHis.Clear;
|
|
1819 |
ClientDataSetIngredientsArg.Clear;
|
|
1820 |
ClientDataSetIngredientsAla.Clear;
|
|
1821 |
ClientDataSetIngredientsAsp.Clear;
|
|
1822 |
ClientDataSetIngredientsGlu.Clear;
|
|
1823 |
ClientDataSetIngredientsGly.Clear;
|
|
1824 |
ClientDataSetIngredientsSer.Clear;
|
|
1825 |
ClientDataSetIngredientsPro.Clear;
|
|
1848 |
ClientDataSetIngredientsLys.Value := 0;
|
|
1849 |
ClientDataSetIngredientsThr.Value := 0;
|
|
1850 |
ClientDataSetIngredientsMet.Value := 0;
|
|
1851 |
ClientDataSetIngredientsCys.Value := 0;
|
|
1852 |
ClientDataSetIngredientsMetCys.Value := 0;
|
|
1853 |
ClientDataSetIngredientsTrp.Value := 0;
|
|
1854 |
ClientDataSetIngredientsIle.Value := 0;
|
|
1855 |
ClientDataSetIngredientsVal.Value := 0;
|
|
1856 |
ClientDataSetIngredientsLeu.Value := 0;
|
|
1857 |
ClientDataSetIngredientsPhe.Value := 0;
|
|
1858 |
ClientDataSetIngredientsTyr.Value := 0;
|
|
1859 |
ClientDataSetIngredientsPheTyr.Value := 0;
|
|
1860 |
ClientDataSetIngredientsHis.Value := 0;
|
|
1861 |
ClientDataSetIngredientsArg.Value := 0;
|
|
1862 |
ClientDataSetIngredientsAla.Value := 0;
|
|
1863 |
ClientDataSetIngredientsAsp.Value := 0;
|
|
1864 |
ClientDataSetIngredientsGlu.Value := 0;
|
|
1865 |
ClientDataSetIngredientsGly.Value := 0;
|
|
1866 |
ClientDataSetIngredientsSer.Value := 0;
|
|
1867 |
ClientDataSetIngredientsPro.Value := 0;
|
|
1826 | 1868 |
// % MAT |
1827 | 1869 |
ClientDataSetIngredientsLys_MAT.Clear; |
1828 | 1870 |
ClientDataSetIngredientsThr_MAT.Clear; |
... | ... | |
1866 | 1908 |
ClientDataSetIngredientsdSer.Clear; |
1867 | 1909 |
ClientDataSetIngredientsdPro.Clear; |
1868 | 1910 |
// Teneurs digestibles |
1869 |
ClientDataSetIngredientsLysd.Clear;
|
|
1870 |
ClientDataSetIngredientsThrd.Clear;
|
|
1871 |
ClientDataSetIngredientsMetd.Clear;
|
|
1872 |
ClientDataSetIngredientsCysd.Clear;
|
|
1873 |
ClientDataSetIngredientsMetCysd.Clear;
|
|
1874 |
ClientDataSetIngredientsTrpd.Clear;
|
|
1875 |
ClientDataSetIngredientsIled.Clear;
|
|
1876 |
ClientDataSetIngredientsVald.Clear;
|
|
1877 |
ClientDataSetIngredientsLeud.Clear;
|
|
1878 |
ClientDataSetIngredientsPhed.Clear;
|
|
1879 |
ClientDataSetIngredientsTyrd.Clear;
|
|
1880 |
ClientDataSetIngredientsPheTyrd.Clear;
|
|
1881 |
ClientDataSetIngredientsHisd.Clear;
|
|
1882 |
ClientDataSetIngredientsArgd.Clear;
|
|
1883 |
ClientDataSetIngredientsAlad.Clear;
|
|
1884 |
ClientDataSetIngredientsAspd.Clear;
|
|
1885 |
ClientDataSetIngredientsGlud.Clear;
|
|
1886 |
ClientDataSetIngredientsGlyd.Clear;
|
|
1887 |
ClientDataSetIngredientsSerd.Clear;
|
|
1888 |
ClientDataSetIngredientsProd.Clear;
|
|
1911 |
ClientDataSetIngredientsLysd.Value := 0;
|
|
1912 |
ClientDataSetIngredientsThrd.Value := 0;
|
|
1913 |
ClientDataSetIngredientsMetd.Value := 0;
|
|
1914 |
ClientDataSetIngredientsCysd.Value := 0;
|
|
1915 |
ClientDataSetIngredientsMetCysd.Value := 0;
|
|
1916 |
ClientDataSetIngredientsTrpd.Value := 0;
|
|
1917 |
ClientDataSetIngredientsIled.Value := 0;
|
|
1918 |
ClientDataSetIngredientsVald.Value := 0;
|
|
1919 |
ClientDataSetIngredientsLeud.Value := 0;
|
|
1920 |
ClientDataSetIngredientsPhed.Value := 0;
|
|
1921 |
ClientDataSetIngredientsTyrd.Value := 0;
|
|
1922 |
ClientDataSetIngredientsPheTyrd.Value := 0;
|
|
1923 |
ClientDataSetIngredientsHisd.Value := 0;
|
|
1924 |
ClientDataSetIngredientsArgd.Value := 0;
|
|
1925 |
ClientDataSetIngredientsAlad.Value := 0;
|
|
1926 |
ClientDataSetIngredientsAspd.Value := 0;
|
|
1927 |
ClientDataSetIngredientsGlud.Value := 0;
|
|
1928 |
ClientDataSetIngredientsGlyd.Value := 0;
|
|
1929 |
ClientDataSetIngredientsSerd.Value := 0;
|
|
1930 |
ClientDataSetIngredientsProd.Value := 0;
|
|
1889 | 1931 |
end |
1890 | 1932 |
else |
1891 | 1933 |
begin |
1892 | 1934 |
// Lys |
1893 | 1935 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Lys']) |
1936 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Lys']) = 0) |
|
1894 | 1937 |
then |
1895 | 1938 |
begin |
1896 |
ClientDataSetIngredientsLys.Clear;
|
|
1939 |
ClientDataSetIngredientsLys.Value := 0;
|
|
1897 | 1940 |
ClientDataSetIngredientsLys_MAT.Clear; |
1898 | 1941 |
ClientDataSetIngredientsdLys.Clear; |
1899 |
ClientDataSetIngredientsLysd.Clear;
|
|
1942 |
ClientDataSetIngredientsLysd.Value := 0;
|
|
1900 | 1943 |
end |
1901 | 1944 |
else |
1902 | 1945 |
begin |
1903 | 1946 |
ClientDataSetIngredientsLys.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Lys']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1904 |
ClientDataSetIngredientsLys_MAT.Value := InputAA(ClientDataSetIngredientsLys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1947 |
if ClientDataSetIngredientsLys.Value = 0 |
|
1948 |
then |
|
1949 |
ClientDataSetIngredientsLys_MAT.Clear |
|
1950 |
else |
|
1951 |
ClientDataSetIngredientsLys_MAT.Value := InputAA(ClientDataSetIngredientsLys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1905 | 1952 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dLys']) |
1906 | 1953 |
then |
1907 | 1954 |
ClientDataSetIngredientsdLys.Value := dLys * 100 |
... | ... | |
1911 | 1958 |
end; |
1912 | 1959 |
// Thr |
1913 | 1960 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Thr']) |
1961 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Thr']) = 0) |
|
1914 | 1962 |
then |
1915 | 1963 |
begin |
1916 |
ClientDataSetIngredientsThr.Clear;
|
|
1964 |
ClientDataSetIngredientsThr.Value := 0;
|
|
1917 | 1965 |
ClientDataSetIngredientsThr_MAT.Clear; |
1918 | 1966 |
ClientDataSetIngredientsdThr.Clear; |
1919 |
ClientDataSetIngredientsThrd.Clear;
|
|
1967 |
ClientDataSetIngredientsThrd.Value := 0;
|
|
1920 | 1968 |
end |
1921 | 1969 |
else |
1922 | 1970 |
begin |
1923 | 1971 |
ClientDataSetIngredientsThr.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Thr']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1924 |
ClientDataSetIngredientsThr_MAT.Value := InputAA(ClientDataSetIngredientsThr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1925 |
ClientDataSetIngredientsdThr.Value := dThr * 100; |
|
1926 |
ClientDataSetIngredientsThrd.Value := dThr * ClientDataSetIngredientsThr.Value; |
|
1972 |
if ClientDataSetIngredientsThr.Value = 0 |
|
1973 |
then |
|
1974 |
ClientDataSetIngredientsThr_MAT.Clear |
|
1975 |
else |
|
1976 |
ClientDataSetIngredientsThr_MAT.Value := InputAA(ClientDataSetIngredientsThr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1927 | 1977 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dThr']) |
1928 | 1978 |
then |
1929 | 1979 |
ClientDataSetIngredientsdThr.Value := dThr * 100 |
... | ... | |
1933 | 1983 |
end; |
1934 | 1984 |
// Met |
1935 | 1985 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Met']) |
1986 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Met']) = 0) |
|
1936 | 1987 |
then |
1937 | 1988 |
begin |
1938 |
ClientDataSetIngredientsMet.Clear;
|
|
1989 |
ClientDataSetIngredientsMet.Value := 0;
|
|
1939 | 1990 |
ClientDataSetIngredientsMet_MAT.Clear; |
1940 | 1991 |
ClientDataSetIngredientsdMet.Clear; |
1941 |
ClientDataSetIngredientsMetd.Clear;
|
|
1992 |
ClientDataSetIngredientsMetd.Value := 0;
|
|
1942 | 1993 |
end |
1943 | 1994 |
else |
1944 | 1995 |
begin |
1945 | 1996 |
ClientDataSetIngredientsMet.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Met']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1946 |
ClientDataSetIngredientsMet_MAT.Value := InputAA(ClientDataSetIngredientsMet.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1997 |
if ClientDataSetIngredientsMet.Value = 0 |
|
1998 |
then |
|
1999 |
ClientDataSetIngredientsMet_MAT.Clear |
|
2000 |
else |
|
2001 |
ClientDataSetIngredientsMet_MAT.Value := InputAA(ClientDataSetIngredientsMet.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1947 | 2002 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dMet']) |
1948 | 2003 |
then |
1949 | 2004 |
ClientDataSetIngredientsdMet.Value := dMet * 100 |
... | ... | |
1953 | 2008 |
end; |
1954 | 2009 |
// Cys |
1955 | 2010 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Cys']) |
2011 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Cys']) = 0) |
|
1956 | 2012 |
then |
1957 | 2013 |
begin |
1958 |
ClientDataSetIngredientsCys.Clear;
|
|
2014 |
ClientDataSetIngredientsCys.Value := 0;
|
|
1959 | 2015 |
ClientDataSetIngredientsCys_MAT.Clear; |
1960 | 2016 |
ClientDataSetIngredientsdCys.Clear; |
1961 |
ClientDataSetIngredientsCysd.Clear;
|
|
2017 |
ClientDataSetIngredientsCysd.Value := 0;
|
|
1962 | 2018 |
end |
1963 | 2019 |
else |
1964 | 2020 |
begin |
1965 | 2021 |
ClientDataSetIngredientsCys.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Cys']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1966 |
ClientDataSetIngredientsCys_MAT.Value := InputAA(ClientDataSetIngredientsCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2022 |
if ClientDataSetIngredientsCys.Value = 0 |
|
2023 |
then |
|
2024 |
ClientDataSetIngredientsCys_MAT.Clear |
|
2025 |
else |
|
2026 |
ClientDataSetIngredientsCys_MAT.Value := InputAA(ClientDataSetIngredientsCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1967 | 2027 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dCys']) |
1968 | 2028 |
then |
1969 | 2029 |
ClientDataSetIngredientsdCys.Value := dCys * 100 |
... | ... | |
1973 | 2033 |
end; |
1974 | 2034 |
// Met + Cys |
1975 | 2035 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['MetCys']) |
2036 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['MetCys']) = 0) |
|
1976 | 2037 |
then |
1977 | 2038 |
begin |
1978 |
ClientDataSetIngredientsMetCys.Clear;
|
|
2039 |
ClientDataSetIngredientsMetCys.Value := 0;
|
|
1979 | 2040 |
ClientDataSetIngredientsMetCys_MAT.Clear; |
1980 | 2041 |
ClientDataSetIngredientsdMetCys.Clear; |
1981 |
ClientDataSetIngredientsMetCysd.Clear;
|
|
2042 |
ClientDataSetIngredientsMetCysd.Value := 0;
|
|
1982 | 2043 |
end |
1983 | 2044 |
else |
1984 | 2045 |
begin |
1985 | 2046 |
ClientDataSetIngredientsMetCys.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['MetCys']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
1986 |
ClientDataSetIngredientsMetCys_MAT.Value := InputAA(ClientDataSetIngredientsMetCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2047 |
if ClientDataSetIngredientsMetCys.Value = 0 |
|
2048 |
then |
|
2049 |
ClientDataSetIngredientsMetCys_MAT.Clear |
|
2050 |
else |
|
2051 |
ClientDataSetIngredientsMetCys_MAT.Value := InputAA(ClientDataSetIngredientsMetCys.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
1987 | 2052 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dMetCys']) |
1988 | 2053 |
then |
1989 | 2054 |
ClientDataSetIngredientsdMetCys.Value := dMetCys * 100 |
... | ... | |
1993 | 2058 |
end; |
1994 | 2059 |
// Trp |
1995 | 2060 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Trp']) |
2061 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Trp']) = 0) |
|
1996 | 2062 |
then |
1997 | 2063 |
begin |
1998 |
ClientDataSetIngredientsTrp.Clear;
|
|
2064 |
ClientDataSetIngredientsTrp.Value := 0;
|
|
1999 | 2065 |
ClientDataSetIngredientsTrp_MAT.Clear; |
2000 | 2066 |
ClientDataSetIngredientsdTrp.Clear; |
2001 |
ClientDataSetIngredientsTrpd.Clear;
|
|
2067 |
ClientDataSetIngredientsTrpd.Value := 0;
|
|
2002 | 2068 |
end |
2003 | 2069 |
else |
2004 | 2070 |
begin |
2005 | 2071 |
ClientDataSetIngredientsTrp.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Trp']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2006 |
ClientDataSetIngredientsTrp_MAT.Value := InputAA(ClientDataSetIngredientsTrp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2072 |
if ClientDataSetIngredientsTrp.Value = 0 |
|
2073 |
then |
|
2074 |
ClientDataSetIngredientsTrp_MAT.Clear |
|
2075 |
else |
|
2076 |
ClientDataSetIngredientsTrp_MAT.Value := InputAA(ClientDataSetIngredientsTrp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2007 | 2077 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dTrp']) |
2008 | 2078 |
then |
2009 | 2079 |
ClientDataSetIngredientsdTrp.Value := dTrp * 100 |
... | ... | |
2013 | 2083 |
end; |
2014 | 2084 |
// Ile |
2015 | 2085 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Ile']) |
2086 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ile']) = 0) |
|
2016 | 2087 |
then |
2017 | 2088 |
begin |
2018 |
ClientDataSetIngredientsIle.Clear;
|
|
2089 |
ClientDataSetIngredientsIle.Value := 0;
|
|
2019 | 2090 |
ClientDataSetIngredientsIle_MAT.Clear; |
2020 | 2091 |
ClientDataSetIngredientsdIle.Clear; |
2021 |
ClientDataSetIngredientsIled.Clear;
|
|
2092 |
ClientDataSetIngredientsIled.Value := 0;
|
|
2022 | 2093 |
end |
2023 | 2094 |
else |
2024 | 2095 |
begin |
2025 | 2096 |
ClientDataSetIngredientsIle.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ile']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2026 |
ClientDataSetIngredientsIle_MAT.Value := InputAA(ClientDataSetIngredientsIle.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2097 |
if ClientDataSetIngredientsIle.Value = 0 |
|
2098 |
then |
|
2099 |
ClientDataSetIngredientsIle_MAT.Clear |
|
2100 |
else |
|
2101 |
ClientDataSetIngredientsIle_MAT.Value := InputAA(ClientDataSetIngredientsIle.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2027 | 2102 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dIle']) |
2028 | 2103 |
then |
2029 | 2104 |
ClientDataSetIngredientsdIle.Value := dIle * 100 |
... | ... | |
2033 | 2108 |
end; |
2034 | 2109 |
// Val |
2035 | 2110 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Val']) |
2111 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Val']) = 0) |
|
2036 | 2112 |
then |
2037 | 2113 |
begin |
2038 |
ClientDataSetIngredientsVal.Clear;
|
|
2114 |
ClientDataSetIngredientsVal.Value := 0;
|
|
2039 | 2115 |
ClientDataSetIngredientsVal_MAT.Clear; |
2040 | 2116 |
ClientDataSetIngredientsdVal.Clear; |
2041 |
ClientDataSetIngredientsVald.Clear;
|
|
2117 |
ClientDataSetIngredientsVald.Value := 0;
|
|
2042 | 2118 |
end |
2043 | 2119 |
else |
2044 | 2120 |
begin |
2045 | 2121 |
ClientDataSetIngredientsVal.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Val']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2046 |
ClientDataSetIngredientsVal_MAT.Value := InputAA(ClientDataSetIngredientsVal.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2122 |
if ClientDataSetIngredientsVal.Value = 0 |
|
2123 |
then |
|
2124 |
ClientDataSetIngredientsVal_MAT.Clear |
|
2125 |
else |
|
2126 |
ClientDataSetIngredientsVal_MAT.Value := InputAA(ClientDataSetIngredientsVal.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2047 | 2127 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dVal']) |
2048 | 2128 |
then |
2049 | 2129 |
ClientDataSetIngredientsdVal.Value := dVal * 100 |
... | ... | |
2053 | 2133 |
end; |
2054 | 2134 |
// Leu |
2055 | 2135 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Leu']) |
2136 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Leu']) = 0) |
|
2056 | 2137 |
then |
2057 | 2138 |
begin |
2058 |
ClientDataSetIngredientsLeu.Clear;
|
|
2139 |
ClientDataSetIngredientsLeu.Value := 0;
|
|
2059 | 2140 |
ClientDataSetIngredientsLeu_MAT.Clear; |
2060 | 2141 |
ClientDataSetIngredientsdLeu.Clear; |
2061 |
ClientDataSetIngredientsLeud.Clear;
|
|
2142 |
ClientDataSetIngredientsLeud.Value := 0;
|
|
2062 | 2143 |
end |
2063 | 2144 |
else |
2064 | 2145 |
begin |
2065 | 2146 |
ClientDataSetIngredientsLeu.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Leu']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2066 |
ClientDataSetIngredientsLeu_MAT.Value := InputAA(ClientDataSetIngredientsLeu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2147 |
if ClientDataSetIngredientsLeu.Value = 0 |
|
2148 |
then |
|
2149 |
ClientDataSetIngredientsLeu_MAT.Clear |
|
2150 |
else |
|
2151 |
ClientDataSetIngredientsLeu_MAT.Value := InputAA(ClientDataSetIngredientsLeu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2067 | 2152 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dLeu']) |
2068 | 2153 |
then |
2069 | 2154 |
ClientDataSetIngredientsdLeu.Value := dLeu * 100 |
... | ... | |
2073 | 2158 |
end; |
2074 | 2159 |
// Phe |
2075 | 2160 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Phe']) |
2161 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Phe']) = 0) |
|
2076 | 2162 |
then |
2077 | 2163 |
begin |
2078 |
ClientDataSetIngredientsPhe.Clear;
|
|
2164 |
ClientDataSetIngredientsPhe.Value := 0;
|
|
2079 | 2165 |
ClientDataSetIngredientsPhe_MAT.Clear; |
2080 | 2166 |
ClientDataSetIngredientsdPhe.Clear; |
2081 |
ClientDataSetIngredientsPhed.Clear;
|
|
2167 |
ClientDataSetIngredientsPhed.Value := 0;
|
|
2082 | 2168 |
end |
2083 | 2169 |
else |
2084 | 2170 |
begin |
2085 | 2171 |
ClientDataSetIngredientsPhe.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Phe']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2086 |
ClientDataSetIngredientsPhe_MAT.Value := InputAA(ClientDataSetIngredientsPhe.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2172 |
if ClientDataSetIngredientsPhe.Value = 0 |
|
2173 |
then |
|
2174 |
ClientDataSetIngredientsPhe_MAT.Clear |
|
2175 |
else |
|
2176 |
ClientDataSetIngredientsPhe_MAT.Value := InputAA(ClientDataSetIngredientsPhe.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2087 | 2177 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dPhe']) |
2088 | 2178 |
then |
2089 | 2179 |
ClientDataSetIngredientsdPhe.Value := dPhe * 100 |
... | ... | |
2093 | 2183 |
end; |
2094 | 2184 |
// Tyr |
2095 | 2185 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Tyr']) |
2186 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Tyr']) = 0) |
|
2096 | 2187 |
then |
2097 | 2188 |
begin |
2098 |
ClientDataSetIngredientsTyr.Clear;
|
|
2189 |
ClientDataSetIngredientsTyr.Value := 0;
|
|
2099 | 2190 |
ClientDataSetIngredientsTyr_MAT.Clear; |
2100 | 2191 |
ClientDataSetIngredientsdTyr.Clear; |
2101 |
ClientDataSetIngredientsTyrd.Clear;
|
|
2192 |
ClientDataSetIngredientsTyrd.Value := 0;
|
|
2102 | 2193 |
end |
2103 | 2194 |
else |
2104 | 2195 |
begin |
2105 | 2196 |
ClientDataSetIngredientsTyr.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Tyr']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2106 |
ClientDataSetIngredientsTyr_MAT.Value := InputAA(ClientDataSetIngredientsTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2197 |
if ClientDataSetIngredientsTyr.Value = 0 |
|
2198 |
then |
|
2199 |
ClientDataSetIngredientsTyr_MAT.Clear |
|
2200 |
else |
|
2201 |
ClientDataSetIngredientsTyr_MAT.Value := InputAA(ClientDataSetIngredientsTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2107 | 2202 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dTyr']) |
2108 | 2203 |
then |
2109 | 2204 |
ClientDataSetIngredientsdTyr.Value := dTyr * 100 |
... | ... | |
2113 | 2208 |
end; |
2114 | 2209 |
// Phe + Tyr |
2115 | 2210 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['PheTyr']) |
2211 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['PheTyr']) = 0) |
|
2116 | 2212 |
then |
2117 | 2213 |
begin |
2118 |
ClientDataSetIngredientsPheTyr.Clear;
|
|
2214 |
ClientDataSetIngredientsPheTyr.Value := 0;
|
|
2119 | 2215 |
ClientDataSetIngredientsPheTyr_MAT.Clear; |
2120 | 2216 |
ClientDataSetIngredientsdPheTyr.Clear; |
2121 |
ClientDataSetIngredientsPheTyrd.Clear;
|
|
2217 |
ClientDataSetIngredientsPheTyrd.Value := 0;
|
|
2122 | 2218 |
end |
2123 | 2219 |
else |
2124 | 2220 |
begin |
2125 | 2221 |
ClientDataSetIngredientsPheTyr.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['PheTyr']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2126 |
ClientDataSetIngredientsPheTyr_MAT.Value := InputAA(ClientDataSetIngredientsPheTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2222 |
if ClientDataSetIngredientsPheTyr.Value = 0 |
|
2223 |
then |
|
2224 |
ClientDataSetIngredientsPheTyr_MAT.Clear |
|
2225 |
else |
|
2226 |
ClientDataSetIngredientsPheTyr_MAT.Value := InputAA(ClientDataSetIngredientsPheTyr.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2127 | 2227 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dPheTyr']) |
2128 | 2228 |
then |
2129 | 2229 |
ClientDataSetIngredientsdPheTyr.Value := dPheTyr * 100 |
... | ... | |
2133 | 2233 |
end; |
2134 | 2234 |
// His |
2135 | 2235 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['His']) |
2236 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['His']) = 0) |
|
2136 | 2237 |
then |
2137 | 2238 |
begin |
2138 |
ClientDataSetIngredientsHis.Clear;
|
|
2239 |
ClientDataSetIngredientsHis.Value := 0;
|
|
2139 | 2240 |
ClientDataSetIngredientsHis_MAT.Clear; |
2140 | 2241 |
ClientDataSetIngredientsdHis.Clear; |
2141 |
ClientDataSetIngredientsHisd.Clear;
|
|
2242 |
ClientDataSetIngredientsHisd.Value := 0;
|
|
2142 | 2243 |
end |
2143 | 2244 |
else |
2144 | 2245 |
begin |
2145 | 2246 |
ClientDataSetIngredientsHis.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['His']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2146 |
ClientDataSetIngredientsHis_MAT.Value := InputAA(ClientDataSetIngredientsHis.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2247 |
if ClientDataSetIngredientsHis.Value = 0 |
|
2248 |
then |
|
2249 |
ClientDataSetIngredientsHis_MAT.Clear |
|
2250 |
else |
|
2251 |
ClientDataSetIngredientsHis_MAT.Value := InputAA(ClientDataSetIngredientsHis.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2147 | 2252 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dHis']) |
2148 | 2253 |
then |
2149 | 2254 |
ClientDataSetIngredientsdHis.Value := dHis * 100 |
... | ... | |
2153 | 2258 |
end; |
2154 | 2259 |
// Arg |
2155 | 2260 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Arg']) |
2261 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Arg']) = 0) |
|
2156 | 2262 |
then |
2157 | 2263 |
begin |
2158 |
ClientDataSetIngredientsArg.Clear;
|
|
2264 |
ClientDataSetIngredientsArg.Value := 0;
|
|
2159 | 2265 |
ClientDataSetIngredientsArg_MAT.Clear; |
2160 | 2266 |
ClientDataSetIngredientsdArg.Clear; |
2161 |
ClientDataSetIngredientsArgd.Clear;
|
|
2267 |
ClientDataSetIngredientsArgd.Value := 0;
|
|
2162 | 2268 |
end |
2163 | 2269 |
else |
2164 | 2270 |
begin |
2165 | 2271 |
ClientDataSetIngredientsArg.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Arg']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2166 |
ClientDataSetIngredientsArg_MAT.Value := InputAA(ClientDataSetIngredientsArg.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2272 |
if ClientDataSetIngredientsArg.Value = 0 |
|
2273 |
then |
|
2274 |
ClientDataSetIngredientsArg_MAT.Clear |
|
2275 |
else |
|
2276 |
ClientDataSetIngredientsArg_MAT.Value := InputAA(ClientDataSetIngredientsArg.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2167 | 2277 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dArg']) |
2168 | 2278 |
then |
2169 | 2279 |
ClientDataSetIngredientsdArg.Value := dArg * 100 |
... | ... | |
2173 | 2283 |
end; |
2174 | 2284 |
// Ala |
2175 | 2285 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Ala']) |
2286 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ala']) = 0) |
|
2176 | 2287 |
then |
2177 | 2288 |
begin |
2178 |
ClientDataSetIngredientsAla.Clear;
|
|
2289 |
ClientDataSetIngredientsAla.Value := 0;
|
|
2179 | 2290 |
ClientDataSetIngredientsAla_MAT.Clear; |
2180 | 2291 |
ClientDataSetIngredientsdAla.Clear; |
2181 |
ClientDataSetIngredientsAlad.Clear;
|
|
2292 |
ClientDataSetIngredientsAlad.Value := 0;
|
|
2182 | 2293 |
end |
2183 | 2294 |
else |
2184 | 2295 |
begin |
2185 | 2296 |
ClientDataSetIngredientsAla.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ala']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2186 |
ClientDataSetIngredientsAla_MAT.Value := InputAA(ClientDataSetIngredientsAla.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2297 |
if ClientDataSetIngredientsAla.Value = 0 |
|
2298 |
then |
|
2299 |
ClientDataSetIngredientsAla_MAT.Clear |
|
2300 |
else |
|
2301 |
ClientDataSetIngredientsAla_MAT.Value := InputAA(ClientDataSetIngredientsAla.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2187 | 2302 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dAla']) |
2188 | 2303 |
then |
2189 | 2304 |
ClientDataSetIngredientsdAla.Value := dAla * 100 |
... | ... | |
2193 | 2308 |
end; |
2194 | 2309 |
// Asp |
2195 | 2310 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Asp']) |
2311 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Asp']) = 0) |
|
2196 | 2312 |
then |
2197 | 2313 |
begin |
2198 |
ClientDataSetIngredientsAsp.Clear;
|
|
2314 |
ClientDataSetIngredientsAsp.Value := 0;
|
|
2199 | 2315 |
ClientDataSetIngredientsAsp_MAT.Clear; |
2200 | 2316 |
ClientDataSetIngredientsdAsp.Clear; |
2201 |
ClientDataSetIngredientsAspd.Clear;
|
|
2317 |
ClientDataSetIngredientsAspd.Value := 0;
|
|
2202 | 2318 |
end |
2203 | 2319 |
else |
2204 | 2320 |
begin |
2205 | 2321 |
ClientDataSetIngredientsAsp.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Asp']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2206 |
ClientDataSetIngredientsAsp_MAT.Value := InputAA(ClientDataSetIngredientsAsp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2322 |
if ClientDataSetIngredientsAsp.Value = 0 |
|
2323 |
then |
|
2324 |
ClientDataSetIngredientsAsp_MAT.Clear |
|
2325 |
else |
|
2326 |
ClientDataSetIngredientsAsp_MAT.Value := InputAA(ClientDataSetIngredientsAsp.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2207 | 2327 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dAsp']) |
2208 | 2328 |
then |
2209 | 2329 |
ClientDataSetIngredientsdAsp.Value := dAsp * 100 |
... | ... | |
2213 | 2333 |
end; |
2214 | 2334 |
// Glu |
2215 | 2335 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Glu']) |
2336 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Glu']) = 0) |
|
2216 | 2337 |
then |
2217 | 2338 |
begin |
2218 |
ClientDataSetIngredientsGlu.Clear;
|
|
2339 |
ClientDataSetIngredientsGlu.Value := 0;
|
|
2219 | 2340 |
ClientDataSetIngredientsGlu_MAT.Clear; |
2220 | 2341 |
ClientDataSetIngredientsdGlu.Clear; |
2221 |
ClientDataSetIngredientsGlud.Clear;
|
|
2342 |
ClientDataSetIngredientsGlud.Value := 0;
|
|
2222 | 2343 |
end |
2223 | 2344 |
else |
2224 | 2345 |
begin |
2225 | 2346 |
ClientDataSetIngredientsGlu.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Glu']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2226 |
ClientDataSetIngredientsGlu_MAT.Value := InputAA(ClientDataSetIngredientsGlu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2347 |
if ClientDataSetIngredientsGlu.Value = 0 |
|
2348 |
then |
|
2349 |
ClientDataSetIngredientsGlu_MAT.Clear |
|
2350 |
else |
|
2351 |
ClientDataSetIngredientsGlu_MAT.Value := InputAA(ClientDataSetIngredientsGlu.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2227 | 2352 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dGlu']) |
2228 | 2353 |
then |
2229 | 2354 |
ClientDataSetIngredientsdGlu.Value := dGlu * 100 |
... | ... | |
2233 | 2358 |
end; |
2234 | 2359 |
// Gly |
2235 | 2360 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Gly']) |
2361 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Gly']) = 0) |
|
2236 | 2362 |
then |
2237 | 2363 |
begin |
2238 |
ClientDataSetIngredientsGly.Clear;
|
|
2364 |
ClientDataSetIngredientsGly.Value := 0;
|
|
2239 | 2365 |
ClientDataSetIngredientsGly_MAT.Clear; |
2240 | 2366 |
ClientDataSetIngredientsdGly.Clear; |
2241 |
ClientDataSetIngredientsGlyd.Clear;
|
|
2367 |
ClientDataSetIngredientsGlyd.Value := 0;
|
|
2242 | 2368 |
end |
2243 | 2369 |
else |
2244 | 2370 |
begin |
2245 | 2371 |
ClientDataSetIngredientsGly.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Gly']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2246 |
ClientDataSetIngredientsGly_MAT.Value := InputAA(ClientDataSetIngredientsGly.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2372 |
if ClientDataSetIngredientsGly.Value = 0 |
|
2373 |
then |
|
2374 |
ClientDataSetIngredientsGly_MAT.Clear |
|
2375 |
else |
|
2376 |
ClientDataSetIngredientsGly_MAT.Value := InputAA(ClientDataSetIngredientsGly.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2247 | 2377 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dGly']) |
2248 | 2378 |
then |
2249 | 2379 |
ClientDataSetIngredientsdGly.Value := dGly * 100 |
... | ... | |
2253 | 2383 |
end; |
2254 | 2384 |
// Ser |
2255 | 2385 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Ser']) |
2386 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ser']) = 0) |
|
2256 | 2387 |
then |
2257 | 2388 |
begin |
2258 |
ClientDataSetIngredientsSer.Clear;
|
|
2389 |
ClientDataSetIngredientsSer.Value := 0;
|
|
2259 | 2390 |
ClientDataSetIngredientsSer_MAT.Clear; |
2260 | 2391 |
ClientDataSetIngredientsdSer.Clear; |
2261 |
ClientDataSetIngredientsSerd.Clear;
|
|
2392 |
ClientDataSetIngredientsSerd.Value := 0;
|
|
2262 | 2393 |
end |
2263 | 2394 |
else |
2264 | 2395 |
begin |
2265 | 2396 |
ClientDataSetIngredientsSer.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Ser']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2266 |
ClientDataSetIngredientsSer_MAT.Value := InputAA(ClientDataSetIngredientsSer.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2397 |
if ClientDataSetIngredientsSer.Value = 0 |
|
2398 |
then |
|
2399 |
ClientDataSetIngredientsSer_MAT.Clear |
|
2400 |
else |
|
2401 |
ClientDataSetIngredientsSer_MAT.Value := InputAA(ClientDataSetIngredientsSer.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2267 | 2402 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dSer']) |
2268 | 2403 |
then |
2269 | 2404 |
ClientDataSetIngredientsdSer.Value := dSer * 100 |
... | ... | |
2273 | 2408 |
end; |
2274 | 2409 |
// Pro |
2275 | 2410 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Pro']) |
2411 |
or (TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Pro']) = 0) |
|
2276 | 2412 |
then |
2277 | 2413 |
begin |
2278 |
ClientDataSetIngredientsPro.Clear;
|
|
2414 |
ClientDataSetIngredientsPro.Value := 0;
|
|
2279 | 2415 |
ClientDataSetIngredientsPro_MAT.Clear; |
2280 | 2416 |
ClientDataSetIngredientsdPro.Clear; |
2281 |
ClientDataSetIngredientsProd.Clear;
|
|
2417 |
ClientDataSetIngredientsProd.Value := 0;
|
|
2282 | 2418 |
end |
2283 | 2419 |
else |
2284 | 2420 |
begin |
2285 | 2421 |
ClientDataSetIngredientsPro.Value := OutputAA(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['Pro']), RapMAT, RapMS, FormOptions.Expression, FormOptions.AA); |
2286 |
ClientDataSetIngredientsPro_MAT.Value := InputAA(ClientDataSetIngredientsPro.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2422 |
if ClientDataSetIngredientsPro.Value = 0 |
|
2423 |
then |
|
2424 |
ClientDataSetIngredientsPro_MAT.Clear |
|
2425 |
else |
|
2426 |
ClientDataSetIngredientsPro_MAT.Value := InputAA(ClientDataSetIngredientsPro.Value, RapMAT, RapMS, FormOptions.Expression, FormOptions.AA) * 100; |
|
2287 | 2427 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['dPro']) |
2288 | 2428 |
then |
2289 | 2429 |
ClientDataSetIngredientsdPro.Value := dPro * 100 |
... | ... | |
2394 | 2534 |
ClientDataSetIngredientsMS2.Value := OutputProximal(1, RapMS, FormOptions.Expression, FormOptions.Proximal); |
2395 | 2535 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['MM']) |
2396 | 2536 |
then |
2397 |
if ClientDataSetInraAfzMM.IsNull |
|
2398 |
then |
|
2399 |
ClientDataSetIngredientsMM.Clear |
|
2400 |
else |
|
2401 |
ClientDataSetIngredientsMM.Value := OutputProximal(ClientDataSetInraAfzMM.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2537 |
ClientDataSetIngredientsMM.Value := OutputProximal(ClientDataSetInraAfzMM.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2402 | 2538 |
else |
2403 | 2539 |
ClientDataSetIngredientsMM.Value := OutputProximal(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['MM']), RapMS, FormOptions.Expression, FormOptions.Proximal); |
2404 | 2540 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['MAT']) |
2405 | 2541 |
then |
2406 |
if ClientDataSetInraAfzMAT.IsNull |
|
2407 |
then |
|
2408 |
ClientDataSetIngredientsMAT.Clear |
|
2409 |
else |
|
2410 |
begin |
|
2411 |
RapMAT := ClientDataSetInraAfzMAT.Value; |
|
2412 |
ClientDataSetIngredientsMAT.Value := OutputProximal(RapMAT, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
2413 |
end |
|
2542 |
begin |
|
2543 |
RapMAT := ClientDataSetInraAfzMAT.Value; |
|
2544 |
ClientDataSetIngredientsMAT.Value := OutputProximal(RapMAT, RapMS, FormOptions.Expression, FormOptions.Proximal); |
|
2545 |
end |
|
2414 | 2546 |
else |
2415 | 2547 |
begin |
2416 | 2548 |
RapMAT := TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['MAT']); |
... | ... | |
2418 | 2550 |
end; |
2419 | 2551 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['MG']) |
2420 | 2552 |
then |
2421 |
if ClientDataSetInraAfzMG.IsNull |
|
2422 |
then |
|
2423 |
ClientDataSetIngredientsMG.Clear |
|
2424 |
else |
|
2425 |
ClientDataSetIngredientsMG.Value := OutputProximal(ClientDataSetInraAfzMG.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2553 |
ClientDataSetIngredientsMG.Value := OutputProximal(ClientDataSetInraAfzMG.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2426 | 2554 |
else |
2427 | 2555 |
ClientDataSetIngredientsMG.Value := OutputProximal(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['MG']), RapMS, FormOptions.Expression, FormOptions.Proximal); |
2428 | 2556 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['CB']) |
2429 | 2557 |
then |
2430 |
if ClientDataSetInraAfzCB.IsNull |
|
2431 |
then |
|
2432 |
ClientDataSetIngredientsCB.Clear |
|
2433 |
else |
|
2434 |
ClientDataSetIngredientsCB.Value := OutputProximal(ClientDataSetInraAfzCB.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2558 |
ClientDataSetIngredientsCB.Value := OutputProximal(ClientDataSetInraAfzCB.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2435 | 2559 |
else |
2436 | 2560 |
ClientDataSetIngredientsCB.Value := OutputProximal(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['CB']), RapMS, FormOptions.Expression, FormOptions.Proximal); |
2437 | 2561 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['NDF']) |
2438 | 2562 |
then |
2439 |
if ClientDataSetInraAfzNDF.IsNull |
|
2440 |
then |
|
2441 |
ClientDataSetIngredientsNDF.Clear |
|
2442 |
else |
|
2443 |
ClientDataSetIngredientsNDF.Value := OutputProximal(ClientDataSetInraAfzNDF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2563 |
ClientDataSetIngredientsNDF.Value := OutputProximal(ClientDataSetInraAfzNDF.Value, RapMS, FormOptions.Expression, FormOptions.Proximal) |
|
2444 | 2564 |
else |
2445 | 2565 |
ClientDataSetIngredientsNDF.Value := OutputProximal(TableIngredients.FieldAsDouble(TableIngredients.FieldIndex['NDF']), RapMS, FormOptions.Expression, FormOptions.Proximal); |
2446 | 2566 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['ADF']) |
2447 | 2567 |
then |
2448 |
if ClientDataSetInraAfzADF.IsNull |
|
2449 |
then |
Formats disponibles : Unified diff