/*----------------------------------------------------------------------------\ | IdealDic | |-----------------------------------------------------------------------------| | Created by dongping_li | |-----------------------------------------------------------------------------| | 缓存系统字典项的处理文件 | | 系统如果字典项目特别多,可以使用此处提供的功能,在系统登录后将字典项缓存到页面内, | | 在具体页面,直接调用此处提供的功能取得需要的字典即可. | |-----------------------------------------------------------------------------| | 2007-01-19 | Original Version Posted. | |-----------------------------------------------------------------------------| | Created 2007-01-19 | All changes are in the log above. | Updated 2008-07-09 | \----------------------------------------------------------------------------*/ /** * 页面字典项的容器 */ var dicContainer={ //初始化方法 init:function(){ if(dicInit.length==0) return; for(var i=0;i 0) { var sb=[]; for(var i=0;i无类别"; } } /** * 输出字典项目 * */ IdealDic.prototype.toQueryString=function(selectName) { var str=""; if(this.children.length > 0) { var sb=[]; var queryAll=""; for(var i=0;i无类别"; } } /** * 输出字典项目 * */ IdealDic.prototype.toEachChild=function(selectName) { var str=""; if(this.children.length > 0) { var sb=[]; var queryAll=""; for(var i=0;i"; return str; }; dicItem.prototype.toChild=function(selectName) { return this.name; }; dicItem.prototype.toValue=function() { return this.name; }; IdealDic.prototype.toValue=function(selectName) { var sb=''; for(var i=0;i