| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Tool;
- 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.YdmPipeManage
- {
- public partial class FrmPlineCode : FrmBase
- {
- OpeBase _ob;
- string _custom;
- public FrmPlineCode(OpeBase ob,string custom)
- {
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- InitializeComponent();
- _ob = ob;
- _custom = custom;
- }
- public string plineCode = "";
- public string plineName = "";
- public string isOk = "";
- private void FrmPlineCode_Load(object sender, EventArgs e)
- {
- initPlineCode(_custom);
- }
- /// <summary>
- /// 加载产线
- /// </summary>
- private void initPlineCode(string _custom)
- {
- DataTable dt = ServerHelper.GetData("com.steering.pss.ydm.pipemanage.FrmFrimRedChong.doQueryPline", new object[] { _custom }, this._ob);
- if (dt.Rows.Count > 0)
- {
- ultraComboEditor2.DataSource = dt;
- ultraComboEditor2.DisplayMember = "PLINE_NAME";
- ultraComboEditor2.ValueMember = "PLINE_CODE";
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- plineCode = this.ultraComboEditor2.Value.ToString2();
- plineName = this.ultraComboEditor2.Text.ToString2();
- if (plineCode == "")
- {
- MessageUtil.ShowTips("确认收料时请选择对应的产线!");
- return;
- }
- isOk = "1";
- this.Close();
- }
- }
- }
|