From 120215455f4fb2e5a1447f3ecda87f36aca1f38f Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 27 二月 2026 08:54:22 +0800
Subject: [PATCH] 1)有到期时间的,到期前3个月变成红色(像人事管理那样);没有到期时间的,从建档时间起算,9个月后变成红色。完成 (2)建档后1个月没有下单,变成血红色。  完成 (3)列表中删除“完结状态”;操作中删除“订单关联”  完成 (4)在“应收款订单”后面增加“未收款金额”  、“逾期收款”完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx.cs |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx.cs
index d0d73da..1b934e2 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverPlanWentiEdit.aspx.cs
@@ -35,6 +35,7 @@
         OA_CarManageBll _OA_CarManageBll = null;
         OA_DeliverPlanPaicheBLL oA_DeliverPlanBLL = null;
         OA_StaffBLL _OA_StaffBLL = null;
+        OA_WageAwardPunishBLL bll_OA_WageAwardPunishBLL = null;
 
         //鍒濆鍖�
         public DeliverPlanWentiEdit()
@@ -44,6 +45,7 @@
             _OA_CarManageBll = new OA_CarManageBll();
             oA_DeliverPlanBLL = new OA_DeliverPlanPaicheBLL();
             _OA_StaffBLL = new OA_StaffBLL();
+            bll_OA_WageAwardPunishBLL = new OA_WageAwardPunishBLL();
 
 
         }
@@ -64,6 +66,9 @@
                         break;
                     case "wanjie":
                         AcceptAll();
+                        return;
+                    case "chuli":
+                        AcceptAll1();
                         return;
                     case "ReBindClients":
                         Response.Write(ReLoadClients());
@@ -108,6 +113,68 @@
                 oA_DeliverPlan.WanjieTime = DateTime.Now;
                 if (oA_DeliverPlanBLL.UpdateModel(oA_DeliverPlan))
                 {
+                    if (oA_DeliverPlan.Zerenren.HasValue && oA_DeliverPlan.Fakuan.HasValue && oA_DeliverPlan.Fakuan.Value > 0)
+                    {
+                        DateTime nowTime = DateTime.Now;
+
+                        OA_WageAwardPunish m_OA_WageAwardPunish = new OA_WageAwardPunish();
+
+                        m_OA_WageAwardPunish.FirmId = CurrentUser.MemberId;
+                        m_OA_WageAwardPunish.RecTitle = "闂鍙嶉杩借矗";
+                        m_OA_WageAwardPunish.RecTime = nowTime;
+                        m_OA_WageAwardPunish.RecType = 2;
+                        m_OA_WageAwardPunish.RecContent = oA_DeliverPlan.wentifankui;
+                        m_OA_WageAwardPunish.RecMoney = oA_DeliverPlan.Fakuan;
+                        m_OA_WageAwardPunish.PlanId = 0;
+                        m_OA_WageAwardPunish.WentiId = oA_DeliverPlan.Keyid;
+                        m_OA_WageAwardPunish.LastUpdateTime = nowTime;
+                        m_OA_WageAwardPunish.Operator = CurrentUser.ShortName;
+                        var oA_Staff = _OA_StaffBLL.GetModelByKeyid(oA_DeliverPlan.Zerenren);
+                        if (oA_Staff != null)
+                        {
+                            m_OA_WageAwardPunish.MemberId = oA_Staff.MemberId;
+                        }
+
+                        var sss = bll_OA_WageAwardPunishBLL.InsertModel(m_OA_WageAwardPunish);
+                    }
+                    JavaScript.MessageBox("鎿嶄綔鎴愬姛", this, true, true);
+                    return;
+                }
+                else
+                {
+                    JavaScript.MessageBox("鎿嶄綔澶辫触", this, true, false);
+                    return;
+                }
+
+            }
+
+
+        }
+
+
+        /// <summary>
+        /// 鎵归噺鍙楃悊璁㈠崟
+        /// </summary>
+        public void AcceptAll1()
+        {
+
+
+            var keyid = Request["keyid"].ToGuid2();
+
+            var oA_DeliverPlan = oA_DeliverPlanBLL.GetModelByKeyid(keyid, null, null);
+
+            if (oA_DeliverPlan != null)
+            {
+                if (oA_DeliverPlan.Chulistatus == 1)
+                {
+                    JavaScript.MessageBox("璁㈠崟宸茬粡澶勭悊", this, true, false);
+                    return;
+                }
+                oA_DeliverPlan.Chulistatus = 1;
+                oA_DeliverPlan.Chuliren = CurrentUser.ShortName;
+                oA_DeliverPlan.ChuliTime = DateTime.Now;
+                if (oA_DeliverPlanBLL.UpdateModel(oA_DeliverPlan))
+                {
                     JavaScript.MessageBox("鎿嶄綔鎴愬姛", this, true, true);
                     return;
                 }

--
Gitblit v1.9.1