From 6cc05f3689e7616431886ec183948c433a30220c Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 03 十二月 2024 20:51:38 +0800
Subject: [PATCH] 一些优化

---
 Tiger.Business.MES/BIZ/BizPrintInstoreDoc.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.MES/BIZ/BizPrintInstoreDoc.cs b/Tiger.Business.MES/BIZ/BizPrintInstoreDoc.cs
index 3089f56..c9eedba 100644
--- a/Tiger.Business.MES/BIZ/BizPrintInstoreDoc.cs
+++ b/Tiger.Business.MES/BIZ/BizPrintInstoreDoc.cs
@@ -32,7 +32,7 @@
             var result = new ApiAction<List<BAS_LABEL_TEMP>>();
             try
             {
-
+                List<BAS_LABEL_TEMP> labels = new List<BAS_LABEL_TEMP>();
                 int i = 1;
                 int j = 1;
                 foreach (var p in input.printJsons)
@@ -75,7 +75,7 @@
                             }
                             if (item.VAR_NAME.StartsWith("SapCode"))
                             {
-                                item.Value = v.ITEM_CODE;
+                                item.Value = v.SapCode;
                             }
                             if (item.VAR_NAME.StartsWith("Seq"))
                             {
@@ -96,8 +96,10 @@
                             item.Value = DateTime.Now.ToString("yyyyy.MM.dd");
                         }
                     }
+                    labels.Add(label);
                     j++;
-                } 
+                }
+                result.Data = labels;
             }
             catch (Exception ex)
             {

--
Gitblit v1.9.3