using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Tool; using CoreFS.CA06; using Core.StlMes.Client.YdmStuffManage; namespace Core.StlMes.Client.YdmStuffReport { public partial class reportMatIsSetFoot : FrmBase { public reportMatIsSetFoot() { InitializeComponent(); } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": doQuery(); break; case "Export": GridHelper.ulGridToExcel(matGrid, "管坯套尺库存"); break; case "Close": this.Close(); break; } } private string[] arr = null;//仓库权限 public void doQuery() { this.matTab.Clear(); ArrayList list = new ArrayList(); //if (this.txtSTOVE_NO.Text.ToString().Trim().Equals("")&&this.txtJUDGE_STOVE_NO.Text.ToString().Trim().Equals("")) { // MessageUtil.ShowTips("请输入炉号!"); // return; //} list.Add(this.txtSTOVE_NO.Text.ToString().Trim()); list.Add(this.txtJUDGE_STOVE_NO.Text.ToString().Trim()); DataTable dt1 = ServerHelper.GetData("Core.LgMes.Server.Stuffmanage.Report.FrmReportInOutput.doQueryMatDataIsSetFoot", new Object[] { arr, list }, this.ob); GridHelper.CopyDataToDatatable(ref dt1, ref this.matTab, true); } private void FrmStorageInfo_Load(object sender, EventArgs e) { arr = BaseMethod.WarehousePermissionsStore(this.ValidDataPurviewIds, ob); GridHelper.SetAllColumnsActive(matGrid); } private void matGrid_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { } } }