// 获取路径上下文
getContextPath : function() {
var url = top.location.href;
return url.substring(0, url.lastIndexOf("/"));
},
// 获取随机数
getIndexTime : function() {
return new Date().getTime();
},
// 设置form版本号
setSubmitVersion : function(from, version) {
$.get('utils/submit_seq.json?id=' + new Date().getTime(), function(data) {
$(from).find(version).val(data);
},'text');
},
// 设置工作流版本号
setWorkVersion : function(from, version,flowId) {
$.get('common/getWorkVersion.json?flowId='+flowId+'&id=' + new Date().getTime(), function(data) {
$(from).find(version).val(data.version);
});
},
getContextPath : function() {
var url = top.location.href;
return url.substring(0, url.lastIndexOf("/"));
},
// 获取随机数
getIndexTime : function() {
return new Date().getTime();
},
// 设置form版本号
setSubmitVersion : function(from, version) {
$.get('utils/submit_seq.json?id=' + new Date().getTime(), function(data) {
$(from).find(version).val(data);
},'text');
},
// 设置工作流版本号
setWorkVersion : function(from, version,flowId) {
$.get('common/getWorkVersion.json?flowId='+flowId+'&id=' + new Date().getTime(), function(data) {
$(from).find(version).val(data.version);
});
},