JS 删除医嘱时 用异步ajax删除 源码:
function delOrdersDictionary(){
E_ShowLoding();
if (!window.rowTop)
{
alert("请选择要删除的医嘱!");
E_HideLoding();
return;
}
if (window.rowTop.getAttribute("shenHeBox")==1)
{
alert("该遗嘱已审核,不允许删除!");
E_HideLoding();
return;
}else{
if (window.confirm("是否要删除『"+window.rowTop.getAttribute("mediname")+"』?"))
{
var request = new $WebRequest("delOrdersDictionary.do", "mediid=" + window.rowTop.getAttribute("key"), delSuccess,delError);
request.Start();
}else {
E_HideLoding();
}
}
}
function delSuccess(){
alert("删除成功!");
E_HideLoding();
SearchOrdersDictionary();
}
function delError(result){
alert(result);
E_HideLoding();
}