점집-weboffice 6.0(둘)

9118 단어 Office
1. 개정 작업
// 
function SetUserName() {
    try{
        var webObj=document.getElementById("WebOffice1");
        if(document.all.UserName.value ==""){
            alert(" ")
            document.all.UserName.focus();
            return false;
        }
         webObj.SetCurrUserName(document.all.UserName.value);
    }catch(e){
        alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function ProtectRevision() { try{ var webObj=document.getElementById("WebOffice1"); webObj.SetTrackRevisions(1) }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function ExitRevisions() { try{ var webObj=document.getElementById("WebOffice1"); webObj.SetTrackRevisions(0); }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function ShowRevisions() { try{ var webObj=document.getElementById("WebOffice1"); webObj.ShowRevisions(1); }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function UnShowRevisions() { try{ var webObj=document.getElementById("WebOffice1"); webObj.ShowRevisions(0); }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function AcceptAllRevisions() { try{ var webObj=document.getElementById("WebOffice1"); document.all.WebOffice1.SetTrackRevisions(4); }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function unAcceptAllRevisions() { try{ var webObj=document.getElementById("WebOffice1"); var vCount = webObj.GetRevCount(); var strUserName; for(var i=1;i<=vCount;i++){ strUserName=webObj.GetRevInfo(i,0); document.all.WebOffice1.AcceptRevision(strUserName ,1) } }catch(e){ alert(" \r
Error:"+e+"\r
Error Code:"+e.number+"\r
Error Des:"+e.description); } } // function GetRevAllInfo() { var vCount; vCount = document.all.WebOffice1.GetRevCount(); var vOpt = 0; var vDate; for(var i=1; i<= vCount; i++){ vOpt = document.all.WebOffice1.GetRevInfo(i,2); if("1" == vOpt){ vOpt = " "; }else if("2" == vOpt){ vOpt = " "; }else{ vOpt = " "; } vDate = document.all.WebOffice1.GetRevInfo(i,1); /*vDate = new String(document.all.WebOffice1.GetRevInfo(i,1)); vDate = parseFloat(vDate); dateObj = new Date(vDate); alert(dateObj.getYear() + " " + dateObj.getMonth() + 1 + " " + dateObj.getDate() +" " + dateObj.getHours() +" " + dateObj.getMinutes() +" " + dateObj.getSeconds() +" " );*/ alert(" :"+document.all.WebOffice1.GetRevInfo(i,0) + "\r
:" + vOpt + "\r
:" + document.all.WebOffice1.GetRevInfo(i,3)+"\r
:"+vDate); } }

2, 책갈피 작업
// 
document.all.WebOffice1.SetFieldValue(" ", " ", "::ADDMARK::");
// 
document.all.WebOffice1.SetFieldValue(" ", " ", "");

좋은 웹페이지 즐겨찾기