using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Collections; using CoreFS.CA06; using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Server; using Core.StlMes.Client.YdmPipeManage.Tool; namespace Core.StlMes.Client.PipeLeaveFactory.Dialog { public partial class FrmBillDiaLog : FrmBase { private string[] _billNo; private OpeBase _ob; public FrmBillDiaLog(string[] billNo, OpeBase ob) { InitializeComponent(); _billNo = billNo; _ob = ob; this.IsLoadUserView = true; } private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Export": Export(); break; case "Close": this.Close(); break; } } private void Query() { DataTable dt = ServerHelper.GetData("com.steering.pss.ydm.pipeleavefactory.CorePipeCarBill.queryBillExtie", new object[] { _billNo }, _ob); GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true); BaseMethod.MergedCell(GridBill, new string[] { "BILL_NO" }); } private void Export() { GridHelper.ulGridToExcel(GridBill, "提单信息"); } private void FrmBillDiaLog_Load(object sender, EventArgs e) { Query(); } } }