Las mismas correcciones de antes pero en otras vistas
This commit is contained in:
@@ -114,12 +114,13 @@ public class CategoriaSearchController extends BaseController {
|
|||||||
|
|
||||||
public void reload() {
|
public void reload() {
|
||||||
this.loadCategoriaTable();
|
this.loadCategoriaTable();
|
||||||
|
this.view.getCategoriaTable().setRowSelectionInterval(0, 0);
|
||||||
|
this.view.getSearchField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
this.reload();
|
this.reload();
|
||||||
this.view.getCategoriaTable().clearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -113,6 +113,8 @@ public class ClienteSearchController extends BaseController {
|
|||||||
|
|
||||||
private void reload() {
|
private void reload() {
|
||||||
this.loadClienteTable();
|
this.loadClienteTable();
|
||||||
|
this.view.getClienteTable().setRowSelectionInterval(0, 0);
|
||||||
|
this.view.getSearchField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadClienteTable() {
|
private void loadClienteTable() {
|
||||||
@@ -123,7 +125,6 @@ public class ClienteSearchController extends BaseController {
|
|||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
this.reload();
|
this.reload();
|
||||||
this.view.getClienteTable().clearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public class DistribuidorCreateController extends BaseController {
|
|||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
this.fillEmpresasCombobox();
|
this.fillEmpresasCombobox();
|
||||||
|
this.view.getEmpresaCombobox().setSelectedIndex(0);
|
||||||
this.view.getRutField().requestFocus();
|
this.view.getRutField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,8 @@ public class DistribuidorSearchController extends BaseController {
|
|||||||
|
|
||||||
private void reload() {
|
private void reload() {
|
||||||
this.loadDistribuidorTable();
|
this.loadDistribuidorTable();
|
||||||
|
this.view.getDistribuidorTable().setRowSelectionInterval(0, 0);
|
||||||
|
this.view.getSearchField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadDistribuidorTable() {
|
private void loadDistribuidorTable() {
|
||||||
@@ -124,7 +126,6 @@ public class DistribuidorSearchController extends BaseController {
|
|||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
this.reload();
|
this.reload();
|
||||||
this.view.getDistribuidorTable().clearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -112,6 +112,8 @@ public class EditorialSearchController extends BaseController {
|
|||||||
|
|
||||||
public void reload() {
|
public void reload() {
|
||||||
this.loadEditorialTable();
|
this.loadEditorialTable();
|
||||||
|
this.view.getEditorialTable().setRowSelectionInterval(0, 0);
|
||||||
|
this.view.getBuscarField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public class EditorialUpdateController extends BaseController {
|
|||||||
private void setupListeners() {
|
private void setupListeners() {
|
||||||
this.view.getNombreField().addActionListener(e -> this.update());
|
this.view.getNombreField().addActionListener(e -> this.update());
|
||||||
this.view.getActualizarButton().addActionListener(e -> this.update());
|
this.view.getActualizarButton().addActionListener(e -> this.update());
|
||||||
|
this.view.getVolverButton().addActionListener(e -> this.parentController.showCard(PanelName.EDITORIAL_SEARCH));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update() {
|
private void update() {
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ public class EmpresaSearchController extends BaseController {
|
|||||||
|
|
||||||
public void reload() {
|
public void reload() {
|
||||||
this.loadEmpresaTable();
|
this.loadEmpresaTable();
|
||||||
|
this.view.getEmpresaTable().setRowSelectionInterval(0, 0);
|
||||||
|
this.view.getBuscarField().requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public class EmpresaUpdateController extends BaseController {
|
|||||||
private void setupListeners() {
|
private void setupListeners() {
|
||||||
this.view.getNombreField().addActionListener(e -> this.update());
|
this.view.getNombreField().addActionListener(e -> this.update());
|
||||||
this.view.getActualizarButton().addActionListener(e -> this.update());
|
this.view.getActualizarButton().addActionListener(e -> this.update());
|
||||||
|
this.view.getVolverButton().addActionListener(e -> this.getParentController().showCard(PanelName.EMPRESA_SEARCH));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update() {
|
private void update() {
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ public class TrabajadorSearchController extends BaseController {
|
|||||||
|
|
||||||
private void reload() {
|
private void reload() {
|
||||||
this.loadTrabajadorTable();
|
this.loadTrabajadorTable();
|
||||||
|
this.view.getSearchField().requestFocus();
|
||||||
|
this.view.getTrabajadorTable().setRowSelectionInterval(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadTrabajadorTable() {
|
private void loadTrabajadorTable() {
|
||||||
@@ -130,7 +132,6 @@ public class TrabajadorSearchController extends BaseController {
|
|||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
this.reload();
|
this.reload();
|
||||||
this.view.getTrabajadorTable().clearSelection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public class TrabajadorViewController extends BaseController {
|
|||||||
this.view.getNombreField().setText(this.trabajador.getNombre());
|
this.view.getNombreField().setText(this.trabajador.getNombre());
|
||||||
this.view.getApellidoPaternoField().setText(this.trabajador.getApellidoPaterno());
|
this.view.getApellidoPaternoField().setText(this.trabajador.getApellidoPaterno());
|
||||||
this.view.getApellidoMaternoField().setText(this.trabajador.getApellidoMaterno());
|
this.view.getApellidoMaternoField().setText(this.trabajador.getApellidoMaterno());
|
||||||
this.view.getFechaContratoPicker().setDate(this.trabajador.getFechaContrato());
|
this.view.getFechaContratoField().setText(this.trabajador.getFechaContrato().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -162,7 +162,9 @@
|
|||||||
<preferred-size width="150" height="-1"/>
|
<preferred-size width="150" height="-1"/>
|
||||||
</grid>
|
</grid>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties>
|
||||||
|
<editable value="false"/>
|
||||||
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ public class ClienteViewPanel extends BasePanel {
|
|||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
null, 0, false));
|
null, 0, false));
|
||||||
fechaNacimientoField = new JTextField();
|
fechaNacimientoField = new JTextField();
|
||||||
|
fechaNacimientoField.setEditable(false);
|
||||||
contentPane.add(fechaNacimientoField,
|
contentPane.add(fechaNacimientoField,
|
||||||
new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<grid id="27dc6" binding="contentPane" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="contentPane" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="20" left="20" bottom="20" right="20"/>
|
<margin top="20" left="20" bottom="20" right="20"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="484" height="154"/>
|
<xy x="20" y="20" width="484" height="174"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
@@ -39,16 +39,36 @@
|
|||||||
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</hspacer>
|
</hspacer>
|
||||||
<component id="84fc7" class="javax.swing.JButton" binding="actualizarButton" default-binding="true">
|
<grid id="87f63" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||||
<preferred-size width="150" height="-1"/>
|
|
||||||
</grid>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties/>
|
||||||
<text value="Actualizar"/>
|
<border type="none"/>
|
||||||
</properties>
|
<children>
|
||||||
</component>
|
<component id="84fc7" class="javax.swing.JButton" binding="actualizarButton" default-binding="true">
|
||||||
|
<constraints>
|
||||||
|
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<text value="Actualizar"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="1840" class="javax.swing.JButton" binding="volverButton">
|
||||||
|
<constraints>
|
||||||
|
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<text value="Volver"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
</children>
|
||||||
|
</grid>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public class EditorialUpdatePanel extends BasePanel {
|
|||||||
private JPanel contentPane;
|
private JPanel contentPane;
|
||||||
private JTextField nombreField;
|
private JTextField nombreField;
|
||||||
private JButton actualizarButton;
|
private JButton actualizarButton;
|
||||||
|
private JButton volverButton;
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
@@ -38,6 +39,10 @@ public class EditorialUpdatePanel extends BasePanel {
|
|||||||
return this.actualizarButton;
|
return this.actualizarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JButton getVolverButton() {
|
||||||
|
return this.volverButton;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
||||||
*
|
*
|
||||||
@@ -66,9 +71,19 @@ public class EditorialUpdatePanel extends BasePanel {
|
|||||||
contentPane.add(spacer3,
|
contentPane.add(spacer3,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null,
|
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null,
|
||||||
null, null, 0, false));
|
null, null, 0, false));
|
||||||
|
final JPanel panel1 = new JPanel();
|
||||||
|
panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
contentPane.add(panel1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
actualizarButton = new JButton();
|
actualizarButton = new JButton();
|
||||||
actualizarButton.setText("Actualizar");
|
actualizarButton.setText("Actualizar");
|
||||||
contentPane.add(actualizarButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
panel1.add(actualizarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
|
null, 0, false));
|
||||||
|
volverButton = new JButton();
|
||||||
|
volverButton.setText("Volver");
|
||||||
|
panel1.add(volverButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
null, 0, false));
|
null, 0, false));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<grid id="27dc6" binding="contentPane" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="contentPane" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="20" left="20" bottom="20" right="20"/>
|
<margin top="20" left="20" bottom="20" right="20"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="484" height="154"/>
|
<xy x="20" y="20" width="484" height="174"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties/>
|
<properties/>
|
||||||
<border type="none"/>
|
<border type="none"/>
|
||||||
@@ -39,16 +39,36 @@
|
|||||||
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</hspacer>
|
</hspacer>
|
||||||
<component id="84fc7" class="javax.swing.JButton" binding="actualizarButton" default-binding="true">
|
<grid id="a502a" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
|
||||||
<preferred-size width="150" height="-1"/>
|
|
||||||
</grid>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties/>
|
||||||
<text value="Actualizar"/>
|
<border type="none"/>
|
||||||
</properties>
|
<children>
|
||||||
</component>
|
<component id="84fc7" class="javax.swing.JButton" binding="actualizarButton" default-binding="true">
|
||||||
|
<constraints>
|
||||||
|
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<text value="Actualizar"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="d0d5d" class="javax.swing.JButton" binding="volverButton">
|
||||||
|
<constraints>
|
||||||
|
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="150" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<text value="Volver"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
</children>
|
||||||
|
</grid>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public class EmpresaUpdatePanel extends BasePanel {
|
|||||||
private JPanel contentPane;
|
private JPanel contentPane;
|
||||||
private JTextField nombreField;
|
private JTextField nombreField;
|
||||||
private JButton actualizarButton;
|
private JButton actualizarButton;
|
||||||
|
private JButton volverButton;
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
@@ -38,6 +39,10 @@ public class EmpresaUpdatePanel extends BasePanel {
|
|||||||
return this.actualizarButton;
|
return this.actualizarButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JButton getVolverButton() {
|
||||||
|
return this.volverButton;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
||||||
*
|
*
|
||||||
@@ -66,9 +71,19 @@ public class EmpresaUpdatePanel extends BasePanel {
|
|||||||
contentPane.add(spacer3,
|
contentPane.add(spacer3,
|
||||||
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null,
|
new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null,
|
||||||
null, null, 0, false));
|
null, null, 0, false));
|
||||||
|
final JPanel panel1 = new JPanel();
|
||||||
|
panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
|
contentPane.add(panel1, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
|
||||||
actualizarButton = new JButton();
|
actualizarButton = new JButton();
|
||||||
actualizarButton.setText("Actualizar");
|
actualizarButton.setText("Actualizar");
|
||||||
contentPane.add(actualizarButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
panel1.add(actualizarButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
||||||
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
|
null, 0, false));
|
||||||
|
volverButton = new JButton();
|
||||||
|
volverButton.setText("Volver");
|
||||||
|
panel1.add(volverButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
null, 0, false));
|
null, 0, false));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,12 +116,6 @@
|
|||||||
<editable value="false"/>
|
<editable value="false"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="c3b00" class="com.github.lgooddatepicker.components.DatePicker" binding="fechaContratoPicker">
|
|
||||||
<constraints>
|
|
||||||
<grid row="9" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
|
||||||
</constraints>
|
|
||||||
<properties/>
|
|
||||||
</component>
|
|
||||||
<grid id="21544" layout-manager="GridLayoutManager" row-count="1" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="21544" layout-manager="GridLayoutManager" row-count="1" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="0" left="0" bottom="0" right="0"/>
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
@@ -172,6 +166,16 @@
|
|||||||
</component>
|
</component>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
|
<component id="56796" class="javax.swing.JTextField" binding="fechaContratoField">
|
||||||
|
<constraints>
|
||||||
|
<grid row="9" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="400" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<editable value="false"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
</children>
|
</children>
|
||||||
</grid>
|
</grid>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package xyz.danielcortes.views.trabajador;
|
package xyz.danielcortes.views.trabajador;
|
||||||
|
|
||||||
import com.github.lgooddatepicker.components.DatePicker;
|
|
||||||
import com.intellij.uiDesigner.core.GridConstraints;
|
import com.intellij.uiDesigner.core.GridConstraints;
|
||||||
import com.intellij.uiDesigner.core.GridLayoutManager;
|
import com.intellij.uiDesigner.core.GridLayoutManager;
|
||||||
import com.intellij.uiDesigner.core.Spacer;
|
import com.intellij.uiDesigner.core.Spacer;
|
||||||
@@ -21,11 +20,11 @@ public class TrabajadorViewPanel extends BasePanel {
|
|||||||
private JButton volverButton;
|
private JButton volverButton;
|
||||||
private JPanel contentPane;
|
private JPanel contentPane;
|
||||||
private JTextField rutField;
|
private JTextField rutField;
|
||||||
private DatePicker fechaContratoPicker;
|
|
||||||
private JButton usuarioButton;
|
private JButton usuarioButton;
|
||||||
private JButton direccionesButton;
|
private JButton direccionesButton;
|
||||||
private JButton correosButton;
|
private JButton correosButton;
|
||||||
private JButton telefonosButton;
|
private JButton telefonosButton;
|
||||||
|
private JTextField fechaContratoField;
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
@@ -59,10 +58,6 @@ public class TrabajadorViewPanel extends BasePanel {
|
|||||||
return this.rutField;
|
return this.rutField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DatePicker getFechaContratoPicker() {
|
|
||||||
return this.fechaContratoPicker;
|
|
||||||
}
|
|
||||||
|
|
||||||
public JButton getUsuarioButton() {
|
public JButton getUsuarioButton() {
|
||||||
return this.usuarioButton;
|
return this.usuarioButton;
|
||||||
}
|
}
|
||||||
@@ -79,6 +74,10 @@ public class TrabajadorViewPanel extends BasePanel {
|
|||||||
return this.telefonosButton;
|
return this.telefonosButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JTextField getFechaContratoField() {
|
||||||
|
return this.fechaContratoField;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
* Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR call it in your code!
|
||||||
*
|
*
|
||||||
@@ -147,10 +146,6 @@ public class TrabajadorViewPanel extends BasePanel {
|
|||||||
contentPane.add(rutField,
|
contentPane.add(rutField,
|
||||||
new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
|
||||||
fechaContratoPicker = new DatePicker();
|
|
||||||
contentPane.add(fechaContratoPicker,
|
|
||||||
new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
|
||||||
GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
|
||||||
final JPanel panel1 = new JPanel();
|
final JPanel panel1 = new JPanel();
|
||||||
panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));
|
panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));
|
||||||
contentPane.add(panel1, new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
contentPane.add(panel1, new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
|
||||||
@@ -176,6 +171,11 @@ public class TrabajadorViewPanel extends BasePanel {
|
|||||||
panel1.add(telefonosButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
panel1.add(telefonosButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,
|
||||||
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1),
|
||||||
null, 0, false));
|
null, 0, false));
|
||||||
|
fechaContratoField = new JTextField();
|
||||||
|
fechaContratoField.setEditable(false);
|
||||||
|
contentPane.add(fechaContratoField,
|
||||||
|
new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW,
|
||||||
|
GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(400, -1), null, 0, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<property name="javax.persistence.jdbc.user" value="root"/>
|
<property name="javax.persistence.jdbc.user" value="root"/>
|
||||||
<property name="javax.persistence.jdbc.password" value="ff9800s_a_d"/>
|
<property name="javax.persistence.jdbc.password" value="ff9800s_a_d"/>
|
||||||
<property name="hibernate.dialect" value="org.hibernate.dialect.MariaDB103Dialect"/>
|
<property name="hibernate.dialect" value="org.hibernate.dialect.MariaDB103Dialect"/>
|
||||||
<property name="hibernate.show_sql" value="true"/>
|
<property name="hibernate.show_sql" value="false"/>
|
||||||
<!--<property name="hibernate.hbm2ddl.auto" value="create"/>-->
|
<!--<property name="hibernate.hbm2ddl.auto" value="create"/>-->
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user