//onLoad后置脚本
var easNames = JavaImporter();
easNames.importPackage(Packages.com.kingdee.bos.ctrl.extendcontrols);
easNames.importPackage(Packages.com.kingdee.bos);
easNames.importPackage(Packages.com.kingdee.bos.util);
easNames.importPackage(Packages.com.kingdee.bos.metadata);
easNames.importPackage(Packages.com.kingdee.eas.util.client);
easNames.importPackage(Packages.com.kingdee.bos.framework);
easNames.importPackage(Packages.com.kingdee.eas.scm.common.client);
easNames.importPackage(Packages.com.kingdee.eas.util.app);
with(easNames){
pluginCtx.getKDTextArea("txtCause").setRequired(true);
}
//保存提交前置脚本
var easNames = JavaImporter();
easNames.importPackage(Packages.com.kingdee.bos.ctrl.extendcontrols);
easNames.importPackage(Packages.com.kingdee.bos);
easNames.importPackage(Packages.com.kingdee.bos.util);
easNames.importPackage(Packages.com.kingdee.bos.metadata);
easNames.importPackage(Packages.com.kingdee.eas.util.client);
easNames.importPackage(Packages.com.kingdee.bos.framework);
easNames.importPackage(Packages.com.kingdee.eas.scm.common.client);
easNames.importPackage(Packages.com.kingdee.eas.util.app);
with(easNames){
var txtCause = pluginCtx.getKDTextArea("txtCause").getText();
if(txtCause==null||txtCause==""||txtCause.trim().length()==0){
com.kingdee.eas.util.client.MsgBox.showInfo("事由不能为空");
com.kingdee.eas.util.SysUtil.abort();
}
}