changestyle.js
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:6k
源码类别:
OA系统
开发平台:
Java
- function mouseon(rowid,imagesid)
- {
- rowid.className = "DataRowMouseOn";
- eval("document.all." + imagesid + ".style.display=''");
- }
- function mouseout(rowid,imagesid,stylename)
- {
- rowid.className = stylename;
- eval("document.all." + imagesid + ".style.display='none'");
- }
- function mouseontd(rowid)
- {
- rowid.className = "DataColsMouseOn";
- }
- function mouseouttd(rowid,stylename)
- {
- rowid.className = stylename;
- }
- function uploadimage(ImageBox,ImagePic)
- {
- var ImageSrc=window.showModalDialog("/UploadImg.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
- if(ImageSrc!=null&&ImageSrc!="")
- {
- ImageBox.value=ImageSrc;
- ImagePic.src=ImageSrc;
- }
- return false;
- }
- function uploadacc(FileBox)
- {
- var FileSrc=window.showModalDialog("/UploadFile.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
- if(FileSrc!=null&&FileSrc!="")
- {
- FileBox.value=FileSrc;
- }
- return false;
- }
- function selectDefaultValue(selectName,defaultValue)
- {
- for(var i=0;i<selectName.length;i++)
- {
- if(selectName.options[i].value==defaultValue)
- {
- selectName.selectedIndex=i;
- }
- }
- }
- function openeditwindow(EditURL)
- {
- window.showModalDialog(EditURL,"","status:yes; resizable: yes; help:no; dialogWidth:696px; dialogHeight:350px");
- return false;
- }
- function hidden_top(){
- if (switchPointTop.innerText==5){
- switchPointTop.innerText=6;
- window.top.document.all.rowsFrame.rows="0,0,16,*";
- }
- else{
- switchPointTop.innerText=5;
- window.top.document.all.rowsFrame.rows="0,115,16,*";
- }
- }
- function hidden_left(){
- if (switchPointLeft.innerText==3){
- switchPointLeft.innerText=4;
- window.top.document.all.colsFrame.cols="0,18,*";
- }
- else{
- switchPointLeft.innerText=3;
- window.top.document.all.colsFrame.cols="20%,18,*";
- }
- }
- function AddAccessories(AccessoriesList)
- {
- var FileSrc=window.showModalDialog("/AddAccessory.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
- if(FileSrc!=null&&FileSrc!="")
- {
- if(FileSrc.indexOf(",")>0)
- {
- var Accessories = new Array();
- Accessories = FileSrc.split(",");
- var oOption = document.createElement("OPTION");
- AccessoriesList.options.add(oOption);
- oOption.innerText = Accessories[1];
- oOption.value = Accessories[0];
- }
- }
- return false;
- }
- function DelAccessories(AccessoriesList)
- {
- for(var i=0;i<AccessoriesList.options.length;i++)
- {
- if(AccessoriesList.options[i].selected)
- {
- AccessoriesList.options.remove(i)
- }
- }
- }
- function EditTextCopy(contentobject,contentvalue)
- {
- contentobject.value = contentvalue;
- }
- function GetUserIDAndNames(useridsobject,usernameobject)
- {
- //showx = event.screenX - event.offsetX; // + deltaX;
- //showy = event.screenY - event.offsetY+18; // + deltaY;
- showx = (screen.width-280)/2;
- showy = (screen.height-408)/2;
- var FileSrc=window.showModalDialog("/SelectUser2.jsp",","+useridsobject.value+",","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
- if(FileSrc==null)
- {
- }
- else if(FileSrc=="")
- {
- useridsobject.value="";
- usernameobject.value="";
- }
- else
- {
- var UserIDAndNames = new Array();
- UserIDAndNames = FileSrc.split("|!|");
- useridsobject.value=UserIDAndNames[0];
- usernameobject.value=UserIDAndNames[1];
- }
- }
- function GetUserNames(usernameobject)
- {
- //showx = event.screenX - event.offsetX; // + deltaX;
- //showy = event.screenY - event.offsetY+18; // + deltaY;
- showx = (screen.width-280)/2;
- showy = (screen.height-408)/2;
- var FileSrc=window.showModalDialog("/SelectUser2.jsp","","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
- if(FileSrc==null)
- {
- }
- else if(FileSrc=="")
- {
- usernameobject.value="";
- }
- else
- {
- var UserIDAndNames = new Array();
- UserIDAndNames = FileSrc.split("|!|");
- usernameobject.value=UserIDAndNames[1];
- }
- }
- function GetDepartIDAndNames(departidsobject, departnameobject)
- {
- //showx = event.screenX - event.offsetX; // + deltaX;
- //showy = event.screenY - event.offsetY+18; // + deltaY;
- showx = (screen.width-280)/2;
- showy = (screen.height-408)/2;
- var FileSrc=window.showModalDialog("/SelectDepartment1.jsp",","+departidsobject.value+",","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
- if(FileSrc==null)
- {
- }
- else if(FileSrc=="")
- {
- departidsobject.value="";
- departnameobject.value="";
- }
- else
- {
- var DepartIDAndNames = new Array();
- DepartIDAndNames = FileSrc.split("|!|");
- departidsobject.value=DepartIDAndNames[0];
- departnameobject.value=DepartIDAndNames[1];
- }
- }
- function PopUpSelectUser(UserName)
- {
- showx = event.screenX - event.offsetX; // + deltaX;
- showy = event.screenY - event.offsetY+18; // + deltaY;
- var retval = window.showModalDialog("/SelectUser1.jsp", "","dialogWidth:250px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
- if(retval!=null)
- {
- if(retval.indexOf("|!|")>0)
- {
- var strtemp = retval.split("|!|");
- UserName.value=strtemp[1];
- }
- }
- }