55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using System;
|
||
//using SystemFramework;
|
||
using MesServerWork;
|
||
using bizFacade;
|
||
|
||
namespace MesServerFunctions
|
||
{
|
||
partial class Functions_BASE_10
|
||
{
|
||
/// <summary>
|
||
/// PLC传递机型处理
|
||
/// </summary>
|
||
/// <param name="OpName"></param>
|
||
/// <param name="tagValue"></param>
|
||
private void EngineTypeGetOver_PLC(object e)
|
||
{
|
||
try
|
||
{
|
||
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
|
||
string OpName = Convert.ToString(msgEvent.OpName);
|
||
int tagValue = Convert.ToInt32(msgEvent.TagValue);
|
||
int repairStatus=1;
|
||
repairStatus = RepairWorkStation.StationStatusSearch(OpName);
|
||
//repairStatus:0:返修 1:正常
|
||
|
||
if (tagValue == 1)
|
||
{
|
||
int EngineTypeID;//机型代码
|
||
int PartPallet_Code;//托盘编号
|
||
|
||
string EngineType;//机型
|
||
string EngineID;//工件编号
|
||
string OrderForm;
|
||
MIS_BASE.GetEngineTypeFromPLC(OpName, out EngineTypeID, out EngineType, out EngineID, out PartPallet_Code,out OrderForm);
|
||
|
||
if (repairStatus!=1)
|
||
{
|
||
EngineTypeGetOver_PLC_Work_Repair(OpName, EngineTypeID, EngineType, EngineID, PartPallet_Code, OrderForm);
|
||
return;
|
||
}
|
||
EngineTypeGetOver_PLC_Work(OpName, EngineTypeID, EngineType, EngineID, PartPallet_Code, OrderForm);
|
||
}
|
||
|
||
}
|
||
catch (Exception err)
|
||
{
|
||
////ApplicationLog.WriteLog(err, "Function10:EngineTypeGetOver_PLC");
|
||
}
|
||
}
|
||
|
||
|
||
|
||
}
|
||
}
|