<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>新增DSL版本</title>
|
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body>
|
<script type="text/javascript">
|
$(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog("tip","操作",
|
{},
|
{"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
|
$("#edition").formValidator({empty:false,onFocus:"版本号不能为空",onShow:"请输入版本号!"}).inputValidator({min:1,onError:"版本号不能为空"});
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form id="myform" action="" method="post">
|
<input type="hidden" value="${RequestParameters.dslId}" name="dsl_id" />
|
<input type="hidden" value="${userId}" name="dealer_user_id" />
|
<input type="hidden" value="${userName}" name="dealer_user_name" />
|
<input type="hidden" value="${RequestParameters.flowId}" name="create_flow_id" />
|
<table class="edit_layout">
|
<tr><th width="20%"><label>DSL名称:</label></th>
|
<td style="width:160px;">
|
<label>${dsl.DSL_NAME}</label>
|
</td>
|
</tr>
|
<tr><th><label>DSL分类:</label></th>
|
<td style="width:160px;">
|
<label>${dsl.DSL_FIRST_CATEGORY_NAME}-${dsl.DSL_SECOND_CATEGORY_NAME}-${dsl.DSL_THIRD_CATEGORY_NAME}</label>
|
</td>
|
</tr>
|
|
<tr><th><label>原版本:</label></th>
|
<td style="width:160px;">
|
<label>${dsl.EDITION}</label>
|
</td>
|
</tr>
|
|
<tr><th width="20%"><label class="required">版本号:</label></th>
|
<td style="width:160px;"><input class="general" type="text" name="edition" id="edition" />
|
<div id="editionTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr><th><label >备注:</label></th>
|
<td ><textarea class="general" name="note" id="note" /></textarea>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
|
function showDslCate() {
|
var dslCateName = $("#dslCateName").val();
|
var dslCateId = $("#dslCateId").val();
|
var url = "${base}/business/pages/servicelist/dsl/dslLevelTree.html";
|
if(!$.util.isEmpty(dslCateId)&&!$.util.isEmpty(dslCateName)) {
|
var names = dslCateName.split("-");
|
var ids = dslCateId.split("-");
|
if(ids.length==3) {
|
url += "?cates="+ids[2];
|
}
|
}
|
|
window.top.openDialog("selectDslCate","选择DSL分类",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
|
function showName(labelId,labelName) {
|
$("#dslCateName").val(labelName);
|
$("#dslCateId").val(labelId);
|
}
|
</script>
|
|
</body>
|
</html>
|