📄 oa_popup1.js
字号:
var gcToggle = "#ffff00";
var gcBG = "#CCCCFF";
function IOFFICE_GetSelected(aCell)
{
window.returnValue = aCell.innerText;
window.close();
}
function getSelected(userNames,userAccounts)
{
alert("getSelected(userNames,userAccounts)");
window.returnValue = userNames+"!"+userAccounts;
alert(userNames+"!"+userAccounts);
window.close();
}
function fPopUpDlg(dialogType,ctl1,ctl2,WINname,WINwidth,WINheight){
var endtarget;
if(dialogType == "POPUPLIST_POSITION"){
endtarget = "../masterref/popup_position.htm";
}else if(dialogType == "chose"){
endtarget = "../masterref/popup.htm";
}else if(dialogType == "POPUPLIST_UNIVERSITY"){
endtarget = "../masterref/popup_university.htm";
}else if(dialogType == "POPUPLIST_MAJOR"){
endtarget = "../masterref/popup_major.htm";
}else if(dialogType == "POPUPLIST_TECH"){
endtarget = "../masterref/popup_tech.htm";
}else if(dialogType == "POPUPLIST_CERTIFICATION"){
endtarget = "../masterref/popup_certification.htm";
}else if(dialogType == "POPUPLIST_SCHEDULETYPE"){
endtarget = "../masterref/popup_scheduletype.htm";
}else if(dialogType == "POPUPLIST_PLACE"){
endtarget = "../masterref/popup_place.htm";
}else if(dialogType == "POPUPLIST_CONTRACTSTOP"){
endtarget = "../masterref/popup_contractstop.htm";
}else if(dialogType == "POPUPLIST_WHITHER"){
endtarget = "../masterref/popup_whither.htm";
}else if(dialogType == "POPUPLIST_MESSAGETITLE"){
endtarget = "../masterref/popup_messagetitle.htm";
}else if(dialogType == "POPUPLIST_BOOKPURPOSE"){
endtarget = "../masterref/popup_bookpurpose.htm";
} else if(dialogType == "POPUPLIST_CONTRACTSTOP"){
endtarget = "../masterref/popup_contractstop.htm";
}else if(dialogType == "POPUPLIST_APPLICATIONTITLE"){
endtarget = "../masterref/popup_applicationtitle.htm";
}else if(dialogType == "POPUPLIST_EMPCURPOSITION"){
endtarget = "../masterref/popup_empcurposition.htm";
}else if(dialogType == "POPUPLIST_SHOWMESSAGETITLE"){
endtarget = "../masterref/popup_showmessagetitle.htm";
}else if(dialogType == "POPUPLIST_COMPANYNAME"){
endtarget = "../masterref/popup_companyname.htm";
}else if(dialogType == "POPUPLIST_BOOKPUBLISHER"){
endtarget = "../masterref/popup_bookpublisher.htm";
}else if(dialogType == "POPUPLIST_BOOKLANGUAGE"){
endtarget = "../masterref/popup_booklanguage.htm";
}else if(dialogType == "POPUPLIST_BOOKCLASSIFY"){
endtarget = "../masterref/popup_bookclassify.htm";
}else if(dialogType == "POPUPLIST_PROVINCE"){
endtarget = "../masterref/popup_province.htm";
}else if(dialogType == "POPUPLIST_RELATIONSHIP"){
endtarget = "../masterref/popup_relationship.htm";
}else if(dialogType == "POPUPLIST_INDUSTRYTYPE"){
endtarget = "../masterref/popup_industrytype.htm";
}else if(dialogType == "POPUPLIST_ENTERPRISETYPE"){
endtarget = "../masterref/popup_enterprisetype.htm";
}else if(dialogType == "POPUPLIST_OPPRSTAGE"){
endtarget = "../masterref/popup_opprstage.htm";
}else if(dialogType == "POPUPLIST_OPPRROLE"){
endtarget = "../masterref/popup_opprrole.htm";
}else if(dialogType == "POPUPLIST_OPPRDOCTYPE"){
endtarget = "../masterref/popup_opprdoctype.htm";
}else if(dialogType == "POPUPLIST_MEASUREUNIT"){
endtarget = "../masterref/popup_measureunit.htm";
}else if(dialogType == "POPUPLIST_GERINFOTYPE"){
endtarget = "../masterref/popup_gerinfotype.htm";
}else if(dialogType == "SelectUser"){
endtarget = "../system/Select_User.htm";
}else {
endtarget = "../masterref/popup_posincharge.htm";
}
showx = event.screenX - event.offsetX - 4 - WINwidth ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
if (dialogType == "POPUPLIST_CONTRACTSTOP"){
showx = event.screenX - event.offsetX - WINwidth + 150;
showy = event.screenY - event.offsetY + 20;
}
newWINwidth = WINwidth + 4 + 18;
var features =
'dialogWidth:' + newWINwidth + 'px;' +
'dialogHeight:' + WINheight + 'px;' +
'dialogLeft:' + showx + 'px;' +
'dialogTop:' + showy + 'px;' +
'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';
retval = window.showModalDialog(endtarget,ctl2,features );
// alert(retval);
if( retval != null ){
var token=retval.indexOf('!',0);
// alert("token "+token);
if(token == -1)
ctl1.value = retval;
else
ctl1.value =retval.substring(0,token);
// alert("ctl1.value "+ctl1.value);
}else{
//alert("canceled");
}
}
//时期窗口
function fPopUpCalendarDlg(ctrlobj)
{
showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog("../masterref/datetime.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
if( retval != null ){
ctrlobj.value = retval;
}else{
//alert("canceled");
}
}
function mypop()
{
showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog("../masterref/datetime.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
if( retval != null ){
ctrlobj.value = retval;
}else{
//alert("canceled");
}
}
function deskop_datetime()
{
showx = event.screenX - event.offsetX - 40 + 200 ; // + deltaX;
showy = event.screenY - event.offsetY - 100; // + deltaY;
newWINwidth = 200 + 40 - 100;
retval = window.showModalDialog("masterref/oa_datetime.htm", "", "dialogWidth:155px; dialogHeight:205px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
if( retval != null ){
ctrlobj.value = retval;
}else{
//alert("canceled");
}
}
//
function pop_mail()
{
sUrl ="../masterref/pop_mail.htm";
sFeatures = "dialogHeight: 405 px; dialogWidth:550 px; certer: yes; help: yes; resizable: no; tustatus: no";
window.showModalDialog(sUrl,window,sFeatures);
}
function addMemo()
{
sUrl ="../masterref/addMemo.htm";
sFeatures = "dialogHeight: 240 px; dialogWidth:400 px; certer: yes; help: yes; resizable: no; tustatus: no";
window.showModalDialog(sUrl,window,sFeatures);
}
function mail_address()
{
sUrl ="../webmail/webmail-rcptpop.htm";
sFeatures = "dialogHeight:420 px; dialogWidth:650 px; certer: yes; help: yes; resizable: no; tustatus: no";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_move()
{
sUrl ="../masterref/pop_move.htm";
sFeatures = "dialogHeight: 240px; dialogWidth:265px; certer: yes; help: yes; resizable: no; tustatus: no";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_wps()
{
sUrl ="../wps/wps_right.htm";
sFeatures = "dialogHeight: 260px; dialogWidth:400px; certer: yes; help: yes; resizable: no; tustatus: no";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_QQ()
{
window.open ('communion/web_QQ.htm', 'newwindow', 'height=425, width=140, top=90,left=640, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
}
function pop_QQ_in()
{
window.open ('web_QQ.htm', 'newwindow', 'height=425, width=140, top=90,left=640, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
}
function pop_QQ_sendAll()
{
sUrl ="web_QQsendAll.htm";
sFeatures = "dialogHeight: 250px; dialogWidth:400px; certer: yes; help: yes; resizable: no; tustatus: no; status:no;";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_QQ_send()
{
sUrl ="web_QQsend.htm";
sFeatures = "dialogHeight: 262px; dialogWidth:400px; certer: yes; help: yes; resizable: no; tustatus: no; status:no;";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_QQ_select()
{
sUrl ="QQ_All.htm";
sFeatures = "dialogHeight:310 px; dialogWidth:400 px; certer: yes; help: yes; resizable: no; tustatus: no; status:no;";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_QQhistory()
{
sUrl ="web_QQhistory.htm";
sFeatures = "dialogHeight:285 px; dialogWidth:400 px; certer: yes; help: yes; resizable: no; tustatus: no;status:no;";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_QQ_seting()
{
sUrl ="web_QQset.htm";
sFeatures = "dialogHeight:140 px; dialogWidth:220 px; certer: yes; help: yes; resizable: no; tustatus: no;status:no;";
window.showModalDialog(sUrl,window,sFeatures);
}
function pop_error()
{
sUrl ="error.htm";
sFeatures = "dialogHeight: 315 px; dialogWidth:457 px; certer: no; help:no; resizable: no; tustatus: no;status:no";
window.showModalDialog(sUrl,window,sFeatures);
}
/*function do_login(){closes.Click();
var iWidth = 0 ;
var iHeight = 0 ;
iWidth=window.screen.availWidth-10;
iHeight=window.screen.availHeight-50;
var szFeatures = "" ;
szFeatures = "resizabl=yes,status=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" +iWidth*1 + ",height=" + iHeight*1 + ",top=0,left=0"
sURL = "default.htm"
window.open(sURL,"newwin",szFeatures)
}*/
//页面滚动
function scroll(n)
{temp=n;
Out.scrollTop=Out.scrollTop+temp;
if (temp==0) return;
setTimeout("scroll(temp)",80);
}
//新增2003.9.23(公文模块修改)
//弹出居中窗口(非模式窗口)
function WinPop(url, winName, width, height,scrollbar,resizable) //scrollbar为是否有滚动条,yes值为1,no值为0;//resizable是否可以最大化,yes为1,no为0;
/*function winPop(url, winName, width, height) */
{
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width-10 - width) / 2;
yposition = (screen.height-30 - height) / 2;
}
theproperty= "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=" + resizable + ","//是否可以最大化,yes为1,no为0;
+ "scrollbars=" + scrollbar + ","
/*+ "scrollbars=0,"*///是否有滚动条,yes值为1,no值为0,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -