IDEMPIERE-137 Enhancement of GL Reconciliation
minor improvements, generate model class with new column, organize imports
This commit is contained in:
parent
54a143f241
commit
020458f56d
|
@ -22,7 +22,7 @@ import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Interface for Fact_Reconciliation
|
/** Generated Interface for Fact_Reconciliation
|
||||||
* @author Adempiere (generated)
|
* @author Adempiere (generated)
|
||||||
* @version 360LTS.013
|
* @version 360LTS.015
|
||||||
*/
|
*/
|
||||||
public interface I_Fact_Reconciliation
|
public interface I_Fact_Reconciliation
|
||||||
{
|
{
|
||||||
|
@ -143,6 +143,17 @@ public interface I_Fact_Reconciliation
|
||||||
/** Get Accounting Fact */
|
/** Get Accounting Fact */
|
||||||
public int getFact_Acct_ID();
|
public int getFact_Acct_ID();
|
||||||
|
|
||||||
|
public I_Fact_Acct getFact_Acct() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Fact_Reconciliation_ID */
|
||||||
|
public static final String COLUMNNAME_Fact_Reconciliation_ID = "Fact_Reconciliation_ID";
|
||||||
|
|
||||||
|
/** Set Accounting Fact Reconciliation */
|
||||||
|
public void setFact_Reconciliation_ID (int Fact_Reconciliation_ID);
|
||||||
|
|
||||||
|
/** Get Accounting Fact Reconciliation */
|
||||||
|
public int getFact_Reconciliation_ID();
|
||||||
|
|
||||||
/** Column name IsActive */
|
/** Column name IsActive */
|
||||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
|
|
@ -26,14 +26,14 @@ import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Model for Fact_Reconciliation
|
/** Generated Model for Fact_Reconciliation
|
||||||
* @author Adempiere (generated)
|
* @author Adempiere (generated)
|
||||||
* @version 360LTS.013 - $Id$ */
|
* @version 360LTS.015 - $Id$ */
|
||||||
public class X_Fact_Reconciliation extends PO implements I_Fact_Reconciliation, I_Persistent
|
public class X_Fact_Reconciliation extends PO implements I_Fact_Reconciliation, I_Persistent
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20111102L;
|
private static final long serialVersionUID = 20120229L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_Fact_Reconciliation (Properties ctx, int Fact_Reconciliation_ID, String trxName)
|
public X_Fact_Reconciliation (Properties ctx, int Fact_Reconciliation_ID, String trxName)
|
||||||
|
@ -42,6 +42,7 @@ public class X_Fact_Reconciliation extends PO implements I_Fact_Reconciliation,
|
||||||
/** if (Fact_Reconciliation_ID == 0)
|
/** if (Fact_Reconciliation_ID == 0)
|
||||||
{
|
{
|
||||||
setFact_Acct_ID (0);
|
setFact_Acct_ID (0);
|
||||||
|
setFact_Reconciliation_ID (0);
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,6 +157,11 @@ public class X_Fact_Reconciliation extends PO implements I_Fact_Reconciliation,
|
||||||
return (Timestamp)get_Value(COLUMNNAME_DateAcct);
|
return (Timestamp)get_Value(COLUMNNAME_DateAcct);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public I_Fact_Acct getFact_Acct() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (I_Fact_Acct)MTable.get(getCtx(), I_Fact_Acct.Table_Name)
|
||||||
|
.getPO(getFact_Acct_ID(), get_TrxName()); }
|
||||||
|
|
||||||
/** Set Accounting Fact.
|
/** Set Accounting Fact.
|
||||||
@param Fact_Acct_ID Accounting Fact */
|
@param Fact_Acct_ID Accounting Fact */
|
||||||
public void setFact_Acct_ID (int Fact_Acct_ID)
|
public void setFact_Acct_ID (int Fact_Acct_ID)
|
||||||
|
@ -184,6 +190,26 @@ public class X_Fact_Reconciliation extends PO implements I_Fact_Reconciliation,
|
||||||
return new KeyNamePair(get_ID(), String.valueOf(getFact_Acct_ID()));
|
return new KeyNamePair(get_ID(), String.valueOf(getFact_Acct_ID()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set Accounting Fact Reconciliation.
|
||||||
|
@param Fact_Reconciliation_ID Accounting Fact Reconciliation */
|
||||||
|
public void setFact_Reconciliation_ID (int Fact_Reconciliation_ID)
|
||||||
|
{
|
||||||
|
if (Fact_Reconciliation_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_Fact_Reconciliation_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_Fact_Reconciliation_ID, Integer.valueOf(Fact_Reconciliation_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Accounting Fact Reconciliation.
|
||||||
|
@return Accounting Fact Reconciliation */
|
||||||
|
public int getFact_Reconciliation_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Reconciliation_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Match Code.
|
/** Set Match Code.
|
||||||
@param MatchCode
|
@param MatchCode
|
||||||
String identifying related accounting facts
|
String identifying related accounting facts
|
||||||
|
|
|
@ -9,9 +9,6 @@ import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
import java.beans.VetoableChangeListener;
|
import java.beans.VetoableChangeListener;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
@ -38,19 +35,14 @@ import org.compiere.grid.ed.VCheckBox;
|
||||||
import org.compiere.grid.ed.VComboBox;
|
import org.compiere.grid.ed.VComboBox;
|
||||||
import org.compiere.grid.ed.VDate;
|
import org.compiere.grid.ed.VDate;
|
||||||
import org.compiere.grid.ed.VLookup;
|
import org.compiere.grid.ed.VLookup;
|
||||||
import org.compiere.minigrid.IDColumn;
|
|
||||||
import org.compiere.minigrid.MiniTable;
|
import org.compiere.minigrid.MiniTable;
|
||||||
import org.compiere.model.MClient;
|
import org.compiere.model.MClient;
|
||||||
import org.compiere.model.MFactReconciliation;
|
|
||||||
import org.compiere.model.MLookup;
|
import org.compiere.model.MLookup;
|
||||||
import org.compiere.model.MLookupFactory;
|
import org.compiere.model.MLookupFactory;
|
||||||
import org.compiere.model.MRole;
|
|
||||||
import org.compiere.model.Query;
|
|
||||||
import org.compiere.swing.CLabel;
|
import org.compiere.swing.CLabel;
|
||||||
import org.compiere.swing.CPanel;
|
import org.compiere.swing.CPanel;
|
||||||
import org.compiere.swing.CTextField;
|
import org.compiere.swing.CTextField;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
|
||||||
import org.compiere.util.DisplayType;
|
import org.compiere.util.DisplayType;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.KeyNamePair;
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
|
@ -8,8 +8,10 @@ import java.util.Calendar;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.adempiere.webui.apps.AEnv;
|
||||||
import org.adempiere.webui.component.Button;
|
import org.adempiere.webui.component.Button;
|
||||||
import org.adempiere.webui.component.Checkbox;
|
import org.adempiere.webui.component.Checkbox;
|
||||||
|
import org.adempiere.webui.component.ConfirmPanel;
|
||||||
import org.adempiere.webui.component.Grid;
|
import org.adempiere.webui.component.Grid;
|
||||||
import org.adempiere.webui.component.GridFactory;
|
import org.adempiere.webui.component.GridFactory;
|
||||||
import org.adempiere.webui.component.Label;
|
import org.adempiere.webui.component.Label;
|
||||||
|
@ -22,7 +24,6 @@ import org.adempiere.webui.component.Row;
|
||||||
import org.adempiere.webui.component.Rows;
|
import org.adempiere.webui.component.Rows;
|
||||||
import org.adempiere.webui.component.Textbox;
|
import org.adempiere.webui.component.Textbox;
|
||||||
import org.adempiere.webui.component.WListbox;
|
import org.adempiere.webui.component.WListbox;
|
||||||
import org.adempiere.webui.component.ConfirmPanel;
|
|
||||||
import org.adempiere.webui.editor.WDateEditor;
|
import org.adempiere.webui.editor.WDateEditor;
|
||||||
import org.adempiere.webui.editor.WSearchEditor;
|
import org.adempiere.webui.editor.WSearchEditor;
|
||||||
import org.adempiere.webui.editor.WTableDirEditor;
|
import org.adempiere.webui.editor.WTableDirEditor;
|
||||||
|
@ -34,9 +35,7 @@ import org.adempiere.webui.panel.ADForm;
|
||||||
import org.adempiere.webui.panel.CustomForm;
|
import org.adempiere.webui.panel.CustomForm;
|
||||||
import org.adempiere.webui.panel.IFormController;
|
import org.adempiere.webui.panel.IFormController;
|
||||||
import org.adempiere.webui.session.SessionManager;
|
import org.adempiere.webui.session.SessionManager;
|
||||||
import org.adempiere.webui.apps.AEnv;
|
|
||||||
import org.compiere.apps.form.FactReconcile;
|
import org.compiere.apps.form.FactReconcile;
|
||||||
import org.compiere.minigrid.IDColumn;
|
|
||||||
import org.compiere.model.MClient;
|
import org.compiere.model.MClient;
|
||||||
import org.compiere.model.MLookup;
|
import org.compiere.model.MLookup;
|
||||||
import org.compiere.model.MLookupFactory;
|
import org.compiere.model.MLookupFactory;
|
||||||
|
|
|
@ -5,13 +5,9 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.Calendar;
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.table.DefaultTableModel;
|
|
||||||
|
|
||||||
import org.compiere.minigrid.IMiniTable;
|
import org.compiere.minigrid.IMiniTable;
|
||||||
import org.compiere.model.MFactReconciliation;
|
import org.compiere.model.MFactReconciliation;
|
||||||
import org.compiere.model.MRole;
|
import org.compiere.model.MRole;
|
||||||
|
@ -25,7 +21,7 @@ import org.compiere.util.Msg;
|
||||||
public class FactReconcile {
|
public class FactReconcile {
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
public static CLogger log = CLogger.getCLogger(MFactReconciliation.class);
|
public static CLogger log = CLogger.getCLogger(FactReconcile.class);
|
||||||
|
|
||||||
public int m_AD_Client_ID = 0;
|
public int m_AD_Client_ID = 0;
|
||||||
public int m_AD_Org_ID = 0;
|
public int m_AD_Org_ID = 0;
|
||||||
|
|
Loading…
Reference in New Issue