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 CoreFS.CA06;using Pur.Entity; using Pur.Entity.ck; using Pur.require_plan; using Pur.Entity.configureEntity; using com.hnshituo.pur.vo; using Core.Mes.Client.Comm.Control; using Infragistics.Win; using Pur.Entity; namespace Pur.ck { public partial class PurCkStatisti : FrmPmsBase { public PurCkStatisti() { InitializeComponent(); ultraGrid1.DisplayLayout.Bands[0].Override.AllowUpdate = DefaultableBoolean.False; } //菜单按钮事件 public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": GetPUR_CK_STATISTICS(); break; } } /// /// 查询 /// private void GetPUR_CK_STATISTICS() { CkStatistics CkSa = new CkStatistics(); //CkSa.InvLogic = txt_invLogic.Text; CkSa.ItemCode = txt_itemCode.Text; CkSa.ItemName = txt_itemName.Text; DataTable dt = this.execute("com.hnshituo.pur.ck.service.CkStatisticsService", "find_Stat", new object[] { CkSa }); GridHelper.CopyDataToDatatable(dt, dataTable1, true); } private void ultraPanel1_PaintClient(object sender, PaintEventArgs e) { } /// /// 物料弹窗 /// /// /// private void txt_itemCode_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e) { FrmPurPlanMat mat = new FrmPurPlanMat(this.ob); mat.ShowDialog(); if (mat.getItemCode().ToString() == null) { return; } txt_itemCode.Text = mat.getItemCode().ToString(); txt_itemName.Text = mat.getItemName().ToString(); } /// ///界面加载,下拉框加载 /// /// /// private void PurCkStatisti_Load(object sender, EventArgs e) { LogicWareHouseEntity lhouse = new LogicWareHouseEntity(); lhouse.Validflag = "1"; DataTable dt = this.execute("com.hnshituo.pur.configure.service.LogicSeatService", "getLogicSeat", new object[] { lhouse, 0, 0 }); if (dt.Rows.Count > 0) { txt_invLogic.DataSource = dt; this.txt_invLogic.DisplayMember = "invLogicName"; this.txt_invLogic.ValueMember = "invLogic"; } //PhysicSeatEntity Phouse = new PhysicSeatEntity(); //Phouse.Validflag = "1"; //DataTable dt1 = this.execute("com.hnshituo.pur.configure.service.ActualSeatService", "getActualSeat", new object[] { Phouse, 0, 0 }); //if (dt1.Rows.Count > 0) //{ // txt_invPhysic.DataSource = dt1; // this.txt_invPhysic.DisplayMember = "invPhysicName"; // this.txt_invPhysic.ValueMember = "invPhysic"; //} //ActualSeatPosEntity PosEntity = new ActualSeatPosEntity(); //PosEntity.Validflag = "1"; //DataTable dt3 = this.execute("com.hnshituo.pur.configure.service.ActualSeatPosService", "find", new object[] { PosEntity, 0, 0 }); //if (dt3.Rows.Count > 0) //{ // txt_invBin.DataSource = dt3; // this.txt_invBin.DisplayMember = "invPosName"; // this.txt_invBin.ValueMember = "invPos"; //} GetPUR_CK_STATISTICS(); } } }