📄 materialclassselect.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 浏览材料类别
</TITLE>
<style>
td{
font-size:9pt;
}
button{
width:75px;
height:23px;
}
input{
width:100%;
}
</style>
<script>
var objSelectedClassDoc ;
objSelectedClassDoc=dialogArguments.objXMLDoc;
if (objSelectedClassDoc == null)
{
objSelectedClassDoc = new ActiveXObject("Microsoft.XMLDOM");
objSelectedClassDoc.async = false;
objSelectedClassDoc.load( "tree.xml" );
}
function ReturnValue()
{
window.returnValue = objSelectedClassDoc;
window.close();
}
function SelectClass()
{
MCT.SelectNode();
MCST.LoadTree(objSelectedClassDoc)
}
function RemoveClass()
{
var node = MCST.CurrentNode;
if (node == null)
return;
var nodeID = node.getAttribute("NodeID");
var xmlNode = objSelectedClassDoc.selectSingleNode("//Tree[@NodeID='"+nodeID+"']");
if (xmlNode != null)
{
xmlNode.parentNode.removeChild(xmlNode);
MCST.LoadTree(objSelectedClassDoc);
}
}
function Init()
{
MCST.LoadTree(objSelectedClassDoc);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY style="border:0px;background-color: menu;font-size:9pt;" scroll="no" leftmargin="15" topmargin="12" onresize="return false;" onload="Init()">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" ID="Table1">
<tr height="50">
<td valign="top">选择类别</td>
</tr>
<tr height="100%">
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="50%"><iframe width="100%" height="100%" src="MaterialClassTree.htm" id="MCT" name="MCT"></iframe></td>
<td align="center" style="padding:10px;">
<input type="button" value=">>" onclick="SelectClass()">
<br>
<br>
<br>
<input type="button" value="<<" onclick="RemoveClass()">
</td>
<td width="50%"><iframe width="100%" height="100%" src="MaterialClassSelectedTree.htm" id="MCST" name="MCST"></iframe></td>
</tr>
</table>
</td>
</tr>
<tr height="45">
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><nobr>类别: </nobr></td>
<td width="100%">
<input type="text" name="MaterialClass" readonly/>
<input name="MaterialClassCode" type="hidden"/>
</td>
</tr>
</table>
</td>
</tr>
<tr height="25">
<td align="right"><button onclick="ReturnValue()"> 确定 </button> <button onclick="window.close();">取消</button></td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -