| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Collections;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Format;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- using Infragistics.Win;
- using Infragistics.Win.UltraWinGrid;
- using NPOI.SS.UserModel;
- using Core.StlMes.Client.PnCost.Models;
- using Core.Mes.Client.Comm.Server;
- namespace Core.StlMes.Client.PnCost
- {
- public partial class FrmTqnqc13T : FrmBase
- {
- #region 定义变量
- public FrmTqnqc13T(OpeBase ob)
- {
- InitializeComponent();
- this.ob = ob;
- }
- public string cx_ = "", rpcede_ = "";
- private DataTable dtgang;
- #endregion
- private void 查询_Click(object sender, EventArgs e)
- {
- string cx = "";
- string rpcede = "";
- if (this.checkCxName.Checked)
- {
- cx = this.CxText.Text;
- }
- if (this.checkRpCode.Checked)
- {
- rpcede_ = this.RpCodeText.Text;
- }
- DataTable dtPsc = ServerHelper.GetData("com.steering.mes.cost.FrmProductManage.queryBaseN13", new Object[] { cx, rpcede }, this.ob);
- if (dtPsc != null && dtPsc.Rows.Count > 0)
- {
- GridHelper.CopyDataToDatatable(ref dtPsc, ref dataTable1, true);
- GridHelper.RefreshAndAutoSizeExceptColumns(ultraGrid1);
- }
- else
- {
- dataTable1.Rows.Clear();
- }
- }
- private void ultraGrid1_DoubleClick(object sender, EventArgs e)
- {
- ultraGrid1.UpdateData();
- UltraGridRow ugr = ultraGrid1.ActiveRow;
- if (ugr == null) return;
- cx_ = ugr.Cells["WHOLE_BACKLOG_NAME"].Text.Trim();
- rpcede_ = ugr.Cells["RP_CODE"].Text.Trim();
- this.DialogResult = DialogResult.OK;
- this.Close();
- }
- }
- }
|