|
|
@@ -730,8 +730,14 @@ namespace MeterSceneLibrary
|
|
|
{
|
|
|
if (PbCache.monitorResult.valid_wgt == true || listMonitor.Data[0].validPredictionDiff == "0")
|
|
|
{
|
|
|
+ RESTfulResult<List<PreTrackScale>> scales = preTrackScaleService.doQueryWf(new PreTrackScale { predictionNo = firstList[0].predictionNo });
|
|
|
//匹配结净
|
|
|
- rt = saveMethod.doNet(null, firstList[0], mwaf);
|
|
|
+ EntityBase<PreTrackScale> entityBase2 = new EntityBase<PreTrackScale>();
|
|
|
+ mwaf = entityBase2.format<MeterWorkCarActualFirst>(scales.Data[0], mwaf);
|
|
|
+ mwaf.isPreScale = "1";
|
|
|
+ mwaf.weightType = "0";
|
|
|
+
|
|
|
+ rt = saveMethod.doNet(scales.Data[0], firstList[0], mwaf);
|
|
|
PbCache.LEDResultMessage = string.Format("车号{0},重量{1}吨,净重{2}吨,计量完成", PbCache.lockCarNo, Math.Round((PbCache.lockWgt / 1000), 2), Math.Round((Math.Abs(rmFirst.Data[0].meterWeight.Value - PbCache.lockWgt) / 1000), 2));
|
|
|
}
|
|
|
else
|
|
|
@@ -746,26 +752,9 @@ namespace MeterSceneLibrary
|
|
|
}
|
|
|
}
|
|
|
// 存在多条有效的一次计量数据
|
|
|
- else if (firstList == null || firstList.Count > 1)
|
|
|
+ else if (firstList.Count > 1)
|
|
|
{
|
|
|
- /* a. 程序报警a
|
|
|
- * b. 自动进行语音求助
|
|
|
- */
|
|
|
- //多条一次记录下判断是否全为毛重,是全部结净
|
|
|
- if (firstList[firstList.Count - 1].weightType == "0" && list[0].weightTypeNo == "001033002")
|
|
|
- {
|
|
|
- //给一次数据匹配委托
|
|
|
- //保存一条作废的皮重数据
|
|
|
- mwaf.weightType = "1";
|
|
|
- rt = saveMethod.doAddFirst(null, mwaf);
|
|
|
- rt.resultInfo += ",多毛一皮";
|
|
|
- PbCache.LEDResultMessage = string.Format("车号{0},重量{1}吨,计量完成", PbCache.lockCarNo, Math.Round((PbCache.lockWgt / 1000), 2));
|
|
|
-
|
|
|
-
|
|
|
- //mwaf.weightType = "0";
|
|
|
-
|
|
|
- //rt = saveMethod.doNetAddMuch(mwaf);
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
else
|