47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using MesServerWork;
|
|
using bizFacade;
|
|
using System.Data;
|
|
//using SystemFramework;
|
|
|
|
namespace MesServerFunctions
|
|
{
|
|
partial class Functions_BASE_05
|
|
{
|
|
|
|
/// <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);
|
|
|
|
MIS_BASE.Write_MaterialVerifyOver(OpName, true);
|
|
|
|
Sendmessage("24", "11", OpName);//向web发送消息
|
|
|
|
}
|
|
}
|
|
catch (Exception err)
|
|
{
|
|
////ApplicationLog.WriteLog(err, "Function05:FalseGO");
|
|
}
|
|
}
|
|
}
|
|
}
|