From 374ce108d737c1e4d6608989090195a7346d10ad Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 26 二月 2026 08:47:21 +0800
Subject: [PATCH] 优化格式美观度。 完成 (1)“印刷、打包、送货要求”放在右边的格子里面;右边格子拉通 (2)“单价”和“总价”的格子比例要调整适中 (3)把“印件名称”放在第一格 (1)操作中增加“问题处理”,进行处理操作  完成 (2)问题反馈除了生成在这个列表中,还要自动推送给对应订单的下单人或者送货安排(发起工作安排)的安排人,显示在他们的“工作提醒”中,处理完了就在列表中变成已完成问题处理,显示“√”,点“√”进去就显示谁处理的、什么时候处理的。  完成 生产施工单中,选“轮转印刷机”的,删除“纸张数量(张)”和“开料规格”  完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs |   82 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 77 insertions(+), 5 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs
index 282b1e5..c31ad21 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs
@@ -9,6 +9,8 @@
 using CY.Model;
 using CY.BLL.EC;
 using CY.Infrastructure.Query;
+using System.Transactions;
+using CY.BLL.Sys;
 
 namespace CY.WebForm.Pages.business
 {
@@ -35,12 +37,76 @@
                 if (_eC_OrderBasic.BuyerId == CurrentUser.MemberId)
                 {
                     if (bll_EC_OrderBasicBLL.DeleteOutOrder(Request["delete"].ToInt32().Value))
-                        Response.Redirect("/Pages/business/AgOutsourcSingleAllList.aspx");
+                        JavaScript.MessageBox("鍒犻櫎鎴愬姛", this, "window.location='/Pages/business/AgOutsourcSingleAllList.aspx'"); 
                     else
-                        Response.Redirect("/Pages/business/AgOutsourcSingleAllList.aspx");
+                        JavaScript.MessageBox("鍒犻櫎澶辫触", this);
                 }
                 else
-                    Response.Redirect("/Pages/business/AgOutsourcSingleAllList.aspx");
+                    JavaScript.MessageBox("鍒犻櫎澶辫触", this);
+            }
+
+            if (!string.IsNullOrEmpty(Request["chexiao"]))
+            {
+                EC_OrderBasic _eC_OrderBasic = bll_EC_OrderBasicBLL.SelectModelById(Request["chexiao"].ToInt32().Value);
+                //if(_eC_OrderBasic.SellerName != "鍏朵粬")
+                //{
+                //    JavaScript.MessageBox("宸茬粡纭渚涘簲鍟嗕笉鑳芥挙鍗曪紒", this);
+                //}
+                if (_eC_OrderBasic.BuyerId == CurrentUser.MemberId)
+                {
+                    var res = false;
+                    using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required,
+  new TransactionOptions
+  {
+      IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted,
+      Timeout = TransactionManager.MaximumTimeout
+  }
+  )
+           )
+                    {
+                        try
+                        {
+                            //淇敼璁㈠崟鐘舵��
+                            List<EC_OrderOperate> oprates = new List<EC_OrderOperate>();
+                            oprates.Add(new EC_OrderOperate()
+                            {
+                                OperateType = 1,
+                                OrderId = Request["OldOrderId"].ToInt32().Value,
+                                Operator = CurrentUser.ShortName,
+                                Remark = ""
+                            });
+                            res = bll_EC_OrderBasicBLL.UpdateOrderState(oprates[0]);
+                            res = bll_EC_OrderBasicBLL.UpdateOldOrderSurplusPrintNum(Request["chexiao"].ToInt32().Value);
+                            res = bll_EC_OrderBasicBLL.DeleteOutOrder(Request["chexiao"].ToInt32().Value);
+                            scope.Complete();
+                        }
+                        catch (Exception ex)
+                        {
+                            PAGEHandleException(ex);
+                            JavaScript.MessageBox("鎾ゅ崟鎴愬姛", this);
+                        }
+                        finally
+                        {
+                            // 閲婃斁璧勬簮
+                            scope.Dispose();
+                        }
+                    }
+
+                    
+                    if (res)
+                    {
+                        JavaScript.MessageBox("鎾ゅ崟鎴愬姛", this, "window.location='/Pages/business/AgOutsourcSingleAllList.aspx'");
+                        
+                    }
+                    else
+                    {
+                        JavaScript.MessageBox("鎾ゅ崟澶辫触", this);
+                       
+                    }
+                       
+                }
+                else
+                    JavaScript.MessageBox("鎾ゅ崟澶辫触", this);
             }
 
             UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
@@ -62,15 +128,21 @@
             this.selOutFirm.DataValueField = "FirmId";
             this.selOutFirm.DataBind();
             this.selOutFirm.Items.Insert(0, new ListItem("鍏ㄩ儴", ""));
+
+            Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//瀛楀吀涓氬姟閫昏緫鎿嶄綔绫诲璞�
+            this.selPayStates.DataSource = _sys_DictionaryBLL.GetDataByType("EC_璁㈠崟鏀粯鐘舵��");
+            this.selPayStates.DataBind();
+            this.selPayStates.Items.Insert(0,new ListItem("鍏ㄩ儴", ""));
         }
 
         //缁戝畾鏁版嵁
         private void BindList()
         {
             Pagination pa = new Pagination();
-            pa.PageSize = UCPager1.AspNetPager.PageSize;
             pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
-            this.RepClientList.DataSource = bll_EC_OrderBasicBLL.SelectAferOfOutOrder(pa, CurrentUser.MemberId, this.txtStartCreatTime.Value.ToDateTime2(), this.txtEndCreatTime.Value.ToDateTime2(), this.txtStartReturnTime.Value.ToDateTime2(), this.txtEndReturnTime.Value.ToDateTime2(), this.txtCreater.Value, this.selOutFirm.Value, this.selWorkStates.Value, this.txtOutOrderId.Value, 4);
+            pa.PageSize = this.ddlPageSize.Value.ToInt32().Value;// UCPager1.AspNetPager.PageSize;
+            UCPager1.AspNetPager.PageSize = this.ddlPageSize.Value.ToInt32().Value;
+            this.RepClientList.DataSource = bll_EC_OrderBasicBLL.SelectAferOfOutOrder(pa, CurrentUser.MemberId, this.txtStartCreatTime.Value.ToDateTime2(), this.txtEndCreatTime.Value.ToDateTime2(), this.txtStartReturnTime.Value.ToDateTime2(), this.txtEndReturnTime.Value.ToDateTime2(), this.txtCreater.Value, this.selOutFirm.Value, this.selWorkStates.Value, this.txtOutOrderId.Value, 4,this.selPayStates.Value);
             this.RepClientList.DataBind();
             UCPager1.AspNetPager.RecordCount = pa.RecordCount;
         }

--
Gitblit v1.9.1