| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using Core.Mes.Client.Comm.Server;
- using CoreFS.CA06;
- 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.Mcp.Coupling
- {
- public partial class FrmOut : FrmBase
- {
- OpeBase ob;
- private string harshType = "";
- public string HarshType
- {
- get { return harshType; }
- set { harshType = value; }
- }
- private string strat = "";
- public string Strat
- {
- set { strat = value; }
- get { return strat; }
- }
- //委外说明
- private string remark = "";
- public string Remark
- {
- get { return remark; }
- set { remark = value; }
- }
- private string stationUnitCode;
- /// <summary>
- /// 委外单位编码
- /// </summary>
- public string StationUnitCode
- {
- get { return stationUnitCode; }
- set { stationUnitCode = value; }
- }
- private string stationUnitDesc;
- /// <summary>
- /// 委外单位
- /// </summary>
- public string StationUnitDesc
- {
- get { return stationUnitDesc; }
- set { stationUnitDesc = value; }
- }
- public FrmOut(OpeBase _ob)
- {
- ob = _ob;
- InitializeComponent();
- }
- private void FrmOut_Load(object sender, EventArgs e)
- {
- ClsBaseInfo.SetComboItemHeight(cmbGx);
- DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.coup.FrmDownLineManage.doQuery", new object[] { "7020" }, ob);
- ultraComboEditor1.DataSource = dt;
- ultraComboEditor1.DisplayMember = "BASENAME";
- ultraComboEditor1.ValueMember = "BASECODE";
- ClsBaseInfo.SetComboItemHeight(ultraComboEditor1);
- }
- private void ultraButton1_Click(object sender, EventArgs e)
- {
- if (cmbGx.Text.ToString().Equals(""))
- {
- HarshType = "";
- }
- else
- {
- HarshType = cmbGx.Value.ToString();
- }
- if (ultraComboEditor1.Text.ToString().Equals(""))
- {
- StationUnitCode = "";
- StationUnitDesc = "";
- }
- else
- {
- StationUnitCode = ultraComboEditor1.Value.ToString();
- StationUnitDesc = ultraComboEditor1.Text.ToString();
- }
- remark = this.txt_Rmark.Text.Trim();
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- }
- private void ultraButton2_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|