|
|
@@ -170,6 +170,44 @@ namespace Common
|
|
|
//静态衡
|
|
|
Dictionary<string, double> WgtList = arr[0].WeightList == null ? new Dictionary<string, double>() : arr[0].WeightList;
|
|
|
|
|
|
+ string CarNo1 = "";
|
|
|
+ string CarNo2 = "";
|
|
|
+
|
|
|
+ if (PlateNoList.Count == 0)
|
|
|
+ {
|
|
|
+ }
|
|
|
+ else if(PlateNoList.Count == 1)
|
|
|
+ {
|
|
|
+ if(PlateNoList[0].Direct == "West")
|
|
|
+ {
|
|
|
+ CarNo1 = PlateNoList[0].CarNo;
|
|
|
+ }
|
|
|
+ else if(PlateNoList[0].Direct == "East")
|
|
|
+ {
|
|
|
+ CarNo2 = PlateNoList[0].CarNo;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (PlateNoList.Count == 2)
|
|
|
+ {
|
|
|
+ if (PlateNoList[0].Direct == "West")
|
|
|
+ {
|
|
|
+ CarNo1 = PlateNoList[0].CarNo;
|
|
|
+ }
|
|
|
+ else if (PlateNoList[0].Direct == "East")
|
|
|
+ {
|
|
|
+ CarNo2 = PlateNoList[0].CarNo;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PlateNoList[1].Direct == "West")
|
|
|
+ {
|
|
|
+ CarNo1 = PlateNoList[1].CarNo;
|
|
|
+ }
|
|
|
+ else if (PlateNoList[1].Direct == "East")
|
|
|
+ {
|
|
|
+ CarNo2 = PlateNoList[1].CarNo;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
JArray jArray = new JArray(
|
|
|
arr[0].Pointid, //0
|
|
|
arr[0].Status, //1
|
|
|
@@ -180,20 +218,20 @@ namespace Common
|
|
|
arr[0].StopStatus, //5
|
|
|
arr[0].Datetime, //6
|
|
|
arr[0].LicType, //7
|
|
|
- // 20221011 By BourneCao
|
|
|
- // 增加双摄像头支持
|
|
|
- //PlateNoList.Count == 0 ? "" : PlateNoList[PlateNoList.Count - 1].CarNo, //8
|
|
|
- PlateNoList.Count == 0 ? "" : PlateNoList[0].CarNo, //8
|
|
|
+ // 20221011 By BourneCao
|
|
|
+ // 增加双摄像头支持
|
|
|
+ //PlateNoList.Count == 0 ? "" : PlateNoList[PlateNoList.Count - 1].CarNo, //8
|
|
|
+ CarNo1, //8
|
|
|
//"甘B32619",
|
|
|
RfidList.Count == 0 ? "" : RfidList[RfidList.Count - 1].CarNo, //9
|
|
|
arr[0].WeightSave, //10
|
|
|
arr[0].FinishTime, //11
|
|
|
arr[0].Entry, //12
|
|
|
arr[0].Exit, //13
|
|
|
- // 20221011 By BourneCao
|
|
|
- // 增加双摄像头支持
|
|
|
- PlateNoList.Count <= 1 ? "" : PlateNoList[1].CarNo //14
|
|
|
- //"甘B32639"
|
|
|
+ // 20221011 By BourneCao
|
|
|
+ // 增加双摄像头支持
|
|
|
+ CarNo2 //14
|
|
|
+ //"甘B32639"
|
|
|
);
|
|
|
|
|
|
double mainWgt = 0;
|