docExt_wev8.js
935 Bytes
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
//设置关键字
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("");
		jQuery("#"+id).children("input[type='hidden']").val("");
		jQuery("#"+id).children("span").html("");
	}
}
/**
*调查类型设置页面的删除记录方法
*/
function selectChecked(valId,formId){
	var checks = jQuery("input[name='chkInTableTag']:checked");
	var ids = "";
	checks.each(function(){
		if(ids==""){
			ids = jQuery(this).attr("checkboxid");
		}else{
			ids += "," + jQuery(this).attr("checkboxid");
		}
	});
	if(ids==""){
		window.top.Dialog.alert(SystemEnv.getHtmlNoteName(3529,readCookie("languageidweaver")));
		return;
	}
	jQuery("#"+valId).val(ids);
	jQuery('#'+formId).submit();
}