BF [ 1770177 ] Inventory Move Locator Error
This commit is contained in:
parent
7a2e14d6b2
commit
9bc4f7c580
|
@ -371,7 +371,7 @@ public class VPAttribute extends JComponent
|
||||||
{
|
{
|
||||||
m_text.setText(vad.getM_AttributeSetInstanceName());
|
m_text.setText(vad.getM_AttributeSetInstanceName());
|
||||||
M_AttributeSetInstance_ID = vad.getM_AttributeSetInstance_ID();
|
M_AttributeSetInstance_ID = vad.getM_AttributeSetInstance_ID();
|
||||||
if (m_GridTab != null)
|
if (m_GridTab != null && !vad.isNew())
|
||||||
m_GridTab.setValue("M_Locator_ID", vad.getM_Locator_ID());
|
m_GridTab.setValue("M_Locator_ID", vad.getM_Locator_ID());
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,6 +138,8 @@ public class VPAttributeDialog extends CDialog
|
||||||
private boolean m_productWindow = false;
|
private boolean m_productWindow = false;
|
||||||
/** Change */
|
/** Change */
|
||||||
private boolean m_changed = false;
|
private boolean m_changed = false;
|
||||||
|
/** Was New ASI was created ? */
|
||||||
|
private boolean m_newASI = false;
|
||||||
|
|
||||||
private CLogger log = CLogger.getCLogger(getClass());
|
private CLogger log = CLogger.getCLogger(getClass());
|
||||||
/** Row Counter */
|
/** Row Counter */
|
||||||
|
@ -522,6 +524,7 @@ public class VPAttributeDialog extends CDialog
|
||||||
else if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL))
|
else if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL))
|
||||||
{
|
{
|
||||||
m_changed = false;
|
m_changed = false;
|
||||||
|
m_newASI = false;
|
||||||
m_M_AttributeSetInstance_ID = 0;
|
m_M_AttributeSetInstance_ID = 0;
|
||||||
m_M_Locator_ID = 0;
|
m_M_Locator_ID = 0;
|
||||||
dispose();
|
dispose();
|
||||||
|
@ -702,6 +705,7 @@ public class VPAttributeDialog extends CDialog
|
||||||
m_masi.save ();
|
m_masi.save ();
|
||||||
m_M_AttributeSetInstance_ID = m_masi.getM_AttributeSetInstance_ID ();
|
m_M_AttributeSetInstance_ID = m_masi.getM_AttributeSetInstance_ID ();
|
||||||
m_M_AttributeSetInstanceName = m_masi.getDescription();
|
m_M_AttributeSetInstanceName = m_masi.getDescription();
|
||||||
|
m_newASI = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save Instance Attributes
|
// Save Instance Attributes
|
||||||
|
@ -791,6 +795,13 @@ public class VPAttributeDialog extends CDialog
|
||||||
{
|
{
|
||||||
return m_changed;
|
return m_changed;
|
||||||
} // isChanged
|
} // isChanged
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if new ASI was created
|
||||||
|
*/
|
||||||
|
public boolean isNew() {
|
||||||
|
return m_newASI;
|
||||||
|
}
|
||||||
|
|
||||||
} // VPAttributeDialog
|
} // VPAttributeDialog
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue