Browse Source

需求单No.138767

master
wugang 7 years ago
parent
commit
997a602a5d
2 changed files with 30 additions and 1 deletions
  1. +18
    -1
      BWP.B3_YunKen.Web/Pages/B3YunKen/Reports/ToFreightNetPriceReport2.cs
  2. +12
    -0
      BWP.B3_YunKen.Web/Pages/B3YunKen/Reports/ToFreightNetPriceReport2.xml

+ 18
- 1
BWP.B3_YunKen.Web/Pages/B3YunKen/Reports/ToFreightNetPriceReport2.cs View File

@ -47,7 +47,8 @@ namespace BWP.Web.Pages.B3YunKen.Reports
DFChoiceBox _goods, _brandItem, _productLine, _goodsBatch;
DFTextBox _saleout;
DFNamedValueInput<> freightBear;
//
DFDropDownList billTypeBox;
private readonly DFInfo mDFInfo = DFInfo.Get(typeof(CustomerAccept));
private readonly DFInfo _detailInfo = DFInfo.Get(typeof(CustomerAccept_Detail));
@ -75,6 +76,8 @@ namespace BWP.Web.Pages.B3YunKen.Reports
list.Add(new Tuple<string, string>("OrderDate", "订货时间"));
list.Add(new Tuple<string, string>("LoadTime", "发货时间"));
list.Add(new Tuple<string, string>("ArriveTime", "到货时间"));
list.Add(new Tuple<string, string>("CheckTime", "审核时间"));
list.Add(new Tuple<string, string>("BillType", "业务类型"));
list.Add(new Tuple<string, string>("Department_Name", "部门"));
list.Add(new Tuple<string, string>("CustomerSaleZone_Name", "地区"));
list.Add(new Tuple<string, string>("SaleKind_Name", "销售类型"));
@ -187,10 +190,19 @@ B3SaleDataSources.经销商), s => long.Parse(s)), "CustomerDealer_ID"));
layout.Add("FreightBear", new SimpleLabel("运费承担方"), freightBear = QueryCreator.DFNameValueInputEnableMultiSelection<>(mDFInfo.Fields["ID"]));
layout["SaleOutID"].NotAutoAddToContainer = true;
layout["FreightBear"].NotAutoAddToContainer = true;
billTypeBox = new DFDropDownList() { Width = Unit.Pixel(160) };
billTypeBox.Items.Add("");
billTypeBox.Items.Add(new ListItem("销售出库", DmoTypeIDAttribute.GetID(typeof(SaleOutStore)).ToString()));
billTypeBox.Items.Add(new ListItem("退货入库", DmoTypeIDAttribute.GetID(typeof(ReturnInStore)).ToString()));
layout.Add("BillType", new SimpleLabel("业务类型"), billTypeBox);
layout["BillType"].NotAutoAddToContainer = true;
var config = layout.CreateDefaultConfig(4);
config.Expand = false;
config.Add("LoadTime");
config.Add("OrderDate");
config.Add("CheckTime");
config.Add("Code");
//config.Add("SaleOutID");
//config.Add("ArriveTime");
//config.Add("AccountingUnit_ID");
@ -319,6 +331,8 @@ B3SaleDataSources.经销商), s => long.Parse(s)), "CustomerDealer_ID"));
case "Store_Name":
case "CustomerDealer_Name":
case "Customer_Name":
case "CheckTime":
case "BillType":
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Field(main, field), item.Text));
dom.GroupBy.Expressions.Add(DQExpression.Field(main, field));
break;
@ -454,6 +468,9 @@ B3SaleDataSources.经销商), s => long.Parse(s)), "CustomerDealer_ID"));
{
dom.Where.Conditions.Add(DQCondition.InList(DQExpression.Field(outStore, "FreightBear"), freightBear.GetValues().Select(x=> DQExpression.Value(x)).ToArray()));
}
if (billTypeBox.SelectedIndex > 0){
dom.Where.Conditions.Add(DQCondition.EQ("BillType", billTypeBox.SelectedValue));
}
dom.Where.Conditions.Add(DQCondition.EQ(main, "BillState", .));
return dom;
}


+ 12
- 0
BWP.B3_YunKen.Web/Pages/B3YunKen/Reports/ToFreightNetPriceReport2.xml View File

@ -11,6 +11,10 @@
<Field name="ID"/>
<QBE paramName="ID"/>
</EQ>
<Like>
<Field name="Code"/>
<QBE paramName="Code"/>
</Like>
<GreaterThanOrEqual>
<Field name="LoadTime"/>
<QBE paramName="MinLoadTime" />
@ -27,6 +31,14 @@
<Field name="OrderDate"/>
<QBE paramName="MaxOrderDate"/>
</LessThanOrEqual>
<GreaterThanOrEqual>
<Field name="CheckTime"/>
<QBE paramName="MinCheckTime" />
</GreaterThanOrEqual>
<LessThanOrEqual>
<Field name="CheckTime"/>
<QBE paramName="MaxCheckTime"/>
</LessThanOrEqual>
<QBEIn>
<Field name="AccountingUnit_ID"/>
<QBE paramName="AccountingUnit_ID"/>


Loading…
Cancel
Save