Browse Source

销售出库单列表按照送货线路顺序排序。之前在主模块,影响到了其他客户,挪到客户模块。

master^2
yibo 7 years ago
parent
commit
c11f93de0c
3 changed files with 35 additions and 0 deletions
  1. +3
    -0
      B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj
  2. +31
    -0
      B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/SaleOutStoreList_Ext.cs
  3. +1
    -0
      B3QingDaoWanFu.Web/PluginClass.cs

+ 3
- 0
B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj View File

@ -190,6 +190,9 @@
<Compile Include="Pages\B3QingDaoWanFu\Overlays\PayList_Ext.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\B3QingDaoWanFu\Overlays\SaleOutStoreList_Ext.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\B3QingDaoWanFu\Reports\PayAnalyse.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>


+ 31
- 0
B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/SaleOutStoreList_Ext.cs View File

@ -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;
}
}
}

+ 1
- 0
B3QingDaoWanFu.Web/PluginClass.cs View File

@ -30,6 +30,7 @@ namespace BWP.B3QingDaoWanFu
WpfPageFactory.RegisterPageOverlay(typeof(WeighBillEdit).FullName, typeof(WeightBillEdit_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(WeighBillList).FullName, typeof(WeighBillList_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(BWP.Web.Pages.B3ButcherManage.Bills.Pay_.SelectStatPayDialog).FullName, typeof(SelectStatPayDialog_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(BWP.Web.Pages.B3Sale.Bills.SaleOutStore_.SaleOutStoreList).FullName, typeof(SaleOutStoreList_Ext).FullName);
GlobalFlags.On(B3ButcherManageConsts.GlobalFlags.StatPayAddRewardWithButcherUseWeight);
GlobalFlags.On(B3SaleConsts.Flags.MarketingActivityEnableAdjustPrice);
GlobalFlags.On(B3SaleConsts.Flags.SendOutStoreNoAvailableStorage);


Loading…
Cancel
Save