| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Windows.Forms;
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.Mcp.Mch.Report
- {
- public partial class FrmPlineChoose : FrmBase
- {
- private string[] ids;
- public FrmPlineChoose(OpeBase _ob,string[] Ids)
- {
- InitializeComponent();
- this.ob = _ob;
- ids = Ids;
- comm.GetPlineCode("G", cmbPline, ob);
- }
- private void ultraButton1_Click(object sender, EventArgs e)
- {
- if (cmbPline.SelectedIndex <= 0)
- {
- MessageBox.Show("请选择产线!");
- return;
- }
- var ccp = new CoreClientParam();
- ccp.ServerName = "com.steering.mes.mcp.Mch.FrmJgxReport";
- ccp.MethodName = "ChangeRtdPline";
- ccp.ServerParams = new object[] { ids, cmbPline.SelectedItem.DataValue.ToString2() };
- ccp = ExecuteNonQuery(ccp, CoreInvokeType.Internal);
- if (ccp.ReturnCode != -1)
- {
- this.DialogResult = DialogResult.OK;
- }
- else
- {
- MessageUtil.ShowTips(ccp.ReturnInfo);
- }
- }
- }
- }
|