using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.YdmPipeManage.Tool; using Core.StlMes.Client.YdmPipeReport.Entity; using CoreFS.CA06; 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; namespace Core.StlMes.Client.YdmPipeReport { public partial class FrmRptOutSend : FrmBase { public FrmRptOutSend() { this.IsLoadUserView = true; InitializeComponent(); } private string[] arr = null; private void FrmRptOutSend_Load(object sender, EventArgs e) { EntityHelper.ShowGridCaption(ultraGrid1.DisplayLayout.Bands[0]); arr = BaseMethod.InitPermissions(this.ValidDataPurviewIds, ob); } /// /// 重写基类方法 /// /// /// public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": QueryData(); break; case "Export": ExportData(); break; case "Close": this.Close(); break; } } /// /// 查询 /// private void QueryData() { List listSource = EntityHelper.GetData( "com.steering.pss.ydm.Report.FrmRptOutSend.doQueryData", new object[] { arr, this.ultraOptionSet1.CheckedItem.DataValue.ToString(), this.CustomInfo, this.ValidDataPurviewIds }, this.ob); slmBalancedetailAllEntityBindingSource.DataSource = listSource; } /// /// 导出 /// private void ExportData() { GridHelper.ulGridToExcel(ultraGrid1, "出库未结算汇总"); } } }