43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.ComponentModel;
|
|||
|
|
using DevExpress.XtraReports.UI;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using WMS.Model.Stock;
|
|||
|
|
|
|||
|
|
namespace WMS.FrmStock
|
|||
|
|
{
|
|||
|
|
public partial class ReportMoveLoc : DevExpress.XtraReports.UI.XtraReport
|
|||
|
|
{
|
|||
|
|
public ReportMoveLoc(MoveLocModel model, List<MoveLocTabModel> list)
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
|
|||
|
|
if (string.IsNullOrEmpty(model.REMARK)) {
|
|||
|
|
xrLabRemark.Text = string.Empty;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
for (int i = 0; i < list.Count; i++)
|
|||
|
|
{
|
|||
|
|
list[i].SORT = i + 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
bsMoveLoc.DataSource = model;
|
|||
|
|
bsMoveLocTab.DataSource = list;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private static ReportMoveLoc reportMoveLoc;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例化ReportMoveLoc的一个对象
|
|||
|
|
/// </summary>
|
|||
|
|
/// <returns>ReportMoveLoc对象</returns>
|
|||
|
|
public static ReportMoveLoc GetInstance(MoveLocModel model, List<MoveLocTabModel> list)
|
|||
|
|
{
|
|||
|
|
reportMoveLoc = new ReportMoveLoc(model, list);
|
|||
|
|
|
|||
|
|
return reportMoveLoc;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|