From e890c4fb5be5304a28279fc868951b863d608719 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 21 十月 2025 10:09:53 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/Pages/Property/ShebeiWeixiuAdd.aspx.cs |   34 +++++++++++++++++++++++++++++++---
 1 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/Property/ShebeiWeixiuAdd.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/Property/ShebeiWeixiuAdd.aspx.cs
index 6d12303..e9f2262 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/Property/ShebeiWeixiuAdd.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/Property/ShebeiWeixiuAdd.aspx.cs
@@ -52,6 +52,10 @@
             {
                 switch (Request["Target"])
                 {
+
+                    case "change":
+                        Response.Write(reLoadAccountName(Request["TypeName"].ToString2()));
+                        break;
                     case "GetSuplier":
                         LoadCommunication();
                         break;
@@ -85,11 +89,33 @@
                 this.selShebei.DataBind();
             //this.selShebei.Items.Insert(0, new ListItem("鍏ㄩ儴", ""));
 
+            this.selZerenren.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null);
+            this.selZerenren.DataTextField = "Name";
+            this.selZerenren.DataValueField = "Keyid";
+            this.selZerenren.DataBind();
+            this.selZerenren.Items.Insert(0, new ListItem("鍏ㄩ儴", ""));
+            this.selZerenren.Value = "";
+
             this.txtWeixiuTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
 
 
         }
 
+
+        protected string reLoadAccountName(string selAcoountType)
+        {
+            var query  = new Infrastructure.Query.Query();
+            if (!string.IsNullOrEmpty(selAcoountType))
+            {
+                return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1 && x.Zerenren == selAcoountType.ToInt32())); 
+            }
+            else
+            {
+                return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1));
+            }
+
+           
+        }
 
         /// <summary>
         /// 鍔犺浇渚涘簲鍟�
@@ -160,11 +186,13 @@
                     oA_ShebeiWeixiu.ShebeiId = this.selShebei.Value.ToInt32();
                     oA_ShebeiWeixiu.WeixiuTime = this.txtWeixiuTime.Value.ToDateTime2();
                     var shebeiManage = oA_ShebeiManageBLL.GetModelByKeyid(oA_ShebeiWeixiu.ShebeiId);
+                    var ShebeiZerenrenName = "";
                     if (shebeiManage != null)
                     {
                         oA_ShebeiWeixiu.CateId = shebeiManage.CateId;
                         oA_ShebeiWeixiu.Anzhuangdidian = shebeiManage.Anzhuangdidian;
                         oA_ShebeiWeixiu.Name = shebeiManage.Name;
+                        ShebeiZerenrenName = shebeiManage.ZerenrenName;
                     }
                     oA_ShebeiWeixiu.Remark = this.txtPlanRemark.Value;
                     oA_ShebeiWeixiu.WeixiuPrice = this.txtWeixiuPrice.Value.ToDecimal2();
@@ -220,7 +248,7 @@
                         //    _SupplierName = oA_Suppliers.Name;
                         //}
 
-                        var _SupplierName = oA_ShebeiWeixiu.Name + "缁翠慨";
+                        var _SupplierName = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "缁翠慨";
                         oA_Fukuanshenqing.SupplierName = _SupplierName;
                         var id = _oA_FukuanshenqingBLL.InsertModel(oA_Fukuanshenqing);
 
@@ -265,13 +293,13 @@
 
                     m_OA_WorkPlan.Operator = CurrentUser.ShortName;
                    
-                    m_OA_WorkPlan.PlanContent = oA_ShebeiWeixiu.Name+"缁翠慨鐢宠";
+                    m_OA_WorkPlan.PlanTitle = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "缁翠慨鐢宠";
                     m_OA_WorkPlan.PlanDataType = 18;
                     m_OA_WorkPlan.PlanMoney = this.txtWeixiuPrice.Value.ToDecimal2();
                     m_OA_WorkPlan.RewardMoney = 0;
                     m_OA_WorkPlan.PlanRemark = "";
                     m_OA_WorkPlan.PlanRunTime = DateTime.Now;
-                    m_OA_WorkPlan.PlanTitle =  this.txtPlanRemark.Value+ ".缁翠慨鏃ユ湡:"+ this.txtWeixiuTime.Value;
+                    m_OA_WorkPlan.PlanContent =  this.txtPlanRemark.Value+ ".缁翠慨鏃ユ湡:"+ this.txtWeixiuTime.Value;
                     m_OA_WorkPlan.PlanType = 3;
                     m_OA_WorkPlan.LastUpdateTime = nowTime;
                     var workid = oA_WorkReminderBll.InserModelAndGetId(m_OA_WorkPlan);

--
Gitblit v1.9.1