登陆的时候弹出下面的提示:
下面是代码:$package('supplierManagement');
var actionType="";
supplierManagement.productionSupplierCommon = function() {
return {
$('#productionSupplierForm_form').ajaxSubmit({
url:'supplierManagement/saveProductionSupplier.action?action='+actionType,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function() {
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
updateproductionSupplier : function(actionType) {
$('#productionSupplierForm_form').ajaxSubmit( {
url:'supplierManagement/updateProductionSupplier.action?action='+actionType,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function() {
// alert("success");
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
delproductionSupplier : function(selectId){
$('#productionSupplierForm_form').ajaxSubmit({
url:'supplierManagement/delProductionSupplier.action?selectId='+selectId,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function(){
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
select_Check : function(){
var obj=document.getElementsByName("material");
var setArray = new Array();
for(var i=0;i<obj.length;i++)
{
if(obj[i].checked){
setArray.push(obj[i].value);
}
}
if(setArray.length === 0){ /***change****/
alert("供应产品不能为空");
return false;
}else{
return setArray;
}
}
};
}
下面是代码:$package('supplierManagement');
var actionType="";
supplierManagement.productionSupplierCommon = function() {
return {
$('#productionSupplierForm_form').ajaxSubmit({
url:'supplierManagement/saveProductionSupplier.action?action='+actionType,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function() {
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
updateproductionSupplier : function(actionType) {
$('#productionSupplierForm_form').ajaxSubmit( {
url:'supplierManagement/updateProductionSupplier.action?action='+actionType,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function() {
// alert("success");
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
delproductionSupplier : function(selectId){
$('#productionSupplierForm_form').ajaxSubmit({
url:'supplierManagement/delProductionSupplier.action?selectId='+selectId,
type : 'POST',
dataType : 'json',
resetForm : true,
success : function(){
$("#productionSupplierGrid").trigger("reloadGrid");
}
});
},
select_Check : function(){
var obj=document.getElementsByName("material");
var setArray = new Array();
for(var i=0;i<obj.length;i++)
{
if(obj[i].checked){
setArray.push(obj[i].value);
}
}
if(setArray.length === 0){ /***change****/
alert("供应产品不能为空");
return false;
}else{
return setArray;
}
}
};
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货