称重分析模块新增

This commit is contained in:
XingCheng3
2026-05-13 01:22:00 +08:00
parent 134a06a31d
commit 8784a5a982
4 changed files with 539 additions and 9 deletions

View File

@@ -382,7 +382,7 @@ namespace MesWork.Pages
valueLabel.BackColor = panel.BackColor;
valueLabel.Font = new System.Drawing.Font("微软雅黑", valueFontSize, System.Drawing.FontStyle.Bold);
valueLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(58)))), ((int)(((byte)(95)))));
int unitWidth = unit == "KG/L" ? 66 : (unit == "ppm" ? 58 : 38);
int unitWidth = unit == "KG/L" ? 66 : (unit == "ppm" ? 76 : 38);
int valueRightPadding = unitLabel == null ? 16 : unitWidth + 24;
valueLabel.Location = new System.Drawing.Point(20, height >= 100 ? 24 : 20);
valueLabel.Size = new System.Drawing.Size(Math.Max(72, width - 20 - valueRightPadding), height >= 100 ? height - 40 : height - 24);