(function() {
var appId = $.context.getCurrentApplicationId();
//表单名称
var formName = "员工基本信息";
//控件值键对
var conditionMap = new Packages.java.util.HashMap();
var aggregates = $.form.getDocumentsByCondition(appId, formName, conditionMap);
for (var i = 0; i < aggregates.size(); i++) {
var aggregate = aggregates.get(i);
var count = aggregate.getElementByName("工龄").getIntValue();
aggregate.addElement("工龄", count + 1);
$.form.saveFormDocument(aggregate, appId);
}
})()
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!