Files
2026-05-29 10:07:05 +08:00

50 lines
1.5 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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");
}
}
}
}