BF [ 1704802 ] 2Pack is not exporting/importing column version

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1704802&group_id=176962
This commit is contained in:
teo_sarca 2007-04-21 11:39:19 +00:00
parent 88fcfc9f51
commit d24494c69c
2 changed files with 5 additions and 4 deletions

View File

@ -910,7 +910,8 @@ public class PackInHandler extends DefaultHandler {
m_Column.setValueMax(atts.getValue("ValueMax")); m_Column.setValueMax(atts.getValue("ValueMax"));
if (atts.getValue("ValueMin") != null) if (atts.getValue("ValueMin") != null)
m_Column.setValueMin(atts.getValue("ValueMin")); m_Column.setValueMin(atts.getValue("ValueMin"));
m_Column.setVersion(new BigDecimal("0.0")); if (atts.getValue("Version") != null)
m_Column.setVersion(new BigDecimal(atts.getValue("Version")));
// Setup Element. // Setup Element.
id = get_IDWithColumn("AD_Element", "ColumnName", m_Column.getColumnName()); id = get_IDWithColumn("AD_Element", "ColumnName", m_Column.getColumnName());
@ -2236,7 +2237,7 @@ public class PackInHandler extends DefaultHandler {
if (DisplayId ==0){ if (DisplayId ==0){
m_Column = new MColumn(m_ctx,0,m_trxName); m_Column = new MColumn(m_ctx,0,m_trxName);
m_Column.setAD_Table_ID(tableId); m_Column.setAD_Table_ID(tableId);
m_Column.setVersion(new BigDecimal("1")); // m_Column.setVersion(new BigDecimal("1")); // use constructor value
m_Column.setColumnName(name); m_Column.setColumnName(name);
m_Column.setName(name); m_Column.setName(name);
m_Column.setAD_Reference_ID(30); m_Column.setAD_Reference_ID(30);
@ -2252,7 +2253,7 @@ public class PackInHandler extends DefaultHandler {
if (keyId ==0){ if (keyId ==0){
m_Column = new MColumn(m_ctx,0,m_trxName); m_Column = new MColumn(m_ctx,0,m_trxName);
m_Column.setAD_Table_ID(tableId); m_Column.setAD_Table_ID(tableId);
m_Column.setVersion(new BigDecimal("1")); //m_Column.setVersion(new BigDecimal("1")); // use constructor value
m_Column.setColumnName(name); m_Column.setColumnName(name);
m_Column.setName(name); m_Column.setName(name);
m_Column.setAD_Reference_ID(30); m_Column.setAD_Reference_ID(30);

View File

@ -2099,7 +2099,7 @@ public class PackOut extends SvrProcess
atts.addAttribute("","","VFormat","CDATA",(m_Column.getVFormat () != null ? m_Column.getVFormat ():"")); atts.addAttribute("","","VFormat","CDATA",(m_Column.getVFormat () != null ? m_Column.getVFormat ():""));
atts.addAttribute("","","ValueMax","CDATA",(m_Column.getValueMax () != null ? m_Column.getValueMax ():"")); atts.addAttribute("","","ValueMax","CDATA",(m_Column.getValueMax () != null ? m_Column.getValueMax ():""));
atts.addAttribute("","","ValueMin","CDATA",(m_Column.getValueMin () != null ? m_Column.getValueMin ():"")); atts.addAttribute("","","ValueMin","CDATA",(m_Column.getValueMin () != null ? m_Column.getValueMin ():""));
atts.addAttribute("","","Value","CDATA",(m_Column.getVersion()!= null ? "" + m_Column.getVersion ():"0.0")); atts.addAttribute("","","Version","CDATA",(m_Column.getVersion()!= null ? "" + m_Column.getVersion ():"0.0"));
return atts; return atts;
} }