[ 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:
vpj-cd 2008-05-31 21:37:54 +00:00
parent 6950827acd
commit 01817f66b4
6 changed files with 116 additions and 26 deletions

View File

@ -72,18 +72,18 @@ public interface I_T_BOMLine
public I_AD_PInstance getAD_PInstance() throws Exception;
/** Column name Implotion */
public static final String COLUMNNAME_Implotion = "Implotion";
/** Column name Implosion */
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.
*/
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.
*/
public boolean isImplotion();
public boolean isImplosion();
/** Column name LevelNo */
public static final String COLUMNNAME_LevelNo = "LevelNo";

View File

@ -112,21 +112,21 @@ public class X_T_BOMLine extends PO implements I_T_BOMLine, I_Persistent
return ii.intValue();
}
/** Set Implotion.
@param Implotion
/** Set Implosion.
@param Implosion
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.
*/
public boolean isImplotion ()
public boolean isImplosion ()
{
Object oo = get_Value(COLUMNNAME_Implotion);
Object oo = get_Value(COLUMNNAME_Implosion);
if (oo != null)
{
if (oo instanceof Boolean)

View File

@ -115,7 +115,7 @@ public class VTreeBOM extends CPanel
//private CButton bAdd = new CButton (Env.getImageIcon("StepBack24.gif"));
//private CButton bDelete = new CButton (Env.getImageIcon("StepForward24.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 JSplitPane splitPane = new JSplitPane ();
@ -296,8 +296,8 @@ public class VTreeBOM extends CPanel
//labelECN.setText (Msg.translate(Env.getCtx(), "ECN"));
labelProduct.setText (Msg.translate(Env.getCtx(), "M_Product_ID"));
//implotion.setEnabled (false);
implotion.setText (Msg.translate(Env.getCtx(), "Implotion"));
//implosion.setEnabled (false);
implosion.setText (Msg.translate(Env.getCtx(), "Implosion"));
//treeInfo.setText (" ");
//bAdd.setToolTipText("Add to Tree");
//bAddAll.setToolTipText("Add ALL to Tree");
@ -316,7 +316,7 @@ public class VTreeBOM extends CPanel
northPanel.add (labelProduct, null);
northPanel.add (fieldProduct, null);
northPanel.add (implotion, null);
northPanel.add (implosion, null);
//northPanel.add (cbAllNodes, null);
northPanel.add (treeInfo, null);
@ -438,7 +438,7 @@ public class VTreeBOM extends CPanel
dataBOM.clear();
if (implotion.isSelected())
if (implosion.isSelected())
{
QueryDB query = new QueryDB("org.eevolution.model.X_PP_Product_BOMLine");
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)
{
if (implotion.isSelected())
if (implosion.isSelected())
{
//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();

View File

@ -48,7 +48,7 @@ public class PrintBOM extends SvrProcess {
private int p_M_Product_ID = 0;
private boolean p_implotion = false;
private boolean p_implosion = false;
private int LevelNo = 1;
@ -74,7 +74,7 @@ public class PrintBOM extends SvrProcess {
.intValue();
} else if (name.equals("Implotion")) {
p_implotion = ((String) para[i].getParameter()).equals("N") ? false
p_implosion = ((String) para[i].getParameter()).equals("N") ? false
: true;
}
@ -139,14 +139,14 @@ public class PrintBOM extends SvrProcess {
tboml.setPP_Product_BOMLine_ID(0);
tboml.setM_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.setLevels("0");
tboml.setSeqNo(0);
tboml.setAD_PInstance_ID(AD_PInstance_ID);
tboml.save();
if (p_implotion) {
if (p_implosion) {
PreparedStatement stmt = null;
ResultSet rs = null;
String sql = new String(
@ -206,7 +206,7 @@ public class PrintBOM extends SvrProcess {
tboml.setM_Product_ID(M_Product_ID);
tboml.setLevelNo(LevelNo);
tboml.setSel_Product_ID(p_M_Product_ID);
tboml.setImplotion(p_implotion);
tboml.setImplotion(p_implosion);
if (LevelNo >= 11)
tboml.setLevels(levels + ">" + LevelNo);
@ -263,7 +263,7 @@ public class PrintBOM extends SvrProcess {
tboml.setSeqNo(SeqNo);
tboml.setAD_PInstance_ID(AD_PInstance_ID);
tboml.setSel_Product_ID(p_M_Product_ID);
tboml.setImplotion(p_implotion);
tboml.setImplotion(p_implosion);
tboml.save();
component(rs.getInt(2));
}
@ -280,7 +280,7 @@ public class PrintBOM extends SvrProcess {
*/
public void component(int M_Product_ID) {
if (p_implotion) {
if (p_implosion) {
LevelNo += 1;
PreparedStatement stmt = null;

View File

@ -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'))
;

View File

@ -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'))
;