📄 protocolapply.jsp
字号:
xmlHttp.append("PRODORDERID",prodOrderId);
xmlHttp.append("PROTOCOLID",ProtocolTable.key);
var str = xmlHttp.submitAsString("AdslFlowService","removeSingleProtocol");
if ( str.substr(0,6) == new String("str-->") ) {
var text = str.substr(6,str.length);
if ( text != null) {
if(text.substr(0,1) == 2){
alert(text.substr(1,text.length)+"依赖于要删除的协议"+"!");
return false;
}
if(text == 0){
alert("删除协议失败,请重试!");
return false;
}
}
else{
alert("删除协议失败,请重试!");
return false;
}
}
else {
alert("删除协议失败,请重试!");
return false;
}
var row = ProtocolTable.selectedRow;
ProtocolTable.selectedIndex = 0;
if ( row != null ) {
row.removeNode(true);
}
}
}
function fnRemoveAll() {
var ProtocolTable = document.getElementById("protocolTable");
if ( ProtocolTable != null ) {
while ( ProtocolTable.tBodies[0].rows.length > 0 ) {
ProtocolTable.tBodies[0].deleteRow(0);
}
}
}
</script>
</head>
<body onLoad="init()">
<form action="" method="post" name="form1">
<input type="hidden" name="prodOrderId" value="<%=prodOrderId%>"/>
<input type="hidden" name="cityCode" value="<%=cityCode%>" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="OuterTable">
<tr class="OuterHead">
<td width="100%" colspan="3" class="title_td" align="left"><span
id="ItemTitle"><font face="webdings">8</font> <strong>设置协议信息</strong></span></td>
</tr>
<tr height="260px">
<td width="38%" class="body_td">
<fieldset style="height: 260px; width:305px; border: 1px solid #909090; overflow:auto;">
<legend>可选的协议信息</legend>
<custom:HtmlTree styleId="TreeList" datasource="TREEDATA" resourcepath='<%= resourcePath%>' rootid="45"
nodeidfield="PROT_INFO_SYSiPROTOCOL_ID"
upnodeidfield="SERV_PROTOCOL_INFOiPROTOCOL_ID"
textfield="PROT_INFO_SYSiPROTOCOL_NAME"
onselected="showProtocolDesc();"
selectedclass="TreeSelected" defaultclass="TreeDefault" overclass="TreeOver">
未加载到任何协议信息。
</custom:HtmlTree>
</fieldset></td>
<td width="6%" rowspan="2" class="InnerHead">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<!--<input name="button" type="button" value=">>" onclick="fnAcceptAll();" style="width: 80%"/>-->
</td>
</tr>
<tr>
<td align="center" valign="middle">
<input name="button" type="button" value=">" onclick="fnAccept();" style="width: 100%"/>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<input name="button" type="button" value="<" onclick="fnRemove();" style="width: 100%"/>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<!--<input name="button" type="button" value="<<" onclick="fnRemoveAll();" style="width: 80%"/>-->
</td>
</tr>
<tr height="50%"><td> </td></tr>
</table></td>
<td width="56%" valign="top">
<fieldset style="width: 455px; height: 260px; border: 1px solid #909090; overflow: auto;">
<legend align="center">已选协议信息</legend>
<table width="100%" border="0"
class="InnerTable" id="protocolTable"
cellspacing="0" cellpadding="1"
style="behavior:url(../../../Resource/table.htc)"
DefaultClass="DefaltRow"
keyName="key"
SelectedClass="SelectedRow"
multiple="true"
onunselected="">
<thead>
<tr>
<td width="10%" class="title_td" nowrap>名称</td>
<td width="15%" class="title_td" nowrap>是否排它性</td>
<td width="22%" class="title_td" nowrap>协议优惠的费用类型</td>
<td width="11%" class="title_td" nowrap>优惠类型</td>
<td width="14%" class="title_td" nowrap>优惠时间长度</td>
<td width="14%" class="title_td" nowrap>开始生效时间</td>
<td width="14%" class="title_td" nowrap>终止生效时间</td>
</tr>
</thead>
<%
DataTable select_protocol_dt = tf_BSSFlowRecord.getRecordFrom(BssParameter.SELECT_PROTOCOL_TABLE);
String protocolId = "";
String protocoName = "";
String reProtocolId = "";
String exclude = "";
String effDate = "";
String expDate = "";
if(select_protocol_dt != null && select_protocol_dt.getRows().getCount()>0){
for(int j=0;j<select_protocol_dt.getRows().getCount();j++){
protocolId = select_protocol_dt.getRow(j).getString(BssParameter.PROTOCOLID);
for(int i=0;i<protocol_dt.getRows().getCount();i++){
DataRow dataRow = protocol_dt.getRow(i);
reProtocolId = dataRow.getString("PROT_INFO_SYSiPROTOCOL_ID");
if(protocolId.equals(reProtocolId)){
protocoName = dataRow.getString("PROT_INFO_SYSiPROTOCOL_NAME");
exclude = dataRow.getString("PROT_INFO_SYSiEXCLUDE");
effDate = dataRow.getString("PROT_INFO_SYSiEFF_DATE");
expDate = dataRow.getString("PROT_INFO_SYSiEXP_DATE");
out.println("<tr key='");
out.println(reProtocolId);
out.println("' class=\"InnerMain\">");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(AdslFlowService.formatString(protocoName));
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(AdslFlowService.formatString(exclude));
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(" ");
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(" ");
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(" ");
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(AdslFlowService.formatString(effDate));
out.println("</td>");
out.println("<td class=\"body_td\" align=\"center\" nowrap>");
out.println(AdslFlowService.formatString(expDate));
out.println("</td></tr>");
}
}
}
}
%>
</table>
</fieldset>
</td>
</tr>
<tr height="240px">
<td class="body_td">
<fieldset style="width: 305px; height: 235px; border: 2px inset #e0e0e0;">
<legend>所点选的协议信息说明</legend>
<span id="protocolDesc"></span>
</fieldset>
</td>
<td class="body_td" valign="top">
<fieldset style="width: 455px; height: 235px; border: 1px solid #909090; overflow: auto;">
<legend align="center">本服务档案原有选协议信息</legend>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="InnerTable">
<tr>
<td width="10%" class="title_td" nowrap>名称</td>
<td width="15%" class="title_td" nowrap>是否排它性</td>
<td width="22%" class="title_td" nowrap>协议优惠的费用类型</td>
<td width="11%" class="title_td" nowrap>优惠类型</td>
<td width="14%" class="title_td" nowrap>优惠时间长度</td>
<td width="14%" class="title_td" nowrap>开始生效时间</td>
<td width="14%" class="title_td" nowrap>终止生效时间</td>
</tr>
<tr class="InnerMain">
<td class="body_td"> </td>
<td class="body_td"> </td>
<td class="body_td"> </td>
<td class="body_td"> </td>
<td class="body_td"> </td>
<td class="body_td"> </td>
<td class="body_td"> </td>
</tr>
</table></fieldset></td>
</tr>
<tr class="OuterFoot">
<td align="right" colspan="3" class="body_td">
<input type="button"
name="Submit"
class="button"
style="width:80px"
onClick="nextevent();"
value="下一步">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -