From 2605af51ca4787434c8c5f2b10dc0adc78a2fdb0 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 14 三月 2025 17:17:45 +0800
Subject: [PATCH] 外协管理,外协订单,你列表操作后面增加一个完工点,完工就进行。就是说,已完工处理好,前面呢,有个批量完工,好检索查询条件,也加个完工。
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs | 61 +++++++++++++++++++++++++++++-
1 files changed, 58 insertions(+), 3 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..530672e 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs
@@ -9,6 +9,7 @@
using CY.Model;
using CY.BLL.EC;
using CY.Infrastructure.Query;
+using System.Transactions;
namespace CY.WebForm.Pages.business
{
@@ -35,12 +36,66 @@
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
+ {
+ 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;
--
Gitblit v1.9.1