Fixed table column display problem in WCreateFrom windows
This commit is contained in:
parent
db100a4f10
commit
4e59c43464
|
@ -574,6 +574,7 @@ public abstract class WCreateFrom extends Window
|
||||||
*/
|
*/
|
||||||
protected void loadTableOIS (Vector<Vector<Object>> data)
|
protected void loadTableOIS (Vector<Vector<Object>> data)
|
||||||
{
|
{
|
||||||
|
dataTable.clear();
|
||||||
// Header Info
|
// Header Info
|
||||||
Vector<String> columnNames = new Vector<String>(7);
|
Vector<String> columnNames = new Vector<String>(7);
|
||||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||||
|
|
|
@ -51,6 +51,8 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
*/
|
*/
|
||||||
public class WCreateFromInvoice extends WCreateFrom implements ValueChangeListener
|
public class WCreateFromInvoice extends WCreateFrom implements ValueChangeListener
|
||||||
{
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Protected Constructor
|
* Protected Constructor
|
||||||
* @param mTab MTab
|
* @param mTab MTab
|
||||||
|
@ -455,11 +457,11 @@ public class WCreateFromInvoice extends WCreateFrom implements ValueChangeListen
|
||||||
protected void info()
|
protected void info()
|
||||||
{
|
{
|
||||||
ListModelTable model = dataTable.getModel();
|
ListModelTable model = dataTable.getModel();
|
||||||
int rows = model.getSize();
|
int rows = model.getRowCount();
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (int i = 0; i < rows; i++)
|
for (int i = 0; i < rows; i++)
|
||||||
{
|
{
|
||||||
if (dataTable.getItemAtIndex(i).isSelected())
|
if (((Boolean) model.getValueAt(i, 0)).booleanValue())
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
setStatusLine(count, null);
|
setStatusLine(count, null);
|
||||||
|
@ -614,7 +616,8 @@ public class WCreateFromInvoice extends WCreateFrom implements ValueChangeListen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void loadTableOIS(Vector data) {
|
protected void loadTableOIS(Vector data) {
|
||||||
// Header Info
|
dataTable.clear();
|
||||||
|
// Header Info
|
||||||
Vector<String> columnNames = new Vector<String>(7);
|
Vector<String> columnNames = new Vector<String>(7);
|
||||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||||
columnNames.add(Msg.translate(Env.getCtx(), "Quantity"));
|
columnNames.add(Msg.translate(Env.getCtx(), "Quantity"));
|
||||||
|
|
|
@ -34,6 +34,8 @@ import org.compiere.util.Msg;
|
||||||
*/
|
*/
|
||||||
public class WCreateFromRMA extends WCreateFrom
|
public class WCreateFromRMA extends WCreateFrom
|
||||||
{
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param mTab
|
* @param mTab
|
||||||
|
@ -85,6 +87,7 @@ public class WCreateFromRMA extends WCreateFrom
|
||||||
*/
|
*/
|
||||||
protected void loadTableOIS (Vector data)
|
protected void loadTableOIS (Vector data)
|
||||||
{
|
{
|
||||||
|
dataTable.clear();
|
||||||
// Header Info
|
// Header Info
|
||||||
Vector<String> columnNames = new Vector<String>(7);
|
Vector<String> columnNames = new Vector<String>(7);
|
||||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||||
|
|
|
@ -54,6 +54,8 @@ import org.zkoss.zul.Popup;
|
||||||
*/
|
*/
|
||||||
public class WCreateFromShipment extends WCreateFrom implements ValueChangeListener
|
public class WCreateFromShipment extends WCreateFrom implements ValueChangeListener
|
||||||
{
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Protected Constructor
|
* Protected Constructor
|
||||||
* @param mTab MTab
|
* @param mTab MTab
|
||||||
|
@ -75,6 +77,7 @@ public class WCreateFromShipment extends WCreateFrom implements ValueChangeListe
|
||||||
*/
|
*/
|
||||||
protected void loadTableOIS (Vector data)
|
protected void loadTableOIS (Vector data)
|
||||||
{
|
{
|
||||||
|
dataTable.clear();
|
||||||
// Header Info
|
// Header Info
|
||||||
Vector<String> columnNames = new Vector<String>(7);
|
Vector<String> columnNames = new Vector<String>(7);
|
||||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||||
|
|
|
@ -55,6 +55,8 @@ import org.zkoss.zk.ui.event.Events;
|
||||||
*/
|
*/
|
||||||
public class WCreateFromStatement extends WCreateFrom implements ValueChangeListener
|
public class WCreateFromStatement extends WCreateFrom implements ValueChangeListener
|
||||||
{
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Protected Constructor
|
* Protected Constructor
|
||||||
* @param mTab MTab
|
* @param mTab MTab
|
||||||
|
@ -206,6 +208,8 @@ public class WCreateFromStatement extends WCreateFrom implements ValueChangeList
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dataTable.clear();
|
||||||
// Header Info
|
// Header Info
|
||||||
Vector<String> columnNames = new Vector<String>(6);
|
Vector<String> columnNames = new Vector<String>(6);
|
||||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||||
|
|
Loading…
Reference in New Issue