1
0
zrcadlo https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git synchronizováno 2025-09-18 06:03:51 +00:00

Module Client, écran SaleScreen : le nom du compte actuellement connecté est désormais correctement mis à jour à la connexion

Tento commit je obsažen v:
Notmoo-PC\Notmoo
2017-11-02 18:06:48 +01:00
rodič a179081501
revize 563154eb30
3 změnil soubory, kde provedl 10 přidání a 0 odebrání

Zobrazit soubor

@@ -43,6 +43,7 @@ class SaleScreenController {
@Override
public void onAccountConnectedStateUpdatedEvent() {
updateActionLock();
view.setCurrentAccount(model.getCurrentAccount());
}
@Override

Zobrazit soubor

@@ -31,6 +31,7 @@ class SaleScreenModel {
private SaleBuilder currentSaleBuilder;
private long tempSaleId;
private Object currentAccount;
SaleScreenModel(AccountService accountService, StockService stockService, SaleService saleService) {
if(accountService==null || stockService==null || saleService==null)
@@ -228,4 +229,8 @@ class SaleScreenModel {
else
return AccountLevel.getLowest();
}
public Account getCurrentAccount() {
return accountService.getCurrentAccount();
}
}

Zobrazit soubor

@@ -221,4 +221,8 @@ class SaleScreenView implements IFXComponent {
void setValidationButtonEnabled(boolean validationButtonEnabled) {
validator.setValidationButtonEnable(validationButtonEnabled);
}
public void setCurrentAccount(Account currentAccount) {
Platform.runLater(()->saleMakerAccountDisplayer.setText(GUIStringTool.getAccountStringConverter().toString(currentAccount)));
}
}