📄 device.jsp
字号:
while ( currRow != null && currRow.tagName.toLowerCase() != "tr" ) {
currRow = currRow.parentElement;
}
if ( currRow == null ) return ;
switchRowToText(currRow);
}
}
function switchRowToText(oTr) {
oTr.cells(3).innerHTML = " ";
oTr.cells(4).innerHTML = " ";
oTr.cells(5).innerHTML = " ";
oTr.cells(6).innerHTML = " ";
oTr.cells(7).innerHTML = " ";
}
function fn_dblselect() {
var inputs = outSideRole.selectedRow.getElementsByTagName("INPUT");
if ( inputs != null && inputs.length > 0 && inputs[0].name=="PRODUCTID") {
inputs[0].checked = ! inputs[0].checked;
fn_checkClick(inputs[0]);
}
}
function fn_checkClick(that){
if ( that == null ) return ;
if ( that.checked ) {
fn_selectrow(that);
}
else {
fn_unselectrow(that);
}
}
function getFeeBySo(productId){
try {
var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
xmlHttp.append("STAND_FEEiAREA_ID","<%= area_Id%>");
xmlHttp.append("STAND_FEEiPROD_ID",productId);
xmlHttp.append("STAND_FEEiACTION_TYPE","A");
xmlHttp.append("STAND_FEEiFEE_TYPE_ID","8");
xmlHttp.append("citycode","<%= cityCode%>");
var str = xmlHttp.submitAsString("OrderService","getBSSFeeBySo");
if ( str.substr(0,6) == new String("xml-->") ) {
try {
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.loadXML(str.substr(6));
if (xmlDoc.parseError.errorCode != 0) {
var myErr = xmlDoc.parseError;
throw myErr;
} else {
var root = xmlDoc.documentElement;
var oList = root.selectNodes("//body");
if ( oList.length != 1 ) throw "返回格式不正确。"
var xmlStr = oList.item(i).text;
xmlDoc.loadXML(xmlStr);
oList = xmlDoc.documentElement.selectNodes("//BBSFREEBYSO/STAND_FEEIPRICE");
if ( oList.length > 0 ) {
return oList.item(0).text;
}
}
} catch(ex) {}
}
else {
alert("加载价格信息失败。");
}
}
catch(ex){}
return "";
}
</script>
<body onload="init()">
<form action="" method="post" name="form1">
<input type="hidden" name="prodOrderId" value="<%=prodOrderId%>"/>
<input type="hidden" name="selectDeviceNbr" value="<%=selectDeviceNbr%>"/>
<input type="hidden" name="cityCode" value="<%=cityCode%>" /> <input type="hidden"
name="info" value="1" />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="OuterTable">
<tr>
<td class="Caption_Td"><jsp:include
page="../../../common/inc_top.jsp">
<jsp:param name="purvCode" value="<%=sPurvICode%>" />
</jsp:include></td>
</tr>
<tr class="OuterHead">
<td width="100%" class="title_td" align="left"><span
id="ItemTitle"><font face="webdings">8</font> <strong>选择终端设备</strong></span></td>
</tr>
<tr>
<td valign="top" class="InnerMain">
<table width="100%" border="0"
class="InnerTable" id="outSideRole"
cellspacing="0" cellpadding="1"
style="behavior:url(../../../Resource/table.htc)"
DefaultClass="DefaltRow"
keyName="key"
SelectedClass="SelectedRow"
multiple="true"
onselected=""
ondblclick="fn_dblselect();"
onunselected="">
<thead>
<tr>
<td width="3%" class="title_td" align="center" nowrap><strong>选择</strong></td>
<td width="20%" class="title_td" align="center" nowrap><strong>设备名称</strong></td>
<td width="5%" class="title_td" align="center" nowrap><strong>价格</strong></td>
<td width="15%" class="title_td" align="center" nowrap><strong>颜色</strong></td>
<td width="14%" class="title_td" align="center" nowrap><strong>维护级别</strong></td>
<td width="15%" class="title_td" align="center" nowrap><strong>产品归属</strong></td>
<td width="14%" class="title_td" align="center" nowrap><strong>规称协议</strong></td>
<td width="14%" class="title_td" align="center" nowrap><strong>安装类型</strong></td>
</tr>
</thead>
<tbody style="background-color: white;"><%
if(device_dt != null && device_dt.getRows().getCount() > 0){
String checked[] = new String[device_dt.getRows().getCount()];
for(int i=0;i<device_dt.getRows().getCount();i++){
DataRow dr = device_dt.getRow(i);
String productName = dr.getString("PRODiPROD_NAME");
String productId = dr.getString("PRODiPROD_ID");
String attach = " ";
String service = " ";
//查看已经选择过的设备
if(select_device_dt!=null && select_device_dt.getRows().getCount() > 0){
for(int j=0;j<select_device_dt.getRows().getCount();j++){
DataRow dr1 = select_device_dt.getRow(j);
String reProductId = dr1.getString(BssParameter.DEVICEID);
if(productId.equals(reProductId)){
checked[i] = "checked=\"checked\"";
String serivceId = AdslFlowService.getInfoByDervice(productId,select_service_dt,BssParameter.SERVICEID);
if(serivceId != null && !serivceId.equals("") && !serivceId.equals(" "))
service = BssInter2.getMean("SO_ACC_TERM","MTN_GRADE",cityCode,serivceId);
String attachId = AdslFlowService.getInfoByDervice(productId,select_attach_dt,BssParameter.ATTACHID);
if(attachId != null && !attachId.equals("") && !attachId.equals(" "))
attach = BssInter2.getMean("SO_ACC_TERM","PROPERTY",cityCode,attachId);
break;
}
}
}
/**查询产品归属*/
//String singlePrice = "";
//singlePrududct_dt = BssInter5.callWebQryFeeBySo(area_Id,productId,"A","8",cityCode);
//if(singlePrududct_dt != null && singlePrududct_dt.getRows().getCount() > 0){
//singlePrice = singlePrududct_dt.getRow(0).getString("STAND_FEEiPRICE");
//}
%>
<tr key="<%= productId%>">
<td class="body_td" nowrap align="center"><input type="checkbox" onclick="fn_checkClick(this);" name="PRODUCTID" value="<%= productId%>" <%=checked[i]%>/></td>
<td class="body_td" nowrap align="center"><%=productName%></td>
<td class="body_td" nowrap align="center"> </td>
<td class="body_td" nowrap align="center"> </td>
<td class="body_td" nowrap align="center"><%=service%></td>
<td class="body_td" nowrap align="center"><%=attach%></td>
<td class="body_td" nowrap align="center"> </td>
<td class="body_td" nowrap align="center"> </td>
</tr><%
}
}%>
</tbody>
</table>
</td>
</tr>
<tr class="OuterFoot">
<td class="body_td">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="70%"><font color="red">提示:双击可以选中一行!</font></td>
<td align="right" width="30%">
<input type="button" name="Submit" class="button" style="width:80px"
onclick="return nextevent();" value="下一步">
</td>
</tr>
</table></td>
</tr>
</table>
<div id="select_div" style="display:none;" title="以面的内容主要用于预先加载相应的Select数据。">
<!--修改下面下接选择框的textFieldName和valueFieldName属性-->
<custom:HtmlSelect style="width: 100%;" styleId="COLOR_LOAD" name="COLOR_LOAD" textFieldName="COLORNAME" valueFieldName="COLORCODE" dataSource="color_dt" disabled="true">
<custom:HtmlOption value="-1">选择颜色</custom:HtmlOption>
</custom:HtmlSelect>
<custom:HtmlSelect style="width: 100%" styleId="SERVICE_LOAD" name="SERVICE_LOAD" textFieldName="SP_STATUSiSTS_WORDS" valueFieldName="SP_STATUSiSTS_ID" dataSource="service_dt" disabled="true">
<custom:HtmlOption value="-1">选择级别</custom:HtmlOption>
</custom:HtmlSelect>
<custom:HtmlSelect style="width: 100%" styleId="PRODATTACH_LOAD" name="PRODATTACH_LOAD" textFieldName="SP_STATUSiSTS_WORDS" valueFieldName="SP_STATUSiSTS_ID" dataSource="prodattach_dt" disabled="true">
<custom:HtmlOption value="-1">选择归属</custom:HtmlOption>
</custom:HtmlSelect>
<custom:HtmlSelect style="width: 100%" styleId="RULEPROTOCAL_LOAD" name="RULEPROTOCAL_LOAD" textFieldName="RULEPROTOCALNAME" valueFieldName="RULEPROTOCALCODE" dataSource="ruleprotocal_dt" disabled="true">
<custom:HtmlOption value="-1">选择协议</custom:HtmlOption>
</custom:HtmlSelect>
<custom:HtmlSelect style="width: 100%" styleId="INSTALLTYPE_LOAD" name="INSTALLTYPE_LOAD" textFieldName="INSTALLTYPENAME" valueFieldName="INSTALLTYPECODE" dataSource="installtype_dt" disabled="true">
<custom:HtmlOption value="-1">选择类型</custom:HtmlOption>
</custom:HtmlSelect>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -