Révision 3
UnitDeclaration.dfm | ||
---|---|---|
257 | 257 |
object ClientDataSetInraAfzdPphy: TFloatField |
258 | 258 |
FieldName = 'dPphy' |
259 | 259 |
end |
260 |
object ClientDataSetInraAfzNa: TFloatField |
|
261 |
FieldName = 'Na' |
|
262 |
end |
|
263 |
object ClientDataSetInraAfzK: TFloatField |
|
264 |
FieldName = 'K' |
|
265 |
end |
|
266 |
object ClientDataSetInraAfzCl: TFloatField |
|
267 |
FieldName = 'Cl' |
|
268 |
end |
|
260 | 269 |
end |
261 | 270 |
object DataSourceInraAfz: TDataSource |
262 | 271 |
DataSet = ClientDataSetInraAfz |
... | ... | |
735 | 744 |
FieldName = 'Lysd/ENt' |
736 | 745 |
end |
737 | 746 |
object ClientDataSetIngredientsCa: TFloatField |
747 |
DisplayLabel = 'Calcium (Ca)' |
|
738 | 748 |
FieldName = 'Ca' |
739 | 749 |
end |
740 | 750 |
object ClientDataSetIngredientsP: TFloatField |
751 |
DisplayLabel = 'Phosphorus (P)' |
|
741 | 752 |
FieldName = 'P' |
742 | 753 |
end |
754 |
object ClientDataSetIngredientsNa: TFloatField |
|
755 |
DisplayLabel = 'Sodium (Na)' |
|
756 |
FieldName = 'Na' |
|
757 |
end |
|
758 |
object ClientDataSetIngredientsK: TFloatField |
|
759 |
DisplayLabel = 'Potassium (K)' |
|
760 |
FieldName = 'K' |
|
761 |
end |
|
762 |
object ClientDataSetIngredientsCl: TFloatField |
|
763 |
DisplayLabel = 'Chlorine (Cl)' |
|
764 |
FieldName = 'Cl' |
|
765 |
end |
|
766 |
object ClientDataSetIngredientsBE: TFloatField |
|
767 |
DisplayLabel = 'Electrolyte balance' |
|
768 |
FieldName = 'BE' |
|
769 |
end |
|
743 | 770 |
object ClientDataSetIngredientsdP: TFloatField |
744 | 771 |
DisplayLabel = 'Pd, pellet' |
745 | 772 |
FieldName = 'dP' |
... | ... | |
1222 | 1249 |
DisplayLabel = 'Phosphorus (P)' |
1223 | 1250 |
FieldName = 'P' |
1224 | 1251 |
end |
1252 |
object ClientDataSetFeedsNa: TFloatField |
|
1253 |
DisplayLabel = 'Sodium (Na)' |
|
1254 |
FieldName = 'Na' |
|
1255 |
end |
|
1256 |
object ClientDataSetFeedsK: TFloatField |
|
1257 |
DisplayLabel = 'Potassium (K)' |
|
1258 |
FieldName = 'K' |
|
1259 |
end |
|
1260 |
object ClientDataSetFeedsCl: TFloatField |
|
1261 |
DisplayLabel = 'Chlorine (Cl)' |
|
1262 |
FieldName = 'Cl' |
|
1263 |
end |
|
1264 |
object ClientDataSetFeedsBE: TFloatField |
|
1265 |
DisplayLabel = 'Electrolyte balance' |
|
1266 |
FieldName = 'BE' |
|
1267 |
end |
|
1225 | 1268 |
object ClientDataSetFeedsPd: TFloatField |
1226 | 1269 |
DisplayLabel = 'Digestible P (dP)' |
1227 | 1270 |
FieldName = 'Pd' |
UnitFeedDetail.dfm | ||
---|---|---|
4 | 4 |
HelpContext = 3420 |
5 | 5 |
BorderStyle = bsDialog |
6 | 6 |
Caption = 'Diet' |
7 |
ClientHeight = 680
|
|
7 |
ClientHeight = 704
|
|
8 | 8 |
ClientWidth = 904 |
9 | 9 |
Color = clBtnFace |
10 | 10 |
Font.Charset = DEFAULT_CHARSET |
... | ... | |
23 | 23 |
Left = 0 |
24 | 24 |
Top = 0 |
25 | 25 |
Width = 904 |
26 |
Height = 632
|
|
26 |
Height = 656
|
|
27 | 27 |
Align = alClient |
28 | 28 |
BevelOuter = bvNone |
29 | 29 |
TabOrder = 0 |
30 |
ExplicitHeight = 632 |
|
30 | 31 |
DesignSize = ( |
31 | 32 |
904 |
32 |
632)
|
|
33 |
656)
|
|
33 | 34 |
object LabelDescription: TLabel |
34 | 35 |
Left = 560 |
35 | 36 |
Top = 8 |
... | ... | |
977 | 978 |
end |
978 | 979 |
object GroupBoxEnergy: TGroupBox |
979 | 980 |
Left = 16 |
980 |
Top = 368
|
|
981 |
Top = 320
|
|
981 | 982 |
Width = 416 |
982 | 983 |
Height = 120 |
983 | 984 |
Caption = 'Energy values' |
984 | 985 |
Enabled = False |
985 |
TabOrder = 5
|
|
986 |
TabOrder = 4
|
|
986 | 987 |
object LabelEB: TLabel |
987 | 988 |
Left = 8 |
988 | 989 |
Top = 20 |
... | ... | |
1172 | 1173 |
end |
1173 | 1174 |
object GroupBoxEnergyUtilization: TGroupBox |
1174 | 1175 |
Left = 16 |
1175 |
Top = 488
|
|
1176 |
Top = 440
|
|
1176 | 1177 |
Width = 416 |
1177 |
Height = 144
|
|
1178 |
Height = 120
|
|
1178 | 1179 |
Caption = 'Energy utilization' |
1179 | 1180 |
Enabled = False |
1180 |
TabOrder = 6
|
|
1181 |
TabOrder = 5
|
|
1181 | 1182 |
object LabeldE: TLabel |
1182 | 1183 |
Left = 8 |
1183 | 1184 |
Top = 44 |
... | ... | |
1222 | 1223 |
Caption = 'Adult pig' |
1223 | 1224 |
Transparent = False |
1224 | 1225 |
end |
1225 |
object LabelLysd_EN: TLabel |
|
1226 |
Left = 8 |
|
1227 |
Top = 116 |
|
1228 |
Width = 45 |
|
1229 |
Height = 13 |
|
1230 |
Hint = 'Digestible lysine / NE' |
|
1231 |
Caption = 'dLys / NE' |
|
1232 |
ParentShowHint = False |
|
1233 |
ShowHint = True |
|
1234 |
Transparent = False |
|
1235 |
end |
|
1236 | 1226 |
object LabelBonus: TLabel |
1237 | 1227 |
Left = 8 |
1238 | 1228 |
Top = 20 |
... | ... | |
1293 | 1283 |
end |
1294 | 1284 |
object DBEditENt_EMt: TDBEdit |
1295 | 1285 |
Left = 256 |
1296 |
Top = 88
|
|
1286 |
Top = 91
|
|
1297 | 1287 |
Width = 64 |
1298 | 1288 |
Height = 21 |
1299 | 1289 |
DataField = 'ENt/EMt' |
... | ... | |
1301 | 1291 |
ReadOnly = True |
1302 | 1292 |
TabOrder = 7 |
1303 | 1293 |
end |
1304 |
object DBEditLysd_ENc: TDBEdit |
|
1305 |
Left = 176 |
|
1306 |
Top = 112 |
|
1307 |
Width = 64 |
|
1308 |
Height = 21 |
|
1309 |
DataField = 'Lysd/ENc' |
|
1310 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1311 |
ParentShowHint = False |
|
1312 |
ReadOnly = True |
|
1313 |
ShowHint = False |
|
1314 |
TabOrder = 8 |
|
1315 |
end |
|
1316 |
object DBEditLysd_ENt: TDBEdit |
|
1317 |
Left = 256 |
|
1318 |
Top = 112 |
|
1319 |
Width = 64 |
|
1320 |
Height = 21 |
|
1321 |
DataField = 'Lysd/ENt' |
|
1322 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1323 |
ParentShowHint = False |
|
1324 |
ReadOnly = True |
|
1325 |
ShowHint = False |
|
1326 |
TabOrder = 9 |
|
1327 |
end |
|
1328 | 1294 |
object DBEditBonusC: TDBEdit |
1329 | 1295 |
Left = 176 |
1330 | 1296 |
Top = 16 |
... | ... | |
1372 | 1338 |
end |
1373 | 1339 |
object LabelPd: TLabel |
1374 | 1340 |
Left = 8 |
1375 |
Top = 68
|
|
1341 |
Top = 180
|
|
1376 | 1342 |
Width = 78 |
1377 | 1343 |
Height = 13 |
1378 | 1344 |
Caption = 'Digestible P (dP)' |
... | ... | |
1380 | 1346 |
end |
1381 | 1347 |
object LabelCa_Pd: TLabel |
1382 | 1348 |
Left = 8 |
1383 |
Top = 92
|
|
1349 |
Top = 204
|
|
1384 | 1350 |
Width = 35 |
1385 | 1351 |
Height = 13 |
1386 | 1352 |
Caption = 'Ca / dP' |
1387 | 1353 |
Transparent = False |
1388 | 1354 |
end |
1389 |
object LabelPd_EN: TLabel
|
|
1355 |
object LabelNa: TLabel
|
|
1390 | 1356 |
Left = 8 |
1391 |
Top = 120
|
|
1392 |
Width = 35
|
|
1357 |
Top = 68
|
|
1358 |
Width = 58
|
|
1393 | 1359 |
Height = 13 |
1394 |
Hint = 'Digestible phosphorus / NE' |
|
1395 |
Caption = 'dP / NE' |
|
1396 |
ParentShowHint = False |
|
1397 |
ShowHint = True |
|
1360 |
Caption = 'Sodium (Na)' |
|
1398 | 1361 |
Transparent = False |
1399 | 1362 |
end |
1400 |
object LabelCrois3: TLabel |
|
1401 |
Left = 32 |
|
1402 |
Top = 136 |
|
1403 |
Width = 80 |
|
1404 |
Height = 15 |
|
1405 |
Alignment = taCenter |
|
1406 |
AutoSize = False |
|
1407 |
Caption = 'Growing pig' |
|
1363 |
object LabelK: TLabel |
|
1364 |
Left = 8 |
|
1365 |
Top = 92 |
|
1366 |
Width = 65 |
|
1367 |
Height = 13 |
|
1368 |
Caption = 'Potassium (K)' |
|
1408 | 1369 |
Transparent = False |
1409 | 1370 |
end |
1410 |
object LabelTruie3: TLabel |
|
1411 |
Left = 112 |
|
1371 |
object LabelCl: TLabel |
|
1372 |
Left = 8 |
|
1373 |
Top = 116 |
|
1374 |
Width = 59 |
|
1375 |
Height = 13 |
|
1376 |
Caption = 'Chlorine (Cl)' |
|
1377 |
Transparent = False |
|
1378 |
end |
|
1379 |
object LabelBE: TLabel |
|
1380 |
Left = 8 |
|
1412 | 1381 |
Top = 136 |
1413 |
Width = 80 |
|
1414 |
Height = 15 |
|
1415 |
Alignment = taCenter |
|
1416 |
AutoSize = False |
|
1417 |
Caption = 'Adult pig' |
|
1382 |
Width = 91 |
|
1383 |
Height = 13 |
|
1384 |
Caption = 'Electrolyte balance' |
|
1418 | 1385 |
Transparent = False |
1419 | 1386 |
end |
1420 | 1387 |
object DBEditCa: TDBEdit |
... | ... | |
1439 | 1406 |
end |
1440 | 1407 |
object DBEditPd: TDBEdit |
1441 | 1408 |
Left = 120 |
1442 |
Top = 64
|
|
1409 |
Top = 176
|
|
1443 | 1410 |
Width = 64 |
1444 | 1411 |
Height = 21 |
1445 | 1412 |
DataField = 'Pd' |
1446 | 1413 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
1447 | 1414 |
ReadOnly = True |
1448 |
TabOrder = 2
|
|
1415 |
TabOrder = 6
|
|
1449 | 1416 |
end |
1450 | 1417 |
object DBEditCa_Pd: TDBEdit |
1451 | 1418 |
Left = 120 |
1452 |
Top = 88
|
|
1419 |
Top = 200
|
|
1453 | 1420 |
Width = 64 |
1454 | 1421 |
Height = 21 |
1455 | 1422 |
DataField = 'Ca/Pd' |
1456 | 1423 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
1457 | 1424 |
ReadOnly = True |
1425 |
TabOrder = 7 |
|
1426 |
end |
|
1427 |
object DBEditNa: TDBEdit |
|
1428 |
Left = 120 |
|
1429 |
Top = 64 |
|
1430 |
Width = 64 |
|
1431 |
Height = 21 |
|
1432 |
DataField = 'Na' |
|
1433 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1434 |
ReadOnly = True |
|
1435 |
TabOrder = 2 |
|
1436 |
end |
|
1437 |
object DBEditK: TDBEdit |
|
1438 |
Left = 120 |
|
1439 |
Top = 88 |
|
1440 |
Width = 64 |
|
1441 |
Height = 21 |
|
1442 |
DataField = 'K' |
|
1443 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1444 |
ReadOnly = True |
|
1458 | 1445 |
TabOrder = 3 |
1459 | 1446 |
end |
1460 |
object DBEditPd_ENc: TDBEdit
|
|
1461 |
Left = 40
|
|
1462 |
Top = 152
|
|
1447 |
object DBEditCl: TDBEdit
|
|
1448 |
Left = 120
|
|
1449 |
Top = 115
|
|
1463 | 1450 |
Width = 64 |
1464 | 1451 |
Height = 21 |
1465 |
DataField = 'Pd/ENc'
|
|
1452 |
DataField = 'Cl'
|
|
1466 | 1453 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
1467 | 1454 |
ReadOnly = True |
1468 | 1455 |
TabOrder = 4 |
1469 | 1456 |
end |
1470 |
object DBEditPd_ENt: TDBEdit
|
|
1457 |
object DBEditBE: TDBEdit
|
|
1471 | 1458 |
Left = 120 |
1472 | 1459 |
Top = 152 |
1473 | 1460 |
Width = 64 |
1474 | 1461 |
Height = 21 |
1475 |
DataField = 'Pd/ENt'
|
|
1462 |
DataField = 'BE'
|
|
1476 | 1463 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
1477 | 1464 |
ReadOnly = True |
1478 | 1465 |
TabOrder = 5 |
... | ... | |
1712 | 1699 |
end |
1713 | 1700 |
object GroupBoxAzote: TGroupBox |
1714 | 1701 |
Left = 16 |
1715 |
Top = 320
|
|
1702 |
Top = 560
|
|
1716 | 1703 |
Width = 416 |
1717 |
Height = 48 |
|
1718 |
Caption = 'Faecal nitrogen digestibility' |
|
1704 |
Height = 96 |
|
1719 | 1705 |
Enabled = False |
1720 |
TabOrder = 4
|
|
1706 |
TabOrder = 6
|
|
1721 | 1707 |
object LabelCrois4: TLabel |
1722 |
Left = 168
|
|
1708 |
Left = 248
|
|
1723 | 1709 |
Top = 0 |
1724 | 1710 |
Width = 80 |
1725 | 1711 |
Height = 15 |
... | ... | |
1729 | 1715 |
Transparent = False |
1730 | 1716 |
end |
1731 | 1717 |
object LabelTruie4: TLabel |
1732 |
Left = 248
|
|
1718 |
Left = 328
|
|
1733 | 1719 |
Top = 0 |
1734 | 1720 |
Width = 80 |
1735 | 1721 |
Height = 15 |
... | ... | |
1741 | 1727 |
object LabeldN: TLabel |
1742 | 1728 |
Left = 8 |
1743 | 1729 |
Top = 20 |
1744 |
Width = 13 |
|
1730 |
Width = 130
|
|
1745 | 1731 |
Height = 13 |
1746 |
Caption = 'Nd'
|
|
1732 |
Caption = 'Faecal nitrogen digestibility'
|
|
1747 | 1733 |
Transparent = False |
1748 | 1734 |
end |
1735 |
object LabelLysd_EN: TLabel |
|
1736 |
Left = 8 |
|
1737 |
Top = 44 |
|
1738 |
Width = 99 |
|
1739 |
Height = 13 |
|
1740 |
Caption = 'Digestible lysine / NE' |
|
1741 |
Transparent = False |
|
1742 |
end |
|
1743 |
object LabelPd_EN: TLabel |
|
1744 |
Left = 8 |
|
1745 |
Top = 68 |
|
1746 |
Width = 128 |
|
1747 |
Height = 13 |
|
1748 |
Caption = 'Digestible phosphorus / NE' |
|
1749 |
Transparent = False |
|
1750 |
end |
|
1749 | 1751 |
object DBEditdNc: TDBEdit |
1750 |
Left = 176
|
|
1752 |
Left = 256
|
|
1751 | 1753 |
Top = 16 |
1752 | 1754 |
Width = 64 |
1753 | 1755 |
Height = 21 |
... | ... | |
1759 | 1761 |
TabOrder = 0 |
1760 | 1762 |
end |
1761 | 1763 |
object DBEditdNt: TDBEdit |
1762 |
Left = 256
|
|
1764 |
Left = 336
|
|
1763 | 1765 |
Top = 16 |
1764 | 1766 |
Width = 64 |
1765 | 1767 |
Height = 21 |
... | ... | |
1770 | 1772 |
ShowHint = False |
1771 | 1773 |
TabOrder = 1 |
1772 | 1774 |
end |
1775 |
object DBEditLysd_ENc: TDBEdit |
|
1776 |
Left = 256 |
|
1777 |
Top = 40 |
|
1778 |
Width = 64 |
|
1779 |
Height = 21 |
|
1780 |
DataField = 'Lysd/ENc' |
|
1781 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1782 |
ParentShowHint = False |
|
1783 |
ReadOnly = True |
|
1784 |
ShowHint = False |
|
1785 |
TabOrder = 2 |
|
1786 |
end |
|
1787 |
object DBEditLysd_ENt: TDBEdit |
|
1788 |
Left = 336 |
|
1789 |
Top = 40 |
|
1790 |
Width = 64 |
|
1791 |
Height = 21 |
|
1792 |
DataField = 'Lysd/ENt' |
|
1793 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1794 |
ParentShowHint = False |
|
1795 |
ReadOnly = True |
|
1796 |
ShowHint = False |
|
1797 |
TabOrder = 3 |
|
1798 |
end |
|
1799 |
object DBEditPd_ENc: TDBEdit |
|
1800 |
Left = 256 |
|
1801 |
Top = 64 |
|
1802 |
Width = 64 |
|
1803 |
Height = 21 |
|
1804 |
DataField = 'Pd/ENc' |
|
1805 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1806 |
ReadOnly = True |
|
1807 |
TabOrder = 4 |
|
1808 |
end |
|
1809 |
object DBEditPd_ENt: TDBEdit |
|
1810 |
Left = 336 |
|
1811 |
Top = 64 |
|
1812 |
Width = 64 |
|
1813 |
Height = 21 |
|
1814 |
DataField = 'Pd/ENt' |
|
1815 |
DataSource = DataModuleDeclaration.DataSourceFeeds |
|
1816 |
ReadOnly = True |
|
1817 |
TabOrder = 5 |
|
1818 |
end |
|
1773 | 1819 |
end |
1774 | 1820 |
end |
1775 | 1821 |
object PanelButtons: TPanel |
1776 | 1822 |
Left = 0 |
1777 |
Top = 632
|
|
1823 |
Top = 656
|
|
1778 | 1824 |
Width = 904 |
1779 | 1825 |
Height = 48 |
1780 | 1826 |
Align = alBottom |
1781 | 1827 |
BevelOuter = bvNone |
1782 | 1828 |
TabOrder = 1 |
1829 |
ExplicitTop = 632 |
|
1783 | 1830 |
DesignSize = ( |
1784 | 1831 |
904 |
1785 | 1832 |
48) |
... | ... | |
6995 | 7042 |
Left = 8 |
6996 | 7043 |
Top = 648 |
6997 | 7044 |
Bitmap = { |
6998 |
494C010108000900380020002000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
|
|
7045 |
494C010108000900400020002000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
|
|
6999 | 7046 |
00000000000036000000280000008000000060000000010020000000000000C0 |
7000 | 7047 |
0000000000000000000000000000000000000000000000000000000000000000 |
7001 | 7048 |
0000000000000000000000000000000000000000000000000000000000000000 |
locale/fr/LC_MESSAGES/default.po | ||
---|---|---|
2 | 2 |
msgstr "" |
3 | 3 |
"Project-Id-Version: EvaPig 1.x\n" |
4 | 4 |
"POT-Creation-Date: 2020-11-27 17:22\n" |
5 |
"PO-Revision-Date: 2020-11-27 17:23+0100\n"
|
|
5 |
"PO-Revision-Date: 2020-12-04 12:24+0100\n"
|
|
6 | 6 |
"Last-Translator: Alain VALANCOGNE <Alain.Valancogne@rennes.inra.fr>\n" |
7 | 7 |
"Language-Team: \n" |
8 | 8 |
"MIME-Version: 1.0\n" |
... | ... | |
1970 | 1970 |
|
1971 | 1971 |
#. FormIngredientDetail..PanelMain..GroupBoxMinerals..LabelK..Caption |
1972 | 1972 |
msgid "Potassium (K)" |
1973 |
msgstr "Potassium (P)"
|
|
1973 |
msgstr "Potassium (K)"
|
|
1974 | 1974 |
|
1975 | 1975 |
#. FormFeedsList..ActionListButtons..ActionEval..Hint |
1976 | 1976 |
msgid "Prediction of diets energy value from chemical composition" |
UnitIngredientEditionOriginal.pas | ||
---|---|---|
188 | 188 |
JvImgBtnHelp: TJvImgBtn; |
189 | 189 |
JvImgBtnRename: TJvImgBtn; |
190 | 190 |
JvImgBtnComment: TJvImgBtn; |
191 |
LabelNa: TLabel; |
|
192 |
ValidateEditNa: TJvValidateEdit; |
|
193 |
CheckBoxNa: TCheckBox; |
|
194 |
LabelK: TLabel; |
|
195 |
ValidateEditK: TJvValidateEdit; |
|
196 |
CheckBoxK: TCheckBox; |
|
197 |
LabelCl: TLabel; |
|
198 |
ValidateEditCl: TJvValidateEdit; |
|
199 |
CheckBoxCl: TCheckBox; |
|
191 | 200 |
procedure FormCreate(Sender: TObject); |
192 | 201 |
procedure CheckBoxMATClick(Sender: TObject); |
193 | 202 |
procedure CheckBoxCBClick(Sender: TObject); |
... | ... | |
260 | 269 |
procedure NumEditKeyDown(Sender: TObject; var Key: Word; |
261 | 270 |
Shift: TShiftState); |
262 | 271 |
procedure NumEditKeyPress(Sender: TObject; var Key: Char); |
272 |
procedure CheckBoxNaClick(Sender: TObject); |
|
273 |
procedure CheckBoxKClick(Sender: TObject); |
|
274 |
procedure CheckBoxClClick(Sender: TObject); |
|
263 | 275 |
private |
264 | 276 |
{ D?clarations priv?es } |
265 | 277 |
ProximalUnit, EnergyUnit, MineralsUnit, AAUnit: Integer; |
... | ... | |
967 | 979 |
DBUser.ExecSQL('UPDATE Ingredients ' |
968 | 980 |
+ 'SET P = null ' |
969 | 981 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])); |
982 |
if CheckBoxNa.Checked |
|
983 |
then |
|
984 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
985 |
+ Format('SET Na = %.15f ', [InputMinerals(ValidateEditNa.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2)], USFormatSettings) |
|
986 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])) |
|
987 |
else |
|
988 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
989 |
+ 'SET Ca = null ' |
|
990 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])); |
|
991 |
if CheckBoxK.Checked |
|
992 |
then |
|
993 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
994 |
+ Format('SET K = %.15f ', [InputMinerals(ValidateEditK.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2)], USFormatSettings) |
|
995 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])) |
|
996 |
else |
|
997 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
998 |
+ 'SET Ca = null ' |
|
999 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])); |
|
1000 |
if CheckBoxCl.Checked |
|
1001 |
then |
|
1002 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
1003 |
+ Format('SET Cl = %.15f ', [InputMinerals(ValidateEditCl.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2)], USFormatSettings) |
|
1004 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])) |
|
1005 |
else |
|
1006 |
DBUser.ExecSQL('UPDATE Ingredients ' |
|
1007 |
+ 'SET Ca = null ' |
|
1008 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])); |
|
970 | 1009 |
if CheckBoxdP.Checked |
971 | 1010 |
then |
972 | 1011 |
DBUser.ExecSQL('UPDATE Ingredients ' |
... | ... | |
1151 | 1190 |
EditEmpty(ValidateEditCB); |
1152 | 1191 |
end; |
1153 | 1192 |
|
1193 |
procedure TFormIngredientEditionOriginal.CheckBoxClClick(Sender: TObject); |
|
1194 |
begin |
|
1195 |
if CheckBoxCl.Checked |
|
1196 |
then // Activer la saisie |
|
1197 |
EditActivate(ValidateEditCl) |
|
1198 |
else // Valeur inconnue |
|
1199 |
EditEmpty(ValidateEditCl); |
|
1200 |
end; |
|
1201 |
|
|
1154 | 1202 |
procedure TFormIngredientEditionOriginal.CheckBoxCysClick(Sender: TObject); |
1155 | 1203 |
begin |
1156 | 1204 |
if CheckBoxCys.Checked |
... | ... | |
1411 | 1459 |
EditEmpty(ValidateEditIle); |
1412 | 1460 |
end; |
1413 | 1461 |
|
1462 |
procedure TFormIngredientEditionOriginal.CheckBoxKClick(Sender: TObject); |
|
1463 |
begin |
|
1464 |
if CheckBoxK.Checked |
|
1465 |
then // Activer la saisie |
|
1466 |
EditActivate(ValidateEditK) |
|
1467 |
else // Valeur inconnue |
|
1468 |
EditEmpty(ValidateEditK); |
|
1469 |
end; |
|
1470 |
|
|
1414 | 1471 |
procedure TFormIngredientEditionOriginal.CheckBoxLeuClick(Sender: TObject); |
1415 | 1472 |
begin |
1416 | 1473 |
if CheckBoxLeu.Checked |
... | ... | |
1479 | 1536 |
EditEmpty(ValidateEditMM); |
1480 | 1537 |
end; |
1481 | 1538 |
|
1539 |
procedure TFormIngredientEditionOriginal.CheckBoxNaClick(Sender: TObject); |
|
1540 |
begin |
|
1541 |
if CheckBoxNa.Checked |
|
1542 |
then // Activer la saisie |
|
1543 |
EditActivate(ValidateEditNa) |
|
1544 |
else // Valeur inconnue |
|
1545 |
EditEmpty(ValidateEditNa); |
|
1546 |
end; |
|
1547 |
|
|
1482 | 1548 |
procedure TFormIngredientEditionOriginal.CheckBoxNDFClick(Sender: TObject); |
1483 | 1549 |
begin |
1484 | 1550 |
if CheckBoxNDF.Checked |
... | ... | |
1779 | 1845 |
begin |
1780 | 1846 |
ValidateEditCa.DecimalPlaces := 2; |
1781 | 1847 |
ValidateEditP.DecimalPlaces := 2; |
1848 |
ValidateEditNa.DecimalPlaces := 2; |
|
1849 |
ValidateEditK.DecimalPlaces := 2; |
|
1850 |
ValidateEditCl.DecimalPlaces := 2; |
|
1782 | 1851 |
end |
1783 | 1852 |
else // g/kg |
1784 | 1853 |
begin |
1785 | 1854 |
ValidateEditCa.MaxValue := 1000; |
1786 | 1855 |
ValidateEditP.MaxValue := 1000; |
1856 |
ValidateEditNa.MaxValue := 1000; |
|
1857 |
ValidateEditK.MaxValue := 1000; |
|
1858 |
ValidateEditCl.MaxValue := 1000; |
|
1787 | 1859 |
end; |
1788 | 1860 |
with DataModuleDeclaration do |
1789 | 1861 |
begin |
... | ... | |
1793 | 1865 |
if CheckBoxP.Checked |
1794 | 1866 |
then // Conversion |
1795 | 1867 |
ValidateEditP.AsFloat := OutputMinerals(InputMinerals(ValidateEditP.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2), RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2); |
1868 |
if CheckBoxNa.Checked |
|
1869 |
then // Conversion |
|
1870 |
ValidateEditNa.AsFloat := OutputMinerals(InputMinerals(ValidateEditNa.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2), RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2); |
|
1871 |
if CheckBoxK.Checked |
|
1872 |
then // Conversion |
|
1873 |
ValidateEditK.AsFloat := OutputMinerals(InputMinerals(ValidateEditK.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2), RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2); |
|
1874 |
if CheckBoxCl.Checked |
|
1875 |
then // Conversion |
|
1876 |
ValidateEditCl.AsFloat := OutputMinerals(InputMinerals(ValidateEditCl.AsFloat, RapMS, MineralsUnit div 2, MineralsUnit mod 2), RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2); |
|
1796 | 1877 |
end; |
1797 | 1878 |
if ComboBoxMinerals.ItemIndex mod 2 = 0 |
1798 | 1879 |
then // % |
1799 | 1880 |
begin |
1800 | 1881 |
ValidateEditCa.MaxValue := 100; |
1801 | 1882 |
ValidateEditP.MaxValue := 100; |
1883 |
ValidateEditNa.MaxValue := 100; |
|
1884 |
ValidateEditK.MaxValue := 100; |
|
1885 |
ValidateEditCl.MaxValue := 100; |
|
1802 | 1886 |
end |
1803 | 1887 |
else // g/kg |
1804 | 1888 |
begin |
1805 | 1889 |
ValidateEditCa.DecimalPlaces := 1; |
1806 | 1890 |
ValidateEditP.DecimalPlaces := 1; |
1891 |
ValidateEditNa.DecimalPlaces := 1; |
|
1892 |
ValidateEditK.DecimalPlaces := 1; |
|
1893 |
ValidateEditCl.DecimalPlaces := 1; |
|
1807 | 1894 |
end; |
1808 | 1895 |
MineralsUnit := ComboBoxMinerals.ItemIndex; |
1809 | 1896 |
end; |
... | ... | |
2543 | 2630 |
CheckBoxP.Checked := True; |
2544 | 2631 |
ValidateEditP.AsFloat := ClientDataSetIngredientsP.Value; |
2545 | 2632 |
end; |
2633 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Na']) |
|
2634 |
then |
|
2635 |
CheckBoxNaClick(nil) |
|
2636 |
else |
|
2637 |
begin |
|
2638 |
CheckBoxNa.Checked := True; |
|
2639 |
ValidateEditNa.AsFloat := ClientDataSetIngredientsNa.Value; |
|
2640 |
end; |
|
2641 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['K']) |
|
2642 |
then |
|
2643 |
CheckBoxKClick(nil) |
|
2644 |
else |
|
2645 |
begin |
|
2646 |
CheckBoxK.Checked := True; |
|
2647 |
ValidateEditK.AsFloat := ClientDataSetIngredientsK.Value; |
|
2648 |
end; |
|
2649 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Cl']) |
|
2650 |
then |
|
2651 |
CheckBoxClClick(nil) |
|
2652 |
else |
|
2653 |
begin |
|
2654 |
CheckBoxCl.Checked := True; |
|
2655 |
ValidateEditCl.AsFloat := ClientDataSetIngredientsCl.Value; |
|
2656 |
end; |
|
2546 | 2657 |
if ValidateEditP.AsFloat = 0 |
2547 | 2658 |
then // D?sactiver la saisie du phosphore digestible |
2548 | 2659 |
DisabledP |
UnitIngredientEditionCopy.pas | ||
---|---|---|
144 | 144 |
JvImgBtnHelp: TJvImgBtn; |
145 | 145 |
JvImgBtnRename: TJvImgBtn; |
146 | 146 |
JvImgBtnComment: TJvImgBtn; |
147 |
ValidateEditNa: TJvValidateEdit; |
|
148 |
CheckBoxCl: TCheckBox; |
|
149 |
ValidateEditCl: TJvValidateEdit; |
|
150 |
LabelCl: TLabel; |
|
151 |
CheckBoxK: TCheckBox; |
|
152 |
ValidateEditK: TJvValidateEdit; |
|
153 |
LabelK: TLabel; |
|
154 |
CheckBoxNa: TCheckBox; |
|
155 |
LabelNa: TLabel; |
|
147 | 156 |
procedure FormCreate(Sender: TObject); |
148 | 157 |
procedure CheckBoxMATClick(Sender: TObject); |
149 | 158 |
procedure CheckBoxCBClick(Sender: TObject); |
... | ... | |
194 | 203 |
procedure NumEditKeyDown(Sender: TObject; var Key: Word; |
195 | 204 |
Shift: TShiftState); |
196 | 205 |
procedure NumEditKeyPress(Sender: TObject; var Key: Char); |
206 |
procedure CheckBoxNaClick(Sender: TObject); |
|
207 |
procedure CheckBoxKClick(Sender: TObject); |
|
208 |
procedure CheckBoxClClick(Sender: TObject); |
|
197 | 209 |
private |
198 | 210 |
{ D?clarations priv?es } |
199 | 211 |
ProximalUnit, MineralsUnit, AAUnit: Integer; |
... | ... | |
733 | 745 |
DBUser.ExecSQL('UPDATE Ingredients ' |
734 | 746 |
+ 'SET P = null ' |
735 | 747 |
+ Format('WHERE Id = %d', [ClientDataSetIngredientsId.Value])); |
748 |
// TODO: Na, K and Cl |
|
736 | 749 |
if CheckBoxdP.Checked |
737 | 750 |
then |
738 | 751 |
DBUser.ExecSQL('UPDATE Ingredients ' |
... | ... | |
957 | 970 |
EditShow(ValidateEditCB, OutputProximal(ClientDataSetInraAfzCB.Value, RapMS, ComboBoxProximal.ItemIndex div 2, ComboBoxProximal.ItemIndex mod 2)); |
958 | 971 |
end; |
959 | 972 |
|
973 |
procedure TFormIngredientEditionCopy.CheckBoxClClick(Sender: TObject); |
|
974 |
begin |
|
975 |
if CheckBoxCl.Checked |
|
976 |
then // Activer la saisie |
|
977 |
EditActivate(ValidateEditCl) |
|
978 |
else // Afficher la valeur par d?faut |
|
979 |
with DataModuleDeclaration do |
|
980 |
if ClientDataSetInraAfzCl.IsNull |
|
981 |
then // Null |
|
982 |
EditEmpty(ValidateEditCl) |
|
983 |
else // Valeur du mod?le |
|
984 |
EditShow(ValidateEditCl, OutputMinerals(ClientDataSetInraAfzCl.Value, RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2)); |
|
985 |
end; |
|
986 |
|
|
960 | 987 |
procedure TFormIngredientEditionCopy.CheckBoxCysClick(Sender: TObject); |
961 | 988 |
begin |
962 | 989 |
if CheckBoxCys.Checked |
... | ... | |
1063 | 1090 |
EditShow(ValidateEditIle, OutputAA(ClientDataSetInraAfzIle.Value, RapMAT, RapMS, ComboBoxAA.ItemIndex div 2, ComboBoxAA.ItemIndex mod 2)); |
1064 | 1091 |
end; |
1065 | 1092 |
|
1093 |
procedure TFormIngredientEditionCopy.CheckBoxKClick(Sender: TObject); |
|
1094 |
begin |
|
1095 |
if CheckBoxK.Checked |
|
1096 |
then // Activer la saisie |
|
1097 |
EditActivate(ValidateEditK) |
|
1098 |
else // Afficher la valeur par d?faut |
|
1099 |
with DataModuleDeclaration do |
|
1100 |
if ClientDataSetInraAfzK.IsNull |
|
1101 |
then // Null |
|
1102 |
EditEmpty(ValidateEditK) |
|
1103 |
else // Valeur du mod?le |
|
1104 |
EditShow(ValidateEditK, OutputMinerals(ClientDataSetInraAfzK.Value, RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2)); |
|
1105 |
end; |
|
1106 |
|
|
1066 | 1107 |
procedure TFormIngredientEditionCopy.CheckBoxLeuClick(Sender: TObject); |
1067 | 1108 |
begin |
1068 | 1109 |
if CheckBoxLeu.Checked |
... | ... | |
1167 | 1208 |
EditShow(ValidateEditMM, OutputProximal(ClientDataSetInraAfzMM.Value, RapMS, ComboBoxProximal.ItemIndex div 2, ComboBoxProximal.ItemIndex mod 2)); |
1168 | 1209 |
end; |
1169 | 1210 |
|
1211 |
procedure TFormIngredientEditionCopy.CheckBoxNaClick(Sender: TObject); |
|
1212 |
begin |
|
1213 |
if CheckBoxNa.Checked |
|
1214 |
then // Activer la saisie |
|
1215 |
EditActivate(ValidateEditNa) |
|
1216 |
else // Afficher la valeur par d?faut |
|
1217 |
with DataModuleDeclaration do |
|
1218 |
if ClientDataSetInraAfzNa.IsNull |
|
1219 |
then // Null |
|
1220 |
EditEmpty(ValidateEditNa) |
|
1221 |
else // Valeur du mod?le |
|
1222 |
EditShow(ValidateEditNa, OutputMinerals(ClientDataSetInraAfzNa.Value, RapMS, ComboBoxMinerals.ItemIndex div 2, ComboBoxMinerals.ItemIndex mod 2)); |
|
1223 |
end; |
|
1224 |
|
|
1170 | 1225 |
procedure TFormIngredientEditionCopy.CheckBoxNDFClick(Sender: TObject); |
1171 | 1226 |
begin |
1172 | 1227 |
if CheckBoxNDF.Checked |
... | ... | |
1543 | 1598 |
begin |
1544 | 1599 |
ValidateEditCa.DecimalPlaces := 2; |
1545 | 1600 |
ValidateEditP.DecimalPlaces := 2; |
1601 |
ValidateEditNa.DecimalPlaces := 2; |
|
1602 |
ValidateEditK.DecimalPlaces := 2; |
|
1603 |
ValidateEditCl.DecimalPlaces := 2; |
|
1546 | 1604 |
end |
1547 | 1605 |
else // g/kg |
1548 | 1606 |
begin |
1549 | 1607 |
ValidateEditCa.MaxValue := 1000; |
1550 | 1608 |
ValidateEditP.MaxValue := 1000; |
1609 |
ValidateEditNa.MaxValue := 1000; |
|
1610 |
ValidateEditK.MaxValue := 1000; |
|
1611 |
ValidateEditCl.MaxValue := 1000; |
|
1551 | 1612 |
end; |
1552 | 1613 |
with DataModuleDeclaration do |
1553 | 1614 |
begin |
... | ... | |
1562 | 1623 |
else |
1563 | 1624 |
CheckBoxPClick(nil); |
1564 | 1625 |
end; |
1626 |
|
|
1565 | 1627 |
if ComboBoxMinerals.ItemIndex mod 2 = 0 |
1566 | 1628 |
then // % |
1567 | 1629 |
begin |
1568 | 1630 |
ValidateEditCa.MaxValue := 100; |
1569 | 1631 |
ValidateEditP.MaxValue := 100; |
1632 |
ValidateEditNa.MaxValue := 100; |
|
1633 |
ValidateEditK.MaxValue := 100; |
|
1634 |
ValidateEditCl.MaxValue := 100; |
|
1570 | 1635 |
end |
1571 | 1636 |
else // g/kg |
1572 | 1637 |
begin |
1573 | 1638 |
ValidateEditCa.DecimalPlaces := 1; |
1574 | 1639 |
ValidateEditP.DecimalPlaces := 1; |
1640 |
ValidateEditNa.DecimalPlaces := 1; |
|
1641 |
ValidateEditK.DecimalPlaces := 1; |
|
1642 |
ValidateEditCl.DecimalPlaces := 1; |
|
1575 | 1643 |
end; |
1576 | 1644 |
MineralsUnit := ComboBoxMinerals.ItemIndex; |
1577 | 1645 |
end; |
... | ... | |
2182 | 2250 |
CheckBoxP.Checked := True; |
2183 | 2251 |
ValidateEditP.AsFloat := ClientDataSetIngredientsP.Value; |
2184 | 2252 |
end; |
2253 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Na']) |
|
2254 |
then |
|
2255 |
CheckBoxNaClick(nil) |
|
2256 |
else |
|
2257 |
begin |
|
2258 |
CheckBoxNa.Checked := True; |
|
2259 |
ValidateEditNa.AsFloat := ClientDataSetIngredientsNa.Value; |
|
2260 |
end; |
|
2261 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['K']) |
|
2262 |
then |
|
2263 |
CheckBoxKClick(nil) |
|
2264 |
else |
|
2265 |
begin |
|
2266 |
CheckBoxK.Checked := True; |
|
2267 |
ValidateEditK.AsFloat := ClientDataSetIngredientsK.Value; |
|
2268 |
end; |
|
2269 |
if TableIngredients.FieldIsNull(TableIngredients.FieldIndex['Cl']) |
|
2270 |
then |
|
2271 |
CheckBoxClClick(nil) |
|
2272 |
else |
|
2273 |
begin |
|
2274 |
CheckBoxCl.Checked := True; |
|
2275 |
ValidateEditCl.AsFloat := ClientDataSetIngredientsCl.Value; |
|
2276 |
end; |
|
2185 | 2277 |
if ValidateEditP.AsFloat = 0 |
2186 | 2278 |
then // D?sactiver la saisie du phosphore digestible |
2187 | 2279 |
DisabledP |
EvaPig2020.dat | ||
---|---|---|
1 |
??7???|6?????+|.??????x,????|.?????(w????t.?????.?????|g??????+g??????|~?????@???|/????4,???/A???5.??????5j????,.????x.??????~c??????|.?????x.??????=z??????|.??????|.?????t.??????zm????|*??????2j??????|.?????2j??????|.?????|*???????A????|*??????=j??????|.????@??????|.?????&?????|,??????|.?????t.??????{k?????t.??????{k?????t.??????{k?????t.??????{k?????t.??????{k?????t.??????}O??????|.??????|.?????t.??????J??????|.?????t.??????z?????|.??????t.??????m??????|.???????W??????|.?????|*??????5B??????|.?????|*??????0K??????|.?????|*??????(W??????|.?????\??????|.????x.??????I??????|.????x.??????^??????|.????x.??????W??????|.????x.??????A??????|.?????|*??????z?????|.?????&?????|*???x.??????1K???x.??????(\??????|.?????t.??????xJ?????|.??????[??????|.?????|*??????z??????|.?????z??????|.?????&?????|*?????x.??????=B??????|.????t.??????xJ??????|.??????W??????|.?????|*??????~?????|.??????|*??????,&?????|,?????|.?????W??????|.?????3g????9*?????|.??????|.??????|.??????|(??????vk????L?????[Ov ?`???!?_e?j??!?q@??????o????!??W?K??~???X??gY0?7???t:F'???L??? |
|
2 |
?w'?4??ht???z?? ?S?e?BH?????5???>?05?3q???K??05?lK???;= ?3?e???5`?? ??`4???N?M?m?fY?H??V??9?_???*/ L]???(?m?t?H???k?H??T?X?Q???u?????^??q??kU?4??.?M???U??b ?j`?A? y1O?????k???J?9T??$??Y?6?????R?????1?R%J?WX??F??|?Y?M%??RF??$cY8}?7 -??U????z?2?^?t?c????^??S?!????n!o?i?_=b <+?b?>??|??uJ?5?F?H???Z?p>???yH?Z??????U??2??lB?L????????n????N?kY?Q????S_{??.k=E?w?n?e6???h???(??v???&??\.??????|.??????|.??????A???B????~????}.??F????T?|???:????j z?6?#???????? |
|
3 |
?ys??0AIk?. ?u?G0T??TI?:?{???k??{;?NI??P??/?l%??\?G&???+?|xj?i???p??P?Rj8? W?J?%?mQ?dK~L?V???S??P?^>?q??H?????^????H????nQ??e? ?R??O??'/???Y??Zw?"??P#???/??z????q?@B*????mb???J???_??O?y?O????< |