This repository has been archived on 2023-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
Sic02/FrameworkLocal/UIClient/CenterViews/Tray/WaferManagerEx.cs

45 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MECF.Framework.Common.Equipment;
using MECF.Framework.Common.SubstrateTrackings;
using MECF.Framework.Common.DBCore;
using Aitex.Core.RT.Log;
using Aitex.Core.RT.DBCore;
namespace MECF.Framework.UI.Client.CenterViews.Tray
{
public static class WaferDataRecorderEx
{
public static void SetWaferMarkerEx(this WaferDataRecorder dataRecorder, string guid, string marker, string markerValue)
{
string sql = $"UPDATE \"wafer_data\" SET {marker}='{markerValue}' WHERE \"guid\"='{guid}';";
DB.Insert(sql);
}
}
public static class WaferManagerEx
{
public static void UpdateWaferLaserEx(this WaferManager manager, ModuleName module, int slot, string laserMarker, string laserMarkerValue)
{
if (!manager.IsWaferSlotLocationValid(module, slot))
{
LOG.Write($"Failed UpdateWaferLaser in ExFunc, invalid parameter, {module},{slot + 1}", 2, "F:\\BackUp\\Sic\\FrameworkLocal\\Common\\SubstrateTrackings\\WaferManager.cs", "UpdateWaferLaser", 776);
return;
}
//lock (_lockerWaferList)
//{
// manager._locationWafers[module][slot].LaserMarker = laserMarker;
//WaferDataRecorder.SetWaferMarkerEx("guid", laserMarker,laserMarkerValue);
//}
}
}
}