[size=large][color=orange] $(document).ready(function(){
//绑定流程类型事件
$("#sortId").change(function() {
var sortId=$("#sortId").val();
if(sortId==""){
$('#submitTo1').attr("disabled","disabled");
$('#buttonShow').hide();
} else{
$.ajax({
type: "POST",
url: "pageButtonController.do",
data: "method=shouButtons&sortId="+sortId,
dataType: 'html',
success: function(result) {
$('#buttonShow').html(result);
$('#buttonShow').show();
$('#submitTo1').attr("disabled","");
}
});
}
});
//绑定表单提交事件
$("#submitTo1").click(function() {
var system=$("#system").val();
var sortId=$("#sortId").val();
var taskType=$("#taskType").val();
if(system==""){
alert("请选择接入系统");
return false;
}else if(sortId==""){
alert("请选流程类型");
return false;
}else if(taskType==""){
alert("请选择签报类型");
return false;
}else if($("[name='buttonId'][checked]").length<1){
alert("至少选择一个需要配置的按钮");
return false;
}
});
//跳转到新增页面
$("#showAddOutSysOfButtons").click(function() {
window.location.href="pageButtonController.do?method=showAddOutSysOfButtons";
});
})
[/color][/size]
//绑定流程类型事件
$("#sortId").change(function() {
var sortId=$("#sortId").val();
if(sortId==""){
$('#submitTo1').attr("disabled","disabled");
$('#buttonShow').hide();
} else{
$.ajax({
type: "POST",
url: "pageButtonController.do",
data: "method=shouButtons&sortId="+sortId,
dataType: 'html',
success: function(result) {
$('#buttonShow').html(result);
$('#buttonShow').show();
$('#submitTo1').attr("disabled","");
}
});
}
});
//绑定表单提交事件
$("#submitTo1").click(function() {
var system=$("#system").val();
var sortId=$("#sortId").val();
var taskType=$("#taskType").val();
if(system==""){
alert("请选择接入系统");
return false;
}else if(sortId==""){
alert("请选流程类型");
return false;
}else if(taskType==""){
alert("请选择签报类型");
return false;
}else if($("[name='buttonId'][checked]").length<1){
alert("至少选择一个需要配置的按钮");
return false;
}
});
//跳转到新增页面
$("#showAddOutSysOfButtons").click(function() {
window.location.href="pageButtonController.do?method=showAddOutSysOfButtons";
});
})
[/color][/size]