<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
function changeAttr(){
var add = $id("add").value;
if(add =="add"){
var textBox = $id("textBox");
textBox.readOnly = false;
var textArea = $id("textArea");
textArea.readOnly = false;
var inputText = $id("inputText");
inputText.type = "hidden";
var cancel = $id("cancel");
cancel.type = "button";
}
}
function edit(){
var textBox = $id("textBox");
textBox.readOnly = false;
var textArea = $id("textArea");
textArea.readOnly = false;
}
function save(){
var dataId = $id("dataId").value;
var title = $id("textBox").value;
var content = $id("textArea").value;
if(title.replace(/^\s |\s $/g,"") == ""){
document.getElementById("msg").innerHTML = "标题不能为空";
return;
}
if(dataId != ""){
var myAjax = new Ajax("demo.demoService.update.biz");
myAjax.addParam("id", dataId);
myAjax.addParam("title", title);
myAjax.addParam("data", content);
myAjax.submit();
window.parent.query(dataId);
}else{
var myAjax = new Ajax("demo.demoService.save.biz");
myAjax.addParam("title", title);
myAjax.addParam("data", content);
myAjax.onSuccesss = function(){
alert("成功后执行的函数");
}
myAjax.submit();
window.parent.query();
}
}
function cancel(){
if(confirm("放弃当前的编辑吗?")){
window.parent.query();
}
}
</script>
</body>
</html>
new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date())
window.close();//刷新window.opener.location.reload();
http://workflownew.oa.unionpay.com:8099/default/innerform/process_ok.jsp
http://workflownew.oa.unionpay.com:8099/default/com.unionpay.oa.innerform.innerFormProcess.flow