?? downbutton.js
字號:
function command(instruction){
var contentframeDocument=parent.document.frames["contentframe"].document;
if(instruction=="用戶角色分配"){
dispatchRole(contentframeDocument);
}
else if(instruction=="打印掛號單"){
alert("很抱歉,本功能還沒有實現(xiàn)!");
//printRegisterList(contentframeDocument);
}
else if(instruction=="建立號表"){
alert("很抱歉,本功能還沒有實現(xiàn)!");
}
else if(instruction=="門診病人統(tǒng)計"){
alert("很抱歉,本功能還沒有實現(xiàn)!");
}
else if(instruction=="歷次就診比較"){
alert("很抱歉,本功能還沒有實現(xiàn)!");
}
}
function printRegisterList(contentframeDocument){
var saveStatus;
//含有saveStatus說明是在錄入頁面,否則是在查詢頁面
if(contentframeDocument.getElementById("saveStatus")!=null){
saveStatus=contentframeDocument.getElementById("saveStatus").value;
if(saveStatus=="0"||saveStatus=="2"){
alert("請您先成功保存掛號信息,再打印掛號單!");
}else{
//var keyName=contentframeDocument.getElementById("keyNames").value;
//var userID=contentframeDocument.getElementById(keyName).value;
//window.showModalDialog("/pages/dispatchroleframe.html",userID,'dialogWidth=500px;dialogHeight=280px');
}
}else{
var keyValues=contentframeDocument.getElementById("keyValues").value;
if(keyValues==""){
alert("請您先選中一條掛號信息,再打印掛號單!");
}else{
//window.showModalDialog("/pages/dispatchroleframe.html",keyValues,'dialogWidth=500px;dialogHeight=280px');
}
}
}
function dispatchRole(contentframeDocument){
var saveStatus;
//含有saveStatus說明是在錄入頁面,否則是在查詢頁面
if(contentframeDocument.getElementById("saveStatus")!=null){
saveStatus=contentframeDocument.getElementById("saveStatus").value;
if(saveStatus=="0"||saveStatus=="2"){
alert("請您先成功保存用戶信息,再進(jìn)行權(quán)限分配操作!");
}else{
var keyName=contentframeDocument.getElementById("keyNames").value;
var userID=contentframeDocument.getElementById(keyName).value;
window.showModalDialog("/pages/userrole/dispatchroleframe.html",userID,'dialogWidth=500px;dialogHeight=280px');
}
}else{
var keyValues=contentframeDocument.getElementById("keyValues").value;
if(keyValues==""){
alert("請您先選中一條用戶信息,再進(jìn)行權(quán)限分配操作!");
}else{
window.showModalDialog("/pages/userrole/dispatchroleframe.html",keyValues,'dialogWidth=500px;dialogHeight=280px');
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -