摘要: 将表单元素禁用txtOwnerPart.setDisabled(true);txtOwnerPart.removeClass('x-form-text');txtOwnerPart.addClass('form_field_readonly');将表单元素启用txtOwnerPart.setDisabled(false);txtOwnerPart.removeClass('form_field_readonly');txtOwnerPart.addClass('x-form-text'); 阅读全文
posted @ 2012-06-05 14:48 angus_csh 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 显示txtOtherBuilding.enable();txtOtherBuilding.getEl().up('.x-form-item').setDisplayed(true);隐藏txtOtherBuilding.disable();txtOtherBuilding.getEl().up('.x-form-item').setDisplayed(false); 阅读全文
posted @ 2012-06-05 14:43 angus_csh 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 1.代码块View Code var smCompetetor = new Ext.grid.CheckboxSelectionModel({ handleMouseDown: Ext.emptyFn }); var cmCompetetor = new Ext.grid.ColumnModel([ smCompetetor, { header: jsonDataDictionary.labJZDSMC, dataIndex: 'CompetetorName', sortable: true ... 阅读全文
posted @ 2012-06-05 14:39 angus_csh 阅读(2529) 评论(0) 推荐(0) 编辑
摘要: 代码实现 var sm = new Ext.grid.CheckboxSelectionModel({singleSelect : false,renderer:function(v, p, record) { if (record.get('ITEMNAME') == '总计:'){ return ''; ... 阅读全文
posted @ 2012-06-05 14:20 angus_csh 阅读(2296) 评论(0) 推荐(0) 编辑
摘要: 1.js代码View Code //grid导出exlfunction outputAddress(grid, strMethod) { try { var xls = new ActiveXObject("Excel.Application"); } catch (e) { alert("要打印该表,您必须安装Excel电子表格软件,同时浏览器须使用“ActiveX 控件”,您的浏览器须允许执行控件。 请点击【帮助】了解浏览器设置方法!"); return; } xls.visible = true; //设置excel... 阅读全文
posted @ 2012-06-05 14:12 angus_csh 阅读(9478) 评论(0) 推荐(2) 编辑
摘要: 除法函数,用来得到精确的除法结果说明:javascript的除法结果会有误差,在两个浮点数相除的时候会比较明显。这个函数返回较为精确的除法结果。调用:accDiv(arg1,arg2)返回值:arg1除以arg2的精确结果function accDiv(arg1, arg2) { var t1 = 0, t2 = 0, r1, r2; try { t1 = arg1.toString().split(".")[1].length } catch (e) { } try { t2 = arg2.toString().split(".")[1].length 阅读全文
posted @ 2012-06-05 14:04 angus_csh 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 下载文件View Code parent.location.href弹出全屏窗口View Code function openWin(formUrl) { var hWnd hWnd = window.open(formUrl, '', 'height=' + new String(screen.availHeight - 28) + ',top=0,left=0,width=' + new String(screen.availWidth - 10) + ',location=no,menubar=no,resizable=yes,to 阅读全文
posted @ 2012-06-05 13:59 angus_csh 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 文章:http://www.cnblogs.com/over140/archive/2009/06/15/1503712.html环境:Microsoft Visual Studio 20081. 打开宏资源管理器:视图 ->其他窗口->宏资源管理器2. 创建一个新模块3. 编辑宏: 选中模块 -> 右键编辑View Code Option Strict OffOption Explicit OffImports SystemImports EnvDTEImports EnvDTE80Imports System.DiagnosticsImports System.Colle 阅读全文
posted @ 2012-06-05 13:39 angus_csh 阅读(11338) 评论(0) 推荐(0) 编辑
摘要: View Code <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="X-UA-Compatible" content="IE=7" /><meta http-equiv="content-type" content="text/html; charset=gb2312" /><script type=&q 阅读全文
posted @ 2012-06-05 13:20 angus_csh 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1.Struts代码 <package name="portalInfoFlash" namespace="/pana/portal/IndexFlash" extends="struts-default"> <action name="Flash_*" class="iFlashAction" method="{1}"> <result name="view">/WEB-INF/pages/pana/portal/in 阅读全文
posted @ 2012-06-05 11:59 angus_csh 阅读(1874) 评论(0) 推荐(0) 编辑