def __showVehicleInfo(self):
     self.plateNo.setText(self.infoContainer["plateNo"])
     self.vehicleType.setText(self.infoContainer["vehicleType"])
     self.obuid.setText(self.infoContainer["obuInfo"]["obuid"])
     self.cpuInnerId.setText(
         self.infoContainer["obuInfo"]["cpuCardInnerId"])
     self.enterTime.setText(
         dateutil.dtStr(self.infoContainer["entryRecord"]["enterTime"]))
     self.exitTime.setText(dateutil.dtStr(self.infoContainer["exitTime"]))
     self.tollFee.setText(u"%.2f 元" % self.infoContainer["parkingFee"])
     ep = QtGui.QPixmap()
     ep.loadFromData(self.infoContainer["entryRecord"]["enterImg"])
     self.enterPhoto.setPixmap(ep)
     xp = QtGui.QPixmap()
     xp.loadFromData(self.infoContainer["photo"])
     self.exitPhoto.setPixmap(xp)
 def entryStateBiz(self):
     self.uiFrame.notifyActionInfras(type="rsu", value="fail")
     self.uiFrame.notifyVehicleInfo(
         tradeTime=dateutil.dtStr(self.infoContainer["enterTime"]),
         tradeType=u"车牌识别",
         plateNo=self.infoContainer["plateNo"],
         vehicleType=self.infoContainer["vehicleType"],
         vehicleState=u"未知")
     self.infrasGroup["LED"].showOnLed(u"%s\n车牌 %s\n3秒后放行,出场请走普通车道"%\
                                       (self.infoContainer["obuFailMsg"],self.infoContainer["plateNo"]))
     time.sleep(3)  #让他看一会儿LED再说
     self.infrasGroup["Guardrail"].liftTheRail()
     self.uiFrame.notifyActionInfras(type="bar", value="acting")
Exemple #3
0
 def entryStateBiz(self):
     res = TSStub.saveExitTradingRecord(
         self.infoContainer.toExitRecord())
     self.infoContainer["exitRecordId"] = res["exitRecordId"]
     self.uiFrame.notifyVehicleExit(
         entryRecordId=self.infoContainer["exitRecordId"],
         entryExit=u"出场",
         enterTime=dateutil.dtStr(self.infoContainer["exitTime"]),
         entryExitId=self.infrasGroup.infrasGroupId,
         plateNo=self.infoContainer["plateNo"],
         vehicleType=self.infoContainer["vehicleType"],
         plateNoByPhoto=self.infoContainer["plateNoByPhoto"],
         plateNoByRfid=u",".join(self.infoContainer["plateNoByRfid"]))
        def entryStateBiz(self):
            self.uiFrame.notifyActionInfras(type="rsu", value="fail")
            self.uiFrame.notifyVehicleInfo(tradeTime=dateutil.dtStr(
                self.infoContainer["enterTime"]),
                                           tradeType=u"无识别",
                                           plateNo=u"未识别",
                                           vehicleType=u"未知",
                                           vehicleState=u"未知")
            self.infrasGroup["LED"].showOnLed(u"%s\n车牌无识别\n3秒后放行,出场请走普通车道"%\
                                              self.infoContainer["obuFailMsg"])

            time.sleep(3)  #让他看一会儿LED再说
            #这种情况到底抬不抬杆?目前抬,后面要是不抬,在这个状态下搞它
            self.infrasGroup["Guardrail"].liftTheRail()
            self.uiFrame.notifyActionInfras(type="bar", value="acting")
Exemple #5
0
 def entryStateBiz(self):
     self.infrasGroup["Guardrail"].liftTheRail()
     self.uiFrame.notifyActionInfras(type="bar", value="acting")
     self.uiFrame.notifyActionInfras(type="ic", value="success")
     info = self.infoContainer["obuInfo"]
     self.uiFrame.notifyVehicleInfo(
         tradeTime=dateutil.dtStr(self.infoContainer["exitTime"]),
         tradeType=u"刷卡-人工消费",
         cpuNetworkId=info["cardNetId"],
         cpuInnerId=info["cpuCardInnerId"],
         psamId=info["psamNo"],
         psamTradeSn=info["psamTransSerial"],
         obuid=info["obuid"],
         tacCode=info["tac"],
         plateNo=info["vehicleLicencePlateNumber"],
         vehicleType=info["vehicleClass"],
         vehicleState=u"正常",
         tollFee=u"%.2f 元" % self.infoContainer["parkingFee"])
 def entryStateBiz(self):
     TSStub.confirmEntryRecord({
         "entryRecordId":
         self.infoContainer["entryRecordId"],
         "plateNo":
         self.infoContainer["plateNo"],
         "entryId":
         self.infrasGroup.infrasGroupId,
         "centerTradingRecord":
         self.infoContainer.toCenterEnteringRecord()
     })
     self.uiFrame.notifyVehicleEntry(
         entryRecordId=self.infoContainer["entryRecordId"],
         entryExit=u"入场",
         enterTime=dateutil.dtStr(self.infoContainer["enterTime"]),
         entryExitId=self.infrasGroup.infrasGroupId,
         plateNo=self.infoContainer["plateNo"],
         vehicleType=self.infoContainer["vehicleType"],
         plateNoByPhoto=self.infoContainer["plateNoByPhoto"],
         plateNoByRfid=u",".join(self.infoContainer["plateNoByRfid"]))
 def entryStateBiz(self):
     self.uiFrame.notifyActionInfras(type="rsu", value="success")
     info = self.infoContainer["obuInfo"]
     self.uiFrame.notifyVehicleInfo(
         tradeTime=dateutil.dtStr(self.infoContainer["enterTime"]),
         tradeType=u"RSU正常交易",
         cpuNetworkId=info["cardNetId"],
         cpuInnerId=info["cpuCardInnerId"],
         psamId=info["psamNo"],
         psamTradeSn=info["psamTransSerial"],
         obuid=info["obuid"],
         tacCode=info["tac"],
         plateNo=info["vehicleLicencePlateNumber"],
         vehicleType=info["vehicleClass"],
         vehicleState=u"正常")
     self.infrasGroup["LED"].showOnLed(u"车牌 %s\n车型 %s\n金额 %2.f\n"%\
                                       (info["vehicleLicencePlateNumber"],
                                        info["vehicleClass"],
                                        info["cardRestMoney"]
                                        ))
     self.infrasGroup["Guardrail"].liftTheRail()
     self.uiFrame.notifyActionInfras(type="bar", value="acting")
Exemple #8
0
        def entryStateBiz(self):
            self.uiFrame.notifyActionInfras(type="rsu", value="fail")
            self.uiFrame.notifyShouldManualToll(manual=True)
            info = self.infoContainer["obuInfo"]
            self.uiFrame.notifyVehicleInfo(
                tradeTime=dateutil.dtStr(self.infoContainer["exitTime"]),
                tradeType=u"等待人工交易",
                cpuNetworkId=info["cardNetId"],
                cpuInnerId=info["cpuCardInnerId"],
                psamId=info["psamNo"],
                psamTradeSn=info["psamTransSerial"],
                obuid=info["obuid"],
                tacCode=info["tac"],
                plateNo=info["vehicleLicencePlateNumber"],
                vehicleType=info["vehicleClass"],
                vehicleState=u"正常")

            self.infrasGroup["LED"].showOnLed(u"车牌 %s\n金额 %.2f\n%s"%\
                                              (self.infoContainer["plateNo"],
                                               self.infoContainer["parkingFee"],
                                               self.infoContainer["obuFailMsg"]
                                               ))
            self.infrasGroup["CETC_Alarm"].openAlarm()