macro.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:3k
- <%@ Page Language="C#" %>
- <html>
- <head>
- <title>插入宏标记</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <style>
- #tooltip {
- position:absolute;
- border:1px solid #333;
- background:#f7f5d1;
- padding:2px 5px;
- color:#333;
- display:none;
- }
- </style>
- <script>
- function add(btn)
- {
- var macro=btn.parentNode.previousSibling.innerHTML;
- if(macro.indexOf("#[附件")>=0 || macro.indexOf("#[会签意见")>=0)
- {
- var obj=btn.parentNode.previousSibling.childNodes(1);
- if((obj.value<=0 || obj.value%1!=0) && obj.value!="")
- {
- alert("请输入有效数字!");
- obj.value="";
- return;
- }
- if(obj.id=="file_no")
- macro="#[附件"+obj.value+"]";
- else if(obj.id=="sign_no")
- macro="#[会签意见"+obj.value+"]";
-
- obj.value="";
- }
- var parent_window = parent.dialogArguments;
- parent_window.insertHtml(macro);
- }
- </script>
- </head>
- <body topmargin="0">
- <TABLE class="small" cellSpacing="1" cellPadding="3" width="100%" bgColor="#ffffff" border="0">
- <tr class="TableHeader">
- <td nowrap>宏标记及说明</td>
- <td nowrap>操作</td>
- </tr>
- <tr class="TableLine1">
- <td nowrap align="center" title="说明:代表表单名称">#[表单]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- <tr class="TableLine2">
- <td nowrap align="center" title="说明:代表文号或说明">#[文号]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- <!--
- <tr class="TableLine1">
- <td nowrap align="center" title="说明:代表文号计数器">#[文号计数器]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- -->
- <tr class="TableLine2">
- <td nowrap align="center" title="说明:代表流程开始时间">#[时间]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- <tr class="TableLine1">
- <td nowrap align="center" title="说明:代表工作流水号">#[流水号]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- <!--
- <tr class="TableLine2">
- <td nowrap align="center" title="说明:将列出该工作所有的会签意见,或指定步骤编号的会签意见">#[会签意见<input type="text" class="SmallInput" id=sign_no size=2 value="">]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- <tr class="TableLine1">
- <td nowrap align="center" title="说明:列出所有附件,或者第N个附加,N=1,2,3... ">#[附件<input type="text" class="SmallInput" id=file_no size=2 value="">]</td>
- <td nowrap align="center"><input class="SmallButton" type="button" value="添加" onclick="add(this)">
- </tr>
- -->
- <tr class="TableControl">
- <td colspan="2" align="center">
- <input type="button" class="BigButton" onclick="window.close();" value="关 闭" class="SmallButton">
- </td>
- </tr>
- </table>
- </body>
- </html>