登陆的时候弹出下面的提示:
下面是代码:$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;
    }
}
};
}