- 浏览: 84336 次
-
文章分类
最新评论
-
rmn190:
不错, 感谢楼主分享!
系统分析师 -
sfwhhp:
营养丰富,有待慢慢消化!
oralce -
wen999010565:
不错的待遇,不过已经过期了。
面试要求 提炼出发展方向 呵呵 -
snowhui:
不错啊,可是本人已经在一家公司做了,要过几年才会换
面试要求 提炼出发展方向 呵呵 -
yode:
谢谢,辛苦了,整理的很详细。。。
C++面试题
<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="/WEB-INF/jsp/pages/ImportTld.jsp"%>
<tiles:insert definition="BaseLayout" flush="true">
<tiles:put name="module" value="机顶盒管理" />
<tiles:put name="title" value="入库单管理" />
<tiles:put name="function" value="入库单新增" />
<tiles:put name="body" type="string">
<script language="JavaScript" type="text/javascript" src="scripts/WebCalendar.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/common.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/list.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/check.js"></script>
<script language="JavaScript" type="text/JavaScript">
var index_no = 1;
function init()
{
if(document.getElementById("chooseId").value=="-1")
{
document.getElementById("ter").style.display="none";
}
}
function redirectPage(indicatedPage, totalCount, pageSize, lastIndex){
var page = parseInt(indicatedPage);
if(isNaN(page)){
alert("请输入正确的页数");
} else {
pageIndex = (page - 1) * pageSize;
if(pageIndex > totalCount){
pageIndex = lastIndex;
}
ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount='+totalCount+'&startIndex='+pageIndex);
}
}
function strlen(str)
{
var len;
var i;
len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=3; else len++;
}
return len;
}
function searchSerialNo()
{
openWindow('SearchAction.do?type=serialNo','选择进货批号',400,400);
return false;
}
function validate()
{
var reg2=/^[a-zA-Z0-9_\.\s\(\)]+$/;
if(document.all.deptId.value=="-1")
{
alert("请选择部门仓库");
document.all.deptId.focus();
return false;
}
if(lrtrim(document.all.serialNo.value)=="")
{
alert("请输入进货批号");
document.all.serialNo.focus();
return false;
}
if(document.all.arriveTime.value=="")
{
alert("请输入到货时间");
document.all.arriveTime.focus();
return false;
}
if(document.all.modelId.value=="-1")
{
alert("请选择机顶盒型号");
document.all.modelId.focus();
return false;
}
if(document.all.chooseId.value=="-1")
{
alert("请选择一种导入方式");
document.all.chooseId.focus();
return false;
}
if(strlen(document.all.serialNo.value)>50)
{
alert("对不起,您输入的进货批号字符过长!");
document.all.serialNo.focus();
return false;
}
if(strlen(document.all.memo.value)>150)
{
alert("对不起,您输入的备注字符过长!");
document.all.memo.focus();
return false;
}
ownSubmit('StbMgtStoreOrderAction.do', '', '')
}
function add_one(){
var ter_table = document.getElementById('tertable');
var ter_tr = ter_table.insertRow(ter_table.rows.length);
index_no++;
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML = " 机顶盒编号:";
ter_tr.insertCell(1).innerHTML ="<input type='text' size='10' maxlength='10' name='terminalserialNo' />" ;
ter_tr.insertCell(2).innerHTML = "出厂日期:";
ter_tr.insertCell(3).innerHTML ="<input type='text' name='terminalExpDate' size='10' maxlength='10' onclick='SelectDate(this,\"yyyy-MM-dd\")' readonly='true' />";
ter_tr.insertCell(4).innerHTML = "<input type='button' class='btn2' value='删除' onclick='delete_one(\"tr"+index_no+"\")' />" ;
}
function delete_one(curObj){
document.getElementById('tertable').deleteRow(document.getElementById(curObj).rowIndex);
}
function impSelect(selVal)
{
if(selVal==1)
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
var ter_tr = ter_table.insertRow(ter_table.rows.length);
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML = " 机顶盒编号:" ;
ter_tr.insertCell(1).innerHTML ="<input type='text' size='10' name='terminalserialNo' maxlength='10' class='input' />" ;
ter_tr.insertCell(2).innerHTML = "出厂日期:" ;
ter_tr.insertCell(3).innerHTML ="<input type='text' name='terminalExpDate' class='input' readonly='true' size='10' maxlength='10' onclick='SelectDate(this,\"yyyy-MM-dd\")' />";
ter_tr.insertCell(4).innerHTML = "<input type='button' value='新增机顶盒' class='btn3' onclick='add_one()' /><input type='hidden' name='method' value='add'/>" ;
}
else if(selVal==2)
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
var ter_tr = ter_table.insertRow(ter_table.rows.length);
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML=" 请选择文件路径";
ter_tr.insertCell(1).innerHTML="<input type='file' name='uploadFile' size='40' /> <input type='hidden' name='method' value='importExcel'/>";
}
else
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="none";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
}
}
</script>
<div class=swidth id=main>
<html:form action="StbMgtStoreOrderAction.do" method="POST" enctype="multipart/form-data">
<html:hidden name="stbMgtStoreOrderForm" property="terminalId" />
<table class="table" cellSpacing=1 cellPadding=0>
<tbody>
<tr>
<td class=left>
仓库名称
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="deptId" styleClass="textbox2">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<logic:present name="stbMgtStoreOrderForm" property="deptList">
<html:optionsCollection property="deptList" />
</logic:present>
</html:select>
</td>
</tr>
<tr>
<td class=left>
进货批号
<span class="redfont">*</span>
</td>
<td class=right>
<html:text size="35" name="stbMgtStoreOrderForm" property="serialNo" styleClass="input" styleId="serialNo" />
<html:button property="method" styleClass="button" onclick="searchSerialNo();">
<bean:message key="button.dot" />
</html:button>
<html:button property="method" styleClass="button"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow & startIndex=0');">
<bean:message key="button.show" />
</html:button>
</td>
</tr>
<tr>
<td class=left>
到货时间
<span class="redfont">*</span>
</td>
<td class=right>
<html:text size="35" name="stbMgtStoreOrderForm" property="arriveTime" styleClass="textbox2" onclick="SelectDate(this,'yyyy-MM-dd')"
readonly="true" size="10" maxlength="10" styleId="arriveTime" />
</td>
</tr>
<tr>
<td class=left>
备注
<span class="redfont"> </span>
</td>
<td class=right>
<html:text onfocus="this.select()" size="35" name="stbMgtStoreOrderForm" property="memo" styleClass="input" styleId="memo" />
</td>
</tr>
<tr>
<td class=left>
机顶盒型号名
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="modelId" styleClass="textbox2">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<logic:present name="stbMgtStoreOrderForm" property="modelList">
<html:optionsCollection property="modelList" />
</logic:present>
</html:select>
</td>
</tr>
<tr>
<td class=left>
请选择导入方式
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="chooseId" styleClass="textbox2" onchange="impSelect(this.value)">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<html:optionsCollection property="importChoose" />
</html:select>
</td>
</tbody>
<tr id="ter">
<td class=left colspan="2">
<table id="tertable" class="table" cellSpacing=0 cellPadding=0>
<tr>
<logic:present name="stbMgtStoreOrderForm" property="uploadFile">
<td>
请选择文件路径
</td>
<td>
<input type='file' name='uploadFile' size='40' />
<input type='hidden' name='method' value='importExcel' />
</td>
</logic:present>
<%
if (request.getAttribute("terNo") != null) {
String[] terminalserialNo = (String[]) request
.getAttribute("terNo");
String[] terminalExpDate = (String[]) request
.getAttribute("terDate");
%>
<tr>
<td>
机顶盒编号:
</td>
<td>
<input type="text" size="10" name="terminalserialNo" class="input" value="<%=terminalserialNo[0]%>" />
</td>
<td>
出厂日期:
</td>
<td>
<input type="text" size="10" name="terminalExpDate" class="input" onclick="SelectDate(this,'yyyy-MM-dd')"
value="<%=terminalExpDate[0]%>" readonly="true" size="10" maxlength="10" />
</td>
<td>
<input type=button value="新增机顶盒" onclick="add_one()" class="btn3"></input>
<input type='hidden' name='method' value='add' />
</td>
</tr>
<%
for (int index_no = 1; index_no < terminalserialNo.length; index_no++) {
%>
<tr id="tr<%=index_no + 1%>">
<td>
机顶盒编号:
</td>
<td>
<input type='text' name='terminalserialNo' size="10" maxlength="10" value="<%=terminalserialNo[index_no]%>" />
</td>
<td>
出厂日期:
</td>
<td>
<input type='text' name='terminalExpDate' size="10" onclick="SelectDate(this,'yyyy-MM-dd')" readonly="true"
value="<%=terminalExpDate[index_no]%>" />
</td>
<td>
<input type='button' class='btn2' value='删除' onclick='delete_one("tr<%=index_no + 1%>")' />
</td>
</tr>
<%
}
}
%>
</table>
</td>
</tr>
<tr>
<td>
</td>
<td class=right>
<logic:present name="add">
<html:button property="method=add" styleClass="btn2" onclick="validate()">
<bean:message key="button.confirm" />
</html:button>
</logic:present>
<html:reset styleClass="btn2">
<bean:message key="button.reset" />
</html:reset>
<html:button property="method=list" styleClass="btn2" onclick="window.location.href='StbMgtStoreOrderSrhAction.do?method=search'">
<bean:message key="button.cancel" />
</html:button>
</td>
</tr>
</table>
<logic:present name="searchResult" property="totalCount">
<table class="searchtb" cellSpacing=1 cellPadding=0>
<div class="iconimg pal1">
共有
<bean:write name="searchResult" property="totalCount" />
条记录
</div>
<div class="none1">
</div>
<table cellpadding=0 cellspacing=1 class="table">
<tr class="ttitle">
<td class="right">
</td>
<td class="right">
<strong>机顶盒编号</strong>
</td>
<td class="right">
<strong>机顶盒型号名</strong>
</td>
<td class="right">
<strong>进货价格</strong>
</td>
<td class="right">
<strong>状态</strong>
</td>
<td class="right">
<strong>出厂日期</strong>
</td>
</tr>
<logic:iterate id="terminalId" indexId="terminalIndex" name="searchResult" property="items">
<tr onmouseover="this.style.backgroundColor='#c1edff'" onmouseout="this.style.backgroundColor=''">
<td class="right">
<jsp:include page="/WEB-INF/jsp/pages/IncludeIndexes.jsp">
<jsp:param name="indexes" value="<%=terminalIndex%>" />
</jsp:include>
</td>
<td class="right">
<bean:write name="terminalId" property="serialNo" />
</td>
<td class="right">
<logic:present name="terminalId" property="model">
<bean:write name="terminalId" property="model.modelName" />
</logic:present>
</td>
<td class="right">
<bean:write name="terminalId" property="model.selPrice" />
</td>
<td class="right">
<logic:equal value="1" name="terminalId" property="status">
未占用
</logic:equal>
<logic:equal value="2" name="terminalId" property="status">
占用
</logic:equal>
<logic:equal value="3" name="terminalId" property="status">
预占用
</logic:equal>
<logic:equal value="4" name="terminalId" property="status">
预撤销
</logic:equal>
<logic:equal value="5" name="terminalId" property="status">
已出库
</logic:equal>
<logic:equal value="6" name="terminalId" property="status">
损坏
</logic:equal>
<logic:equal value="7" name="terminalId" property="status">
已删除
</logic:equal>
</td>
<td class="right">
<bean:write name="terminalId" property="expDate" />
</td>
<td>
<logic:present name="add">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=preUpdateTerNew&terminalId=<bean:write name="terminalId" property="terminalId" />')">
<img src="images/icon/edit.gif" title="编辑" width="16" height="16" border="0"> </a>
</logic:present>
<logic:present name="add">
<a href="#"
onclick="return ownDelete('StbMgtStoreOrderAction.do?method=updateTerStatus', 'terminalId', '<bean:write name="terminalId" property="terminalId" />', '<bean:message key="confirm.delete"/><customTag:write name="terminalId" property="serialNo" />')">
<img src="images/icon/del.gif" title="删除" width="16" height="16" border="0"> </a>
</logic:present>
</td>
</tr>
</logic:iterate>
<tr>
<td colspan="7">
<div align="right">
<logic:equal name="searchResult" property="enbleFirstPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=0')">
<img src="images/icon/first.gif" title="第一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleFirstPage" value="false">
<img src="images/icon/first_out.gif" title="第一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleFormerPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="previousIndex" />')">
<img src="images/icon/pre.gif" title="上一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleFormerPage" value="false">
<img src="images/icon/pre_out.gif" title="上一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleNextPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="nextIndex" />')">
<img src="images/icon/next.gif" title="下一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleNextPage" value="false">
<img src="images/icon/next_out.gif" title="下一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleLastPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="lastPageIndex" />')">
<img src="images/icon/last.gif" title="最后一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleLastPage" value="false">
<img src="images/icon/last_out.gif" title="最后一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
第
<bean:write name="searchResult" property="currentPage" />
页 共
<bean:write name="searchResult" property="totalIndex" />
页 共
<bean:write name="searchResult" property="totalCount" />
条 选择
<input name="textfield3" type="text" id="indicatedIndex" class="textbox" size="3" />
页
<img id="directImg" src="images/icon/go.gif" width="16" height="13" align="absmiddle"
onclick="redirectPage(document.getElementById('indicatedIndex').value,'<bean:write name="searchResult" property="totalCount" />','<bean:write name="searchResult" property="pageSize" />','<bean:write name="searchResult" property="lastPageIndex" />');" />
</div>
</td>
</tr>
</table>
</logic:present>
</table>
</html:form>
</tiles:put>
</tiles:insert>
<%@include file="/WEB-INF/jsp/pages/ImportTld.jsp"%>
<tiles:insert definition="BaseLayout" flush="true">
<tiles:put name="module" value="机顶盒管理" />
<tiles:put name="title" value="入库单管理" />
<tiles:put name="function" value="入库单新增" />
<tiles:put name="body" type="string">
<script language="JavaScript" type="text/javascript" src="scripts/WebCalendar.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/common.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/list.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/check.js"></script>
<script language="JavaScript" type="text/JavaScript">
var index_no = 1;
function init()
{
if(document.getElementById("chooseId").value=="-1")
{
document.getElementById("ter").style.display="none";
}
}
function redirectPage(indicatedPage, totalCount, pageSize, lastIndex){
var page = parseInt(indicatedPage);
if(isNaN(page)){
alert("请输入正确的页数");
} else {
pageIndex = (page - 1) * pageSize;
if(pageIndex > totalCount){
pageIndex = lastIndex;
}
ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount='+totalCount+'&startIndex='+pageIndex);
}
}
function strlen(str)
{
var len;
var i;
len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=3; else len++;
}
return len;
}
function searchSerialNo()
{
openWindow('SearchAction.do?type=serialNo','选择进货批号',400,400);
return false;
}
function validate()
{
var reg2=/^[a-zA-Z0-9_\.\s\(\)]+$/;
if(document.all.deptId.value=="-1")
{
alert("请选择部门仓库");
document.all.deptId.focus();
return false;
}
if(lrtrim(document.all.serialNo.value)=="")
{
alert("请输入进货批号");
document.all.serialNo.focus();
return false;
}
if(document.all.arriveTime.value=="")
{
alert("请输入到货时间");
document.all.arriveTime.focus();
return false;
}
if(document.all.modelId.value=="-1")
{
alert("请选择机顶盒型号");
document.all.modelId.focus();
return false;
}
if(document.all.chooseId.value=="-1")
{
alert("请选择一种导入方式");
document.all.chooseId.focus();
return false;
}
if(strlen(document.all.serialNo.value)>50)
{
alert("对不起,您输入的进货批号字符过长!");
document.all.serialNo.focus();
return false;
}
if(strlen(document.all.memo.value)>150)
{
alert("对不起,您输入的备注字符过长!");
document.all.memo.focus();
return false;
}
ownSubmit('StbMgtStoreOrderAction.do', '', '')
}
function add_one(){
var ter_table = document.getElementById('tertable');
var ter_tr = ter_table.insertRow(ter_table.rows.length);
index_no++;
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML = " 机顶盒编号:";
ter_tr.insertCell(1).innerHTML ="<input type='text' size='10' maxlength='10' name='terminalserialNo' />" ;
ter_tr.insertCell(2).innerHTML = "出厂日期:";
ter_tr.insertCell(3).innerHTML ="<input type='text' name='terminalExpDate' size='10' maxlength='10' onclick='SelectDate(this,\"yyyy-MM-dd\")' readonly='true' />";
ter_tr.insertCell(4).innerHTML = "<input type='button' class='btn2' value='删除' onclick='delete_one(\"tr"+index_no+"\")' />" ;
}
function delete_one(curObj){
document.getElementById('tertable').deleteRow(document.getElementById(curObj).rowIndex);
}
function impSelect(selVal)
{
if(selVal==1)
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
var ter_tr = ter_table.insertRow(ter_table.rows.length);
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML = " 机顶盒编号:" ;
ter_tr.insertCell(1).innerHTML ="<input type='text' size='10' name='terminalserialNo' maxlength='10' class='input' />" ;
ter_tr.insertCell(2).innerHTML = "出厂日期:" ;
ter_tr.insertCell(3).innerHTML ="<input type='text' name='terminalExpDate' class='input' readonly='true' size='10' maxlength='10' onclick='SelectDate(this,\"yyyy-MM-dd\")' />";
ter_tr.insertCell(4).innerHTML = "<input type='button' value='新增机顶盒' class='btn3' onclick='add_one()' /><input type='hidden' name='method' value='add'/>" ;
}
else if(selVal==2)
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
var ter_tr = ter_table.insertRow(ter_table.rows.length);
ter_tr.id="tr"+index_no;
ter_tr.insertCell(0).innerHTML=" 请选择文件路径";
ter_tr.insertCell(1).innerHTML="<input type='file' name='uploadFile' size='40' /> <input type='hidden' name='method' value='importExcel'/>";
}
else
{
var ter_table = document.getElementById('tertable');
document.getElementById("ter").style.display="none";
var rowNum=ter_table.rows.length;
for (var i=0;i<rowNum;i++)
{
ter_table.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
}
}
</script>
<div class=swidth id=main>
<html:form action="StbMgtStoreOrderAction.do" method="POST" enctype="multipart/form-data">
<html:hidden name="stbMgtStoreOrderForm" property="terminalId" />
<table class="table" cellSpacing=1 cellPadding=0>
<tbody>
<tr>
<td class=left>
仓库名称
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="deptId" styleClass="textbox2">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<logic:present name="stbMgtStoreOrderForm" property="deptList">
<html:optionsCollection property="deptList" />
</logic:present>
</html:select>
</td>
</tr>
<tr>
<td class=left>
进货批号
<span class="redfont">*</span>
</td>
<td class=right>
<html:text size="35" name="stbMgtStoreOrderForm" property="serialNo" styleClass="input" styleId="serialNo" />
<html:button property="method" styleClass="button" onclick="searchSerialNo();">
<bean:message key="button.dot" />
</html:button>
<html:button property="method" styleClass="button"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow & startIndex=0');">
<bean:message key="button.show" />
</html:button>
</td>
</tr>
<tr>
<td class=left>
到货时间
<span class="redfont">*</span>
</td>
<td class=right>
<html:text size="35" name="stbMgtStoreOrderForm" property="arriveTime" styleClass="textbox2" onclick="SelectDate(this,'yyyy-MM-dd')"
readonly="true" size="10" maxlength="10" styleId="arriveTime" />
</td>
</tr>
<tr>
<td class=left>
备注
<span class="redfont"> </span>
</td>
<td class=right>
<html:text onfocus="this.select()" size="35" name="stbMgtStoreOrderForm" property="memo" styleClass="input" styleId="memo" />
</td>
</tr>
<tr>
<td class=left>
机顶盒型号名
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="modelId" styleClass="textbox2">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<logic:present name="stbMgtStoreOrderForm" property="modelList">
<html:optionsCollection property="modelList" />
</logic:present>
</html:select>
</td>
</tr>
<tr>
<td class=left>
请选择导入方式
<span class="redfont">*</span>
</td>
<td class=right>
<html:select name="stbMgtStoreOrderForm" property="chooseId" styleClass="textbox2" onchange="impSelect(this.value)">
<html:option value="-1">
<bean:message key="info.select" />
</html:option>
<html:optionsCollection property="importChoose" />
</html:select>
</td>
</tbody>
<tr id="ter">
<td class=left colspan="2">
<table id="tertable" class="table" cellSpacing=0 cellPadding=0>
<tr>
<logic:present name="stbMgtStoreOrderForm" property="uploadFile">
<td>
请选择文件路径
</td>
<td>
<input type='file' name='uploadFile' size='40' />
<input type='hidden' name='method' value='importExcel' />
</td>
</logic:present>
<%
if (request.getAttribute("terNo") != null) {
String[] terminalserialNo = (String[]) request
.getAttribute("terNo");
String[] terminalExpDate = (String[]) request
.getAttribute("terDate");
%>
<tr>
<td>
机顶盒编号:
</td>
<td>
<input type="text" size="10" name="terminalserialNo" class="input" value="<%=terminalserialNo[0]%>" />
</td>
<td>
出厂日期:
</td>
<td>
<input type="text" size="10" name="terminalExpDate" class="input" onclick="SelectDate(this,'yyyy-MM-dd')"
value="<%=terminalExpDate[0]%>" readonly="true" size="10" maxlength="10" />
</td>
<td>
<input type=button value="新增机顶盒" onclick="add_one()" class="btn3"></input>
<input type='hidden' name='method' value='add' />
</td>
</tr>
<%
for (int index_no = 1; index_no < terminalserialNo.length; index_no++) {
%>
<tr id="tr<%=index_no + 1%>">
<td>
机顶盒编号:
</td>
<td>
<input type='text' name='terminalserialNo' size="10" maxlength="10" value="<%=terminalserialNo[index_no]%>" />
</td>
<td>
出厂日期:
</td>
<td>
<input type='text' name='terminalExpDate' size="10" onclick="SelectDate(this,'yyyy-MM-dd')" readonly="true"
value="<%=terminalExpDate[index_no]%>" />
</td>
<td>
<input type='button' class='btn2' value='删除' onclick='delete_one("tr<%=index_no + 1%>")' />
</td>
</tr>
<%
}
}
%>
</table>
</td>
</tr>
<tr>
<td>
</td>
<td class=right>
<logic:present name="add">
<html:button property="method=add" styleClass="btn2" onclick="validate()">
<bean:message key="button.confirm" />
</html:button>
</logic:present>
<html:reset styleClass="btn2">
<bean:message key="button.reset" />
</html:reset>
<html:button property="method=list" styleClass="btn2" onclick="window.location.href='StbMgtStoreOrderSrhAction.do?method=search'">
<bean:message key="button.cancel" />
</html:button>
</td>
</tr>
</table>
<logic:present name="searchResult" property="totalCount">
<table class="searchtb" cellSpacing=1 cellPadding=0>
<div class="iconimg pal1">
共有
<bean:write name="searchResult" property="totalCount" />
条记录
</div>
<div class="none1">
</div>
<table cellpadding=0 cellspacing=1 class="table">
<tr class="ttitle">
<td class="right">
</td>
<td class="right">
<strong>机顶盒编号</strong>
</td>
<td class="right">
<strong>机顶盒型号名</strong>
</td>
<td class="right">
<strong>进货价格</strong>
</td>
<td class="right">
<strong>状态</strong>
</td>
<td class="right">
<strong>出厂日期</strong>
</td>
</tr>
<logic:iterate id="terminalId" indexId="terminalIndex" name="searchResult" property="items">
<tr onmouseover="this.style.backgroundColor='#c1edff'" onmouseout="this.style.backgroundColor=''">
<td class="right">
<jsp:include page="/WEB-INF/jsp/pages/IncludeIndexes.jsp">
<jsp:param name="indexes" value="<%=terminalIndex%>" />
</jsp:include>
</td>
<td class="right">
<bean:write name="terminalId" property="serialNo" />
</td>
<td class="right">
<logic:present name="terminalId" property="model">
<bean:write name="terminalId" property="model.modelName" />
</logic:present>
</td>
<td class="right">
<bean:write name="terminalId" property="model.selPrice" />
</td>
<td class="right">
<logic:equal value="1" name="terminalId" property="status">
未占用
</logic:equal>
<logic:equal value="2" name="terminalId" property="status">
占用
</logic:equal>
<logic:equal value="3" name="terminalId" property="status">
预占用
</logic:equal>
<logic:equal value="4" name="terminalId" property="status">
预撤销
</logic:equal>
<logic:equal value="5" name="terminalId" property="status">
已出库
</logic:equal>
<logic:equal value="6" name="terminalId" property="status">
损坏
</logic:equal>
<logic:equal value="7" name="terminalId" property="status">
已删除
</logic:equal>
</td>
<td class="right">
<bean:write name="terminalId" property="expDate" />
</td>
<td>
<logic:present name="add">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=preUpdateTerNew&terminalId=<bean:write name="terminalId" property="terminalId" />')">
<img src="images/icon/edit.gif" title="编辑" width="16" height="16" border="0"> </a>
</logic:present>
<logic:present name="add">
<a href="#"
onclick="return ownDelete('StbMgtStoreOrderAction.do?method=updateTerStatus', 'terminalId', '<bean:write name="terminalId" property="terminalId" />', '<bean:message key="confirm.delete"/><customTag:write name="terminalId" property="serialNo" />')">
<img src="images/icon/del.gif" title="删除" width="16" height="16" border="0"> </a>
</logic:present>
</td>
</tr>
</logic:iterate>
<tr>
<td colspan="7">
<div align="right">
<logic:equal name="searchResult" property="enbleFirstPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=0')">
<img src="images/icon/first.gif" title="第一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleFirstPage" value="false">
<img src="images/icon/first_out.gif" title="第一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleFormerPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="previousIndex" />')">
<img src="images/icon/pre.gif" title="上一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleFormerPage" value="false">
<img src="images/icon/pre_out.gif" title="上一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleNextPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="nextIndex" />')">
<img src="images/icon/next.gif" title="下一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleNextPage" value="false">
<img src="images/icon/next_out.gif" title="下一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
<logic:equal name="searchResult" property="enbleLastPage" value="true">
<a href="#"
onclick="ownSubmit('StbMgtStoreOrderAction.do?method=terminalShow&totalCount=<bean:write name="searchResult" property="totalCount" />&startIndex=<bean:write name="searchResult" property="lastPageIndex" />')">
<img src="images/icon/last.gif" title="最后一页" width="17" height="17" border="0" align="absmiddle"> </a>
</logic:equal>
<logic:equal name="searchResult" property="enbleLastPage" value="false">
<img src="images/icon/last_out.gif" title="最后一页" width="17" height="17" border="0" align="absmiddle">
</logic:equal>
第
<bean:write name="searchResult" property="currentPage" />
页 共
<bean:write name="searchResult" property="totalIndex" />
页 共
<bean:write name="searchResult" property="totalCount" />
条 选择
<input name="textfield3" type="text" id="indicatedIndex" class="textbox" size="3" />
页
<img id="directImg" src="images/icon/go.gif" width="16" height="13" align="absmiddle"
onclick="redirectPage(document.getElementById('indicatedIndex').value,'<bean:write name="searchResult" property="totalCount" />','<bean:write name="searchResult" property="pageSize" />','<bean:write name="searchResult" property="lastPageIndex" />');" />
</div>
</td>
</tr>
</table>
</logic:present>
</table>
</html:form>
</tiles:put>
</tiles:insert>
相关推荐
本资源“Layui表格行添加编辑删除操作和保存数据代码.zip”包含了一个完整的示例,演示了如何在Layui表格中实现动态的行添加、编辑和删除功能,并且将这些操作与数据保存相结合。下面我们将详细探讨这些知识点。 ...
在.NET开发环境中,动态添加行是一项常见的需求,特别是在构建数据展示或者用户交互界面时。这里的“.NET表格动态添加行”是指在运行时通过编程方式向HTML表格或...在实际项目中,可以根据具体需求调整和扩展这些方法。
这个方法实现了向指定位置的表格中添加行,并填充数据的功能。它接收三个参数:表格索引、需要添加的行数以及数据集合。 5. **注意事项**: - 当使用Word对象模型时,需要注意内存释放问题,确保在使用完毕后释放...
2. **新增行**:要向表格添加新行,首先需要创建一个`<tr>`元素,然后为该行添加单元格(`<td>`)。这可以通过`document.createElement()`方法实现,最后使用`appendChild()`将新行添加到表格的`<tbody>`元素中。...
在EXT中,"动态新增一行"是指在表格或者布局中,通过用户操作(比如点击按钮)来动态地添加新的行元素,这些元素可以是文本框、下拉框等交互组件。 EXT中的Column Layout是一种布局方式,适用于创建网格或表格形式...
- 在页面加载完成后,遍历数据数组,将每条数据转化为表格行并添加到表格中。 3. **动态增加数据** - 设计一个`addRow`函数,接收新数据作为参数。 - 在函数内部,创建新的行元素,为每个数据字段创建单元格,并...
在IT行业中,前端开发经常会遇到需要对表格数据进行动态操作的需求,例如添加、编辑、删除以及保存等。Layui是一个流行的...实际项目中,你需要根据具体需求对代码进行适当的调整,例如处理数据源、错误处理等。
通过这样的优化,用户可以直接在表格中编辑单元格内容,点击“新增”按钮即可添加新行,而无需双击激活编辑。右侧固定列包含“移除”按钮,单击即可删除对应行。 通过这种方式,我们不仅简化了代码结构,提升了...
综上所述,TableLayout在Android开发中提供了一种强大且灵活的方式来组织和展示数据,通过动态操作行和统计数据,我们可以创建出交互性强、功能丰富的表格应用。在实际开发中,结合其他组件和设计模式,TableLayout...
本项目主要功能是读取Excel数据后 显示到表格中 然后通过配置 Excel表头 和数据库的表头进行字段匹配 后新增到数据库(项目中的 SqlHelper类是数据库操作类 可自行封装 。数据库 是用的是Oracle,UI:Layui,JS:...
上述代码中的`$("#myTable")`是jQuery选择器,用于选取id为"myTable"的表格元素,`.append()`方法则将新建的行追加到选中的表格末尾。 对于删除行的功能,我们可以为每行添加一个删除按钮,然后监听点击事件来移除...
补充耕地项目新增耕地核定表.docx
在"jqGrid表格应用——新增与删除数据"这个主题中,我们可以探讨以下知识点: 1. **jqGrid的基本结构**:jqGrid的HTML结构通常包括一个`<table>`元素,以及必要的CSS和JavaScript引用。例如,`index.html`可能包含`...
这份"参考资料-附件1-4-项目实施日志-新增.zip"压缩包文件,显然包含了一个名为"附件1-4-项目实施日志-新增.xls"的Excel表格,用于详细记录项目的实施过程中的关键信息。以下是对这一主题的详细说明: 1. **项目...
标题中的“运用websql写的table表格、新增、修改、删除”指的是使用WebSQL数据库来创建一个可进行数据操作的表格。WebSQL是基于SQLite的,它是一个嵌入式的、轻量级的关系型数据库,主要用于在浏览器中存储大量结构...
当删除表格中的行时,默认情况下,Matlab会自动上移下一行填充空位。为避免这种情况,我们需要在删除行后手动调整所有行的索引。在删除按钮的回调函数中,使用`deleterows`删除指定行,然后遍历剩余行,更新其数据...
总之,“树形表格treetable完整版”提供了一种高效且灵活的方式来处理和展示层次数据,配合其演示demo,开发者可以轻松地将这种功能整合到自己的项目中,提升数据展现的直观性和用户体验。通过二次开发,可以进一步...
在使用Table组件时,我们需要通过"data"属性来绑定数据源,数据源可以是数组,数组中的每个元素对应表格中的一行。通过"columns"属性定义表格的列,包括列的标题、字段名以及自定义的渲染函数,这使得我们可以根据...
这些表格涵盖了从工程策划到施工过程的方方面面,如施工组织设计报审、工程划分报审等,共计29种,每一种表格都对应了项目实施中的关键环节。它们为工程的质量和安全提供了重要的保障。 监理机构在质量管理中扮演着...
因为项目需求,需要动态编辑表格,但是layui的编辑表格只适合 【有数据】修改功能用,并不适合【无数据】新增的功能使用,所以本人研究了几日,才写出了这么一个 无数据绑定,当然也可以自行绑定数据源,并且可以...