| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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; }
- }
- /// <summary>
- /// 委外产线代码
- /// </summary>
- private string plinCode;
- public string PlinCode
- {
- get { return plinCode; }
- set { plinCode = value; }
- }
- /// <summary>
- /// 委外产线名称
- /// </summary>
- 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);
- }
-
- }
- }
|