| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- 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.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 FrmStopSamll : FrmBase
- {
- private string storage = "";
-
- public FrmStopSamll(string storage1, OpeBase _ob)
- {
-
- InitializeComponent();
- storage = storage1;
- this.ob = _ob;
- }
- private string basecode;
- public string Basecode
- {
- get { return basecode; }
- set { basecode = value; }
- }
- private string basename;
- public string Basename
- {
- get { return basename; }
- set { basename = value; }
- }
- private void FrmStopSamll_Load(object sender, EventArgs e)
- {
- DataTable dt = ServerHelper.GetData("com.steering.mes.signature.FrmMilControlLog.getComBaseInfo", new object[] { storage }, ob);
- GridHelper.CopyDataToDatatable(dt, this.dataBill, true);
- }
- 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;
- basecode = ugr.Cells["BASECODE"].Text.Trim();
- basename = ugr.Cells["BASENAME"].Text.Trim();
- this.DialogResult = DialogResult.OK;
- this.Close();
- }
- private void ultraGrid1_Click(object sender, EventArgs e)
- {
- ultraGrid1.UpdateData();
- UltraGridRow ugr = ultraGrid1.ActiveRow;
- if (ugr == null) return;
- basecode = ugr.Cells["BASECODE"].Text.Trim();
- basename = ugr.Cells["BASENAME"].Text.Trim();
- this.DialogResult = DialogResult.OK;
- this.Close();
- }
- }
- }
|