public void AddToOperLogFASEND(string FullSTBSN, int pcbid) { using (FASEntities FAS = new FASEntities()) { var FasOp = new FAS_OperationLog() { PCBID = pcbid, ProductionAreaID = (byte)LineID, StationID = (short)StationID, ApplicationID = (short)IDApp, StateCodeDate = DateTime.UtcNow.AddHours(2), StateCodeByID = (short)UserID, SerialNumber = int.Parse(FullSTBSN.Substring(15)), FullSTBSN = FullSTBSN }; FAS.FAS_OperationLog.Add(FasOp); FAS.SaveChanges(); } }
public void AddLogDesis(int serial, int appid, long smartcardID, string fullstbsn, string CASID) { using (var FAS = new FASEntities()) { var op = new FAS_OperationLog() { PCBID = PCBID, ProductionAreaID = (byte)LineID, StationID = (short)StationID, ApplicationID = (short)appid, StateCodeDate = DateTime.UtcNow.AddHours(2), StateCodeByID = (short)UserID, SerialNumber = serial, SmartCardId = smartcardID, FullSTBSN = fullstbsn, CASID = CASID }; FAS.FAS_OperationLog.Add(op); FAS.SaveChanges(); } }