| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- 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;
-
- }
- }
- /// <summary>
- /// 查询
- /// </summary>
- 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<DataTable>("com.hnshituo.pur.ck.service.CkStatisticsService", "find_Stat", new object[] { CkSa });
- GridHelper.CopyDataToDatatable(dt, dataTable1, true);
-
- }
-
- private void ultraPanel1_PaintClient(object sender, PaintEventArgs e)
- {
- }
- /// <summary>
- /// 物料弹窗
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- 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();
- }
- /// <summary>
- ///界面加载,下拉框加载
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void PurCkStatisti_Load(object sender, EventArgs e)
- {
- LogicWareHouseEntity lhouse = new LogicWareHouseEntity();
- lhouse.Validflag = "1";
- DataTable dt = this.execute<DataTable>("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<DataTable>("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<DataTable>("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();
- }
- }
- }
|