using System; using System.Drawing; using System.Collections; using System.ComponentModel; using DevExpress.XtraReports.UI; using WMS.Model.Stock; using System.Collections.Generic; namespace WMS.FrmStock { public partial class ReportStorageRepSKU : DevExpress.XtraReports.UI.XtraReport { public ReportStorageRepSKU(StorageRepModel model, List list) { InitializeComponent(); if (string.IsNullOrEmpty(model.REMARK)) { model.REMARK = string.Empty; } for (int i = 0; i < list.Count; i++) { list[0].SORT = i + 1; } bgsStorageRepSKU.DataSource = model; bgsGoodsSKU.DataSource = list; DetailReport.DataSource = bgsGoodsSKU; } public static ReportStorageRepSKU reportStorageRepSKU; public static ReportStorageRepSKU GetInstance(StorageRepModel model, List list) { reportStorageRepSKU = new ReportStorageRepSKU(model, list); return reportStorageRepSKU; } } }