41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using bizFacade;
|
|
//using SystemFramework;
|
|
using MesServerWork;
|
|
|
|
namespace MesServerFunctions
|
|
{
|
|
partial class Functions_BASE_17
|
|
{
|
|
/// <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("24", "11", OpName);
|
|
MIS_BASE.Write_MaterialVerifyOver(OpName, true);
|
|
}
|
|
}
|
|
catch (Exception err)
|
|
{
|
|
////ApplicationLog.WriteLog(err, "Function04:FalseGO");
|
|
}
|
|
}
|
|
}
|
|
}
|