| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Server;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinGrid;
- using System;
- using System.Collections.Generic;
- using System.Data;
- namespace Core.StlMes.Client.Qcm
- {
- public partial class FrmChemPopup : FrmBase
- {
- public FrmChemPopup()
- {
- InitializeComponent();
- }
- private OpeBase _ob;
- public OpeBase Ob
- {
- get { return _ob; }
- set { _ob = value; }
- }
- private List<string> chenList;
- public List<string> ChenList
- {
- get { return chenList; }
- set { chenList = value; }
- }
- private void FrmChemPopup_Load(object sender, EventArgs e)
- {
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- Query();
- }
- private void Query()
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.qcm.CoreChemPopup.getData", null, this._ob);
- GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true);
- UltraGridColumn[] col = new UltraGridColumn[] { ultraGrid1.DisplayLayout.Bands[0].Columns["CHEM_FORMULA"] };
- GridHelper.RefreshAndAutoSizeExceptColumns(ultraGrid1, col);
- if (this.ChenList.Count > 0)
- {
- foreach (UltraGridRow row in ultraGrid1.Rows)
- {
- if (ChenList.Contains(row.Cells["CHEM_CODE"].Value.ToString()))
- {
- row.Cells["ISLINK"].Value = true;
- }
- }
- }
- ultraGrid1.UpdateData();
- }
- }
- }
|