using Core.Mes.Client.Comm.Control; using Core.Mes.Client.Comm.Server; using CoreFS.CA06; using Infragistics.Win.UltraWinGrid; 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; namespace Core.StlMes.Client.ZGMil.Entity { public partial class FrmShortRuler : FrmBase { private string storage = ""; private ArrayList list = new ArrayList(); private int _acount = 0; public ArrayList shortList //短尺 用于传值到参数设定界面 { get { return list; } } public int acount //支数 用于传值到参数设定界面 { get { return _acount; } } public FrmShortRuler(string storage1, OpeBase _ob) { InitializeComponent(); storage = storage1; this.ob = _ob; } private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Outlibrary"://新增 doOutlibrary(); break; case "Close": this.Close(); break; default: break; } } private void doOutlibrary() { ultraGrid1.UpdateData(); UltraGridRow ugr = ultraGrid1.ActiveRow; if (ugr == null) return; //ArrayList list = new ArrayList(); foreach (UltraGridRow uRow in this.ultraGrid1.Rows) { ArrayList parm = new ArrayList(); parm.Add(uRow.Cells["ACT_COUNT"].Text.ToString()); parm.Add(uRow.Cells["ACT_LEN"].Text.ToString()); parm.Add(uRow.Cells["MEMO"].Text.ToString()); list.Add(parm); _acount += int.Parse(uRow.Cells["ACT_COUNT"].Text.ToString3()); } this.DialogResult = DialogResult.OK; this.Close(); } } }