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 reportInOutput : FrmBase { public reportInOutput() { InitializeComponent(); } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": doQuery(); break; //case "Export": //GridHelper.ulGridToExcel(inGrid, "出入库汇总"); // break; case "Close": this.Close(); break; } } private string[] arr = null;//仓库权限 public void doQuery() { this.inTab.Clear(); this.outTab.Clear(); 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 dt = ServerHelper.GetData("Core.LgMes.Server.Stuffmanage.Report.FrmReportInOutput.doQueryInData", new Object[] { arr,list}, this.ob); GridHelper.CopyDataToDatatable(ref dt, ref this.inTab, true); DataTable dt2 = ServerHelper.GetData("Core.LgMes.Server.Stuffmanage.Report.FrmReportInOutput.doQueryOutData", new Object[] { arr, list }, this.ob); GridHelper.CopyDataToDatatable(ref dt2, ref this.outTab, true); DataTable dt3 = ServerHelper.GetData("Core.LgMes.Server.Stuffmanage.Report.FrmReportInOutput.doQueryMatData", new Object[] { arr, list }, this.ob); GridHelper.CopyDataToDatatable(ref dt3, ref this.matTab, true); } private void FrmStorageInfo_Load(object sender, EventArgs e) { arr = BaseMethod.WarehousePermissionsStore(this.ValidDataPurviewIds, ob); GridHelper.SetAllColumnsActive(inGrid); GridHelper.SetAllColumnsActive(outGrid); GridHelper.SetAllColumnsActive(matGrid); } } }