<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="NetSkyTagLibs" prefix="netsky"%>
<jsp:useBean id="now" class="java.util.Date" />
<script language="javascript">
$(function(){
setFormSlaveStyle();
});
//取消关联单项工程
function delDxgc(id){
var _data = {'id':id,'htxx_id':htxx_id};
$.ajax({
type: 'POST',
url:'gcgl/ajaxDelDxgc.do',
data:_data,
dataType:"json",
cache: false,
success: navTabAjaxDone,
error: DWZ.ajaxError
});
}
</script>
<div class="page">
<!-- 表单头 -->
<div class="pageHeader">
<div class="searchBar">
<!-- 表单名称 -->
<h1>合同登记表</h1>
</div>
</div>
<!-- 主操作按钮 -->
<div class="panelBar">
<ul class="toolBar" id="_flowButton">
<c:forEach var="button" items="${buttonList}">
<li>
<c:set var="picUri" value="${button.picUri }"/>
<c:if test="${empty picUri}">
<c:set var="picUri" value="issued"/>
</c:if>
<a class="${picUri }" href="${button.url}"><span>${button.name}</span></a>
</li>
<li class="line">line</li>
</c:forEach>
</ul>
</div>
<div id="autoform_body" class="pageContent" layoutH="0">
<!-- 表单主体 -->
<div id="mainBody" class="pageFormContent" layouth="80">
<form id="auto_form" action="save.do" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
<input type="hidden" name="tableInfomation" value="noFatherTable:com.txpms.dataObjects.Td01_gcxx" />
<p><label>合同状态:</label>
<netsky:htmlSelect name="Td05_htxx.HTZT" objectForOption="_htztlist" style="width:130px;" valueForOption="name" showForOption="name" value="${td05.htzt}" extend="" extendPrefix="true"/>
</p>
<div style="height:0px;width:100%"></div>
<p><label>备注:</label>
<textarea name="Td05_htxx.BZ" style="width:596px;height:110px;">${td05.bz }</textarea>
</p>
<div>
<h3 style="text-align:left;color:blue;"> 相关单项工程 <a href="xmgl/glgcEdit.do?td05_id=${td05.id}" target="dialog" width="560" height="360" title="设置关联的单项工程">[设置关联]</a></h3>
<table class="table" width="100%">
<thead>
<tr>
<th style="width: 0.6%;"></th>
<th style="width: 14.4%;" orderField="gcbh">工程编号</th>
<th style="width: 40%;" orderField="gcmc">工程名称</th>
<th style="width: 10%;" orderField="xmb">项目部</th>
<th style="width: 10%;" orderField="xmjl">项目经理</th>
<th style="width: 15%;" orderField="htje">合同额</th>
<th style="width: 10%;" orderField="">是否取消关联</th>
</tr>
</thead>
<tbody>
<c:set var="offset" value="0"/>
<c:forEach var="obj" items="${td01List}">
<c:set var="offset" value="${offset+1}"/>
<tr target="td01_id" rel="${obj.id}">
<td></td>
<td>${obj.gcbh }</td>
<td>${obj.gcmc }</td>
<td>${obj.xmb }</td>
<td>${obj.xmjl }</td>
<td><fmt:formatNumber pattern="0.00" value=""/></td>
<td><a href="javascript:delDxgc(${obj.id})">取消关联</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div defH="150" class="loadFileArea" loadfile="xmgl/kpmxListForInclude.do?ht_id=${td05.id}"></div>
<div defH="150" class="loadFileArea" loadfile="xmgl/skmxListForInclude.do?ht_id=${td05.id}"></div>
</form>
</div>
<div id="attachBody" layoutH="68">
<div class="panel">
<h1>相关附件</h1>
<div id="slaveDiv" defH="150" style="background-color:#fff;"></div>
</div>
<div style="clear:both"></div>
</div>
</div>
</div>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="NetSkyTagLibs" prefix="netsky"%>
<jsp:useBean id="now" class="java.util.Date" />
<script language="javascript">
$(function(){
setFormSlaveStyle();
});
//取消关联单项工程
function delDxgc(id){
var _data = {'id':id,'htxx_id':htxx_id};
$.ajax({
type: 'POST',
url:'gcgl/ajaxDelDxgc.do',
data:_data,
dataType:"json",
cache: false,
success: navTabAjaxDone,
error: DWZ.ajaxError
});
}
</script>
<div class="page">
<!-- 表单头 -->
<div class="pageHeader">
<div class="searchBar">
<!-- 表单名称 -->
<h1>合同登记表</h1>
</div>
</div>
<!-- 主操作按钮 -->
<div class="panelBar">
<ul class="toolBar" id="_flowButton">
<c:forEach var="button" items="${buttonList}">
<li>
<c:set var="picUri" value="${button.picUri }"/>
<c:if test="${empty picUri}">
<c:set var="picUri" value="issued"/>
</c:if>
<a class="${picUri }" href="${button.url}"><span>${button.name}</span></a>
</li>
<li class="line">line</li>
</c:forEach>
</ul>
</div>
<div id="autoform_body" class="pageContent" layoutH="0">
<!-- 表单主体 -->
<div id="mainBody" class="pageFormContent" layouth="80">
<form id="auto_form" action="save.do" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
<input type="hidden" name="tableInfomation" value="noFatherTable:com.txpms.dataObjects.Td01_gcxx" />
<p><label>合同状态:</label>
<netsky:htmlSelect name="Td05_htxx.HTZT" objectForOption="_htztlist" style="width:130px;" valueForOption="name" showForOption="name" value="${td05.htzt}" extend="" extendPrefix="true"/>
</p>
<div style="height:0px;width:100%"></div>
<p><label>备注:</label>
<textarea name="Td05_htxx.BZ" style="width:596px;height:110px;">${td05.bz }</textarea>
</p>
<div>
<h3 style="text-align:left;color:blue;"> 相关单项工程 <a href="xmgl/glgcEdit.do?td05_id=${td05.id}" target="dialog" width="560" height="360" title="设置关联的单项工程">[设置关联]</a></h3>
<table class="table" width="100%">
<thead>
<tr>
<th style="width: 0.6%;"></th>
<th style="width: 14.4%;" orderField="gcbh">工程编号</th>
<th style="width: 40%;" orderField="gcmc">工程名称</th>
<th style="width: 10%;" orderField="xmb">项目部</th>
<th style="width: 10%;" orderField="xmjl">项目经理</th>
<th style="width: 15%;" orderField="htje">合同额</th>
<th style="width: 10%;" orderField="">是否取消关联</th>
</tr>
</thead>
<tbody>
<c:set var="offset" value="0"/>
<c:forEach var="obj" items="${td01List}">
<c:set var="offset" value="${offset+1}"/>
<tr target="td01_id" rel="${obj.id}">
<td></td>
<td>${obj.gcbh }</td>
<td>${obj.gcmc }</td>
<td>${obj.xmb }</td>
<td>${obj.xmjl }</td>
<td><fmt:formatNumber pattern="0.00" value=""/></td>
<td><a href="javascript:delDxgc(${obj.id})">取消关联</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div defH="150" class="loadFileArea" loadfile="xmgl/kpmxListForInclude.do?ht_id=${td05.id}"></div>
<div defH="150" class="loadFileArea" loadfile="xmgl/skmxListForInclude.do?ht_id=${td05.id}"></div>
</form>
</div>
<div id="attachBody" layoutH="68">
<div class="panel">
<h1>相关附件</h1>
<div id="slaveDiv" defH="150" style="background-color:#fff;"></div>
</div>
<div style="clear:both"></div>
</div>
</div>
</div>