|
|
|
@ -20,9 +20,10 @@ namespace BWP.Web.Pages.TypeIOCs |
|
|
|
[TypeIOC(typeof(CarLoadingPrint), typeof(CarLoadingPrint.AfterAddParameters))] |
|
|
|
public class CarLoadingTypeIOC : CarLoadingPrint.AfterAddParameters |
|
|
|
{ |
|
|
|
|
|
|
|
private List<long> StoreIDs; |
|
|
|
public void Invoke(IDictionary<string, object> dic, CarLoading dmo) |
|
|
|
{ |
|
|
|
StoreIDs = dic["$StoreIDs"] as List<long>; |
|
|
|
AddParameterss(dic, dmo); |
|
|
|
} |
|
|
|
|
|
|
|
@ -53,7 +54,9 @@ namespace BWP.Web.Pages.TypeIOCs |
|
|
|
{ |
|
|
|
StringBuilder html = new StringBuilder(); |
|
|
|
|
|
|
|
DFDataTable dt = new DFDataAdapter(CarLoadingUtil.GetGoodsDetailGroupByOutStoreID(dmo)).Fill(); |
|
|
|
DFDataTable dt = new DFDataAdapter(CarLoadingUtil.GetGoodsDetailGroupByOutStoreID(dmo,StoreIDs)).Fill(); |
|
|
|
|
|
|
|
|
|
|
|
mTotalCount = dt.Rows.Count; |
|
|
|
|
|
|
|
var pageCount = mTotalCount <= 0 ? 1 : ((mTotalCount + PageSize - 1) / PageSize); |
|
|
|
|