49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
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<AreaRepOutModel> outList, List<AreaRepInModel> 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;
|
|
/// <summary>
|
|
/// 实例化ReportAreaRep的一个对象
|
|
/// </summary>
|
|
/// <returns>ReportAreaRep对象</returns>
|
|
public static ReportAreaRep GetInstance(AreaRepModel model, List<AreaRepOutModel> outList, List<AreaRepInModel> inList)
|
|
{
|
|
reportAreaRep = new ReportAreaRep(model, outList,inList);
|
|
|
|
return reportAreaRep;
|
|
}
|
|
}
|
|
}
|