mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-12-22 23:41:09 +00:00
Module Client, écran de vente : clss SaleScreen implémente désormais IGuiModule; Corrections mineures
This commit is contained in:
parent
d1fdc64cad
commit
60e3caf4de
@ -0,0 +1,7 @@
|
||||
package com.pqt.client.gui.modules;
|
||||
|
||||
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
|
||||
|
||||
public interface IGuiModule extends IFXComponent{
|
||||
String getModuleName();
|
||||
}
|
@ -1,12 +1,14 @@
|
||||
package com.pqt.client.gui.modules.sale_screen;
|
||||
|
||||
import com.pqt.client.gui.modules.IGuiModule;
|
||||
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
|
||||
import com.pqt.client.gui.ressources.strings.GUIStringTool;
|
||||
import com.pqt.client.module.account.AccountService;
|
||||
import com.pqt.client.module.sale.SaleService;
|
||||
import com.pqt.client.module.stock.StockService;
|
||||
import javafx.scene.layout.Pane;
|
||||
|
||||
public class SaleScreen implements IFXComponent {
|
||||
public class SaleScreen implements IGuiModule {
|
||||
|
||||
private SaleScreenView view;
|
||||
|
||||
@ -23,4 +25,9 @@ public class SaleScreen implements IFXComponent {
|
||||
public Pane getPane() {
|
||||
return view.getPane();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModuleName() {
|
||||
return GUIStringTool.getSaleGuiModuleName();
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ class SaleScreenController {
|
||||
}
|
||||
|
||||
Account getDefaultAccount() {
|
||||
return new Account(" - ", null, AccountLevel.getLowest());
|
||||
return new Account(null, null, AccountLevel.getLowest());
|
||||
}
|
||||
|
||||
IValidatorComponentListener getValidatorListener() {
|
||||
|
@ -4,7 +4,6 @@ import com.pqt.client.gui.modules.sale_screen.sale_validation_screen.SaleValidat
|
||||
import com.pqt.client.gui.ressources.components.CommandComposerSaleDisplayer;
|
||||
import com.pqt.client.gui.ressources.components.SimpleValidator;
|
||||
import com.pqt.client.gui.ressources.components.generics.javafx_override.CssEnabledGridPane;
|
||||
import com.pqt.client.gui.ressources.css.GUICssTool;
|
||||
import com.pqt.client.gui.ressources.components.generics.IFXComponent;
|
||||
import com.pqt.client.gui.ressources.strings.GUIStringTool;
|
||||
import com.pqt.client.gui.ressources.components.CategoryTabStockDisplayer;
|
||||
|
Loading…
Reference in New Issue
Block a user