日期:2014-05-17 浏览次数:20732 次
<!-- 依存設定 -->
<div id="dependency" class="hidden"
title="<spring:message code="P0102P01_Button_Dependency" />">
<input type="hidden" id="phaseId" value="${phaseId}" /> <input
type="hidden" id="comUpdateTime" />
<!-- 依存設定 -->
<table>
<c:forEach var="beanList" items="${dependencyList}">
<tr>
<td><input type="checkbox" name="dependency"
value="${beanList.phaseId}" />${beanList.phaseName}</td>
</tr>
</c:forEach>
</table>
</div>
// 依存設定選択
function dependencySelect() {
// 工程フェーズID
var phaseId = $('phaseId').val();
$.ajaxSetup({
contentType : 'application/json'
});
var data = '{"phaseId":"' + phaseId + '"}';
alert("data = " + data);
$.post(rootPath + '/project/p0102p01/initDependency', data, function(json) {
if (json.id != '') {
alert(json);
// 依存設定オープン
//弹出层的方法。此处只是将层弹出而已。
$("#dependency").dialog("open");
} else {
alert("save fail!");
}
});
}
/**
* 依存設定初期化
*
* @param request
* @return
* @throws Exception
*/
@RequestMapping(value = "/project/p0102p01/initDependency")
public String initDependency(HttpServletRequest request,
@ModelAttribute("dependencyList") BtbPjtPhaseBean btbPjtPhaseBeanList, Model model) throws Exception {
// 依存工程の初期化
List<BtbPjtPhaseBean> dependencyList = p0102p01Logic.initDependencyFace(null, btbPjtPhaseList,
btbPjtAdvanceRelationBeanList);
// 程一覧データを設定する
model.addAttribute("dependencyList", dependencyList);
return "/project/P0102P01";
}