| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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();
- }
- }
- }
- }
- }
- }
|