mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
Module Client : correction erreurs de compilation + suppression import inutiles
This commit is contained in:
parent
0a9356fdbe
commit
20ac907c73
@ -13,7 +13,9 @@ import com.pqt.core.entities.user_account.Account;
|
|||||||
import com.pqt.core.entities.user_account.AccountLevel;
|
import com.pqt.core.entities.user_account.AccountLevel;
|
||||||
import javafx.event.Event;
|
import javafx.event.Event;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
class SaleScreenController {
|
class SaleScreenController {
|
||||||
|
|
||||||
@ -45,7 +47,7 @@ class SaleScreenController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAccountListUpdatedEvent() {
|
public void onAccountListUpdatedEvent() {
|
||||||
view.setAccounts(model.getAccountList());
|
view.setAccounts(new ArrayList<>(model.getAccountList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -99,7 +101,7 @@ class SaleScreenController {
|
|||||||
return model.getProductList();
|
return model.getProductList();
|
||||||
}
|
}
|
||||||
private List<Account> fetchAccountList(){
|
private List<Account> fetchAccountList(){
|
||||||
return model.getAccountList();
|
return new ArrayList<>(model.getAccountList());
|
||||||
}
|
}
|
||||||
private List<SaleType> fetchSaleTypeList(){
|
private List<SaleType> fetchSaleTypeList(){
|
||||||
return model.getSaleTypeList();
|
return model.getSaleTypeList();
|
||||||
|
@ -17,6 +17,7 @@ import com.pqt.core.entities.user_account.AccountLevel;
|
|||||||
|
|
||||||
import javax.swing.event.EventListenerList;
|
import javax.swing.event.EventListenerList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ -143,7 +144,7 @@ class SaleScreenModel {
|
|||||||
.forEach(ISaleScreenModelListener::onAccountConnectedStateUpdatedEvent);
|
.forEach(ISaleScreenModelListener::onAccountConnectedStateUpdatedEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Account> getAccountList() {
|
Collection<Account> getAccountList() {
|
||||||
return accountService.getAllAccounts();
|
return accountService.getAllAccounts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package com.pqt.client.module.sale;
|
package com.pqt.client.module.sale;
|
||||||
|
|
||||||
import com.pqt.client.module.query.QueryExecutor;
|
import com.pqt.client.module.query.QueryExecutor;
|
||||||
import com.pqt.client.module.query.QueryMessageFactory;
|
|
||||||
import com.pqt.client.module.query.query_callback.ICollectionItemMessageCallback;
|
|
||||||
import com.pqt.client.module.query.query_callback.INoItemMessageCallback;
|
import com.pqt.client.module.query.query_callback.INoItemMessageCallback;
|
||||||
import com.pqt.client.module.sale.listeners.ISaleFirerer;
|
import com.pqt.client.module.sale.listeners.ISaleFirerer;
|
||||||
import com.pqt.client.module.sale.listeners.ISaleListener;
|
import com.pqt.client.module.sale.listeners.ISaleListener;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.pqt.client.module.stat;
|
package com.pqt.client.module.stat;
|
||||||
|
|
||||||
import com.pqt.client.module.query.QueryExecutor;
|
import com.pqt.client.module.query.QueryExecutor;
|
||||||
import com.pqt.client.module.query.QueryMessageFactory;
|
|
||||||
import com.pqt.client.module.query.query_callback.IMapItemMessageCallback;
|
import com.pqt.client.module.query.query_callback.IMapItemMessageCallback;
|
||||||
import com.pqt.client.module.stat.listeners.IStatFirerer;
|
import com.pqt.client.module.stat.listeners.IStatFirerer;
|
||||||
import com.pqt.client.module.stat.listeners.IStatListener;
|
import com.pqt.client.module.stat.listeners.IStatListener;
|
||||||
|
Loading…
Reference in New Issue
Block a user