From a6a84e6f677447342e8c5984fdc0b52241b92ce3 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 30 六月 2022 01:20:34 +0800
Subject: [PATCH] 客户管理分配个性产品优化、返回URL优化

---
 web/web/GwOrder.ashx |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/web/web/GwOrder.ashx b/web/web/GwOrder.ashx
index b1a5ef4..434b392 100644
--- a/web/web/GwOrder.ashx
+++ b/web/web/GwOrder.ashx
@@ -25,7 +25,7 @@
     //private List<GwProduct> _ProductClassList;  //浜у搧鍒嗙被
     
     private int _userId = -1;
-    private int _userType = -1;
+    private string _userType = "";
     private string _account = "";
 
     public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context)
@@ -817,23 +817,24 @@
 
             }
 
+            
+            GwOrder gwOrder = new GwOrder();
 
             GwClient gwClient = new GwClient();
             using (GwClientDao gwClientDao = new GwClientDao())
             {
                 gwClient = gwClientDao.Get(gwSp.ClientID);
+                gwOrder.Company = gwClient.Company;
+                gwOrder.Balance = long.Parse(gwClient.Balance.ToString() );    //浣欓
             }
 
-
-            GwOrder gwOrder = new GwOrder();
                 gwOrder.SpId = gwSp.SpID;
                 gwOrder.ClientId = gwSp.ClientID;
                 gwOrder.ProductId = gwSp.ProductId;
+                gwOrder.ProductName = gwSp.ProductName;
                 gwOrder.Price = gwSp.Price;
                 gwOrder.BasicNum = gwSp.BasicNum;  //鍩烘湰鏉℃暟
-                gwOrder.GivingNum = gwSp.GivingNum;
-                
-                gwOrder.Balance = long.Parse(gwClient.Balance.ToString() );    //浣欓
+                gwOrder.GivingNum = gwSp.GivingNum;                
                 
             return new JsonPageResult(true, gwOrder);
         }

--
Gitblit v1.9.1