Browse Source

打印

master
luanhui 8 years ago
parent
commit
a70c56ca5f
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      B3QingDaoWanFu.Web/Pages/TypeIOCs/CarLoadingTypeIOC.cs

+ 5
- 2
B3QingDaoWanFu.Web/Pages/TypeIOCs/CarLoadingTypeIOC.cs View File

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


Loading…
Cancel
Save