46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using DevExpress.XtraReports.UI;
|
|
using WMS.Model.TR;
|
|
using WMS.Base.WebService;
|
|
using System.Data;
|
|
using System.Collections.Generic;
|
|
|
|
namespace WMS.FrmTR
|
|
{
|
|
public partial class ReportTransport : DevExpress.XtraReports.UI.XtraReport
|
|
{
|
|
public ReportTransport(TransportModel model, List<TransportTabModel> list)
|
|
{
|
|
InitializeComponent();
|
|
if (string.IsNullOrEmpty(model.REMARK))
|
|
{
|
|
this.xrRemark.Text = string.Empty;
|
|
}
|
|
for (int i = 0; i < list.Count; i++)
|
|
{
|
|
list[i].SORT = i + 1;
|
|
}
|
|
if (model.REAL_END_DATE.ToString("yyyy-MM-dd") == "0001-01-01")
|
|
{
|
|
xrLabel35.Text = string.Empty;
|
|
}
|
|
if (model.REAL_START_DATE.ToString("yyyy-MM-dd") == "0001-01-01")
|
|
{
|
|
xrLabel33.Text = string.Empty;
|
|
}
|
|
BSTransport.DataSource = model;
|
|
BSTransportTab.DataSource = list;
|
|
DetailReport.DataSource = BSTransportTab;
|
|
}
|
|
private static ReportTransport reportTransport;
|
|
public static ReportTransport GetInstance(TransportModel model, List<TransportTabModel> list)
|
|
{
|
|
reportTransport = new ReportTransport(model, list);
|
|
return reportTransport;
|
|
}
|
|
}
|
|
}
|