init: 导入项目到 meswork Gitea
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using bizFacade;
|
||||
//using SystemFramework;
|
||||
using MesServerWork;
|
||||
|
||||
namespace MesServerFunctions
|
||||
{
|
||||
partial class Functions_BASE_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 申请上线
|
||||
/// </summary>
|
||||
/// <param name="OpName"></param>
|
||||
/// <param name="tagValue"></param>
|
||||
private void PartLoad(object e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
|
||||
string OpName = Convert.ToString(msgEvent.OpName);
|
||||
int tagValue = Convert.ToInt32(msgEvent.TagValue);
|
||||
|
||||
int engineTypeID;
|
||||
string engineID;
|
||||
string engineType;
|
||||
|
||||
if (tagValue == 1)
|
||||
{
|
||||
BaseDataSystemMES.MesServer_Process_EngineTypeOver(OpName);
|
||||
Sendmessage("123", "111", OpName);//向前台发送显示操作指南、物料、图片的命令
|
||||
CreateEngineID(OpName, out engineType, out engineTypeID, out engineID);
|
||||
|
||||
if (engineType == "-1" || engineType == "" || engineTypeID == -1 || engineID == "")
|
||||
{
|
||||
AsyncSendMessage_Notice(OpName, "未选择订单或机型,请选择后重新到位");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
//将产品信息写入PLC
|
||||
MIS_BASE.Write_EngineTypeID_MES(OpName, engineTypeID);
|
||||
MIS_BASE.Write_EngineType_MES(OpName, engineType);
|
||||
MIS_BASE.Write_EngineID_MES(OpName, engineID);
|
||||
|
||||
//获取订单号,发动机型号,发动机型号代码(在线首工位将选择的订单,机型等信息保存到监控表中)
|
||||
bizFacade.BaseDataSystemMES.OpName_MIS_CreateMoby_Select(OpName, out string orderForm, out engineTypeID, out engineType, out engineID, out string palletCode, out int isRepair, out string repairCode);
|
||||
|
||||
MIS_BASE.Write_OrderForm_MES(OpName, orderForm);
|
||||
MIS_BASE.Write_EngineTypeGetOver_MES(OpName, true);
|
||||
}
|
||||
|
||||
SendInfomation("ShowMobyMES", engineID + "&" + engineType, OpName);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
////ApplicationLog.WriteLog(err, "Function03:PartLoad");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user