| @ -0,0 +1,31 @@ | |||||
| using BWP.B3Sale.BO; | |||||
| using BWP.Web.Pages.B3Sale.Bills.SaleOutStore_; | |||||
| using Forks.EnterpriseServices.DomainObjects2; | |||||
| using Forks.EnterpriseServices.DomainObjects2.DQuery; | |||||
| using Forks.EnterpriseServices.SqlDoms; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.Web.Pages.B3QingDaoWanFu.Overlays | |||||
| { | |||||
| class SaleOutStoreList_Ext : SaleOutStoreList | |||||
| { | |||||
| protected override DQueryDom GetQueryDom() | |||||
| { | |||||
| var query = base.GetQueryDom(); | |||||
| if (query.OrderBy.Expressions.Count == 0) | |||||
| { | |||||
| var root = query.From.RootSource.Alias; | |||||
| var lineDetail = new JoinAlias("lineDetail", typeof(DeliverGoodsLine_Detail)); | |||||
| query.From.AddJoin(JoinType.Left, new DQDmoSource(lineDetail), DQCondition.And(DQCondition.EQ(root, "DeliverGoodsLine_ID", lineDetail, "DeliverGoodsLine_ID"), DQCondition.EQ(root, "Customer_ID", lineDetail, "Customer_ID"))); | |||||
| query.OrderBy.Expressions.Add(DQOrderByExpression.Create(root, "SequenceNumber")); | |||||
| query.OrderBy.Expressions.Add(DQOrderByExpression.Create(lineDetail, "SequenceNumber")); | |||||
| } | |||||
| return query; | |||||
| } | |||||
| } | |||||
| } | |||||