[ 1980626 ] BOM and Formula Info needs translation
http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1980626&group_id=176962
This commit is contained in:
parent
6950827acd
commit
01817f66b4
|
@ -72,18 +72,18 @@ public interface I_T_BOMLine
|
||||||
|
|
||||||
public I_AD_PInstance getAD_PInstance() throws Exception;
|
public I_AD_PInstance getAD_PInstance() throws Exception;
|
||||||
|
|
||||||
/** Column name Implotion */
|
/** Column name Implosion */
|
||||||
public static final String COLUMNNAME_Implotion = "Implotion";
|
public static final String COLUMNNAME_Implosion = "Implosion";
|
||||||
|
|
||||||
/** Set Implotion.
|
/** Set Implosion.
|
||||||
* Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
* Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
||||||
*/
|
*/
|
||||||
public void setImplotion (boolean Implotion);
|
public void setImplosion (boolean Implosion);
|
||||||
|
|
||||||
/** Get Implotion.
|
/** Get Implosion.
|
||||||
* Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
* Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
||||||
*/
|
*/
|
||||||
public boolean isImplotion();
|
public boolean isImplosion();
|
||||||
|
|
||||||
/** Column name LevelNo */
|
/** Column name LevelNo */
|
||||||
public static final String COLUMNNAME_LevelNo = "LevelNo";
|
public static final String COLUMNNAME_LevelNo = "LevelNo";
|
||||||
|
|
|
@ -112,21 +112,21 @@ public class X_T_BOMLine extends PO implements I_T_BOMLine, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set Implotion.
|
/** Set Implosion.
|
||||||
@param Implotion
|
@param Implosion
|
||||||
Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
||||||
*/
|
*/
|
||||||
public void setImplotion (boolean Implotion)
|
public void setImplosion (boolean Implosion)
|
||||||
{
|
{
|
||||||
set_Value (COLUMNNAME_Implotion, Boolean.valueOf(Implotion));
|
set_Value (COLUMNNAME_Implosion, Boolean.valueOf(Implosion));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get Implotion.
|
/** Get Implosion.
|
||||||
@return Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
@return Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.
|
||||||
*/
|
*/
|
||||||
public boolean isImplotion ()
|
public boolean isImplosion ()
|
||||||
{
|
{
|
||||||
Object oo = get_Value(COLUMNNAME_Implotion);
|
Object oo = get_Value(COLUMNNAME_Implosion);
|
||||||
if (oo != null)
|
if (oo != null)
|
||||||
{
|
{
|
||||||
if (oo instanceof Boolean)
|
if (oo instanceof Boolean)
|
||||||
|
|
|
@ -115,7 +115,7 @@ public class VTreeBOM extends CPanel
|
||||||
//private CButton bAdd = new CButton (Env.getImageIcon("StepBack24.gif"));
|
//private CButton bAdd = new CButton (Env.getImageIcon("StepBack24.gif"));
|
||||||
//private CButton bDelete = new CButton (Env.getImageIcon("StepForward24.gif"));
|
//private CButton bDelete = new CButton (Env.getImageIcon("StepForward24.gif"));
|
||||||
//private CButton bDeleteAll = new CButton (Env.getImageIcon("FastForward24.gif"));
|
//private CButton bDeleteAll = new CButton (Env.getImageIcon("FastForward24.gif"));
|
||||||
private CCheckBox implotion = new CCheckBox ();
|
private CCheckBox implosion = new CCheckBox ();
|
||||||
private CLabel treeInfo = new CLabel ();
|
private CLabel treeInfo = new CLabel ();
|
||||||
//
|
//
|
||||||
private JSplitPane splitPane = new JSplitPane ();
|
private JSplitPane splitPane = new JSplitPane ();
|
||||||
|
@ -296,8 +296,8 @@ public class VTreeBOM extends CPanel
|
||||||
//labelECN.setText (Msg.translate(Env.getCtx(), "ECN"));
|
//labelECN.setText (Msg.translate(Env.getCtx(), "ECN"));
|
||||||
|
|
||||||
labelProduct.setText (Msg.translate(Env.getCtx(), "M_Product_ID"));
|
labelProduct.setText (Msg.translate(Env.getCtx(), "M_Product_ID"));
|
||||||
//implotion.setEnabled (false);
|
//implosion.setEnabled (false);
|
||||||
implotion.setText (Msg.translate(Env.getCtx(), "Implotion"));
|
implosion.setText (Msg.translate(Env.getCtx(), "Implosion"));
|
||||||
//treeInfo.setText (" ");
|
//treeInfo.setText (" ");
|
||||||
//bAdd.setToolTipText("Add to Tree");
|
//bAdd.setToolTipText("Add to Tree");
|
||||||
//bAddAll.setToolTipText("Add ALL to Tree");
|
//bAddAll.setToolTipText("Add ALL to Tree");
|
||||||
|
@ -316,7 +316,7 @@ public class VTreeBOM extends CPanel
|
||||||
|
|
||||||
northPanel.add (labelProduct, null);
|
northPanel.add (labelProduct, null);
|
||||||
northPanel.add (fieldProduct, null);
|
northPanel.add (fieldProduct, null);
|
||||||
northPanel.add (implotion, null);
|
northPanel.add (implosion, null);
|
||||||
//northPanel.add (cbAllNodes, null);
|
//northPanel.add (cbAllNodes, null);
|
||||||
northPanel.add (treeInfo, null);
|
northPanel.add (treeInfo, null);
|
||||||
|
|
||||||
|
@ -438,7 +438,7 @@ public class VTreeBOM extends CPanel
|
||||||
|
|
||||||
dataBOM.clear();
|
dataBOM.clear();
|
||||||
|
|
||||||
if (implotion.isSelected())
|
if (implosion.isSelected())
|
||||||
{
|
{
|
||||||
QueryDB query = new QueryDB("org.eevolution.model.X_PP_Product_BOMLine");
|
QueryDB query = new QueryDB("org.eevolution.model.X_PP_Product_BOMLine");
|
||||||
String filter = "M_Product_ID=" + M_Product_ID;
|
String filter = "M_Product_ID=" + M_Product_ID;
|
||||||
|
@ -581,7 +581,7 @@ public class VTreeBOM extends CPanel
|
||||||
public DefaultMutableTreeNode component(X_M_Product M_Product)
|
public DefaultMutableTreeNode component(X_M_Product M_Product)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (implotion.isSelected())
|
if (implosion.isSelected())
|
||||||
{
|
{
|
||||||
//vparent.setValue(m_product_id);
|
//vparent.setValue(m_product_id);
|
||||||
//String data = Msg.translate(Env.getCtx(), "PP_ProductBOM_ID") + ":" + Msg.translate(Env.getCtx(), "Search Key") + ":"+ bom.getValue()+ " " + Msg.translate(Env.getCtx(), "Name") + ": " + bom.getName();
|
//String data = Msg.translate(Env.getCtx(), "PP_ProductBOM_ID") + ":" + Msg.translate(Env.getCtx(), "Search Key") + ":"+ bom.getValue()+ " " + Msg.translate(Env.getCtx(), "Name") + ": " + bom.getName();
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class PrintBOM extends SvrProcess {
|
||||||
|
|
||||||
private int p_M_Product_ID = 0;
|
private int p_M_Product_ID = 0;
|
||||||
|
|
||||||
private boolean p_implotion = false;
|
private boolean p_implosion = false;
|
||||||
|
|
||||||
private int LevelNo = 1;
|
private int LevelNo = 1;
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class PrintBOM extends SvrProcess {
|
||||||
.intValue();
|
.intValue();
|
||||||
|
|
||||||
} else if (name.equals("Implotion")) {
|
} else if (name.equals("Implotion")) {
|
||||||
p_implotion = ((String) para[i].getParameter()).equals("N") ? false
|
p_implosion = ((String) para[i].getParameter()).equals("N") ? false
|
||||||
: true;
|
: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,14 +139,14 @@ public class PrintBOM extends SvrProcess {
|
||||||
tboml.setPP_Product_BOMLine_ID(0);
|
tboml.setPP_Product_BOMLine_ID(0);
|
||||||
tboml.setM_Product_ID(p_M_Product_ID);
|
tboml.setM_Product_ID(p_M_Product_ID);
|
||||||
tboml.setSel_Product_ID(p_M_Product_ID);
|
tboml.setSel_Product_ID(p_M_Product_ID);
|
||||||
tboml.setImplotion(p_implotion);
|
tboml.setImplotion(p_implosion);
|
||||||
tboml.setLevelNo(0);
|
tboml.setLevelNo(0);
|
||||||
tboml.setLevels("0");
|
tboml.setLevels("0");
|
||||||
tboml.setSeqNo(0);
|
tboml.setSeqNo(0);
|
||||||
tboml.setAD_PInstance_ID(AD_PInstance_ID);
|
tboml.setAD_PInstance_ID(AD_PInstance_ID);
|
||||||
tboml.save();
|
tboml.save();
|
||||||
|
|
||||||
if (p_implotion) {
|
if (p_implosion) {
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
String sql = new String(
|
String sql = new String(
|
||||||
|
@ -206,7 +206,7 @@ public class PrintBOM extends SvrProcess {
|
||||||
tboml.setM_Product_ID(M_Product_ID);
|
tboml.setM_Product_ID(M_Product_ID);
|
||||||
tboml.setLevelNo(LevelNo);
|
tboml.setLevelNo(LevelNo);
|
||||||
tboml.setSel_Product_ID(p_M_Product_ID);
|
tboml.setSel_Product_ID(p_M_Product_ID);
|
||||||
tboml.setImplotion(p_implotion);
|
tboml.setImplotion(p_implosion);
|
||||||
|
|
||||||
if (LevelNo >= 11)
|
if (LevelNo >= 11)
|
||||||
tboml.setLevels(levels + ">" + LevelNo);
|
tboml.setLevels(levels + ">" + LevelNo);
|
||||||
|
@ -263,7 +263,7 @@ public class PrintBOM extends SvrProcess {
|
||||||
tboml.setSeqNo(SeqNo);
|
tboml.setSeqNo(SeqNo);
|
||||||
tboml.setAD_PInstance_ID(AD_PInstance_ID);
|
tboml.setAD_PInstance_ID(AD_PInstance_ID);
|
||||||
tboml.setSel_Product_ID(p_M_Product_ID);
|
tboml.setSel_Product_ID(p_M_Product_ID);
|
||||||
tboml.setImplotion(p_implotion);
|
tboml.setImplotion(p_implosion);
|
||||||
tboml.save();
|
tboml.save();
|
||||||
component(rs.getInt(2));
|
component(rs.getInt(2));
|
||||||
}
|
}
|
||||||
|
@ -280,7 +280,7 @@ public class PrintBOM extends SvrProcess {
|
||||||
*/
|
*/
|
||||||
public void component(int M_Product_ID) {
|
public void component(int M_Product_ID) {
|
||||||
|
|
||||||
if (p_implotion) {
|
if (p_implosion) {
|
||||||
|
|
||||||
LevelNo += 1;
|
LevelNo += 1;
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Element SET ColumnName='Implosion', Name='Implosion',Updated=TO_DATE('2008-05-31 16:10:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Column SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Field SET Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53466) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.', AD_Element_ID=53466 WHERE UPPER(ColumnName)='IMPLOSION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_PrintFormatItem pi SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53466)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_PrintFormatItem pi SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53466)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:14:43 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
ALTER TABLE T_BOMLine ADD Implosion CHAR(1) DEFAULT 'N' CHECK (Implosion IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Element SET ColumnName='Implosion', Name='Implosion',Updated=TO_TIMESTAMP('2008-05-31 16:10:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Column SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Field SET Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53466) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.', AD_Element_ID=53466 WHERE UPPER(ColumnName)='IMPLOSION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_PrintFormatItem SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53466)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:10:49 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
UPDATE AD_PrintFormatItem SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53466)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- May 31, 2008 4:14:43 PM CDT
|
||||||
|
-- Fix Libero
|
||||||
|
ALTER TABLE T_BOMLine ADD COLUMN Implosion CHAR(1) DEFAULT 'N' CHECK (Implosion IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue