东方万旗模块
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

34 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using BWP.Web.Pages.B3Sale.Reports;
using Forks.EnterpriseServices.DataForm;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
namespace BWP.Web.Overlays
{
class SaleOutStoreAnalyse_Ext: SaleOutStoreAnalyse
{
protected override bool AddCustomerSelfColumns(JoinAlias alias, DQueryDom dom, ListItem field)
{
// return base.AddCustomerSelfColumns(alias, dom, field);
if (field.Text == "FreightPrice")
{
dom.Columns.Add(DQSelectColumn.Field("FreightPrice", alias));
dom.GroupBy.Expressions.Add(DQExpression.Field(alias, field.Value));
ColumnNames.Add(field.Value);
return true;
}
return false;
}
protected override void AddCustomerShowFields(Dictionary<string, DFInfo> fileInfo, DFInfo mainInfo, DFInfo detailInfo, List<string> spec)
{
fileInfo.Add("FreightPrice", mainInfo);
}
}
}