rushfee/build/classes/html/rush/linshiedit.html

67 lines
1.3 KiB
HTML

<html login="false">
<head>
<title>记录维护</title>
</head>
<body>
<div widget="toolbar">
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<input name ="id" widget="hidden" />
<input widget="edit" name="operate_date" label="时间" width="600"/>
</br>
<input widget="textarea" name="remark" label="备注" width="600" height="80px"/>
</body>
<script type="text/javascript">
function init(param){
var id=param['id'];
var operate_date=param['operate_date'];
var remark=param['remark'];
aos.get("id").setValue(id);
aos.get("operate_date").setValue(operate_date);
aos.get("remark").setValue(remark);
}
function save(){
var operate_date= aos.get("operate_date").getValue();;
var remark =aos.get("remark").getValue();;
if(operate_date==null || operate_date==''){
aos.alert('填上时间!');
return ;
}
if(remark==null || remark==''){
aos.alert('填上备注!');
return ;
}
aos.post({
url:"tick/TickList/savelog",
data:aos.getForm().getData(),
success:function(data){
CloseWindow();
}
});
}
</script>
</html>