BCDL相关JS
    --前台进行编码转换的
encodeURI(encodeURI(url+pars));
--常用的JS判断存放在这个界面里面
paymentCommon.js
方法
isMoney
isNum
validate
checkMoneyEmpty
formatMoney
--每次点击分页就触发这个方法然后在这个方法里面做自己想做的操作
// process jump message
var oriSubmitForm = submitForm;
submitForm = getMessage;
function getMessage(pageNo) {
	oriSubmitForm(pageNo);
	//setCheckBoxHeader();
	$("checkbox2").checked = false; // 翻页后直接设置为未选中,目前本页面默认均为未选中
}
拦截分页标签
要用的留着 刚弄的
oriSubmitForm(pageNo); 对应的JS方法就是 PagePanelAjax类里面的如下程序代码:
form.append("function submitForm(pageNo){");
--隐藏和显示查询条件的方法
function ShowTable2() {
	var tableCtrl = document.getElementById("approvalRecord");
	var tdhead = document.getElementById("hide");
	var tdhead2 = document.getElementById("hide2");
	tableCtrl.style.display ="none";
	tdhead.style.display ="none";
	tdhead2.style.display ="";
}
function ShowTable() {
   var tableCtrl = document.getElementById("approvalRecord");
   var tdhead = document.getElementById("hide");
   var tdhead2 = document.getElementById("hide2");
   tableCtrl.style.display ="";
   tdhead.style.display ="";
   tdhead2.style.display ="none";
}
--公司框架集中刷新页面的方法
//window.location.href = window.location.href.toString();
//refreshData();
//document.getElementById("jump").onchange();
//refresh();
//var right = window.dialogArguments.location.href;
//window.dialogArguments.location.href = right;
//这种刷新是针对 window.open 的方式
window.opener.document.getElementById("jump").onchange();
//这种刷新是针对 window.showModalDialog 的方式
window.dialogArguments.document.getElementById("jump").onchange();
//调用该方法,刷新主页面
//var parentHref = window.dialogArguments.document.location.href;
//window.dialogArguments.refreshData();
--新框架下面的关于时间的2,1300,1200.09,可以自动产生,分隔符
skysz.utils.toThousandsString()
--改变窗口大小
function adjust(obj){
	var div = document.getElementById("gridTab1");	//DIV的大小
	var gridTable1 = document.getElementById("gridTable1");		//grid的大小
	var w  = document.body.clientWidth;
	var h  = document.body.clientHeight;
	div.style.width = w;
	div.style.height = h/3;
	gridTable1.style.width = w;
	gridTable1.style.height = h/3;
}
function tabFit(){
	//tabbar.enableAutoReSize(true);
	//tabbar.adjustOuterSize();
	var tabWidth = checkBill.init.window.getInnerWidth();
	var tabHeight = skysz.$("checkBill.init.view.a_tabbar_td").offsetHeight;
	checkBill.init.view.tabbar.setSize(tabWidth,tabHeight);
	mygrid1.fit();
	mygrid2.fit();
	mygrid3.fit();
	mygrid4.fit();
}
--设置GRID的高度
曾经遇到过一个问题是,怎么设置GRID的高度都不行,
只有往GRID里面填充数据的时候才会使GRID的高度发生变化,
以后遇到类似的问题就可以考虑是不是GRID添加了这一行设置
//oldGrid.enableAutoHeigth(true);
mygrid.setColSorting("int,str,str,rmb,rmb,rmb")		//设置排序
//下面为表头双击grid排序
//mygrid.hdr.onclick = new Function("e","sortByDatabase(mygrid,hqlNames,names);");	
--监听一个文本框或者什么的都可以
<script type="text/javascript">
	ValueListener("accountID",loadOverdraft);
</script>
function ValueListener(controlNameArg, funcArg, timeArg) {
	this.controlName = controlNameArg;
	this.func = funcArg;
	this.controlValue = $F(this.controlName);
	this.intervalID = 0;
	this.time = timeArg || 200;
	this.newValue = function() {
		this.controlValue = $F(this.controlName);
	};
	if (this.intervalID != 0) {
		return;
	}
	var obj = this;
	this.intervalID = window.setInterval(function() {
				try {
					var temp = $F(obj.controlName);
					if (temp != obj.controlValue) {