-D:
-weaver
-ecology
-mobile
-plugin
-1
-view.jsp /*moblie 版本调用页面*/
-custom
-leaverAjx.jsp
-interface
-custompage
-leavecustompage.jsp /*桌面版调用页面*/
function getWorkAjaxValue(resourceId,formid){
jQuery.ajax({
type:"POST",
url:"/mobile/plugin/custom/leaverAjax.jsp",
data:{"resourceId":resourceId,"formid":formid},
success:function(res){
var json = eval("("+res+")");
if(json.flag == "-1"){
alert("数据查询错误");
}else{
var returnValue="";
jQuery.each(json.data,function(i){
returnValue+=json.data[i].leaveType+": "+json.data[i].leaveSumHour+"小时";
if (i < json.data.length - 1){
returnValue+=", ";
}
});
//kyjbsc=json.canUseJBDay;//可用加班时长
var kyjbsc=json.canUseJBTime; //可用加班时长
jQuery("#field9360").val(String(returnValue));
jQuery("#field9361").val(String(kyjbsc+" 小时"));
jQuery("#field9360").attr("disabled", true); //将控件设置为不可编辑
jQuery("#field9361").attr("disabled", true);
}
}
});
}