| | |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using iWare_SCADA_BusinessLogical; |
| | | using iWare_SCADA_BusinessLogical.BLL; |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using iWare_SCADA_Model; |
| | | using Microsoft.VisualStudio.TestTools.UnitTesting; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | |
| | | string cc = bb[0]; |
| | | } |
| | | |
| | | [TestMethod] |
| | | public void zzz() |
| | | { |
| | | WorkPieceLogMiddle logMiddle = new WorkPieceLogMiddle( |
| | | ) |
| | | { |
| | | WorkingProcedure = "OP30" |
| | | } |
| | | ; |
| | | QualityDataInfo qualityData = new QualityDataInfo(); |
| | | //修改QualityDataInfo表 //重复收到质量信息,会覆盖之前的 |
| | | EntityPropHelper<WorkPieceLogMiddle, QualityDataInfo>.CopyProp(logMiddle, qualityData, WorkPieceInfoManager.GetQualityDataInfoUpdate(logMiddle, logMiddle.WorkingProcedure, logMiddle.MonitoringPoint));//指定修改字段 |
| | | |
| | | string cc = ""; |
| | | } |
| | | |
| | | [TestMethod] |
| | | public void pp() |
| | | { |
| | | Yitter.IdGenerator.IdGeneratorOptions options = new Yitter.IdGenerator.IdGeneratorOptions(1); |
| | | Yitter.IdGenerator.YitIdHelper.SetIdGenerator(options); |
| | | |
| | | WorkPieceLogMiddle logMiddle = new WorkPieceLogMiddle( |
| | | ) |
| | | { |
| | | WorkingProcedure = "OP30", |
| | | WorkPieceID = "DZ045L2406240103521TAS", |
| | | UpdatedTime = DateTime.Now, |
| | | QualityState = (int)QualityState.NG, |
| | | QualityNoOk=(int)QualityNoOkEnum.OP30涨断工位力矩大, |
| | | QualityNoOkReason= QualityNoOkEnum.OP30涨断工位力矩大.ToString(), |
| | | MonitoringPoint = "", |
| | | QualityStateStr="NG" |
| | | } |
| | | ; |
| | | string WorkingProcedure = logMiddle.WorkingProcedure; |
| | | //根据质量数据判断是否合格/不合格 【Editby shaocx,2024-06-25】 |
| | | WorkPieceInfoManager.SetLogMiddleForQuality(ref logMiddle); |
| | | |
| | | //更新WorkPieceInfo表以及插入WorkPieceLog表和WorkPieceInfoLog表 |
| | | WorkPieceInfoManager.QualityInfoComplete(logMiddle, PLCManger.GetLogTypeForWorkingProcedure(WorkingProcedure)); |
| | | |
| | | |
| | | string cc = ""; |
| | | } |
| | | } |
| | | } |