41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System;
|
|
using MesServerWork;
|
|
using bizFacade;
|
|
//using SystemFramework;
|
|
|
|
namespace MesServerFunctions
|
|
{
|
|
partial class Functions_BASE_26
|
|
{
|
|
|
|
/// <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)
|
|
{
|
|
|
|
//不合格保存物料数据
|
|
BaseDataSystemMES.Material_Insert_NG(OpName, 2);
|
|
|
|
Sendmessage("4", "1", OpName);//向web发送消息
|
|
|
|
}
|
|
}
|
|
catch (Exception err)
|
|
{
|
|
////ApplicationLog.WriteLog(err, "Function03:FalseGO");
|
|
}
|
|
}
|
|
}
|
|
}
|