| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Server;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinGrid;
- namespace Core.StlMes.Client.SaleOrder.Dialog
- {
- public partial class OrderLineChoicePopup : FrmBase
- {
- private string _ordLnPk = "";
- private ArrayList _ordLnPkList;
- public ArrayList OrdLnPkList
- {
- get { return _ordLnPkList; }
- set { _ordLnPkList = value; }
- }
- public OrderLineChoicePopup(string ordPk, string ordLnPk, OpeBase ob)
- {
- InitializeComponent();
- _ordLnPk = ordLnPk;
- this.ob = ob;
- Query(ordPk, ordLnPk);
- }
- private void Query(string ordPk, string ordLnPk)
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.ReviewForm.CoreOrderReviewTechnology.getOrdSeqByOrdPk",
- new object[] { ordPk }, ob);
- GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
- foreach (UltraGridRow row in ultraGrid1.Rows)
- {
- if (row.GetValue("ORD_LN_PK") == ordLnPk)
- {
- row.Cells["CHK"].Value = true;
- row.Cells["CHK"].Activation = Activation.ActivateOnly;
- break;
- }
- }
- }
- private void ultraButton1_Click(object sender, EventArgs e)
- {
- ultraGrid1.UpdateData();
- _ordLnPkList = new ArrayList();
- foreach (UltraGridRow row in ultraGrid1.Rows)
- {
- if (row.GetValue("CHK") == "True" && _ordLnPk != row.GetValue("ORD_LN_PK"))
- {
- _ordLnPkList.Add(row.GetValue("ORD_LN_PK"));
- }
- }
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- }
- private void ultraButton2_Click(object sender, EventArgs e)
- {
- this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- }
- private void ultraGrid1_AfterCellUpdate(object sender, CellEventArgs e)
- {
- ultraGrid1.UpdateData();
- }
- }
- }
|