| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- 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.Lims.Data.PipeAndOutdec
- {
- public partial class WinStdUpdate : FrmBase
- {
- public string OldStd { get; set; }
- public string NewStd { get; set; }
- public WinStdUpdate(OpeBase _ob)
- {
- InitializeComponent();
- this.ob = _ob;
- }
- private void oldStd_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- using (var winStdSelect = new WinStdSelect(this.ob))
- {
- if (winStdSelect.ShowDialog() == DialogResult.OK)
- {
- oldStd.Text = winStdSelect.SelectRow.StdName;
- }
- }
- }
- private void newStd_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
- {
- using (var winStdSelect = new WinStdSelect(this.ob))
- {
- if (winStdSelect.ShowDialog() == DialogResult.OK)
- {
- newStd.Text = winStdSelect.SelectRow.StdName;
- }
- }
- }
- private void ultraButton1_Click(object sender, EventArgs e)
- {
- if (oldStd.Text == "")
- {
- MessageUtil.ShowTips("请选择旧标准");
- return;
- }
- if (newStd.Text == "")
- {
- MessageUtil.ShowTips("请选择新标准");
- return;
- }
- NewStd = newStd.Text;
- OldStd = oldStd.Text;
- this.DialogResult = DialogResult.OK;
- }
- }
- }
|