licenceprintsetlist.jsp

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· JSP 代码 · 共 193 行

JSP
193
字号
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="com.gs.util.*"%>
<%@ page import="com.gs.pageBuilder.util.*"%>
<%@ page import="com.gs.pageBuilder.model.*"%>
<%@ page import="com.gs.control.event.*"%>
<%@ page import="javax.servlet.http.*"%>
<%
try{
	String unit=(String)request.getAttribute("unit");
	ArrayList licencePrintSetList=(ArrayList)request.getAttribute("licencePrintSetList");
	LicencePrintSetupModel licencePrintSetupModel = null;
	String td="businessTd01LeftBig";
	String tempStrSelect="";

%>
<html>
<head>
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>执照偏移量维护</title>
</head>
<body class="businessBody01">
<table  border="0" width="90%">
		<tr>
		  <td><img src="<%=request.getContextPath()%>/images/bg3.gif" border="0" >&nbsp;<font class="textBusinessTitle">执照偏移量维护</font></td>
		</tr>
</table>
<style>
div.divStyle{
	width:100%;
	height:52%;
	z-index:1;
	overflow:auto;
}
div.showPageNum{
	display:none;
	font-size:10pt;
}
tr.showPageNum{
	display:none;
}
@media print {
	div.divStyle{
		width:100%;
		height:0;
		z-index:1;
		overflow:visible;

	}
	div.showPageNum{
		display:block;
		font-size:9pt;
	}
	tr.showPageNum{
		display:block;
	}
}
.pageEnd{page-break-before:always}
</style>
<div id="Layer1" class=divStyle>
       <table border="1" width="100%" class=businessTable00 id=stockman>
       <tr>
            <td  width="10%" height="31" class="businessTdTitle00"> <div align="center">序号</div></td>
            <td  width="40%" height="31" class="businessTdTitle00"> <div align="center">名称</div></td>
            <td height="50%" width="10%"  class="businessTdTitle00" > <div align="center">左偏移</div></td>
            <td height="50%" width="10%"  class="businessTdTitle00" > <div align="center">上偏移</div></td>
          </tr>
<%
if(licencePrintSetList==null){
	out.println("<tr ><td colspan='3' class=businessTd01><font class='textWarnPrompt'>该没有相关数据!</font></td></tr>");
}
else{
	for(int i=0;i<licencePrintSetList.size();i++){
	licencePrintSetupModel=(LicencePrintSetupModel)licencePrintSetList.get(i);
	td=td=="businessTd01LeftBig"?"businessTd00LeftBig":"businessTd01LeftBig";
	if(i==0)tempStrSelect="changItem('"+licencePrintSetupModel.getCODE()+"','"+licencePrintSetupModel.getEXPLAIN()+"','"+licencePrintSetupModel.getCONTENT()+"','"+licencePrintSetupModel.getPOSITION_LEFT()+"','"+licencePrintSetupModel.getPOSITION_TOP()+"',"+i+1+");";
	%>
	<tr onclick="changItem('<%=licencePrintSetupModel.getCODE()%>','<%=licencePrintSetupModel.getEXPLAIN()%>','<%=licencePrintSetupModel.getCONTENT()%>','<%=licencePrintSetupModel.getPOSITION_LEFT()%>','<%=licencePrintSetupModel.getPOSITION_TOP()%>',<%=i+1%>)" title="<%=licencePrintSetupModel.getCONTENT()%>" onmouseout="this.style.cursor ='default'"  onmouseover="this.style.cursor ='hand'">
	<td class="<%=td%>" height=30 class="businessTd01"><%=i+1%></td>
	<td class="<%=td%>"  height=30 class="businessTd01Left">&nbsp;<%=licencePrintSetupModel.getEXPLAIN()%></td>
	<td class="<%=td%>"  height=30 class="businessTd01Left">&nbsp;<%=licencePrintSetupModel.getPOSITION_LEFT()%></td>
	<td class="<%=td%>"  height=30 class="businessTd01Left">&nbsp;<%=licencePrintSetupModel.getPOSITION_TOP()%></td>
	</tr>
	<%}
}
%>
</table>
</div>
<center>
<FORM name=licencePrintSetForm action=<%=request.getContextPath()%>/pageBuilderAction.do method=post>
<input type="hidden" name="action">
<table border="0" width="90%" class=businessTable00>
<tr>
<td>
<fieldset style="padding: 2">
  <legend><font class=textWarnPrompt>分组框</font></legend>
  <table border="0"  cellpadding="0" cellspacing="0" width="100%" class=businessTable00>
    <tr>
      <td width="80" class="businessTd04Left">左偏移值: </td>
      <td class="businessTd04Left"><input type="text" name="position_left" size="7">&nbsp;&nbsp;&nbsp;&nbsp;上偏移值:<input type="text" name="position_top" size="7"></td>
      <td class="businessTd04Left" rowspan="3">左偏移正值页面向右移动。上偏移正值页面向下移动,反之。
      <br><br>您可以在提示选择说明按下面的例子录入。如:山东省工商行政管理局610室(setup 001)</td>
    </tr>
    <tr>
      <td class="businessTd04Left">偏移描述: </td>
      <td class="businessTd04Left"><input type="text" name="explain" size="40"></td>
    </tr>
    <tr>
      <td class="businessTd04Left">备注说明: </td>
      <td class="businessTd04Left"><textarea rows="2" name="content" cols="39"></textarea></td>
    </tr>
  </table>
  </fieldset>
  </td>
  </tr>
  </table>
<input type="hidden" name=code value="">
<input type="hidden" name=selectRow value="">
<input type="hidden" name=unit value="<%=unit%>">
<input type="button" value="添加记录" name="B1" onclick="actionPage(1)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">&nbsp;&nbsp;
<input type="button" value="删除记录" name="B1" onclick="actionPage(2)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">&nbsp;&nbsp;
<input type="button" value="保存修改" name="B1" onclick="actionPage(3)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">

</form>
<script>

function changItem(var1,var2,var3,var4,var5,selectnum){

	var rowT=document.all("stockman");
	var i=0;
	var j=0;
	var rowsNum=rowT.rows.length;
	if(document.all.selectRow.value!=""){
		for(j=0;j<rowT.rows[document.all.selectRow.value].cells.length;j++){
			if((document.all.selectRow.value)%2==0){
				rowT.rows[document.all.selectRow.value].cells[j].className="businessTd01LeftBig";
			}else{
				rowT.rows[document.all.selectRow.value].cells[j].className="businessTd00LeftBig";
			}
		}
	}

	for(j=0;j<rowT.rows[selectnum].cells.length;j++){
			rowT.rows[selectnum].cells[j].className="businessTd03LeftBig";
	}
	document.all.selectRow.value=selectnum;

	document.licencePrintSetForm.code.value=var1;
	document.licencePrintSetForm.explain.value=var2;
	document.licencePrintSetForm.content.value=var3;
	document.licencePrintSetForm.position_left.value=var4;
	document.licencePrintSetForm.position_top.value=var5;

}
function actionPage(idnum){
	//增加
	if(idnum==1){
		if(confirm('你确定要增加该记录吗?')){
			if(document.licencePrintSetForm.position_left.value==""||document.licencePrintSetForm.position_top.value==""){
				alert("偏移量不能为空!");
			}else{
				document.licencePrintSetForm.action.value="<%=PageBuilderEvent.Licence_printSetAdd%>";
				document.licencePrintSetForm.submit();
			}
		}
	}else
	//删除
	if(idnum==2){
		if(confirm('你确定要删除该记录吗?')){
			document.forms[0].action.value="<%=PageBuilderEvent.Licence_printSetDell%>";
			document.forms[0].submit();
		}
	}else
	//修改
	if(idnum==3){
		if(confirm('你确定要修改该记录吗?')){
			document.forms[0].action.value="<%=PageBuilderEvent.Licence_printSetUpdate%>";
			document.forms[0].submit();
		}
	}

}
<%=tempStrSelect%>
</script>
</body>
</html>
<%
}catch(Exception e)
{
	Debug.println("page: licencePrintSetList.jsp exception:"+e.getMessage());
}
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?