50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using System;
|
||
using MesServerWork;
|
||
using bizFacade;
|
||
//using SystemFramework;
|
||
|
||
namespace MesServerFunctions
|
||
{
|
||
partial class Functions_BASE_10
|
||
{
|
||
|
||
/// <summary>
|
||
/// 返修放行
|
||
/// </summary>
|
||
/// <param name="OpName"></param>
|
||
/// <param name="tagValue"></param>
|
||
private void FalseGO(object e)
|
||
{
|
||
try
|
||
{
|
||
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
|
||
string OpName = Convert.ToString(msgEvent.OpName);
|
||
int tagValue = Convert.ToInt32(msgEvent.TagValue);
|
||
|
||
if (tagValue == 1)
|
||
{
|
||
int PartPallet_Code;//托盘编号
|
||
int EngineTypeID;//机型代码
|
||
string EngineType;//机型
|
||
string EngineID;//工件编号
|
||
MIS_BASE.GetEngineTypeFromDB(OpName, out EngineTypeID, out EngineType, out EngineID, out PartPallet_Code);
|
||
|
||
|
||
//总合格标志1(合格)
|
||
BaseDataSystemMES.BaseData_tagTable_Engine_IsOK_Insert(OpName, EngineID, 2);
|
||
|
||
//不合格也先保存物料数据
|
||
BaseDataSystemMES.Material_Insert_NG(OpName, 2);
|
||
|
||
Sendmessage("24", "11", OpName);//向web发送消息
|
||
|
||
}
|
||
}
|
||
catch (Exception err)
|
||
{
|
||
////ApplicationLog.WriteLog(err, "Function10:FalseGO");
|
||
}
|
||
}
|
||
}
|
||
}
|