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;
///
/// 委外单位编码
///
public string StationUnitCode
{
get { return stationUnitCode; }
set { stationUnitCode = value; }
}
private string stationUnitDesc;
///
/// 委外单位
///
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();
}
}
}