using Core.Mes.Client.Comm.Server;
using Core.StlMes.Client.Mcp.Control;
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.Control.Base
{
public partial class FrmOutSouCon : Form
{
private OpeBase ob;
public FrmOutSouCon( OpeBase _ob)
{
InitializeComponent();
ob = _ob;
}
//委外说明
private string remark = "";
public string Remark
{
get { return remark; }
set { remark = value; }
}
///
/// 委外产线代码
///
private string plinCode;
public string PlinCode
{
get { return plinCode; }
set { plinCode = value; }
}
///
/// 委外产线名称
///
private string plineName;
public string PlineName
{
get { return plineName; }
set { plineName = value; }
}
private void ultraButton1_Click(object sender, EventArgs e)
{
remark = this.txt_Rmark.Text.Trim();
if (cmbPlineCode.Text.Trim().Equals(""))
{
plinCode = "";
plineName = "";
}
else
{
plinCode = cmbPlineCode.Value.ToString();
plineName = cmbPlineCode.Text.ToString();
}
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void ultraButton2_Click(object sender, EventArgs e)
{
this.Close();
}
private void FrmOutSouCon_Load(object sender, EventArgs e)
{
//查询产线
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.Vrp.FrmOutSourcApp.doQueryPlineCode", new object[] { "" }, this.ob);
cmbPlineCode.DataSource = dt;
cmbPlineCode.DisplayMember = "PLINE_NAME";
cmbPlineCode.ValueMember = "PLINE_CODE";
YdmBaseClass.SetComboItemHeight(cmbPlineCode);
}
}
}