From 9dfb7d191bdf19595d766647222171f992d8af3f Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期六, 07 六月 2025 08:47:00 +0800
Subject: [PATCH] 修改显示屏显示

---
 Admin.NET/WCS.Application/OpenApi/DemoOpenApi.cs      |   12 ++++++------
 Admin.NET/WCS.Application/Configuration/Database.json |    4 ++--
 Admin.NET/WCS.Application/Entity/WcsTask.cs           |    4 ++--
 WCS.rar                                               |    0 
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Admin.NET/WCS.Application/Configuration/Database.json b/Admin.NET/WCS.Application/Configuration/Database.json
index a586878..8e1405e 100644
--- a/Admin.NET/WCS.Application/Configuration/Database.json
+++ b/Admin.NET/WCS.Application/Configuration/Database.json
@@ -11,8 +11,8 @@
         //"ConnectionString": "PORT=5432;DATABASE=xxx;HOST=localhost;PASSWORD=xxx;USER ID=xxx", // PostgreSQL 搴撹繛鎺ュ瓧绗︿覆
         //"ConnectionString": "Server=localhost;Database=xxx;Uid=xxx;Pwd=xxx;SslMode=None;", // MySql 搴撹繛鎺ュ瓧绗︿覆",
         //"ConnectionString": "User Id=xxx; Password=xxx; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)))", // Oracle 搴撹繛鎺ュ瓧绗︿覆
-        "ConnectionString": "Server=10.18.99.10;Database=WCSnet6;User Id=sa;Password=sql2024;", // SqlServer 搴撹繛鎺ュ瓧绗︿覆
-        //"ConnectionString": "Server=192.168.62.200;Database=WCSnet6;User Id=sa;Password=sql2019;", // SqlServer 搴撹繛鎺ュ瓧绗︿覆
+        //"ConnectionString": "Server=10.18.99.10;Database=WCSnet6;User Id=sa;Password=sql2024;", // SqlServer 搴撹繛鎺ュ瓧绗︿覆
+        "ConnectionString": "Server=192.168.62.200;Database=WCSnet6;User Id=sa;Password=sql2019;", // SqlServer 搴撹繛鎺ュ瓧绗︿覆
 
 
         //"SlaveConnectionConfigs": [ // 璇诲啓鍒嗙/涓讳粠
diff --git a/Admin.NET/WCS.Application/Entity/WcsTask.cs b/Admin.NET/WCS.Application/Entity/WcsTask.cs
index 4377e69..1d6e58e 100644
--- a/Admin.NET/WCS.Application/Entity/WcsTask.cs
+++ b/Admin.NET/WCS.Application/Entity/WcsTask.cs
@@ -101,13 +101,13 @@
     /// 鏁伴噺
     /// </summary>
     [SugarColumn(ColumnName = "Qty", ColumnDescription = "鏁伴噺")]
-    public int? Qty { get; set; }
+    public decimal? Qty { get; set; }
     
     /// <summary>
     /// 鎷嗗灈鏁伴噺
     /// </summary>
     [SugarColumn(ColumnName = "CompleteQty", ColumnDescription = "鎷嗗灈鏁伴噺")]
-    public int? CompleteQty { get; set; }
+    public decimal? CompleteQty { get; set; }
 
     /// <summary>
     /// 鏄惁缁戝畾
diff --git a/Admin.NET/WCS.Application/OpenApi/DemoOpenApi.cs b/Admin.NET/WCS.Application/OpenApi/DemoOpenApi.cs
index dce0887..40ac034 100644
--- a/Admin.NET/WCS.Application/OpenApi/DemoOpenApi.cs
+++ b/Admin.NET/WCS.Application/OpenApi/DemoOpenApi.cs
@@ -100,8 +100,8 @@
             }
             Enum type;
             var bale = "0";
-            var nqty = "0";
-            var ncomqty = "0";
+            decimal nqty = 0;
+            decimal ncomqty = 0;
             if (models.TaskType == "0" )
             {
                 type = TaskTypeEnum.In;
@@ -121,11 +121,11 @@
             }
             if (!string.IsNullOrEmpty( models.Qty))
             {
-                nqty = models.Qty;
+                nqty =Convert.ToDecimal(models.Qty);
             }
             if (!string.IsNullOrEmpty(models.CompleteQty))
             {
-                nqty = models.CompleteQty;
+                ncomqty = Convert.ToDecimal(models.CompleteQty);
             }
             //鏂板浠诲姟
             var taskAdd = new WcsTask()
@@ -146,8 +146,8 @@
 
                 LotNo = models.LotNo,
                 SkuName = models.SkuName,
-                Qty = int.Parse(nqty),
-                CompleteQty = int.Parse(ncomqty)
+                Qty = nqty,
+                CompleteQty = ncomqty
             };
             _db.Insertable(taskAdd).ExecuteCommand();           
 
diff --git a/WCS.rar b/WCS.rar
new file mode 100644
index 0000000..d75ec40
--- /dev/null
+++ b/WCS.rar
Binary files differ

--
Gitblit v1.8.0