From 5782e6fb084441dcf26db0b1aaf33e39204142b8 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 15 四月 2025 08:52:33 +0800 Subject: [PATCH] 20250220设计订单菜单 会员菜单下 设计管理 12 会员菜单下 设计管理 01 会员菜单下 设计管理下 设计记件 /Pages/business/ShejijijianList.aspx 05 会员菜单下 设计管理下 新增订单 /Pages/business/ShejiOrderEdit.aspx 01 会员菜单下 设计管理下 订单管理 /Pages/business/ShejiOrderList.aspx 02 --- CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs | 70 +++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs index d4e784a..690d966 100644 --- a/CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs +++ b/CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs @@ -3197,5 +3197,75 @@ } } + + + + /// <summary> + /// 鍒嗛〉鏌ヨ + /// </summary> + /// <param name="pagination"></param> + /// <param name="MemberId"></param> + /// <returns></returns> + public IEnumerable<Model.EC_OrderBasic> SelectModelPageSheji(Infrastructure.Query.Pagination pagination, Guid MemberId, string BeginCreateTime, string EndCreateTime, string SellerOrderId, string PrintTypeId, string BusinessManagerId, string Shejirenyuan, string BuyerName, string DocumentName, string ShejiStatus) + { + try + { + string condition = " 1=1 "; + if (MemberId != Guid.Empty) + { + var originalGuid = MemberId; + Guid reversedGuid = new Guid(originalGuid.ToByteArray().Reverse().ToArray()); + condition += " and ob.SellerId = '" + reversedGuid + "'"; + } + + + + if (!string.IsNullOrEmpty(BeginCreateTime)) + condition += string.Format(" and CAST(ob.CreateTime AS DATE) >='{0}'", BeginCreateTime); + + if (!string.IsNullOrEmpty(EndCreateTime)) + condition += string.Format(" and CAST(ob.CreateTime AS DATE) <='{0}'", EndCreateTime); + + if (!string.IsNullOrEmpty(SellerOrderId)) + condition += " and ob.SellerOrderId like '%" + SellerOrderId + "%'"; + + if (!string.IsNullOrEmpty(PrintTypeId)) + { + condition += " and ob.PrintTypeId = " + PrintTypeId + ""; + } + if (!string.IsNullOrEmpty(BusinessManagerId)) + { + condition += " and oe.BusinessManagerId = " + BusinessManagerId + ""; + } + if (!string.IsNullOrEmpty(Shejirenyuan)) + { + condition += " and ( oe.Shejirenyuan = " + Shejirenyuan + " or oe.Shejirenyuanneiye = " + Shejirenyuan + " )"; + } + if (!string.IsNullOrEmpty(BuyerName)) + condition += " and ob.BuyerName like '%" + BuyerName + "%'"; + + if (!string.IsNullOrEmpty(DocumentName)) + condition += " and ob.DocumentName like '%" + DocumentName + "%'"; + + if (!string.IsNullOrEmpty(ShejiStatus)) + { + if(ShejiStatus == "1") + { + condition += " and oe.ShejiStatus = " + ShejiStatus + ""; + } + else + { + condition += " and oe.ShejiStatus != 1 "; + } + } + + return _dataBase.SelectModelPage<Model.EC_OrderBasic>(pagination, " ob.*,oe.BusinessManagerId,oe.shifouDelivery,oe.IsPrintfengqian,oe.DeliveryOrderId,oe.KaipiaoshenqingCreater,oe.KaipiaoshenqingTime,oe.KaipiaoquerenCreater,oe.KaipiaoquerenTime,oe.Kehuqianshou,oe.KehuqianshouCreater,oe.KehuqianshouTime ,oe.Quchudingdan,oe.QuchudingdanCreater,oe.QuchudingdanTime,oe.PrintPackDeliveryRequir,oe.PrintNum,oe.ExigencyCaseId,oe.Duiyinghetongbianhao,oe.[Shejirenyuan],oe.[Shejileixing] ,oe.[Danshuangmian],oe.[Shejirenyuanneiye],oe.[Shejileixingneiye],oe.[Danshuangmianneiye],oe.[Shejiyaoqiu],oe.[Shejiyaoqiuneiye],oe.[ShejirenyuanName],oe.[ShejirenyuanNameneiye],oe.[ShejiStatus],oe.[ShejileixingName],oe.[ShejileixingNameneiye],oe.[ShejiUnitPrice] ,oe.[ShejiSumPrice],oe.[ShejiUnitPriceneiye],oe.[ShejiSumPriceneiye] ,oe.[Shejicount],oe.[Shejicountneiye] ,pt.PrintName as PrintTypeName ", " EC_OrderBasic as ob Inner Join [EC_OrderExtend] as oe On ob.Keyid=oe.Keyid Left Join SysInquiry_PrintingType as pt On(ob.PrintTypeId=pt.Keyid) ", " ob.CreateTime desc", " CreateTime desc ", condition); + } + catch (Exception ex) + { + throw ex; + } + } + } } -- Gitblit v1.9.1