⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buttons.js

📁 本系统的使用可以将工作的部分流程使用计算机的办公自动化处理
💻 JS
字号:
function closeWin()
{
  parent.parent.window.close();
}
function enabledBtns(bEnabled)
{
       // parent.frames("Buttons").document.getElementById("btnConfirm").disabled=1-bEnabled;
       // parent.frames("Buttons").document.getElementById("btnClose").disabled=0;
}
function saveInfo()
{
 	var index;
 	initItems();
 	enabledBtns(0);
 	for (index=0; index<parent.frames.item("AddFunction").document.all.item("FieldCode").length; index++)
 	{
   		parent.frames.item("AddFunction").document.all.item("FieldCode").options[index].selected=true;
   		parent.frames.item("AddFunction").document.all.item("Permit").options[index].selected=true;
 	}
 	parent.frames.item("AddFunction").document.forms.item("theAddForm").submit();
}

function resetInfo()
{
 	var index,FunCode,FunName,ListCount,Len;
  	if ( parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.length>0)
  	{
   		Count= parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.length;
   		for (index=Count-1;index>=0;index--)
   		{
    		FunCpde=parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.options(index).value;
    		FunName=parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.options(index).text;
    		parent.frames.item("AddFunction").document.forms.item("AddFunForm").SelectedList.remove(index);
    		Len=parent.frames.item("FunctionList").FunctionList.length;
    		parent.frames.item("FunctionList").FunctionList.length=Len+1;
    		parent.frames.item("FunctionList").FunctionList.options(Len).text=FunName;
    		parent.frames.item("FunctionList").FunctionList.options(Len).value=FunCode;
  		}
 	}
}

function initItems()
{
 	var optionLen,selObj;
 	parent.frames("AddFunction").document.all.item("Permit").length=0;
 	parent.frames("AddFunction").document.all.item("FieldCode").length=0;
 	selObj=parent.frames("AddFunction").document.all.tags("Select");
 	if (selObj!=null)
 	{
  		for (i=0;i<selObj.length-2;i++)
   		{
	 		optionLen=parent.frames("AddFunction").document.all.item("Permit").length;
	 		parent.frames("AddFunction").document.all.item("Permit").length=optionLen+1;
	 		parent.frames("AddFunction").document.all.item("FieldCode").length=optionLen+1;

         	parent.frames("AddFunction").document.all.item("Permit").options(optionLen).value=selObj[i].value;
         	parent.frames("AddFunction").document.all.item("Permit").options(optionLen).text=selObj[i].value;

        	parent.frames("AddFunction").document.all.item("FieldCode").options(optionLen).value=parent.frames("AddFunction").document.all.item("Tb").rows(i+1).id;
        	parent.frames("AddFunction").document.all.item("FieldCode").options(optionLen).text=parent.frames("AddFunction").document.all.item("Tb").rows(i+1).id;
    	}
 	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -