|
|
|
@ -159,12 +159,12 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateTickets(){
|
|
|
|
|
List<Tickets> _ticketsToUpdate = waitings.where((t) => t.call_updated == false);
|
|
|
|
|
API.Call_UpdateNotIsQueueRecordByIDAsync(DEVICE_IP, tickets: _ticketsToUpdate, onSuccess: (tickets_updated){
|
|
|
|
|
print("[${tickets_updated.length}] Tickets Updated: $tickets_updated");
|
|
|
|
|
}, onFailure: (e){
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// List<Tickets> _ticketsToUpdate = waitings.where((t) => t.call_updated == false);
|
|
|
|
|
// API.Call_UpdateNotIsQueueRecordByIDAsync(DEVICE_IP, tickets: _ticketsToUpdate, onSuccess: (tickets_updated){
|
|
|
|
|
// print("[${tickets_updated.length}] Tickets Updated: $tickets_updated");
|
|
|
|
|
// }, onFailure: (e){
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|