⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 project_draft_modify_1.jsp

📁 java jsp教程
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ page import="com.icss.cnpc.project.vo.ScriptInfo" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%@ page import="java.util.List" %>
<%
	ScriptInfo sInfo = (ScriptInfo)request.getAttribute("scriptInfo");
	List auditedorgs = (List)session.getAttribute(sInfo.getProjectno());
	pageContext.setAttribute("auditedorgs",auditedorgs);
	String planYear = "";
	if(sInfo != null && sInfo.getPlannumber() != null){
		String planno = sInfo.getPlannumber();
		int len = planno.length();
		planYear = planno.substring(len-7,len-3);
	}
	String errCode = request.getParameter("errCode");
	if(errCode == null) errCode = "-1";
%>
<html>
<head>
<title>财务类底稿详细(审核/理)</title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/common/project.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xmlextras.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/xloadtree.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/codeDict.js"></script>
<script type="text/javascript">
webFXTreeConfig.rootIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openRootIcon	= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.folderIcon		= "<%=request.getContextPath()%>/images/xp/folder.png";
webFXTreeConfig.openFolderIcon= "<%=request.getContextPath()%>/images/xp/openfolder.png";
webFXTreeConfig.fileIcon		= "<%=request.getContextPath()%>/images/xp/file.png";
webFXTreeConfig.lMinusIcon		= "<%=request.getContextPath()%>/images/xp/Lminus.png";
webFXTreeConfig.lPlusIcon		= "<%=request.getContextPath()%>/images/xp/Lplus.png";
webFXTreeConfig.tMinusIcon		= "<%=request.getContextPath()%>/images/xp/Tminus.png";
webFXTreeConfig.tPlusIcon		= "<%=request.getContextPath()%>/images/xp/Tplus.png";
webFXTreeConfig.iIcon			= "<%=request.getContextPath()%>/images/xp/I.png";
webFXTreeConfig.lIcon			= "<%=request.getContextPath()%>/images/xp/L.png";
webFXTreeConfig.tIcon			= "<%=request.getContextPath()%>/images/xp/T.png";
webFXTreeConfig.blankIcon		= "<%=request.getContextPath()%>/images/xp/blank.png";
</script>

<style type="text/css">
<!--
body {
	background-image: url("<%=request.getContextPath()%>/images/grid.gif");
}
.inp1 {
BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #999999 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 15px; BACKGROUND-COLOR: #ffffff;FONT-SIZE: 9pt
 }
 .tag1 {
	background-color:#a6d0f2; 
	width:73px; position:absolute; 
	left:50px; 
	top: 14px;
	
	font-weight:300;
	height:15px; 
	border-bottom-color:#FFFFFF; 
	font-size:13px; 
	text-align:center;
	cursor:hand;
}
.tag2 {
	background-color:#EEF4FF; 
	width:73px; position:absolute; 
	left:123px; 
	top: 14px;
	
	font-weight:300;
	height:15px; 
	border-bottom-color:#FFFFFF; 
	font-size:13px; 
	text-align:center;
	cursor:hand;
}

-->
</style>
<script language="javascript">
var changedFlag = false;
function fireChange()
{
	changedFlag = true;
}
function _save(){

	//保存后跳转到attach
	var sForm = document.form1;
	var approvestates = sForm.approvestate;
	var radios = approvestates.length;
	var flag = false;
	var state;
	for(var i=0; i < radios; i++){
		if(approvestates[i].checked)
		{
			flag = true;
			state = approvestates[i].value;
			break;
		}
	}
	if(!flag){
		alert("请选择复核结果");
		return;
	}
	
	if(state == 1)
	{
		if(sForm.problemnote.value == "")
		{
			alert("请输入问题摘要");
			sForm.problemnote.focus();
			return;
		}
		if(getLength(sForm.problemnote.value) > 100)
		{
			alert("问题摘要内容不超过50个字");
			sForm.problemnote.focus();
			return;
		}
		var problemtype = sForm.problemtype;
		if(problemtype.value == "")
		{
			alert("请选择问题类别");
			return;
		}
		
		/*if(sForm.processnote.value == "")
		{
			alert("请输入处理意见");
			sForm.processnote.focus();
			return;
		}
		
		if(getLength(sForm.processnote.value) > 100)
		{
			alert("处理意见内容不超过50个字");
			sForm.processnote.focus();
			return;
		}*/
			
		var processtype = sForm.processtype;
		if(processtype.value == "")
		{
			alert("请选择处理方式");
			return;
		}	
	}
	else
	{
		if(sForm.approvenote.value == "")
		{
			alert("请填写复核意见");
			sForm.approvenote.focus();
			return;
		}
	}
	
	sForm.submit();
}

function fillCode(codeField, nameField, codeDiv, code, name)
{
	//wtlb006	 建设工程问题-财务
	//wtlb007  合同工程问题-财务
	var cons1 = "<%= Config.FIN_WTLB_CONS1 %>";
	var cons2 = "<%= Config.FIN_WTLB_CONS2 %>";
	var cont = "<%= Config.FIN_WTLB_CONT %>";
	eval("document.all." + codeField ).value =code;
	eval("document.all." + nameField ).value =name;
	document.getElementById(codeDiv).style.display = "none";
	if(code.indexOf("wtlb") >= 0 )
	{
		if(code.indexOf(cons1) >= 0 || code.indexOf(cons2) >= 0 || code.indexOf(cont) >= 0)
		{
			document.form1.processtype.value = "<%=Config.DEFAUL_PROC_TYPE%>";
			document.form1.processtypename.value = "<%=Config.DEFAUL_PROC_NAME%>";
		}
		else
		{
			document.form1.processtype.value = "";
			document.form1.processtypename.value = "";
		}	
	}	
}

function _viewAttach(scriptNo){
	if(changedFlag)
	{
		if(confirm("是否保存您修改的信息"))
		{
			_save();
			return;
		}
	}
	var scriptType = '<c:out value="${scriptInfo.scripttype}"/>';
	window.location = "/cnpc/servlet/ShowAttachmentServlet?belongNo=" + scriptNo + 
		"&attachType=0&scriptType=" + scriptType + "&toJsp=" + document.form1.toJsp.value;
}
function showMessage()
{
	var code = <%=errCode%>;
	if(code == 1)
	{
		alert("保存信息成功");
	}
	else if (code == 0)

⌨️ 快捷键说明

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