Permalink
Browse files

Merge branch 'master' of https://github.com/anti43/openyabs.git

  • Loading branch information...
2 parents aab78d9 + 02e108f commit f85feed18297399db8c8af9c8d100accca863b1d @anti43 committed Aug 24, 2013
View
12 src/mpv5/handler/Scheduler.java
@@ -124,7 +124,9 @@ public void checkForOverdueEvents() {
case 0:
ItemType = "bills";
prop = "hideunpaidbills";
- opens.and(new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
+ opens.or(
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_QUEUED, QueryParameter.EQUALS),
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
use = "usebills";
break;
case 1:
@@ -196,7 +198,9 @@ public void checkForOverdueEvents() {
case 0:
ItemType = "bills";
prop = "hideunpaidbills";
- opens.and(new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
+ opens.or(
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_QUEUED, QueryParameter.EQUALS),
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
use = "usebills";
break;
case 1:
@@ -272,7 +276,9 @@ public void checkForOverdueEvents() {
switch (b) {
case 0:
ItemType = "bills";
- opens.and(new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
+ opens.or(
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_QUEUED, QueryParameter.EQUALS),
+ new QueryParameter(Context.getItem(), "intstatus", Item.STATUS_FINISHED, QueryParameter.EQUALS));
use = "usebills";
break;
case 1:
View
67 src/mpv5/ui/dialogs/ScheduleDayEvent.form
@@ -1,4 +1,4 @@
-<?xml version="1.1" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
@@ -23,7 +23,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,1,113,0,0,1,107"/>
+ <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,1,113,0,0,1,115"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -48,58 +48,59 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="labeledSpinner1" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="114" max="32767" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
+ <Component id="jScrollPane1" alignment="0" pref="0" max="32767" attributes="3"/>
+ <Component id="jLabel3" alignment="1" max="32767" attributes="0"/>
+ <Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
- <Component id="labeledDateChooser1" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="labeledDateChooser2" alignment="0" min="-2" max="-2" attributes="0"/>
+ <Group type="102" alignment="1" attributes="0">
+ <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
+ <Component id="jPanel2" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="0" attributes="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="labeledDateChooser1" max="32767" attributes="0"/>
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="labeledSpinner1" max="32767" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="0" attributes="0">
+ <Component id="labeledCombobox1" min="-2" pref="255" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jButton5" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
+ </Group>
+ <Component id="labeledDateChooser2" alignment="0" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
</Group>
- <EmptySpace pref="117" max="32767" attributes="0"/>
- </Group>
- <Component id="jScrollPane1" alignment="0" pref="351" max="32767" attributes="3"/>
- <Group type="102" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="labeledCombobox1" min="-2" pref="255" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="jButton5" min="-2" max="-2" attributes="0"/>
- <EmptySpace pref="21" max="32767" attributes="0"/>
- </Group>
- <Component id="jLabel3" alignment="1" pref="351" max="32767" attributes="0"/>
- <Group type="102" alignment="1" attributes="0">
- <EmptySpace pref="79" max="32767" attributes="0"/>
- <Component id="jPanel2" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
<Component id="labeledCombobox1" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Group type="103" groupAlignment="2" attributes="0">
<Component id="jLabel1" alignment="2" min="-2" max="-2" attributes="0"/>
<Component id="labeledSpinner1" alignment="2" min="-2" max="-2" attributes="0"/>
</Group>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="labeledDateChooser1" min="-2" max="-2" attributes="0"/>
- <EmptySpace max="-2" attributes="0"/>
- <Component id="labeledDateChooser2" min="-2" max="-2" attributes="0"/>
</Group>
- <Component id="jButton5" min="-2" pref="19" max="-2" attributes="0"/>
+ <Component id="jButton5" alignment="0" min="-2" pref="19" max="-2" attributes="0"/>
</Group>
+ <EmptySpace type="unrelated" max="-2" attributes="0"/>
+ <Component id="labeledDateChooser1" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="labeledDateChooser2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="jScrollPane1" pref="142" max="32767" attributes="0"/>
+ <Component id="jScrollPane1" pref="152" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="jPanel2" min="-2" max="-2" attributes="0"/>
</Group>
View
56 src/mpv5/ui/dialogs/ScheduleDayEvent.java
@@ -12,7 +12,6 @@
import java.util.ArrayList;
import java.util.Date;
-
import mpv5.db.common.Context;
import mpv5.db.common.DatabaseObject;
import mpv5.db.common.NodataFoundException;
@@ -93,7 +92,7 @@ private void initComponents() {
jButton5 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
- java.util.ResourceBundle bundle = mpv5.i18n.LanguageManager.getBundle();
+ java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("mpv5/resources/languages/Panels"); // NOI18N
setTitle(bundle.getString("ScheduleDayEvent.title")); // NOI18N
setAlwaysOnTop(true);
setName("Form"); // NOI18N
@@ -200,29 +199,28 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(labeledSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jLabel1)
- .addContainerGap(96, Short.MAX_VALUE))
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
+ .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(labeledDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(labeledDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(107, Short.MAX_VALUE))
- .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 353, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(labeledCombobox1, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jButton5)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 353, Short.MAX_VALUE)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
- .addContainerGap(47, Short.MAX_VALUE)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
+ .addGap(0, 0, Short.MAX_VALUE)
+ .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(labeledDateChooser1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(labeledSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jLabel1))
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(labeledCombobox1, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jButton5)
+ .addGap(0, 0, Short.MAX_VALUE))
+ .addComponent(labeledDateChooser2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap())))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -233,16 +231,16 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLabel1)
- .addComponent(labeledSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(labeledDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(labeledDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(labeledSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(labeledDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(labeledDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
);
@@ -362,7 +360,7 @@ private void save(Schedule s) {
s.setEventtype(1);
if (s.save()) {
dataOwner = s;
- Popup.notice(Messages.SCHEDULE_NEXT
+ Popup.notice(this,Messages.SCHEDULE_NEXT
+ DateConverter.getDefDateString(DateConverter.addMonths(labeledDateChooser1.getDate(),
s.__getIntervalmonth())));
}
View
4 src/mpv5/ui/dialogs/subcomponents/ItemTextAreaDialog.java
@@ -211,4 +211,8 @@ public JTable getParentTable() {
public void setParentTable(JTable parentTable) {
this.parentTable = parentTable;
}
+
+ public void setQuantity(Double valueOf) {
+ labeledSpinner1.setValue(valueOf);
+ }
}
View
3 src/mpv5/ui/panels/HomeScreen.java
@@ -43,7 +43,6 @@
import mpv5.db.objects.Schedule;
import mpv5.db.objects.SubItem;
import mpv5.db.objects.User;
-import mpv5.globals.Constants;
import mpv5.globals.Messages;
import mpv5.handler.Scheduler;
import mpv5.logging.Log;
@@ -234,7 +233,7 @@ public JTable getOverdue() {
data[i][4] = Item.getTypeString(0);
data[i][5] = 0;
data[i][6] = sched.getIcon();
- ((ImageIcon) data[i][5]).setDescription(Messages.NEW_BILL.toString());
+ ((ImageIcon) data[i][6]).setDescription(Messages.NEW_BILL.toString());
}
}
} else {
View
16 src/mpv5/ui/panels/ItemPanel.form
@@ -91,7 +91,7 @@
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
<Component id="jPanel5" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
- <Component id="jSplitPane2" pref="266" max="32767" attributes="0"/>
+ <Component id="jSplitPane2" pref="246" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -1057,7 +1057,7 @@
<Group type="102" alignment="0" attributes="0">
<Component id="itemPanel" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="jScrollPane3" pref="926" max="32767" attributes="0"/>
+ <Component id="jScrollPane3" pref="928" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -1130,7 +1130,7 @@
<Component id="upItem" min="-2" max="-2" attributes="1"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="upItem1" min="-2" max="-2" attributes="1"/>
- <EmptySpace pref="21" max="32767" attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
@@ -1337,13 +1337,13 @@
<SubComponents>
<Component class="javax.swing.JTable" name="proptable">
<Properties>
- <Property name="autoCreateRowSorter" type="boolean" value="true"/>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="2" rowCount="20">
<Column editable="true" title="" type="java.lang.Object"/>
<Column editable="true" title="" type="java.lang.Object"/>
</Table>
</Property>
+ <Property name="autoCreateRowSorter" type="boolean" value="true"/>
<Property name="name" type="java.lang.String" value="proptable" noResource="true"/>
<Property name="selectionModel" type="javax.swing.ListSelectionModel" editor="org.netbeans.modules.form.editors2.JTableSelectionModelEditor">
<JTableSelectionModel selectionMode="0"/>
@@ -1371,15 +1371,15 @@
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="1" attributes="0">
- <EmptySpace pref="529" max="32767" attributes="0"/>
+ <EmptySpace pref="528" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="addfile" alignment="0" min="-2" pref="24" max="-2" attributes="0"/>
<Component id="removefile" alignment="0" min="-2" pref="24" max="-2" attributes="0"/>
</Group>
</Group>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
- <Component id="jScrollPane2" pref="522" max="32767" attributes="0"/>
+ <Component id="jScrollPane2" pref="521" max="32767" attributes="0"/>
<EmptySpace min="-2" pref="31" max="-2" attributes="0"/>
</Group>
</Group>
@@ -1391,10 +1391,10 @@
<Component id="addfile" min="-2" max="-2" attributes="1"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="removefile" min="-2" max="-2" attributes="1"/>
- <EmptySpace pref="17" max="32767" attributes="0"/>
+ <EmptySpace pref="8" max="32767" attributes="0"/>
</Group>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
- <Component id="jScrollPane2" alignment="1" pref="79" max="32767" attributes="0"/>
+ <Component id="jScrollPane2" alignment="1" pref="70" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
View
1 src/mpv5/ui/panels/ItemPanel.java
@@ -70,7 +70,6 @@
import mpv5.ui.beans.MPCBSelectionChangeReceiver;
import mpv5.ui.dialogs.DialogForFile;
import mpv5.ui.dialogs.ScheduleDayEvent;
-import mpv5.ui.dialogs.Search2;
import mpv5.ui.dialogs.subcomponents.*;
import mpv5.ui.misc.MPTable;
import mpv5.ui.misc.Position;
View
8 src/mpv5/utils/renderer/TextAreaCellEditor.java
@@ -36,6 +36,7 @@
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
+import java.math.BigDecimal;
import javax.swing.DefaultCellEditor;
import javax.swing.JDialog;
@@ -49,8 +50,10 @@
import mpv5.db.objects.Product;
import mpv5.db.objects.SubItem;
import mpv5.ui.dialogs.subcomponents.ActivityTextAreaDialog;
+import mpv5.ui.dialogs.subcomponents.ItemTextAreaDialog;
import mpv5.ui.dialogs.subcomponents.ProductSelectDialog3;
import mpv5.utils.models.MPTableModel;
+import mpv5.utils.numberformat.FormatNumber;
public class TextAreaCellEditor extends DefaultCellEditor implements ActionListener {
protected final static String CANCEL = "CANCEL";
@@ -150,6 +153,11 @@ public void run() {
((ActivityTextAreaDialog) dialog).setSelectedProduct(
Integer.valueOf(table.getValueAt(row, 9).toString()), table.getValueAt(row, column).toString());
}
+ if (dialog instanceof ItemTextAreaDialog && !table.getValueAt(row, 2).equals(0)) {
+ Log.Debug(this, "ItemTextDialog");
+ ((ItemTextAreaDialog) dialog).setQuantity(
+ Double.parseDouble(table.getValueAt(row, 2).toString()));
+ }
dialog.setVisible(true);
}
});

0 comments on commit f85feed

Please sign in to comment.