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/OrderDeatil.aspx.cs | 52 +++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 49 insertions(+), 3 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs
index dcc717a..62f8454 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx.cs
@@ -30,6 +30,8 @@
using CY.BLL;
using CY.Model.Inquiry;
using CY.BLL.Sys;
+using CY.SQLDAL;
+using System.Data.SqlClient;
namespace CY.WebForm.Pages.business
{
@@ -40,6 +42,10 @@
{
EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL();
Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//瀛楀吀涓氬姟閫昏緫鎿嶄綔绫诲璞�
+ public int ContractCount = 0;
+ public string BuyerId = "";
+ public int OrderId = 0;
+ public string shejidingdanid = "";
/// <summary>
/// 椤甸潰鍔犺浇浜嬩欢
/// </summary>
@@ -108,11 +114,18 @@
CY.WebForm.BasePage.JavaScript.MessageBox("鏁版嵁涓嶅瓨鍦紒", this);
return false;
}
- if (CurrentUser.MemberId!=Guid.Parse(UtilConst.AdminFirmId)&&_eC_OrderBasic.BuyerId != CurrentUser.MemberId && _eC_OrderBasic.SellerId != CurrentUser.MemberId)
+ EC_OrderBasic shejiorder = _eC_OrderBasicBLL.SelectModelByxiadanId(orderId.Value);
+
+ if (shejiorder != null)
{
- CY.WebForm.BasePage.JavaScript.MessageBox("鏁版嵁涓嶅瓨鍦紒", this);
- return false;
+ shejidingdanid = shejiorder.Keyid.ToString();
}
+
+ //if (CurrentUser.MemberId!=Guid.Parse(UtilConst.AdminFirmId)&&_eC_OrderBasic.BuyerId != CurrentUser.MemberId && _eC_OrderBasic.SellerId != CurrentUser.MemberId)
+ //{
+ // CY.WebForm.BasePage.JavaScript.MessageBox("鏁版嵁涓嶅瓨鍦紒", this);
+ // return false;
+ //}
EC_AcceptWayByOrderBLL _eC_AcceptWayByOrderBLL = new EC_AcceptWayByOrderBLL();
EC_AcceptWayByOrder _eC_AcceptWayByOrder = _eC_AcceptWayByOrderBLL.GetModelByTargetId(orderId.Value);
if (null == _eC_AcceptWayByOrder)
@@ -120,6 +133,16 @@
CY.WebForm.BasePage.JavaScript.MessageBox("鏁版嵁涓嶅瓨鍦紒", this);
return false;
}
+ if(_eC_OrderBasic.OrderExtend.NumPerBag == "NaN")
+ {
+ _eC_OrderBasic.OrderExtend.NumPerBag = "";
+ }
+ if (_eC_OrderBasic.OrderExtend.BagNum == "NaN")
+ {
+ _eC_OrderBasic.OrderExtend.BagNum = "";
+ }
+ _eC_AcceptWayByOrder.NumPerBag = _eC_OrderBasic.OrderExtend.NumPerBag;
+ _eC_AcceptWayByOrder.BagNum = _eC_OrderBasic.OrderExtend.BagNum;
EC_OrderPrintParameterBLL _eC_OrderPrintParameterBLL = new EC_OrderPrintParameterBLL();
EC_OrderPrintParameter _eC_OrderPrintParameter = _eC_OrderPrintParameterBLL.GetModel(orderId.Value);
@@ -145,6 +168,29 @@
{
_eC_OrderBasic.UnitName = sys_Dictionarie.Name;
}
+ BuyerId = _eC_OrderBasic.BuyerId.ToString();
+ OrderId = _eC_OrderBasic.Keyid.Value;
+ //鏌ヨ瀹㈡埛鏄惁鏈夊悎鍚�
+ Database DC = new Database();
+ try
+ {
+
+ string sqlStr = string.Format("select count(*) from [dbo].[OA_CorporateClientContract] where CorporateClientsid='{0}'", _eC_OrderBasic.BuyerId);
+ SqlCommand myCmd = new SqlCommand(sqlStr, DC.Connection);
+ ContractCount = (int)myCmd.ExecuteScalar();
+ }
+ catch (Exception)
+ {
+
+ ContractCount = 0;
+ }
+ finally
+ {
+ if (DC.Connection.State != System.Data.ConnectionState.Closed)
+ DC.Connection.Close();
+ }
+
+
rptOrder.DataSource = new List<EC_OrderBasic>() { _eC_OrderBasic };
rptOrder.DataBind();
rptAccpteWay.DataSource = "鑷彁".Equals(_inquiryCommonModel.DeliveryModeName) ? null : new List<EC_AcceptWayByOrder>() { _eC_AcceptWayByOrder };
--
Gitblit v1.9.1