From b63e4e9f97aba58867a01b85e7d128b6eb738a0a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 09 十月 2025 09:48:50 +0800
Subject: [PATCH] 请示类别要增加  维修申请   维修付款申请

---
 CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs
index 3344372..3bc6298 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs
@@ -27,6 +27,8 @@
         EC_MemberBasicBLL _eC_MemberBasicBLL = null;
         public string planDataType = "";
         OA_WorkPlan_attachmentBLL oA_WorkPlan_AttachmentBLL = null;
+        OA_StaffBLL oA_StaffBLL = null;
+        OA_ShebeiWeixiuBLL oA_ShebeiWeixiuBLL = null;
         public RequestReplyAdd()
         {
             oA_WorkReminderBll = new OA_WorkPlanBll();
@@ -35,6 +37,8 @@
             _oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL();
             _eC_MemberBasicBLL = new EC_MemberBasicBLL();
             oA_WorkPlan_AttachmentBLL = new OA_WorkPlan_attachmentBLL();
+            oA_StaffBLL = new OA_StaffBLL();
+            oA_ShebeiWeixiuBLL = new OA_ShebeiWeixiuBLL();
         }
 
         //椤甸潰鍔犺浇
@@ -76,6 +80,23 @@
                 {
                     this.RepClientList.DataSource = oA_WorkPlan_AttachmentBLL.GetModelByKaipiaoIdandType(Request["keyid"].ToInt32().Value, 15);
                     this.RepClientList.DataBind();
+                }
+                else if(m_OA_WorkPlan.PlanDataType == 18)
+                {
+                    if (string.IsNullOrEmpty(m_OA_WorkPlan.PlanComplany))
+                    {
+                        this.spanShifoushenqingfukuan.InnerText = "鍚�";
+                    }
+                    else
+                    {
+                        this.spanShifoushenqingfukuan.InnerText = "鏄�";
+                    }
+                    this.selZerenren.DataSource = 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 = "";
                 }
             }
         }
@@ -124,6 +145,43 @@
                 }
 
 
+                if (m_OA_WorkPlan.ApprovalStatus == 1 && (m_OA_WorkPlan.PlanDataType == 18 || m_OA_WorkPlan.PlanDataType == 19))
+                {//鎵瑰噯鍙嶅啓
+                    if (!string.IsNullOrEmpty(m_OA_WorkPlan.PlanComplany))
+                    {
+                        var fukuanshenqing = _oA_FukuanshenqingBLL.GetModelByKeyid(m_OA_WorkPlan.PlanComplany.ToInt32().Value);
+                        fukuanshenqing.ApprovalStatus = 1;
+                        _oA_FukuanshenqingBLL.UpdateModel(fukuanshenqing);
+                    }
+                  
+                   
+                    if(m_OA_WorkPlan.PlanDataType == 18)
+                    {
+                        m_OA_WorkPlan.RewardContent = this.txtDanzePrice.Value;
+                        
+                        var oA_ShebeiWeixiu = oA_ShebeiWeixiuBLL.GetModelBytiaojian(m_OA_WorkPlan.Keyid, null, null);
+                        if (!string.IsNullOrEmpty(this.selZerenren.Value))
+                        {
+                            var staff = oA_StaffBLL.GetModelByKeyid(this.selZerenren.Value.ToInt32());
+                            if (staff != null)
+                            {
+                                m_OA_WorkPlan.RewardResult = staff.Name;
+                                oA_ShebeiWeixiu.ZerenrenName = staff.Name;
+                            }
+                        }
+                        if (oA_ShebeiWeixiu != null)
+                        {
+                            oA_ShebeiWeixiu.Zerenren = this.selZerenren.Value.ToInt32();
+                          
+                            oA_ShebeiWeixiu.DanzePrice = this.txtDanzePrice.Value.ToDecimal2();
+                            oA_ShebeiWeixiuBLL.UpdateModel(oA_ShebeiWeixiu);
+                        }
+                    }
+
+                    
+                }
+
+
                 if (m_OA_WorkPlan.ApprovalStatus == 1 && m_OA_WorkPlan.PlanDataType == 15)
                 {//鎵瑰噯鏂板浠樻鐢宠
                     OA_Fukuanshenqing oA_Fukuanshenqing = new OA_Fukuanshenqing();

--
Gitblit v1.9.1