         }
         
         let failureHandler = {(error:NSError)->() in
+            self.filterQueryResult = [QueryLeftNewDTO]()
+            self.leftTicketTable.reloadData()
+            
             self.stopLoadingTip()
             self.showTip(translate(error))
             
             self.canFilter = false
         }
         
-        self.filterQueryResult = [QueryLeftNewDTO]()
-        self.leftTicketTable.reloadData()
-        
         self.startLoadingTip("正在查询...")
-        
         self.date = date
         
         let fromStationCode = StationNameJs.sharedInstance.allStationMap[fromStation]?.Code

    }
    
    func clickSubmit(sender: NSButton){
        let notificationCenter = NSNotificationCenter.defaultCenter()
        
        self.stopAutoQuery()
        
        if !MainModel.isGetUserInfo {
            notificationCenter.postNotificationName(DidSendLoginMessageNotification, object: nil)
            return
        }
        
        setSelectedPassenger()
        
        if MainModel.selectPassengers.count == 0 {
            self.showTip("请先选择乘客")
            return
        }
        
        let selectedRow = leftTicketTable.rowForView(sender)
        MainModel.selectedTicket = filterQueryResult[selectedRow]
        setSeatCodeForSelectedPassenger(MainModel.selectedTicket!.TrainCode ,seatCodeName: sender.identifier!)
        
        self.startLoadingTip("正在提交...")
        
        let postSubmitWindowMessage = {
            self.stopLoadingTip()
            
            notificationCenter.postNotificationName(DidSendSubmitMessageNotification, object: nil)
        }
        
        let failHandler = {(error:NSError)->() in
            self.stopLoadingTip()
            
            if error.code == ServiceError.Code.CheckUserFailed.rawValue {
                notificationCenter.postNotificationName(DidSendLoginMessageNotification, object: nil)
            }else{
                self.showTip(translate(error))
            }
        }
        
        service.submitFlow(success: postSubmitWindowMessage, failure: failHandler)
    }
    
    func clickShowTrainDetail(sender:NSButton) {

        }
    }
    
    func summitTicket(ticket:QueryLeftNewDTO,seatTypeId:String,isAuto:Bool){
        let notificationCenter = NSNotificationCenter.defaultCenter()
        
        if !MainModel.isGetUserInfo {
