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 ReportAreaRep : DevExpress.XtraReports.UI.XtraReport { public ReportAreaRep(AreaRepModel model, List outList, List inList) { InitializeComponent(); if (string.IsNullOrEmpty(model.REMARK)) { xrLabRemark.Text = string.Empty; } for (int i = 0; i < outList.Count; i++) { outList[i].SORT = i + 1; } for (int i = 0; i < inList.Count; i++) { inList[i].SORT = i + 1; } bsAreaRep.DataSource = model; bsAreaRepOut.DataSource = outList; bsAreaRepIn.DataSource = inList; } private static ReportAreaRep reportAreaRep; /// /// 实例化ReportAreaRep的一个对象 /// /// ReportAreaRep对象 public static ReportAreaRep GetInstance(AreaRepModel model, List outList, List inList) { reportAreaRep = new ReportAreaRep(model, outList,inList); return reportAreaRep; } } }