From 477f5038d6969bb2a0918a2d0f74fc176a50d54d Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 27 六月 2024 09:55:08 +0800
Subject: [PATCH] 称重入库:称重获取到的数据保留一位小数

---
 WarM/条码打印/Kf_WeighToBarCode.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
index 854f918..4dc1ac2 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
@@ -1202,6 +1202,9 @@
                 {
                     if (double.TryParse(strArray[i], out double ret))//鍒ゆ柇鏄惁鏄暟瀛�
                     {
+                        //淇濈暀涓�浣嶅皬鏁�
+                        double temp = double.Parse(strArray[i]);
+                        temp = Math.Round(temp,1);
 
                         Message += double.Parse(strArray[i]) + ";";
                     }

--
Gitblit v1.9.1