using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Infragistics.Win.UltraWinGrid; using Core.Mes.Client.Comm.Server; using CoreFS.CA06; using Core.StlMes.Client.Qcm; using Core.Mes.Client.Comm.Control; namespace Core.StlMes.Client.SaleOrder.Control { public partial class CraftOrdFdPicMCtrl : UserControl { private OpeBase _ob; private string _ordLnPk = ""; private string _designKey = ""; public CraftOrdFdPicMCtrl(System.Windows.Forms.Control container, string ordLnPk, string designKey, OpeBase ob) { InitializeComponent(); _ob = ob; _ordLnPk = ordLnPk; _designKey = designKey; container.Controls.Add(this); this.Dock = DockStyle.Fill; } public void Query() { DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.CraftOrdFdPic.queryM", new object[]{ _ordLnPk }, _ob); GridHelper.CopyDataToDatatable(dt, dataTable1, true); } public void ShowMscPline() { } private void ultraTextEditor3_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e) { } private void ultraGrid1_AfterRowInsert(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e) { } private void ultraGrid1_CellChange(object sender, CellEventArgs e) { e.Cell.Row.Update(); if (e.Cell.Column.Key == "Chk") { UltraGridRow chkRow = e.Cell.Row; foreach (UltraGridRow row in ultraGrid1.Rows) { if (row.Cells["Chk"].Value.ToString() == "True" && row != chkRow) { row.Cells["Chk"].Value = "False"; row.Update(); } } } } } }