using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CoreFS.CA06;
using Core.Mes.Client.Comm.Server;
using Core.Mes.Client.Comm.Control;
using Core.StlMes.Client.Mcp;
using com.steering.mes.mcp.entity;
using Infragistics.Win.UltraWinGrid;
using Core.StlMes.Client.Mcp.Control;
using Core.StlMes.Client.Mcp.Common;
using Core.StlMes.Client.Mcp.Entity;
using Core.Mes.Client.Comm.Tool;
using Core.StlMes.Client.Mcp.CollarMaterial;
using Infragistics.Win;
using Core.StlMes.Client.Mcp.Coupling;
namespace Core.StlMes.Client.Coup
{
public partial class FrmPerformanceResult : FrmBase
{
private string departm = "";//获取部门ID
private string[] plineCode = null;//获取产线代码
private string cutGx = "";//切管工序
private string embGx = "";//压印工序
//private string rouGx = "";//粗加工工序
private string csGx = "";//车丝工序
private string PsGx = "";//喷砂工序
private string LiXian = "";
public FrmPerformanceResult()
{
InitializeComponent();
this.IsLoadUserView = true;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//禁控件过滤
this.coupWoIdPlanControl1.Grid.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False;
//设置计划区控件只读
//this.coupWoIdPlanControl1.SetAllColumnsActiveOnly();
coupWoIdPlanControl1.Ob = this.ob;
}
private void FrmPerformanceResult_Load(object sender, EventArgs e)
{
departm = UserInfo.GetDeptid();
plineCode = McpBaseHelper.GetPCodePline(departm, this.ob);
// McpBaseHelper.InitPlineUnit(cmbCname, plineCode, this.ob);
//McpBaseHelper.InitPlineUnit(cmbCname, plineCode, this.ob,"H");
#region 切管
//获取废品原因
DataTable dt1 = ServerHelper.GetData("com.steering.mes.mcp.coup.CoupCutService.getCutResultFp", new object[] { "7002" }, this.ob);
cmbReason.DataSource = dt1;
cmbReason.ValueMember = "BASENAME";
YdmBaseClass.SetComboItemHeight(cmbReason);
txtBz.Value = UserInfo.GetUserGroup();
txtBC.Value = UserInfo.GetUserOrder();
txtUser.Text = UserInfo.GetUserName();
//获取切管工序
DataTable dt2 = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryGX", new object[] { "700302" }, this.ob);
if (dt2.Rows.Count > 0)
{
cutGx = dt2.Rows[0]["BASECODE"].ToString();
}
//获取压印工序
DataTable dt3 = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryGX", new object[] { "700304" }, this.ob);
if (dt3.Rows.Count > 0)
{
embGx = dt3.Rows[0]["BASECODE"].ToString();
}
//获取粗加工工序
//DataTable dt4 = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryGX", new object[] { "700303" }, this.ob);
//if (dt4.Rows.Count > 0)
//{
// rouGx = dt4.Rows[0]["BASECODE"].ToString();
//}
#endregion
#region 车丝
//获取废品原因
DataTable dtcs = ServerHelper.GetData("com.steering.mes.mcp.coup.CoupCutService.getCutResultFp", new object[] { "7004" }, this.ob);
txtCsFp.DataSource = dtcs;
txtCsFp.ValueMember = "BASENAME";
YdmBaseClass.SetComboItemHeight(txtCsFp);
txtCsBz.Value = UserInfo.GetUserGroup();
txtCsBc.Value = UserInfo.GetUserOrder();
txtUserCs.Text = UserInfo.GetUserName();
//获取车丝工序
DataTable dtcsgx = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryGX", new object[] { "700305" }, this.ob);
if (dtcsgx.Rows.Count > 0)
{
csGx = dtcsgx.Rows[0]["BASECODE"].ToString();
}
#endregion
#region 喷砂
//获取工序
DataTable dtps = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryGX", new object[] { "700308" }, this.ob);
if (dtps.Rows.Count > 0)
{
PsGx = dt2.Rows[0]["BASECODE"].ToString();
}
txtPsbc.Value = this.UserInfo.GetUserOrder();
txtPsbz.Value = this.UserInfo.GetUserGroup();
txtUserPs.Text = this.UserInfo.GetUserName();
//获取废品原因
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.coup.CoupCutService.getCutResultFp", new object[] { "7007" }, this.ob);
cmbFpPs.DataSource = dt;
cmbFpPs.ValueMember = "BASENAME";
YdmBaseClass.SetComboItemHeight(cmbFpPs);
//获取喷料
DataTable dt1ps = ServerHelper.GetData("com.steering.mes.mcp.coup.CoupCutService.getCutResultFp", new object[] { "7005" }, this.ob);
cmbPsSpray.DataSource = dt1ps;
cmbPsSpray.ValueMember = "BASENAME";
YdmBaseClass.SetComboItemHeight(cmbPsSpray);
//获取喷砂设备
DataTable dt3ps = ServerHelper.GetData("com.steering.mes.mcp.coup.CoupCutService.getCutResultFp", new object[] { "7006" }, this.ob);
cmbPsEquipment.DataSource = dt3ps;
cmbPsEquipment.ValueMember = "BASENAME";
YdmBaseClass.SetComboItemHeight(cmbPsEquipment);
#endregion
}
public override void ToolBar_Click(object sender, string ToolbarKey)
{
switch (ToolbarKey)
{
case "DoQuery":
QuerySinglePlan();
break;
case "DoSave":
DoSave();
break;
case "DoUpdate":
DoUpdate();
break;
case "DoDelete":
DoDelete();
break;
case "DoBeside"://结炉
DoBeside();
break;
case "UndoBeside"://撤销结炉
UndoBeside();
break;
case "Offline"://离线
Offline();
break;
case "unOffline":
unOffline();
break;
case "DoClose":
this.Close();
break;
}
}
private void Offline()
{
if (ultraTabControl3.SelectedTab.Key.Equals("0"))
{
OfflineQg();
}
else if (ultraTabControl3.SelectedTab.Key.Equals("1"))
{
OfflineCs();
}
else
{
OfflinePs();
}
}
//撤销离线
private void unOffline()
{
if (ultraTabControl3.SelectedTab.Key.Equals("0"))
{
unOfflineQg();
}
else if (ultraTabControl3.SelectedTab.Key.Equals("1"))
{
unOfflineCs();
}
else
{
unOfflinePs();
}
}
private void unOfflineQg()
{
ultraCut.UpdateData();
UltraGridRow uRow = this.ultraCut.ActiveRow;
if (uRow == null) { MessageUtil.ShowTips("锯切实绩无数据!"); return; }
UltraGridRow row = this.ultraGrid2.ActiveRow;
if (uRow == null)
{
MessageUtil.ShowTips("无工单信息,不允许此操作!");
}
if (row.Cells["ZY_BILL_STATUS"].Value.ToString() == "生产完成")
{
MessageUtil.ShowTips("此炉次计划整体已生产完成,不允许此操作!");
return;
}
string zYgNo = uRow.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = uRow.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["CUT_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单工序点已结炉,不允许此操作!");
return;
}
//if(!QueryStatusGd(row.Cells["WO_ID"].Value.ToString(), row.Cells["ZY_PLAN_ID"].Value.ToString())) return;
ArrayList list1 = new ArrayList();
int UpdaCount = 0;
foreach (UltraGridRow ugr in ultraCut.Rows)
{
if (Convert.ToBoolean(ugr.Cells["CHECK"].Text) == true)
{
UpdaCount += 1;
ArrayList list = new ArrayList();
list.Add(ugr.Cells["RESULT_NO"].Text.ToString());
list1.Add(list);
}
}
if (UpdaCount == 0) { MessageUtil.ShowTips("请选择离线数据!"); return; }
if (MessageUtil.ShowYesNoAndQuestion("是否撤销离线?") == DialogResult.No)
{
return;
}
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
ccp.ServerName = "com.steering.mes.mcp.coup.CoupCutService";
ccp.MethodName = "unlixianThreadingResult";
ccp.ServerParams = new object[] { list1, row.Cells["ZY_PLAN_ID"].Text.ToString(), row.Cells["WO_ID"].Text.ToString() };
ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode == -1) return;
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("撤销离线成功!"))
{
QuerySinglePlan();
}
}
private void unOfflinePs()
{
ultraPs.UpdateData();
UltraGridRow uRow = this.ultraPs.ActiveRow;
if (uRow == null) { MessageUtil.ShowTips("喷砂实绩无数据!"); return; }
UltraGridRow row = this.ultraGrid2.ActiveRow;
if (uRow == null)
{
MessageUtil.ShowTips("无工单信息,不允许此操作!");
}
if (row.Cells["ZY_BILL_STATUS"].Value.ToString() == "生产完成")
{
MessageUtil.ShowTips("此炉次计划整体已生产完成,不允许此操作!");
return;
}
string zYgNo = uRow.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = uRow.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["BLAST_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单工序点已结炉,不允许此操作!");
return;
}
//if(!QueryStatusGd(row.Cells["WO_ID"].Value.ToString(), row.Cells["ZY_PLAN_ID"].Value.ToString())) return;
ArrayList list1 = new ArrayList();
int UpdaCount = 0;
foreach (UltraGridRow ugr in ultraPs.Rows)
{
if (Convert.ToBoolean(ugr.Cells["CHK"].Text) == true)
{
UpdaCount += 1;
ArrayList list = new ArrayList();
list.Add(ugr.Cells["RESULT_NO"].Text.ToString());
list1.Add(list);
}
}
if (UpdaCount == 0) { MessageUtil.ShowTips("请选择离线数据!"); return; }
if (MessageUtil.ShowYesNoAndQuestion("是否撤销离线?") == DialogResult.No)
{
return;
}
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
ccp.ServerName = "com.steering.mes.mcp.coup.FrmSandBlast";
ccp.MethodName = "unlixianThreadingResult";
ccp.ServerParams = new object[] { list1, row.Cells["ZY_PLAN_ID"].Text.ToString(), row.Cells["WO_ID"].Text.ToString() };
ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode == -1) return;
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("撤销离线成功!"))
{
QuerySinglePlan();
}
}
private void unOfflineCs()
{
ultraCs.UpdateData();
UltraGridRow uRow = this.ultraCs.ActiveRow;
if (uRow == null) { MessageUtil.ShowTips("车丝实绩无数据!"); return; }
UltraGridRow row = this.ultraGrid2.ActiveRow;
if (uRow == null)
{
MessageUtil.ShowTips("无工单信息,不允许此操作!");
}
if (row.Cells["ZY_BILL_STATUS"].Value.ToString() == "生产完成")
{
MessageUtil.ShowTips("此炉次计划整体已生产完成,不允许此操作!");
return;
}
string zYgNo = uRow.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = uRow.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["LATHE_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单工序点已结炉,不允许此操作!");
return;
}
//if(!QueryStatusGd(row.Cells["WO_ID"].Value.ToString(), row.Cells["ZY_PLAN_ID"].Value.ToString())) return;
ArrayList list1 = new ArrayList();
int UpdaCount = 0;
foreach (UltraGridRow ugr in ultraCs.Rows)
{
if (Convert.ToBoolean(ugr.Cells["CHECK"].Text) == true)
{
UpdaCount += 1;
ArrayList list = new ArrayList();
list.Add(ugr.Cells["RESULT_NO"].Text.ToString());
list1.Add(list);
}
}
if (UpdaCount == 0) { MessageUtil.ShowTips("请选择离线数据!"); return; }
if (MessageUtil.ShowYesNoAndQuestion("是否撤销离线?") == DialogResult.No)
{
return;
}
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
ccp.ServerName = "com.steering.mes.mcp.coup.CoupThreadingService";
ccp.MethodName = "unlixianThreadingResult";
ccp.ServerParams = new object[] { list1, row.Cells["ZY_PLAN_ID"].Text.ToString(), row.Cells["WO_ID"].Text.ToString() };
ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode == -1) return;
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("撤销离线成功!"))
{
QuerySinglePlan();
}
}
private void OfflineQg()
{
string _strat = "";
OffLine frm = new OffLine();
frm.ShowDialog();
LiXian = frm.StrNum;
_strat = frm.Strat;
if (_strat.Equals("2")) return;
if (LiXian.Equals("") || LiXian.Equals("0")) { MessageUtil.ShowTips("离线支数不能为空!"); return; }
UltraGridRow row = ultraGrid2.ActiveRow;
if (row == null) return;
if (row.Cells["ZY_BILL_STATUS"].Value.ToString()=="生产完成")
{
MessageUtil.ShowTips("此工单状态已生产完成,不允许此操作!");
return;
}
string zYgNo = row.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = row.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["CUT_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单工序点已结炉,不允许此操作!");
return;
}
string time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
ArrayList list = new ArrayList();
list.Add(LiXian);
list.Add(row.Cells["WO_ID"].Text.ToString());
list.Add(row.Cells["JUDGE_STOVE_NO"].Text.ToString());
list.Add(row.Cells["BATCH_NO"].Text.ToString());
list.Add(row.Cells["PLINE_CODE"].Text.ToString());
list.Add(row.Cells["ZY_PLAN_ID"].Text.ToString());
list.Add(row.Cells["PLINE_NAME"].Text.ToString());
list.Add(this.UserInfo.GetUserName());
list.Add(this.UserInfo.GetUserOrder());
list.Add(this.UserInfo.GetUserGroup());
list.Add(time);
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
ccp.ServerName = "com.steering.mes.mcp.coup.CoupCutService";
ccp.MethodName = "lixianThreadingResult";
ccp.ServerParams = new object[] { list, cutGx };
ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode != -1)
{
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("离线成功!"))
{
QuerySinglePlan();
DoClean();
}
}
}
private void OfflineCs()
{
string _strat = "";
OffLine frm = new OffLine();
frm.ShowDialog();
LiXian = frm.StrNum;
_strat = frm.Strat;
if (_strat.Equals("2")) return;
if (LiXian.Equals("") || LiXian.Equals("0")) { MessageUtil.ShowTips("离线支数不能为空!"); return; }
UltraGridRow row = ultraGrid2.ActiveRow;
if (row == null) return;
if (row.Cells["ZY_BILL_STATUS"].Value.ToString() == "生产完成")
{
MessageUtil.ShowTips("此工单状态已生产完成,不允许此操作!");
return;
}
string zYgNo = row.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = row.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["LATHE_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单车丝工序点已结炉,不允许此操作!");
return;
}
string time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
ArrayList list = new ArrayList();
list.Add(LiXian);
list.Add(row.Cells["WO_ID"].Text.ToString());
list.Add(row.Cells["JUDGE_STOVE_NO"].Text.ToString());
list.Add(row.Cells["BATCH_NO"].Text.ToString());
list.Add(row.Cells["PLINE_CODE"].Text.ToString());
list.Add(row.Cells["ZY_PLAN_ID"].Text.ToString());
list.Add(row.Cells["PLINE_NAME"].Text.ToString());
list.Add(this.UserInfo.GetUserName());
list.Add(this.UserInfo.GetUserOrder());
list.Add(this.UserInfo.GetUserGroup());
list.Add(time);
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
//ccp.ServerName = "com.steering.mes.mcp.coup.CoupThreadingService";
//ccp.MethodName = "lixianThreadingResult";
ccp.ServerName = "com.steering.mes.mcp.coup.CoupThreadingService";
ccp.MethodName = "lixianThreadingResult";
ccp.ServerParams = new object[] { list, csGx };
ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode != -1)
{
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("离线成功!"))
{
QuerySinglePlan();
DoClean();
}
}
}
private void OfflinePs()
{
string _strat = "";
OffLine frm = new OffLine();
frm.ShowDialog();
LiXian = frm.StrNum;
_strat = frm.Strat;
if (_strat.Equals("2")) return;
if (LiXian.Equals("") || LiXian.Equals("0")) { MessageUtil.ShowTips("离线支数不能为空!"); return; }
UltraGridRow row = ultraGrid2.ActiveRow;
if (row == null) return;
string zYgNo = row.Cells["ZY_PLAN_ID"].Value.ToString();
string woId = row.Cells["WO_ID"].Value.ToString();
DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.common.PlanService.getQueryWoIdDetails", new object[] { woId, zYgNo }, this.ob);
if (dt.Rows[0]["BLAST_STATUS"].ToString().Equals("生产完成"))
{
MessageUtil.ShowTips("此工单喷砂工序点已结炉,不允许此操作!");
return;
}
string time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
ArrayList list = new ArrayList();
list.Add(LiXian);
list.Add(row.Cells["WO_ID"].Text.ToString());
list.Add(row.Cells["JUDGE_STOVE_NO"].Text.ToString());
list.Add(row.Cells["BATCH_NO"].Text.ToString());
list.Add(row.Cells["PLINE_CODE"].Text.ToString());
list.Add(row.Cells["ZY_PLAN_ID"].Text.ToString());
list.Add(row.Cells["PLINE_NAME"].Text.ToString());
list.Add(this.UserInfo.GetUserName());
list.Add(this.UserInfo.GetUserOrder());
list.Add(this.UserInfo.GetUserGroup());
list.Add(time);
CoreClientParam ccp = new CoreClientParam();
try
{
this.Cursor = Cursors.WaitCursor; //控制鼠标的样式为等待
if (Constant.WaitingForm == null)
{
Constant.WaitingForm = new WaitingForm();
}
Constant.WaitingForm.ShowToUser = true;
Constant.WaitingForm.Show();
Constant.WaitingForm.Update();
//ccp.ServerName = "com.steering.mes.mcp.coup.CoupThreadingService";
//ccp.MethodName = "lixianThreadingResult";
ccp.ServerName = "com.steering.mes.mcp.coup.FrmSandBlast";
ccp.MethodName = "lixianThreadingResult";
ccp.ServerParams = new object[] { list, PsGx };
ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
catch (Exception ex)
{
this.Cursor = Cursors.Default;
Constant.WaitingForm.ShowToUser = false;
Constant.WaitingForm.Close();
Constant.WaitingForm = null;
}
if (ccp.ReturnCode != -1)
{
MessageUtil.ShowTips(ccp.ReturnInfo);
if (ccp.ReturnInfo.Equals("离线成功!"))
{
QuerySinglePlan();
DoClean();
}
}
}
///
/// 查询作业计划
///
private void QuerySinglePlan()
{
string woId = "";
string[] starts = { };
string judgeStoveNo = "";
string plnNo = "";
#region 条件
if (chkStarts.Checked)
{
if (string.IsNullOrEmpty(cmbStarts.Text.Trim()))
{
MessageUtil.ShowTips("请选择工单状态!");
return;
}
else
{
starts = (cmbStarts.Value as List