30 lines
872 B
C#
30 lines
872 B
C#
|
|
using System;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.ComponentModel;
|
|||
|
|
using DevExpress.XtraReports.UI;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.IO;
|
|||
|
|
using System.Reflection;
|
|||
|
|
|
|||
|
|
namespace Barcode
|
|||
|
|
{
|
|||
|
|
public partial class 菜鸟电子面单 : DevExpress.XtraReports.UI.XtraReport
|
|||
|
|
{
|
|||
|
|
public 菜鸟电子面单()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
}
|
|||
|
|
public void SetBindData(DataSet table)
|
|||
|
|
{
|
|||
|
|
string appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);
|
|||
|
|
if (File.Exists(appPath + "\\barcode\\菜鸟电子面单.repx"))
|
|||
|
|
{
|
|||
|
|
this.LoadLayout(appPath + "\\barcode\\菜鸟电子面单.repx");
|
|||
|
|
}
|
|||
|
|
this.DataSource = table.Tables[0];
|
|||
|
|
DetailReport.DataSource = table.Tables[1];
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|