From 259584df9c06ade70f1f351affb35d4922e1263d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 07 十一月 2025 16:23:13 +0800
Subject: [PATCH] 这个打印送货单,你们给我做两种,做一张打印没得数量的,做一张打印有数量的。送货单格式就是32开,就哎就是A4排一半。你们打了测试,注意,美观。 把那个把它做出来,下一批就用这个自动打。 不是不是打印的要数量都是有数量,要没得数量都没得数量。就是点打印的时候就两个按钮嘛,一个是有数量打印,或者或者或者空白送货单打印。 现在这个现在的送货单都是没有数量噻。现在那个要的,比如你那里再打你那个打印关闭的按钮,要把搞成两个打印嘛,就是打印空白送货单和打印送货单。 好点打印空白送货单的,就是现在这样子。点打印送货单,打印的就是那个跟有有就是有数据的送货单。作业本送货统计查询,状态查询需要修改逻辑
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx.cs | 72 +++++++++++++++++++++++++++++++++--
1 files changed, 67 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..34adbde 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,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;
@@ -62,15 +118,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