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