不支持多语言和国际化
不支持单据实体增加分录
不支持替换标准产品原有业务逻辑
不支持新建枚举
不支持多人开发同一方案
不支持不绑定实体的界面开发
不支持在通用过滤条件页签中增加控件及业务逻辑
3、步骤
4、脚本代码
//实体
var imp = JavaImporter();
imp.importPackage(Packages.com.kingdee.eas.util.app);
with(imp){
//获取参数
var ctx = pluginCtx.getContext();
var title = methodCtx.getParamValue(0);
var ctime = methodCtx.getParamValue(1)+" 00:00:00";
var etime = methodCtx.getParamValue(2)+" 00:00:00";
var cadd = methodCtx.getParamValue(3);
var cdays = methodCtx.getParamValue(4);
var cost = methodCtx.getParamValue(5);
var pno = methodCtx.getParamValue(6);
var params = methodCtx.getParamValue(7);
var str=params.split(",");
var myDate = new Date();
var pid="";
var sql="";
for(i=0;i<str.length;i++)
{
if(str[i]!="")
{
pid=myDate.getSeconds()+myDate.getHours()+myDate.getYear()+"="+str[i];
//convert("+ctime+",'YYYY-MM-DD HH24:MI:SS')
sql = "INSERT INTO T_HR_ZDY0EmpMultiInfo (fid,CFTrainName,CFTrainAddress,CFTrainWenHao,CFTrainPay,CFTrainStratTime,CFTrainEndTime,FPersonID,fcreatorid,fcreatetime,flastupdatetime,flastupdateuserid)VALUES('"+pid+"','"+title+"','"+cadd+"','"+pno+"',"+cost+",'"+ctime+"','"+
etime+"','"+str[i]+"','256c221a-0106-1000-e000-10d7c0a813f413B7DE7F',now(),now(),'pGvDCT6+RVyQOX1241ciCxO33n8=')";
DbUtil.execute(ctx, sql);
}
}
}
//客户端
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 entry =pluginCtx.getKDTable("kdtEntrys");
//var en=pluginCtx.getKDBizPromptBox("prmttrainClass").getValue();
var pk = new MetaDataPK("com.kingdee.eas.hr.affair.app.ZDY1BizBill");
var name = " UpdateMethod(String arg1)";
var arg='0';
var args=[arg];
BOClientTool.callCmethod(pk,name,args);
}
var imp = JavaImporter();
imp.importPackage(Packages.com.kingdee.eas.util.app);
with(imp){
var ctx = pluginCtx.getContext();
var title = methodCtx.getParamValue(0);
var ctime = methodCtx.getParamValue(1);
var etime = methodCtx.getParamValue(2);
var cadd = methodCtx.getParamValue(3);
var cdays = methodCtx.getParamValue(4);
var cost = methodCtx.getParamValue(5);
var pno = methodCtx.getParamValue(6);
var params = methodCtx.getParamValue(7);
var str=params.split(",");
var sql = "update T_HR_TrainCourseEnty SET Fname_l2 = 'qw11' WHERE FID = 'yXnv1HPNR0Ki7SShIKXXIV8SJt8='";
DbUtil.execute(ctx, sql);
}