docSearchExt_wev8.js
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//设置关键字
function setKeyword(source,target,formId){
jQuery("#"+target).val(jQuery("#"+source).val());
}
/**
*日期更改
*/
function changeDate(obj,id,val){
if(val==null)val='6';
if(obj.value==val){
jQuery("#"+id).show();
}else{
jQuery("#"+id).hide();
jQuery("#"+id).siblings("input[type='hidden']").val("");
}
}
/**
*刷新左侧树数量
*/
function refreshLeftTreeNumForDoc(urlType,options){
options = jQuery.extend({
operationcode:-1,
offical:"",
officalType:"",
},options);
options.urlType = urlType;
options.onlyCount = "1";
jQuery.ajax({
url:"DocSearchMenu.jsp",
type:"post",
dataType:"json",
data:options,
success:function(data){
parent.parent.jQuery(".ulDiv").leftNumMenu(data,"update");
}
});
}
/**
*获取列表中选中的项
*/
function getCheckedId(){
var checks = jQuery("input[name='chkInTableTag']:checked");
var delids = "";
checks.each(function(){
if(delids==""){
delids = jQuery(this).attr("checkboxid");
}else{
delids += "," + jQuery(this).attr("checkboxid");
}
});
return delids;
}