parent
0378ceb4b6
commit
cac29bc18f
|
|
@ -1,26 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="andromedia.midsuit.feature"
|
||||
label="Feature"
|
||||
version="1.0.0.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
[Enter Feature Description here.]
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
|
||||
<plugin
|
||||
id="andromedia.midsuit.project"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="andromedia.midsuit.feature"
|
||||
label="Feature"
|
||||
version="1.0.0.qualifier">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
[Enter Feature Description here.]
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
|
||||
<plugin
|
||||
id="andromedia.midsuit.project"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/apache-commons-lang.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/bcprov-ext-jdk15on-160.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/jackcess-encrypt-2.1.4.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/org-apache-commons-logging.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/hsqldb.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/jackcess-2.2.0.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="META-INF/poi-ooxml-3.9.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="META-INF/ucanaccess-4.0.4.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ Require-Bundle: org.adempiere.base;bundle-version="5.1.0",
|
|||
zcommon;bundle-version="8.0.2",
|
||||
zul;bundle-version="8.0.2",
|
||||
org.adempiere.ui.zk,
|
||||
org.adempiere.ui;bundle-version="5.1.0"
|
||||
org.adempiere.ui;bundle-version="5.1.0",
|
||||
org.apache.poi
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Service-Component: OSGI-INF/MID_ProcessFactory.xml,OSGI-INF/MID_ModelFactory.xml,OSGI-INF/MID_CalloutFactory.xml,OSGI-INF/MID_ValidatorFactory.xml,OSGI-INF/MID_CreateFromFactory.xml,OSGI-INF/MID_FormFactory.xml,
|
||||
OSGI-INF/MID_DocFactory.xml
|
||||
|
|
@ -20,3 +21,12 @@ Import-Package: org.compiere.apps,
|
|||
org.compiere.minigrid,
|
||||
org.compiere.process
|
||||
Bundle-Activator: org.adempiere.plugin.utils.AdempiereActivator
|
||||
Bundle-ClassPath: META-INF/poi-ooxml-3.9.jar,
|
||||
.,
|
||||
META-INF/ucanaccess-4.0.4.jar,
|
||||
META-INF/jackcess-2.2.0.jar,
|
||||
META-INF/hsqldb.jar,
|
||||
META-INF/org-apache-commons-logging.jar,
|
||||
META-INF/jackcess-encrypt-2.1.4.jar,
|
||||
META-INF/bcprov-ext-jdk15on-160.jar,
|
||||
META-INF/apache-commons-lang.jar
|
||||
|
|
|
|||
|
|
@ -1,11 +1,18 @@
|
|||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
bin.includes = .,\
|
||||
OSGI-INF/MID_ProcessFactory.xml,\
|
||||
OSGI-INF/MID_ModelFactory.xml,\
|
||||
OSGI-INF/MID_CalloutFactory.xml,\
|
||||
OSGI-INF/MID_ValidatorFactory.xml,\
|
||||
OSGI-INF/MID_CreateFromFactory.xml,\
|
||||
OSGI-INF/MID_FormFactory.xml,\
|
||||
OSGI-INF/MID_DocFactory.xml
|
||||
OSGI-INF/MID_DocFactory.xml,\
|
||||
META-INF/poi-ooxml-3.9.jar,\
|
||||
META-INF/ucanaccess-4.0.4.jar,\
|
||||
META-INF/jackcess-2.2.0.jar,\
|
||||
META-INF/hsqldb.jar,\
|
||||
META-INF/org-apache-commons-logging.jar,\
|
||||
META-INF/jackcess-encrypt-2.1.4.jar,\
|
||||
META-INF/bcprov-ext-jdk15on-160.jar,\
|
||||
META-INF/apache-commons-lang.jar
|
||||
source.. = src/
|
||||
|
|
|
|||
|
|
@ -1,39 +1,39 @@
|
|||
//package andromedia.midsuit.callout;
|
||||
//
|
||||
//import java.sql.Timestamp;
|
||||
//import java.util.Properties;
|
||||
//
|
||||
//import org.adempiere.base.IColumnCallout;
|
||||
//import org.compiere.model.CalloutEngine;
|
||||
//import org.compiere.model.GridField;
|
||||
//import org.compiere.model.GridTab;
|
||||
//import org.compiere.model.MOrder;
|
||||
//import org.compiere.model.MPriceList;
|
||||
//import org.compiere.model.Query;
|
||||
//import org.compiere.util.DB;
|
||||
//import org.compiere.util.Env;
|
||||
//
|
||||
//import andromedia.midsuit.model.X_C_OrderLineMA;
|
||||
//
|
||||
//public class MID_CalloutOrderLineMA extends CalloutEngine implements IColumnCallout {
|
||||
//
|
||||
// @Override
|
||||
// public String start(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) {
|
||||
// // TODO Auto-generated method stub
|
||||
// if(value == null) return null;
|
||||
// if(mField.getColumnName().equals(X_C_OrderLineMA.COLUMNNAME_M_AttributeSetInstance_ID)) {
|
||||
// return setDateMaterialPolicy(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// private String setDateMaterialPolicy(Properties ctx, int windowNo, GridTab mTab, GridField mField, Object value,
|
||||
// Object oldValue) {
|
||||
// if(value==null) return "";
|
||||
// Timestamp retValue = DB.getSQLValueTSEx(null, "SELECT DateMaterialPolicy FROM M_Storage WHERE M_AttributeSetInstance_ID =? ", new Object[] { (int)value });
|
||||
// if(retValue!=null)
|
||||
// mTab.setValue(X_C_OrderLineMA.COLUMNNAME_DateMaterialPolicy, retValue);
|
||||
// return "";
|
||||
// }
|
||||
//
|
||||
//}
|
||||
package andromedia.midsuit.callout;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.adempiere.base.IColumnCallout;
|
||||
import org.compiere.model.CalloutEngine;
|
||||
import org.compiere.model.GridField;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MOrder;
|
||||
import org.compiere.model.MPriceList;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
import andromedia.midsuit.model.X_C_OrderLineMA;
|
||||
|
||||
public class MID_CalloutOrderLineMA extends CalloutEngine implements IColumnCallout {
|
||||
|
||||
@Override
|
||||
public String start(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) {
|
||||
// TODO Auto-generated method stub
|
||||
if(value == null) return null;
|
||||
if(mField.getColumnName().equals(X_C_OrderLineMA.COLUMNNAME_M_AttributeSetInstance_ID)) {
|
||||
return setDateMaterialPolicy(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private String setDateMaterialPolicy(Properties ctx, int windowNo, GridTab mTab, GridField mField, Object value,
|
||||
Object oldValue) {
|
||||
if(value==null) return "";
|
||||
Timestamp retValue = DB.getSQLValueTSEx(null, "SELECT DateMaterialPolicy FROM M_Storage WHERE M_AttributeSetInstance_ID =? ", new Object[] { (int)value });
|
||||
if(retValue!=null)
|
||||
mTab.setValue(X_C_OrderLineMA.COLUMNNAME_DateMaterialPolicy, retValue);
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue