|
|
@ -49,19 +49,6 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.SaleOutStore_ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//已经查询
|
|
|
|
|
|
private object SearchFlag |
|
|
|
|
|
{ |
|
|
|
|
|
set |
|
|
|
|
|
{ |
|
|
|
|
|
ViewState["SearchFlag"] = value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get |
|
|
|
|
|
{ |
|
|
|
|
|
return ViewState["SearchFlag"]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private QueryResult GetQueryResult(LoadArguments arg) |
|
|
private QueryResult GetQueryResult(LoadArguments arg) |
|
|
@ -97,14 +84,6 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.SaleOutStore_ |
|
|
var group = new ButtonGroup(); |
|
|
var group = new ButtonGroup(); |
|
|
previewAction = new CustomPriviewAction(); |
|
|
previewAction = new CustomPriviewAction(); |
|
|
printAction = new CustomPrintAction(); |
|
|
printAction = new CustomPrintAction(); |
|
|
if (SearchFlag != null) |
|
|
|
|
|
{ |
|
|
|
|
|
printAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
|
|
|
previewAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var billReportSelect = new BillReportSelectAction(PrintUtil.GetTemplateFile(PluginName, "SaleOutStoreSimpleAnaysePrint.xml")); |
|
|
var billReportSelect = new BillReportSelectAction(PrintUtil.GetTemplateFile(PluginName, "SaleOutStoreSimpleAnaysePrint.xml")); |
|
|
group.Actions.Add(previewAction); |
|
|
group.Actions.Add(previewAction); |
|
|
@ -144,7 +123,7 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.SaleOutStore_ |
|
|
vPanel.Add(layout.CreateLayout(), new VLayoutOption(HorizontalAlign.Left)); |
|
|
vPanel.Add(layout.CreateLayout(), new VLayoutOption(HorizontalAlign.Left)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Dictionary<string, string> fieldInfo = new Dictionary<string, string>() { {"Customer_Name", "购货客户" }, { "Goods_Name", "存货名称" },{ "Goods_Spec", "存货规格" }, { "Order_Detail_UnitNum", "订单数量" } }; |
|
|
|
|
|
|
|
|
private Dictionary<string, string> fieldInfo = new Dictionary<string, string>() { {"Customer_Name", "购货客户" }, { "Goods_Name", "存货名称" },{ "Goods_Spec", "存货规格" }, { "Order_Detail_UnitNum", "订单数量" }, { "SecondNumber", "辅数量" }, { "Goods_SecondUnit", "辅单位" } }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override void PrepareData() |
|
|
protected override void PrepareData() |
|
|
@ -180,7 +159,6 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.SaleOutStore_ |
|
|
info.Save(); |
|
|
info.Save(); |
|
|
printAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
printAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
previewAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
previewAction.Url = "SaleOutStoreSimpleAnaysePrint.aspx"; |
|
|
SearchFlag = "1"; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
protected override DQueryDom GetQueryDom() |
|
|
protected override DQueryDom GetQueryDom() |
|
|
@ -202,9 +180,11 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.SaleOutStore_ |
|
|
break; |
|
|
break; |
|
|
case "Goods_Name": |
|
|
case "Goods_Name": |
|
|
case "Goods_Spec": |
|
|
case "Goods_Spec": |
|
|
|
|
|
case "Goods_SecondUnit": |
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Field(detail, item.Key), item.Value)); |
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Field(detail, item.Key), item.Value)); |
|
|
dom.GroupBy.Expressions.Add(DQExpression.Field(detail, item.Key)); |
|
|
dom.GroupBy.Expressions.Add(DQExpression.Field(detail, item.Key)); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case "SecondNumber": |
|
|
case "Order_Detail_UnitNum": |
|
|
case "Order_Detail_UnitNum": |
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Sum(DQExpression.Field(detail, item.Key)), item.Value)); |
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Sum(DQExpression.Field(detail, item.Key)), item.Value)); |
|
|
SumColumnIndexs.Add(dom.Columns.Count - 1); |
|
|
SumColumnIndexs.Add(dom.Columns.Count - 1); |
|
|
|