Browse files

allow to edit export properties directly

  • Loading branch information...
1 parent 89f466f commit 1efdd9ed156f1aa6775c8ab4c0a6ae535eec7006 @anti43 committed Feb 15, 2013
View
14 src/mpv5/resources/languages/Panels.properties
@@ -1114,7 +1114,6 @@ wizard_Yabs1_Import.dbprefix._Label=DB Prefix
wizard_DBSettings_1.jButton3.text=Change
wizard_DBSettings_1.jLabel4.text=Do not change unless you know what you do!
ControlPanel_Local.escape.text=Escape backslashes before database insert
-ControlPanel_Userproperties.autorev.text=Auto create revenue from bills
ExpensePanel.labeledDateChooser1._Label=Date
RevenuePanel.number._Label=ID:
RevenuePanel.labeledDateChooser1._Label=Date
@@ -2048,3 +2047,16 @@ wizard_FirstSettings4.jPanel1.border.title=Yabs Installation - Wizard
wizard_FirstSettings4.labeledTextChooser2._Label=Yabs language file
wizard_FirstSettings5.jPanel1.border.title=Yabs Installation - Wizard
wizard_FirstSettings5.jTextPane1.text=All set! Please restart Yabs now.
+ControlPanel_ExportProperties.jButton1.text=Save
+ControlPanel_ExportProperties.border.title=Values
+ControlPanel_ExportProperties.jButton3.text=Reset
+ControlPanel_ExportProperties.jButton2.text=Apply
+ControlPanel_ExportProperties.jCheckBox1.text=Do not blank unused fields
+ControlPanel_ExportProperties.jCheckBox2.text=Load remote office docs by url
+ControlPanel_ExportProperties.jCheckBox3.text=Resolve full products in xtable
+ControlPanel_ExportProperties.jCheckBox4.text=Hide count for text items
+ControlPanel_Userproperties.jPanel8.border.title=Export
+ControlPanel_Userproperties.noblank.text=Do not blank unused fields
+ControlPanel_Userproperties.remoteurl.text=Load remote office docs by url
+ControlPanel_Userproperties.resolv.text=Resolve full products in xtable
+ControlPanel_Userproperties.nocount.text=Hide count for text items
View
147 src/mpv5/ui/dialogs/subcomponents/ControlPanel_Userproperties.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.6" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<Properties>
@@ -18,7 +18,7 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,3,71,0,0,2,-112"/>
+ <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,3,-44,0,0,2,-102"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -46,15 +46,25 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <Component id="jPanel3" min="-2" pref="306" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jPanel5" min="-2" pref="332" max="-2" attributes="0"/>
+ <Group type="102" attributes="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="jPanel3" max="32767" attributes="0"/>
+ <Component id="jPanel8" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jPanel5" min="-2" pref="332" max="-2" attributes="0"/>
+ </Group>
+ <Component id="jPanel2" alignment="0" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Component id="jPanel9" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jPanel10" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Component id="jPanel4" alignment="0" min="-2" pref="644" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="32767" attributes="0"/>
</Group>
- <Component id="jPanel4" alignment="0" min="-2" pref="644" max="-2" attributes="0"/>
- <Component id="jPanel10" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jPanel9" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="jPanel2" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
<Component id="jPanel7" alignment="0" min="-2" pref="644" max="-2" attributes="0"/>
</Group>
@@ -66,22 +76,26 @@
<EmptySpace min="-2" pref="50" max="-2" attributes="0"/>
<Component id="jPanel2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="jPanel3" pref="211" max="32767" attributes="1"/>
- <Component id="jPanel5" alignment="0" max="32767" attributes="1"/>
+ <Group type="103" groupAlignment="0" max="-2" attributes="0">
+ <Group type="102" attributes="0">
+ <Component id="jPanel3" min="-2" max="-2" attributes="1"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jPanel8" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Component id="jPanel5" max="32767" attributes="1"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel4" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel10" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel9" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
</Group>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jPanel7" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="776" max="32767" attributes="1"/>
+ <EmptySpace pref="886" max="32767" attributes="1"/>
</Group>
</Group>
</Group>
@@ -241,14 +255,9 @@
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <Component id="defunit" min="-2" pref="140" max="-2" attributes="1"/>
- <EmptySpace type="separate" max="-2" attributes="0"/>
- <Component id="defcount" min="-2" pref="140" max="-2" attributes="1"/>
- </Group>
- <Component id="autorev" min="-2" pref="298" max="-2" attributes="0"/>
- </Group>
+ <Component id="defunit" min="-2" pref="140" max="-2" attributes="1"/>
+ <EmptySpace type="separate" max="-2" attributes="0"/>
+ <Component id="defcount" min="-2" pref="140" max="-2" attributes="1"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="shiptax" alignment="1" pref="233" max="32767" attributes="1"/>
@@ -269,10 +278,7 @@
<Component id="defunit" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="2" attributes="0">
- <Component id="autorev" alignment="2" min="-2" max="-2" attributes="0"/>
- <Component id="shiptax" alignment="2" min="-2" max="-2" attributes="0"/>
- </Group>
+ <Component id="shiptax" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
@@ -317,15 +323,6 @@
<Property name="name" type="java.lang.String" value="shiptax" noResource="true"/>
</Properties>
</Component>
- <Component class="javax.swing.JCheckBox" name="autorev">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.autorev.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
- </Property>
- <Property name="enabled" type="boolean" value="false"/>
- <Property name="name" type="java.lang.String" value="autorev" noResource="true"/>
- </Properties>
- </Component>
</SubComponents>
</Container>
<Component class="mpv5.ui.beans.LabeledTextField" name="format">
@@ -835,6 +832,84 @@
</Component>
</SubComponents>
</Container>
+ <Container class="javax.swing.JPanel" name="jPanel8">
+ <Properties>
+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
+ <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
+ <TitledBorder title="Export ">
+ <ResourceString PropertyName="titleX" bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.jPanel8.border.title" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ </TitledBorder>
+ </Border>
+ </Property>
+ <Property name="name" type="java.lang.String" value="jPanel8" noResource="true"/>
+ </Properties>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="noblank" alignment="0" max="32767" attributes="0"/>
+ <Component id="remoteurl" alignment="0" max="32767" attributes="0"/>
+ <Component id="resolv" alignment="0" max="32767" attributes="0"/>
+ <Component id="nocount" alignment="1" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="noblank" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="remoteurl" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="resolv" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="nocount" min="-2" max="-2" attributes="0"/>
+ <EmptySpace pref="50" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JCheckBox" name="nocount">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.nocount.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ </Property>
+ <Property name="name" type="java.lang.String" value="nocount" noResource="true"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JCheckBox" name="resolv">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.resolv.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ </Property>
+ <Property name="name" type="java.lang.String" value="resolv" noResource="true"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JCheckBox" name="remoteurl">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.remoteurl.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ </Property>
+ <Property name="name" type="java.lang.String" value="remoteurl" noResource="true"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JCheckBox" name="noblank">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="mpv5/resources/languages/Panels.properties" key="ControlPanel_Userproperties.noblank.text" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
+ </Property>
+ <Property name="name" type="java.lang.String" value="noblank" noResource="true"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanel6">
View
1,199 src/mpv5/ui/dialogs/subcomponents/ControlPanel_Userproperties.java
@@ -9,10 +9,12 @@
import mpv5.db.common.Context;
import mpv5.db.common.NodataFoundException;
import mpv5.db.objects.User;
+import mpv5.globals.GlobalSettings;
import mpv5.globals.Messages;
import mpv5.logging.Log;
import mpv5.ui.beans.LightMPComboBox;
import mpv5.ui.dialogs.ControlApplet;
+import mpv5.ui.dialogs.Notificator;
import mpv5.ui.dialogs.Popup;
import mpv5.ui.panels.MPControlPanel;
@@ -53,517 +55,563 @@ public ControlPanel_Userproperties() {
}
}
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- jPanel1 = new javax.swing.JPanel();
- jPanel2 = new javax.swing.JPanel();
- productstobillsproperties = new javax.swing.JPanel();
- cname = new javax.swing.JCheckBox();
- description = new javax.swing.JCheckBox();
- cnumber = new javax.swing.JCheckBox();
- reference = new javax.swing.JCheckBox();
- ean = new javax.swing.JCheckBox();
- jButton3 = new javax.swing.JButton();
- defs = new javax.swing.JPanel();
- defcount = new mpv5.ui.beans.LabeledTextField();
- defunit = new mpv5.ui.beans.LabeledTextField();
- deftax = new mpv5.ui.beans.LabeledCombobox();
- shiptax = new mpv5.ui.beans.LabeledCombobox();
- autorev = new javax.swing.JCheckBox();
- format = new mpv5.ui.beans.LabeledTextField();
- jPanel3 = new javax.swing.JPanel();
- columnquantity = new javax.swing.JCheckBox();
- columnmeasure = new javax.swing.JCheckBox();
- hidetaxcolumn = new javax.swing.JCheckBox();
- hidediscountcolumn = new javax.swing.JCheckBox();
- hideproductscolumn = new javax.swing.JCheckBox();
- showoptionalcolumn = new javax.swing.JCheckBox();
- jPanel9 = new javax.swing.JPanel();
- smtphost = new mpv5.ui.beans.LabeledTextField();
- smtpuser = new mpv5.ui.beans.LabeledTextField();
- jLabel3 = new javax.swing.JLabel();
- smtppw = new javax.swing.JPasswordField();
- smtptls = new javax.swing.JCheckBox();
- smtps = new javax.swing.JCheckBox();
- jButton4 = new javax.swing.JButton();
- jPanel4 = new javax.swing.JPanel();
- saveformat = new mpv5.ui.beans.LabeledTextField();
- jScrollPane1 = new javax.swing.JScrollPane();
- jTextPane1 = new javax.swing.JTextPane();
- jPanel10 = new javax.swing.JPanel();
- dtabankid = new mpv5.ui.beans.LabeledTextField();
- dtabankaccount = new mpv5.ui.beans.LabeledTextField();
- dtabankname = new mpv5.ui.beans.LabeledTextField();
- dtabankcountry = new mpv5.ui.beans.LabeledTextField();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane2 = new javax.swing.JScrollPane();
- dtausage0 = new javax.swing.JTextPane();
- jPanel5 = new javax.swing.JPanel();
- tabs = new javax.swing.JCheckBox();
- supresscurrencysymbols = new javax.swing.JCheckBox();
- ordersoverproducts = new javax.swing.JCheckBox();
- companiesovernames = new javax.swing.JCheckBox();
- pasten = new javax.swing.JCheckBox();
- nowarnings = new javax.swing.JCheckBox();
- unpaidbills = new javax.swing.JCheckBox();
- views = new javax.swing.JCheckBox();
- jPanel7 = new javax.swing.JPanel();
- groupl = new javax.swing.JLabel();
- jPanel6 = new javax.swing.JPanel();
- jButton2 = new javax.swing.JButton();
- jButton1 = new javax.swing.JButton();
- jButton5 = new javax.swing.JButton();
-
- setBackground(new java.awt.Color(255, 255, 255));
- setName("Form"); // NOI18N
- setLayout(new java.awt.BorderLayout());
-
- jPanel1.setBackground(new java.awt.Color(255, 255, 255));
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle(); // NOI18N
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel1.border.title"))); // NOI18N
- jPanel1.setName("jPanel1"); // NOI18N
-
- jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel2.border.title"))); // NOI18N
- jPanel2.setName("jPanel2"); // NOI18N
-
- productstobillsproperties.setName("productstobillsproperties"); // NOI18N
-
- cname.setText(bundle.getString("ControlPanel_Userproperties.cname.text")); // NOI18N
- cname.setName("cname"); // NOI18N
-
- description.setText(bundle.getString("ControlPanel_Userproperties.description.text")); // NOI18N
- description.setName("description"); // NOI18N
-
- cnumber.setText(bundle.getString("ControlPanel_Userproperties.cnumber.text")); // NOI18N
- cnumber.setName("cnumber"); // NOI18N
-
- reference.setText(bundle.getString("ControlPanel_Userproperties.reference.text")); // NOI18N
- reference.setName("reference"); // NOI18N
-
- ean.setText(bundle.getString("ControlPanel_Userproperties.ean.text")); // NOI18N
- ean.setName("ean"); // NOI18N
-
- jButton3.setText(bundle.getString("ControlPanel_Userproperties.jButton3.text")); // NOI18N
- jButton3.setName("jButton3"); // NOI18N
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout productstobillspropertiesLayout = new javax.swing.GroupLayout(productstobillsproperties);
- productstobillsproperties.setLayout(productstobillspropertiesLayout);
- productstobillspropertiesLayout.setHorizontalGroup(
- productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(productstobillspropertiesLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(cnumber, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
- .addComponent(description, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
- .addComponent(cname, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE))
- .addGap(8, 8, 8)
- .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(ean, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)
- .addComponent(reference, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)
- .addComponent(jButton3))
- .addContainerGap())
- );
- productstobillspropertiesLayout.setVerticalGroup(
- productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(productstobillspropertiesLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(cname)
- .addComponent(ean))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(description)
- .addComponent(reference))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(cnumber)
- .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- defs.setName("defs"); // NOI18N
-
- defcount.set_Label(bundle.getString("ControlPanel_Userproperties.defcount._Label")); // NOI18N
- defcount.set_Text(bundle.getString("ControlPanel_Userproperties.defcount._Text")); // NOI18N
- defcount.setName("defcount"); // NOI18N
-
- defunit.set_Label(bundle.getString("ControlPanel_Userproperties.defunit._Label")); // NOI18N
- defunit.set_Text(bundle.getString("ControlPanel_Userproperties.defunit._Text")); // NOI18N
- defunit.setName("defunit"); // NOI18N
-
- deftax.set_Label(bundle.getString("ControlPanel_Userproperties.deftax._Label")); // NOI18N
- deftax.setName("deftax"); // NOI18N
-
- shiptax.set_Label(bundle.getString("ControlPanel_Userproperties.shiptax._Label")); // NOI18N
- shiptax.setName("shiptax"); // NOI18N
-
- autorev.setText(bundle.getString("ControlPanel_Userproperties.autorev.text")); // NOI18N
- autorev.setEnabled(false);
- autorev.setName("autorev"); // NOI18N
-
- javax.swing.GroupLayout defsLayout = new javax.swing.GroupLayout(defs);
- defs.setLayout(defsLayout);
- defsLayout.setHorizontalGroup(
- defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(defsLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(defsLayout.createSequentialGroup()
- .addComponent(defunit, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(defcount, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(autorev, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(shiptax, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
- .addComponent(deftax, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)))
- );
- defsLayout.setVerticalGroup(
- defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(defsLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(deftax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(defcount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(defunit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(autorev)
- .addComponent(shiptax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- format.set_Label(bundle.getString("ControlPanel_Userproperties.format._Label")); // NOI18N
- format.setName("format"); // NOI18N
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(productstobillsproperties, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addComponent(format, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE))
- .addComponent(defs, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap())
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(productstobillsproperties, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(format, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(14, 14, 14)
- .addComponent(defs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
-
- jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel3.border.title"))); // NOI18N
- jPanel3.setName("jPanel3"); // NOI18N
- jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.PAGE_AXIS));
-
- columnquantity.setText(bundle.getString("ControlPanel_Userproperties.columnquantity.text")); // NOI18N
- columnquantity.setName("columnquantity"); // NOI18N
- jPanel3.add(columnquantity);
-
- columnmeasure.setText(bundle.getString("ControlPanel_Userproperties.columnmeasure.text")); // NOI18N
- columnmeasure.setName("columnmeasure"); // NOI18N
- jPanel3.add(columnmeasure);
-
- hidetaxcolumn.setText(bundle.getString("ControlPanel_Userproperties.hidetaxcolumn.text")); // NOI18N
- hidetaxcolumn.setName("hidetaxcolumn"); // NOI18N
- jPanel3.add(hidetaxcolumn);
-
- hidediscountcolumn.setText(bundle.getString("ControlPanel_Userproperties.hidediscountcolumn.text")); // NOI18N
- hidediscountcolumn.setName("hidediscountcolumn"); // NOI18N
- jPanel3.add(hidediscountcolumn);
-
- hideproductscolumn.setText(bundle.getString("ControlPanel_Userproperties.hideproductscolumn.text")); // NOI18N
- hideproductscolumn.setName("hideproductscolumn"); // NOI18N
- jPanel3.add(hideproductscolumn);
-
- showoptionalcolumn.setText(bundle.getString("ControlPanel_Userproperties.showoptionalcolumn.text")); // NOI18N
- showoptionalcolumn.setName("showoptionalcolumn"); // NOI18N
- jPanel3.add(showoptionalcolumn);
-
- jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel9.border.title"))); // NOI18N
- jPanel9.setName("jPanel9"); // NOI18N
-
- smtphost.set_Label(bundle.getString("ControlPanel_Userproperties.smtphost._Label")); // NOI18N
- smtphost.setName("smtphost"); // NOI18N
-
- smtpuser.set_Label(bundle.getString("ControlPanel_Userproperties.smtpuser._Label")); // NOI18N
- smtpuser.setName("smtpuser"); // NOI18N
-
- jLabel3.setText(bundle.getString("ControlPanel_Userproperties.jLabel3.text")); // NOI18N
- jLabel3.setName("jLabel3"); // NOI18N
-
- smtppw.setText(bundle.getString("ControlPanel_Userproperties.smtppw.text")); // NOI18N
- smtppw.setName("smtppw"); // NOI18N
-
- smtptls.setText(bundle.getString("ControlPanel_Userproperties.smtptls.text")); // NOI18N
- smtptls.setName("smtptls"); // NOI18N
-
- smtps.setText(bundle.getString("ControlPanel_Userproperties.smtps.text")); // NOI18N
- smtps.setName("smtps"); // NOI18N
-
- jButton4.setText(bundle.getString("ControlPanel_Userproperties.jButton4.text")); // NOI18N
- jButton4.setName("jButton4"); // NOI18N
- jButton4.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton4ActionPerformed(evt);
- }
- });
-
- javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
- jPanel9.setLayout(jPanel9Layout);
- jPanel9Layout.setHorizontalGroup(
- jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(smtphost, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addComponent(smtptls, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(smtps, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(smtppw, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(smtpuser, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addComponent(jButton4))
- .addContainerGap(153, Short.MAX_VALUE))
- );
- jPanel9Layout.setVerticalGroup(
- jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel9Layout.createSequentialGroup()
- .addComponent(smtpuser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(smtppw, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel3)
- .addComponent(smtptls)
- .addComponent(smtps)))
- .addComponent(smtphost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jButton4)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
-
- jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel4.border.title"))); // NOI18N
- jPanel4.setName("jPanel4"); // NOI18N
- jPanel4.setLayout(new java.awt.BorderLayout());
-
- saveformat.set_Label(bundle.getString("ControlPanel_Userproperties.saveformat._Label")); // NOI18N
- saveformat.setName("saveformat"); // NOI18N
- jPanel4.add(saveformat, java.awt.BorderLayout.CENTER);
-
- jScrollPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
- jScrollPane1.setName("jScrollPane1"); // NOI18N
-
- jTextPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 3, 1));
- jTextPane1.setText(bundle.getString("ControlPanel_Userproperties.jTextPane1.text")); // NOI18N
- jTextPane1.setName("jTextPane1"); // NOI18N
- jTextPane1.setOpaque(false);
- jScrollPane1.setViewportView(jTextPane1);
-
- jPanel4.add(jScrollPane1, java.awt.BorderLayout.PAGE_START);
-
- jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel10.border.title"))); // NOI18N
- jPanel10.setName("jPanel10"); // NOI18N
-
- dtabankid.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankid._Label")); // NOI18N
- dtabankid.setName("dtabankid"); // NOI18N
-
- dtabankaccount.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankaccount._Label")); // NOI18N
- dtabankaccount.setName("dtabankaccount"); // NOI18N
-
- dtabankname.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankname._Label")); // NOI18N
- dtabankname.setName("dtabankname"); // NOI18N
-
- dtabankcountry.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankcountry._Label")); // NOI18N
- dtabankcountry.setName("dtabankcountry"); // NOI18N
-
- jLabel4.setText(bundle.getString("ControlPanel_Userproperties.jLabel4.text")); // NOI18N
- jLabel4.setName("jLabel4"); // NOI18N
-
- jScrollPane2.setName("jScrollPane2"); // NOI18N
-
- dtausage0.setText("Invoice from {item.dateadded} ref {item.cnumber}"); // NOI18N
- dtausage0.setName("dtausage0"); // NOI18N
- jScrollPane2.setViewportView(dtausage0);
-
- javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
- jPanel10.setLayout(jPanel10Layout);
- jPanel10Layout.setHorizontalGroup(
- jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel10Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addGroup(jPanel10Layout.createSequentialGroup()
- .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jScrollPane2))
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
- .addComponent(dtabankid, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
+ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ jPanel1 = new javax.swing.JPanel();
+ jPanel2 = new javax.swing.JPanel();
+ productstobillsproperties = new javax.swing.JPanel();
+ cname = new javax.swing.JCheckBox();
+ description = new javax.swing.JCheckBox();
+ cnumber = new javax.swing.JCheckBox();
+ reference = new javax.swing.JCheckBox();
+ ean = new javax.swing.JCheckBox();
+ jButton3 = new javax.swing.JButton();
+ defs = new javax.swing.JPanel();
+ defcount = new mpv5.ui.beans.LabeledTextField();
+ defunit = new mpv5.ui.beans.LabeledTextField();
+ deftax = new mpv5.ui.beans.LabeledCombobox();
+ shiptax = new mpv5.ui.beans.LabeledCombobox();
+ format = new mpv5.ui.beans.LabeledTextField();
+ jPanel3 = new javax.swing.JPanel();
+ columnquantity = new javax.swing.JCheckBox();
+ columnmeasure = new javax.swing.JCheckBox();
+ hidetaxcolumn = new javax.swing.JCheckBox();
+ hidediscountcolumn = new javax.swing.JCheckBox();
+ hideproductscolumn = new javax.swing.JCheckBox();
+ showoptionalcolumn = new javax.swing.JCheckBox();
+ jPanel9 = new javax.swing.JPanel();
+ smtphost = new mpv5.ui.beans.LabeledTextField();
+ smtpuser = new mpv5.ui.beans.LabeledTextField();
+ jLabel3 = new javax.swing.JLabel();
+ smtppw = new javax.swing.JPasswordField();
+ smtptls = new javax.swing.JCheckBox();
+ smtps = new javax.swing.JCheckBox();
+ jButton4 = new javax.swing.JButton();
+ jPanel4 = new javax.swing.JPanel();
+ saveformat = new mpv5.ui.beans.LabeledTextField();
+ jScrollPane1 = new javax.swing.JScrollPane();
+ jTextPane1 = new javax.swing.JTextPane();
+ jPanel10 = new javax.swing.JPanel();
+ dtabankid = new mpv5.ui.beans.LabeledTextField();
+ dtabankaccount = new mpv5.ui.beans.LabeledTextField();
+ dtabankname = new mpv5.ui.beans.LabeledTextField();
+ dtabankcountry = new mpv5.ui.beans.LabeledTextField();
+ jLabel4 = new javax.swing.JLabel();
+ jScrollPane2 = new javax.swing.JScrollPane();
+ dtausage0 = new javax.swing.JTextPane();
+ jPanel5 = new javax.swing.JPanel();
+ tabs = new javax.swing.JCheckBox();
+ supresscurrencysymbols = new javax.swing.JCheckBox();
+ ordersoverproducts = new javax.swing.JCheckBox();
+ companiesovernames = new javax.swing.JCheckBox();
+ pasten = new javax.swing.JCheckBox();
+ nowarnings = new javax.swing.JCheckBox();
+ unpaidbills = new javax.swing.JCheckBox();
+ views = new javax.swing.JCheckBox();
+ jPanel7 = new javax.swing.JPanel();
+ groupl = new javax.swing.JLabel();
+ jPanel8 = new javax.swing.JPanel();
+ nocount = new javax.swing.JCheckBox();
+ resolv = new javax.swing.JCheckBox();
+ remoteurl = new javax.swing.JCheckBox();
+ noblank = new javax.swing.JCheckBox();
+ jPanel6 = new javax.swing.JPanel();
+ jButton2 = new javax.swing.JButton();
+ jButton1 = new javax.swing.JButton();
+ jButton5 = new javax.swing.JButton();
+
+ setBackground(new java.awt.Color(255, 255, 255));
+ setName("Form"); // NOI18N
+ setLayout(new java.awt.BorderLayout());
+
+ jPanel1.setBackground(new java.awt.Color(255, 255, 255));
+ java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
+ jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel1.border.title"))); // NOI18N
+ jPanel1.setName("jPanel1"); // NOI18N
+
+ jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel2.border.title"))); // NOI18N
+ jPanel2.setName("jPanel2"); // NOI18N
+
+ productstobillsproperties.setName("productstobillsproperties"); // NOI18N
+
+ cname.setText(bundle.getString("ControlPanel_Userproperties.cname.text")); // NOI18N
+ cname.setName("cname"); // NOI18N
+
+ description.setText(bundle.getString("ControlPanel_Userproperties.description.text")); // NOI18N
+ description.setName("description"); // NOI18N
+
+ cnumber.setText(bundle.getString("ControlPanel_Userproperties.cnumber.text")); // NOI18N
+ cnumber.setName("cnumber"); // NOI18N
+
+ reference.setText(bundle.getString("ControlPanel_Userproperties.reference.text")); // NOI18N
+ reference.setName("reference"); // NOI18N
+
+ ean.setText(bundle.getString("ControlPanel_Userproperties.ean.text")); // NOI18N
+ ean.setName("ean"); // NOI18N
+
+ jButton3.setText(bundle.getString("ControlPanel_Userproperties.jButton3.text")); // NOI18N
+ jButton3.setName("jButton3"); // NOI18N
+ jButton3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton3ActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout productstobillspropertiesLayout = new javax.swing.GroupLayout(productstobillsproperties);
+ productstobillsproperties.setLayout(productstobillspropertiesLayout);
+ productstobillspropertiesLayout.setHorizontalGroup(
+ productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(productstobillspropertiesLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(cnumber, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
+ .addComponent(description, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
+ .addComponent(cname, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE))
+ .addGap(8, 8, 8)
+ .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(ean, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)
+ .addComponent(reference, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)
+ .addComponent(jButton3))
+ .addContainerGap())
+ );
+ productstobillspropertiesLayout.setVerticalGroup(
+ productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(productstobillspropertiesLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(cname)
+ .addComponent(ean))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(description)
+ .addComponent(reference))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(productstobillspropertiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(cnumber)
+ .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+
+ defs.setName("defs"); // NOI18N
+
+ defcount.set_Label(bundle.getString("ControlPanel_Userproperties.defcount._Label")); // NOI18N
+ defcount.set_Text(bundle.getString("ControlPanel_Userproperties.defcount._Text")); // NOI18N
+ defcount.setName("defcount"); // NOI18N
+
+ defunit.set_Label(bundle.getString("ControlPanel_Userproperties.defunit._Label")); // NOI18N
+ defunit.set_Text(bundle.getString("ControlPanel_Userproperties.defunit._Text")); // NOI18N
+ defunit.setName("defunit"); // NOI18N
+
+ deftax.set_Label(bundle.getString("ControlPanel_Userproperties.deftax._Label")); // NOI18N
+ deftax.setName("deftax"); // NOI18N
+
+ shiptax.set_Label(bundle.getString("ControlPanel_Userproperties.shiptax._Label")); // NOI18N
+ shiptax.setName("shiptax"); // NOI18N
+
+ javax.swing.GroupLayout defsLayout = new javax.swing.GroupLayout(defs);
+ defs.setLayout(defsLayout);
+ defsLayout.setHorizontalGroup(
+ defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(defsLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(defunit, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(18, 18, 18)
+ .addComponent(defcount, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(shiptax, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
+ .addComponent(deftax, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)))
+ );
+ defsLayout.setVerticalGroup(
+ defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(defsLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(defsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(deftax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(defcount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(defunit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(shiptax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+
+ format.set_Label(bundle.getString("ControlPanel_Userproperties.format._Label")); // NOI18N
+ format.setName("format"); // NOI18N
+
+ javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
+ jPanel2.setLayout(jPanel2Layout);
+ jPanel2Layout.setHorizontalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
+ .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(productstobillsproperties, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addGap(10, 10, 10)
+ .addComponent(format, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE))
+ .addComponent(defs, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addContainerGap())
+ );
+ jPanel2Layout.setVerticalGroup(
+ jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel2Layout.createSequentialGroup()
+ .addComponent(productstobillsproperties, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(format, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(14, 14, 14)
+ .addComponent(defs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ );
+
+ jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel3.border.title"))); // NOI18N
+ jPanel3.setName("jPanel3"); // NOI18N
+ jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.PAGE_AXIS));
+
+ columnquantity.setText(bundle.getString("ControlPanel_Userproperties.columnquantity.text")); // NOI18N
+ columnquantity.setName("columnquantity"); // NOI18N
+ jPanel3.add(columnquantity);
+
+ columnmeasure.setText(bundle.getString("ControlPanel_Userproperties.columnmeasure.text")); // NOI18N
+ columnmeasure.setName("columnmeasure"); // NOI18N
+ jPanel3.add(columnmeasure);
+
+ hidetaxcolumn.setText(bundle.getString("ControlPanel_Userproperties.hidetaxcolumn.text")); // NOI18N
+ hidetaxcolumn.setName("hidetaxcolumn"); // NOI18N
+ jPanel3.add(hidetaxcolumn);
+
+ hidediscountcolumn.setText(bundle.getString("ControlPanel_Userproperties.hidediscountcolumn.text")); // NOI18N
+ hidediscountcolumn.setName("hidediscountcolumn"); // NOI18N
+ jPanel3.add(hidediscountcolumn);
+
+ hideproductscolumn.setText(bundle.getString("ControlPanel_Userproperties.hideproductscolumn.text")); // NOI18N
+ hideproductscolumn.setName("hideproductscolumn"); // NOI18N
+ jPanel3.add(hideproductscolumn);
+
+ showoptionalcolumn.setText(bundle.getString("ControlPanel_Userproperties.showoptionalcolumn.text")); // NOI18N
+ showoptionalcolumn.setName("showoptionalcolumn"); // NOI18N
+ jPanel3.add(showoptionalcolumn);
+
+ jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel9.border.title"))); // NOI18N
+ jPanel9.setName("jPanel9"); // NOI18N
+
+ smtphost.set_Label(bundle.getString("ControlPanel_Userproperties.smtphost._Label")); // NOI18N
+ smtphost.setName("smtphost"); // NOI18N
+
+ smtpuser.set_Label(bundle.getString("ControlPanel_Userproperties.smtpuser._Label")); // NOI18N
+ smtpuser.setName("smtpuser"); // NOI18N
+
+ jLabel3.setText(bundle.getString("ControlPanel_Userproperties.jLabel3.text")); // NOI18N
+ jLabel3.setName("jLabel3"); // NOI18N
+
+ smtppw.setText(bundle.getString("ControlPanel_Userproperties.smtppw.text")); // NOI18N
+ smtppw.setName("smtppw"); // NOI18N
+
+ smtptls.setText(bundle.getString("ControlPanel_Userproperties.smtptls.text")); // NOI18N
+ smtptls.setName("smtptls"); // NOI18N
+
+ smtps.setText(bundle.getString("ControlPanel_Userproperties.smtps.text")); // NOI18N
+ smtps.setName("smtps"); // NOI18N
+
+ jButton4.setText(bundle.getString("ControlPanel_Userproperties.jButton4.text")); // NOI18N
+ jButton4.setName("jButton4"); // NOI18N
+ jButton4.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton4ActionPerformed(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
+ jPanel9.setLayout(jPanel9Layout);
+ jPanel9Layout.setHorizontalGroup(
+ jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addComponent(smtphost, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addComponent(smtptls, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(dtabankname, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
- .addComponent(dtabankaccount, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(smtps, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(dtabankcountry, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
- .addContainerGap(122, Short.MAX_VALUE))
- );
- jPanel10Layout.setVerticalGroup(
- jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel10Layout.createSequentialGroup()
- .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(dtabankid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(dtabankname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(dtabankaccount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(dtabankcountry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
- .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))
- .addContainerGap())
- );
-
- jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel5.border.title"))); // NOI18N
- jPanel5.setName("jPanel5"); // NOI18N
- jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS));
-
- tabs.setText(bundle.getString("ControlPanel_Userproperties.tabs.text")); // NOI18N
- tabs.setName("tabs"); // NOI18N
- jPanel5.add(tabs);
-
- supresscurrencysymbols.setText(bundle.getString("ControlPanel_Userproperties.supresscurrencysymbols.text")); // NOI18N
- supresscurrencysymbols.setName("supresscurrencysymbols"); // NOI18N
- jPanel5.add(supresscurrencysymbols);
-
- ordersoverproducts.setText(bundle.getString("ControlPanel_Userproperties.ordersoverproducts.text")); // NOI18N
- ordersoverproducts.setName("ordersoverproducts"); // NOI18N
- jPanel5.add(ordersoverproducts);
-
- companiesovernames.setText(bundle.getString("ControlPanel_Userproperties.companiesovernames.text")); // NOI18N
- companiesovernames.setName("companiesovernames"); // NOI18N
- jPanel5.add(companiesovernames);
-
- pasten.setText(bundle.getString("ControlPanel_Userproperties.pasten.text")); // NOI18N
- pasten.setName("pasten"); // NOI18N
- jPanel5.add(pasten);
-
- nowarnings.setText(bundle.getString("ControlPanel_Userproperties.nowarnings.text")); // NOI18N
- nowarnings.setName("nowarnings"); // NOI18N
- jPanel5.add(nowarnings);
-
- unpaidbills.setText(bundle.getString("ControlPanel_Userproperties.unpaidbills.text")); // NOI18N
- unpaidbills.setName("unpaidbills"); // NOI18N
- jPanel5.add(unpaidbills);
-
- views.setText(bundle.getString("ControlPanel_Userproperties.views.text")); // NOI18N
- views.setName("views"); // NOI18N
- jPanel5.add(views);
-
- jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel7.border.title"))); // NOI18N
- jPanel7.setName("jPanel7"); // NOI18N
- jPanel7.setLayout(new java.awt.BorderLayout());
-
- groupl.setFont(groupl.getFont().deriveFont(groupl.getFont().getStyle() | java.awt.Font.BOLD, groupl.getFont().getSize()+1));
- groupl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- groupl.setText(bundle.getString("ControlPanel_Userproperties.groupl.text")); // NOI18N
- groupl.setName("groupl"); // NOI18N
- jPanel7.add(groupl, java.awt.BorderLayout.CENTER);
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(smtppw, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(smtpuser, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addComponent(jButton4))
+ .addContainerGap(153, Short.MAX_VALUE))
+ );
+ jPanel9Layout.setVerticalGroup(
+ jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel9Layout.createSequentialGroup()
+ .addComponent(smtpuser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(smtppw, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel3)
+ .addComponent(smtptls)
+ .addComponent(smtps)))
+ .addComponent(smtphost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jButton4)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+
+ jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel4.border.title"))); // NOI18N
+ jPanel4.setName("jPanel4"); // NOI18N
+ jPanel4.setLayout(new java.awt.BorderLayout());
+
+ saveformat.set_Label(bundle.getString("ControlPanel_Userproperties.saveformat._Label")); // NOI18N
+ saveformat.setName("saveformat"); // NOI18N
+ jPanel4.add(saveformat, java.awt.BorderLayout.CENTER);
+
+ jScrollPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
+ jScrollPane1.setName("jScrollPane1"); // NOI18N
+
+ jTextPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 3, 1));
+ jTextPane1.setText(bundle.getString("ControlPanel_Userproperties.jTextPane1.text")); // NOI18N
+ jTextPane1.setName("jTextPane1"); // NOI18N
+ jTextPane1.setOpaque(false);
+ jScrollPane1.setViewportView(jTextPane1);
+
+ jPanel4.add(jScrollPane1, java.awt.BorderLayout.PAGE_START);
+
+ jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel10.border.title"))); // NOI18N
+ jPanel10.setName("jPanel10"); // NOI18N
+
+ dtabankid.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankid._Label")); // NOI18N
+ dtabankid.setName("dtabankid"); // NOI18N
+
+ dtabankaccount.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankaccount._Label")); // NOI18N
+ dtabankaccount.setName("dtabankaccount"); // NOI18N
+
+ dtabankname.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankname._Label")); // NOI18N
+ dtabankname.setName("dtabankname"); // NOI18N
+
+ dtabankcountry.set_Label(bundle.getString("ControlPanel_Userproperties.dtabankcountry._Label")); // NOI18N
+ dtabankcountry.setName("dtabankcountry"); // NOI18N
+
+ jLabel4.setText(bundle.getString("ControlPanel_Userproperties.jLabel4.text")); // NOI18N
+ jLabel4.setName("jLabel4"); // NOI18N
+
+ jScrollPane2.setName("jScrollPane2"); // NOI18N
+
+ dtausage0.setText("Invoice from {item.dateadded} ref {item.cnumber}"); // NOI18N
+ dtausage0.setName("dtausage0"); // NOI18N
+ jScrollPane2.setViewportView(dtausage0);
+
+ javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
+ jPanel10.setLayout(jPanel10Layout);
+ jPanel10Layout.setHorizontalGroup(
+ jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel10Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
+ .addGroup(jPanel10Layout.createSequentialGroup()
+ .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jScrollPane2))
+ .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
+ .addComponent(dtabankid, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(dtabankname, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel10Layout.createSequentialGroup()
+ .addComponent(dtabankaccount, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(dtabankcountry, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
+ .addContainerGap(122, Short.MAX_VALUE))
+ );
+ jPanel10Layout.setVerticalGroup(
+ jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel10Layout.createSequentialGroup()
+ .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(dtabankid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(dtabankname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(dtabankaccount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(dtabankcountry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
+ .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))
+ .addContainerGap())
+ );
+
+ jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel5.border.title"))); // NOI18N
+ jPanel5.setName("jPanel5"); // NOI18N
+ jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS));
+
+ tabs.setText(bundle.getString("ControlPanel_Userproperties.tabs.text")); // NOI18N
+ tabs.setName("tabs"); // NOI18N
+ jPanel5.add(tabs);
+
+ supresscurrencysymbols.setText(bundle.getString("ControlPanel_Userproperties.supresscurrencysymbols.text")); // NOI18N
+ supresscurrencysymbols.setName("supresscurrencysymbols"); // NOI18N
+ jPanel5.add(supresscurrencysymbols);
+
+ ordersoverproducts.setText(bundle.getString("ControlPanel_Userproperties.ordersoverproducts.text")); // NOI18N
+ ordersoverproducts.setName("ordersoverproducts"); // NOI18N
+ jPanel5.add(ordersoverproducts);
+
+ companiesovernames.setText(bundle.getString("ControlPanel_Userproperties.companiesovernames.text")); // NOI18N
+ companiesovernames.setName("companiesovernames"); // NOI18N
+ jPanel5.add(companiesovernames);
+
+ pasten.setText(bundle.getString("ControlPanel_Userproperties.pasten.text")); // NOI18N
+ pasten.setName("pasten"); // NOI18N
+ jPanel5.add(pasten);
+
+ nowarnings.setText(bundle.getString("ControlPanel_Userproperties.nowarnings.text")); // NOI18N
+ nowarnings.setName("nowarnings"); // NOI18N
+ jPanel5.add(nowarnings);
+
+ unpaidbills.setText(bundle.getString("ControlPanel_Userproperties.unpaidbills.text")); // NOI18N
+ unpaidbills.setName("unpaidbills"); // NOI18N
+ jPanel5.add(unpaidbills);
+
+ views.setText(bundle.getString("ControlPanel_Userproperties.views.text")); // NOI18N
+ views.setName("views"); // NOI18N
+ jPanel5.add(views);
+
+ jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel7.border.title"))); // NOI18N
+ jPanel7.setName("jPanel7"); // NOI18N
+ jPanel7.setLayout(new java.awt.BorderLayout());
+
+ groupl.setFont(groupl.getFont().deriveFont(groupl.getFont().getStyle() | java.awt.Font.BOLD, groupl.getFont().getSize()+1));
+ groupl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
+ groupl.setText(bundle.getString("ControlPanel_Userproperties.groupl.text")); // NOI18N
+ groupl.setName("groupl"); // NOI18N
+ jPanel7.add(groupl, java.awt.BorderLayout.CENTER);
+
+ jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("ControlPanel_Userproperties.jPanel8.border.title"))); // NOI18N
+ jPanel8.setName("jPanel8"); // NOI18N
+
+ nocount.setText(bundle.getString("ControlPanel_Userproperties.nocount.text")); // NOI18N
+ nocount.setName("nocount"); // NOI18N
+
+ resolv.setText(bundle.getString("ControlPanel_Userproperties.resolv.text")); // NOI18N
+ resolv.setName("resolv"); // NOI18N
+
+ remoteurl.setText(bundle.getString("ControlPanel_Userproperties.remoteurl.text")); // NOI18N
+ remoteurl.setName("remoteurl"); // NOI18N
+
+ noblank.setText(bundle.getString("ControlPanel_Userproperties.noblank.text")); // NOI18N
+ noblank.setName("noblank"); // NOI18N
+
+ javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
+ jPanel8.setLayout(jPanel8Layout);
+ jPanel8Layout.setHorizontalGroup(
+ jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel8Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(noblank, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(remoteurl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(resolv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(nocount, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ jPanel8Layout.setVerticalGroup(
+ jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel8Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(noblank)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(remoteurl)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(resolv)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(nocount)
+ .addContainerGap(50, Short.MAX_VALUE))
+ );
+
+ javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE))
+ );
+ jPanel1Layout.setVerticalGroup(
+ jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGap(50, 50, 50)
+ .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(50, 50, 50)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)
- .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(17, 17, 17))
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(776, Short.MAX_VALUE)))
- );
-
- add(jPanel1, java.awt.BorderLayout.CENTER);
-
- jPanel6.setBackground(new java.awt.Color(255, 255, 255));
- jPanel6.setName("jPanel6"); // NOI18N
- jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
-
- jButton2.setText(bundle.getString("ControlPanel_Userproperties.jButton2.text")); // NOI18N
- jButton2.setName("jButton2"); // NOI18N
- jButton2.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton2ActionPerformed(evt);
- }
- });
- jPanel6.add(jButton2);
-
- jButton1.setText(bundle.getString("ControlPanel_Userproperties.jButton1.text")); // NOI18N
- jButton1.setName("jButton1"); // NOI18N
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- jPanel6.add(jButton1);
-
- jButton5.setText(bundle.getString("ControlPanel_Userproperties.jButton5.text")); // NOI18N
- jButton5.setName("jButton5"); // NOI18N
- jButton5.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton5ActionPerformed(evt);
- }
- });
- jPanel6.add(jButton5);
-
- add(jPanel6, java.awt.BorderLayout.SOUTH);
- }// </editor-fold>//GEN-END:initComponents
+ .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(886, Short.MAX_VALUE)))
+ );
+
+ add(jPanel1, java.awt.BorderLayout.CENTER);
+
+ jPanel6.setBackground(new java.awt.Color(255, 255, 255));
+ jPanel6.setName("jPanel6"); // NOI18N
+ jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
+
+ jButton2.setText(bundle.getString("ControlPanel_Userproperties.jButton2.text")); // NOI18N
+ jButton2.setName("jButton2"); // NOI18N
+ jButton2.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton2ActionPerformed(evt);
+ }
+ });
+ jPanel6.add(jButton2);
+
+ jButton1.setText(bundle.getString("ControlPanel_Userproperties.jButton1.text")); // NOI18N
+ jButton1.setName("jButton1"); // NOI18N
+ jButton1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton1ActionPerformed(evt);
+ }
+ });
+ jPanel6.add(jButton1);
+
+ jButton5.setText(bundle.getString("ControlPanel_Userproperties.jButton5.text")); // NOI18N
+ jButton5.setName("jButton5"); // NOI18N
+ jButton5.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton5ActionPerformed(evt);
+ }
+ });
+ jPanel6.add(jButton5);
+
+ add(jPanel6, java.awt.BorderLayout.SOUTH);
+ }// </editor-fold>//GEN-END:initComponents
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
@@ -574,6 +622,7 @@ private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
setSettings();
mpv5.db.objects.User.getCurrentUser().saveProperties();
+ GlobalSettings.save();
Popup.notice(Messages.RESTART_REQUIRED);
}//GEN-LAST:event_jButton1ActionPerformed
@@ -604,66 +653,70 @@ public String getUname() {
public void reset() {
setValues(oldvalues);
}
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JCheckBox autorev;
- private javax.swing.JCheckBox cname;
- private javax.swing.JCheckBox cnumber;
- private javax.swing.JCheckBox columnmeasure;
- private javax.swing.JCheckBox columnquantity;
- private javax.swing.JCheckBox companiesovernames;
- private mpv5.ui.beans.LabeledTextField defcount;
- private javax.swing.JPanel defs;
- private mpv5.ui.beans.LabeledCombobox deftax;
- private mpv5.ui.beans.LabeledTextField defunit;
- private javax.swing.JCheckBox description;
- private mpv5.ui.beans.LabeledTextField dtabankaccount;
- private mpv5.ui.beans.LabeledTextField dtabankcountry;
- private mpv5.ui.beans.LabeledTextField dtabankid;
- private mpv5.ui.beans.LabeledTextField dtabankname;
- private javax.swing.JTextPane dtausage0;
- private javax.swing.JCheckBox ean;
- private mpv5.ui.beans.LabeledTextField format;
- private javax.swing.JLabel groupl;
- private javax.swing.JCheckBox hidediscountcolumn;
- private javax.swing.JCheckBox hideproductscolumn;
- private javax.swing.JCheckBox hidetaxcolumn;
- private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
- private javax.swing.JButton jButton4;
- private javax.swing.JButton jButton5;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel10;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel4;
- private javax.swing.JPanel jPanel5;
- private javax.swing.JPanel jPanel6;
- private javax.swing.JPanel jPanel7;
- private javax.swing.JPanel jPanel9;
- private javax.swing.JScrollPane jScrollPane1;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JTextPane jTextPane1;
- private javax.swing.JCheckBox nowarnings;
- private javax.swing.JCheckBox ordersoverproducts;
- private javax.swing.JCheckBox pasten;
- private javax.swing.JPanel productstobillsproperties;
- private javax.swing.JCheckBox reference;
- private mpv5.ui.beans.LabeledTextField saveformat;
- private mpv5.ui.beans.LabeledCombobox shiptax;
- private javax.swing.JCheckBox showoptionalcolumn;
- private mpv5.ui.beans.LabeledTextField smtphost;
- private javax.swing.JPasswordField smtppw;
- private javax.swing.JCheckBox smtps;
- private javax.swing.JCheckBox smtptls;
- private mpv5.ui.beans.LabeledTextField smtpuser;
- private javax.swing.JCheckBox supresscurrencysymbols;
- private javax.swing.JCheckBox tabs;
- private javax.swing.JCheckBox unpaidbills;
- private javax.swing.JCheckBox views;
- // End of variables declaration//GEN-END:variables
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JCheckBox cname;
+ private javax.swing.JCheckBox cnumber;
+ private javax.swing.JCheckBox columnmeasure;
+ private javax.swing.JCheckBox columnquantity;
+ private javax.swing.JCheckBox companiesovernames;
+ private mpv5.ui.beans.LabeledTextField defcount;
+ private javax.swing.JPanel defs;
+ private mpv5.ui.beans.LabeledCombobox deftax;
+ private mpv5.ui.beans.LabeledTextField defunit;
+ private javax.swing.JCheckBox description;
+ private mpv5.ui.beans.LabeledTextField dtabankaccount;
+ private mpv5.ui.beans.LabeledTextField dtabankcountry;
+ private mpv5.ui.beans.LabeledTextField dtabankid;
+ private mpv5.ui.beans.LabeledTextField dtabankname;
+ private javax.swing.JTextPane dtausage0;
+ private javax.swing.JCheckBox ean;
+ private mpv5.ui.beans.LabeledTextField format;
+ private javax.swing.JLabel groupl;
+ private javax.swing.JCheckBox hidediscountcolumn;
+ private javax.swing.JCheckBox hideproductscolumn;
+ private javax.swing.JCheckBox hidetaxcolumn;
+ private javax.swing.JButton jButton1;
+ private javax.swing.JButton jButton2;
+ private javax.swing.JButton jButton3;
+ private javax.swing.JButton jButton4;
+ private javax.swing.JButton jButton5;
+ private javax.swing.JLabel jLabel3;
+ private javax.swing.JLabel jLabel4;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel jPanel10;
+ private javax.swing.JPanel jPanel2;
+ private javax.swing.JPanel jPanel3;
+ private javax.swing.JPanel jPanel4;
+ private javax.swing.JPanel jPanel5;
+ private javax.swing.JPanel jPanel6;
+ private javax.swing.JPanel jPanel7;
+ private javax.swing.JPanel jPanel8;
+ private javax.swing.JPanel jPanel9;
+ private javax.swing.JScrollPane jScrollPane1;
+ private javax.swing.JScrollPane jScrollPane2;
+ private javax.swing.JTextPane jTextPane1;
+ private javax.swing.JCheckBox noblank;
+ private javax.swing.JCheckBox nocount;
+ private javax.swing.JCheckBox nowarnings;
+ private javax.swing.JCheckBox ordersoverproducts;
+ private javax.swing.JCheckBox pasten;
+ private javax.swing.JPanel productstobillsproperties;
+ private javax.swing.JCheckBox reference;
+ private javax.swing.JCheckBox remoteurl;
+ private javax.swing.JCheckBox resolv;
+ private mpv5.ui.beans.LabeledTextField saveformat;
+ private mpv5.ui.beans.LabeledCombobox shiptax;
+ private javax.swing.JCheckBox showoptionalcolumn;
+ private mpv5.ui.beans.LabeledTextField smtphost;
+ private javax.swing.JPasswordField smtppw;
+ private javax.swing.JCheckBox smtps;
+ private javax.swing.JCheckBox smtptls;
+ private mpv5.ui.beans.LabeledTextField smtpuser;
+ private javax.swing.JCheckBox supresscurrencysymbols;
+ private javax.swing.JCheckBox tabs;
+ private javax.swing.JCheckBox unpaidbills;
+ private javax.swing.JCheckBox views;
+ // End of variables declaration//GEN-END:variables
private void setSettings() {
@@ -685,7 +738,7 @@ private void setSettings() {
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "hidediscountcolumn", hidediscountcolumn.isSelected());
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "showoptionalcolumn", showoptionalcolumn.isSelected());
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "supresscurrencysymbols", supresscurrencysymbols.isSelected());
- mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "autocreaterevenue", autorev.isSelected());
+
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "ordersoverproducts", ordersoverproducts.isSelected());
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "companiesovernames", companiesovernames.isSelected());
mpv5.db.objects.User.getCurrentUser().getProperties().changeProperty("org.openyabs.uiproperty", "pasten", pasten.isSelected());
@@ -714,7 +767,13 @@ private void setSettings() {
mpv5.db.objects.User.getCurrentUser().defineDTAConfig();
} catch (Exception e) {
Log.Debug(e);
+ Notificator.raiseNotification(e);
}
+ GlobalSettings.setProperty("org.openyabs.exportproperty.hidecountfortext", String.valueOf(nocount.isSelected()));
+ GlobalSettings.setProperty("org.openyabs.exportproperty.productsresolved", String.valueOf(resolv.isSelected()));
+ GlobalSettings.setProperty("org.openyabs.exportproperty.blankunusedfields.disable", String.valueOf(noblank.isSelected()));
+ GlobalSettings.setProperty("org.openyabs.exportproperty.loadremoteoodocbyurl", String.valueOf(remoteurl.isSelected()));
+
loadSettings();
}
@@ -735,7 +794,6 @@ private void loadSettings() {
hideproductscolumn.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "hideproductscolumn"));
showoptionalcolumn.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "showoptionalcolumn"));
supresscurrencysymbols.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "supresscurrencysymbols"));
- autorev.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "autocreaterevenue"));
ordersoverproducts.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "ordersoverproducts"));
companiesovernames.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "companiesovernames"));
hidetaxcolumn.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("org.openyabs.uiproperty", "hidetaxcolumn"));
@@ -811,6 +869,11 @@ private void loadSettings() {
if (mpv5.db.objects.User.getCurrentUser().getProperties().hasProperty("smtp.host.usesmpts")) {
smtps.setSelected(mpv5.db.objects.User.getCurrentUser().getProperties().getProperty("smtp.host.usesmpts", false));
}
+
+ nocount.setSelected(GlobalSettings.getBooleanProperty("org.openyabs.exportproperty.hidecountfortext"));
+ resolv.setSelected(GlobalSettings.getBooleanProperty("org.openyabs.exportproperty.productsresolved"));
+ noblank.setSelected(GlobalSettings.getBooleanProperty("org.openyabs.exportproperty.blankunusedfields.disable"));
+ remoteurl.setSelected(GlobalSettings.getBooleanProperty("org.openyabs.exportproperty.loadremoteoodocbyurl"));
try {
Runnable runnable = new Runnable() {

0 comments on commit 1efdd9e

Please sign in to comment.