42 lines
1.1 KiB
C#
42 lines
1.1 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 ReportStorageRepSKU : DevExpress.XtraReports.UI.XtraReport
|
|
{
|
|
public ReportStorageRepSKU(StorageRepModel model, List<StorageRepInfoModel> 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<StorageRepInfoModel> list)
|
|
{
|
|
reportStorageRepSKU = new ReportStorageRepSKU(model, list);
|
|
|
|
return reportStorageRepSKU;
|
|
}
|
|
}
|
|
}
|