BF2011489 BOM & Formula window difficult to set up correctly

This commit is contained in:
tspc 2008-07-06 01:28:49 +00:00
parent 86272e445c
commit 492bd93551
3 changed files with 215 additions and 0 deletions

View File

@ -250,6 +250,41 @@ public class CalloutBOM extends CalloutEngine
setCalloutActive(false);
return "";
} // qty
/**
* getdefaults
* get defaults for Product (search key, name, description, help and UOM)
* @param ctx Context
* @param WindowNo current Window No
* @param mTab Model Tab
* @param mField Model Field
* @param value The new value
*/
public String getdefaults (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
{
Integer M_Product_ID = (Integer)value;
if (M_Product_ID == null || M_Product_ID.intValue() == 0)
return "";
setCalloutActive(true);
if (isCalloutActive() || value == null)
return "";
if (steps) log.warning("parent - init");
setCalloutActive(true);
X_M_Product M_Product = new X_M_Product(ctx, M_Product_ID.intValue(),null);
mTab.setValue("Value", M_Product.getValue());
mTab.setValue("Name", M_Product.getName());
mTab.setValue("Description", M_Product.getDescription());
mTab.setValue("Help", M_Product.getHelp());
mTab.setValue("C_UOM_ID", M_Product.getC_UOM_ID());
setCalloutActive(false);
return "";
} // getdefaults
} // CalloutOrder

View File

@ -0,0 +1,90 @@
-- Jul 6, 2008 10:30:49 AM EST
-- Default comment for updating dictionary
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutBOM.getdefaults',Updated=TO_DATE('2008-07-06 10:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53333
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53474
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53475
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53464
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=53465
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53466
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53467
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=53468
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=53469
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=53470
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53471
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53472
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53473
;
-- Jul 6, 2008 10:44:59 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-06 10:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:46:09 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-07-06 10:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53474
;
-- Jul 6, 2008 10:46:15 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-07-06 10:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:50:46 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET DisplayLength=22,Updated=TO_DATE('2008-07-06 10:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53464
;

View File

@ -0,0 +1,90 @@
-- Jul 6, 2008 10:30:49 AM EST
-- Default comment for updating dictionary
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutBOM.getdefaults',Updated=TO_TIMESTAMP('2008-07-06 10:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53333
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53474
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53475
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53464
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=53465
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53466
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53467
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=53468
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=53469
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=53470
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53471
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53472
;
-- Jul 6, 2008 10:44:22 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53473
;
-- Jul 6, 2008 10:44:59 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-06 10:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:46:09 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-07-06 10:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53474
;
-- Jul 6, 2008 10:46:15 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-07-06 10:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476
;
-- Jul 6, 2008 10:50:46 AM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET DisplayLength=22,Updated=TO_TIMESTAMP('2008-07-06 10:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53464
;