ITeye博客

fendou-cheng的博客

fendou-cheng · 共 11 篇文章

extjs RowNumberer 返回值 居中 .

var rownum = new Ext.grid.RowNumberer({ align:"center", header : '序号', width : 50, renderer:function(value,metadata,record,rowIndex){ //直接写 function(value) 没有返回值 return '<div align="center">'+ (rowIndex+1)+'</div>'; //重点是这 } }); <!-- Baidu Button BEGIN -->

2014-05-29T08:41:52Z · Web前端 · 评论(0)

得到当前的时间并加5分钟

//得到当前年月日时分 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmm"); Calendar nowTime = Calendar.getInstance(); nowTime.add(Calendar.MINUTE, 5); //当前时间加上五分钟 String dateTime = dateFormat.format(nowTime.getTime()); //得到当前年月日 SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); Calen…

2013-12-12T16:53:05Z · 非技术 · 评论(0)

freemarket 得到下拉列表框的值

<select name="REMINDERTYPE" id="REMINDERTYPE" style="width:100px;" > <option <#if remindertype?default('')?html =="0">selected</#if> value="0" >一般督办</option> <option <#if remindertype?default('')?html =="1">selected</#if> value="1" >重点督办</option> </select> freemarket 得到下拉列表框的值

2013-12-02T09:07:40Z · Web前端 · 评论(0)

jxl 导出excle

WritableWorkbook book = Workbook.createWorkbook(response .getOutputStream()); WritableSheet sheet = book.createSheet("交办卡片", 0); try { WritableFont rFont = new WritableFont(WritableFont.ARIAL, 14, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, Colour.BLACK); WritableCellFormat rCellFormat =…

2013-11-22T14:02:09Z · 编程语言 · 评论(0)

一对一对多关系 勿忘

select t.creatortime, t.title, gw.fwj_bh_mc || '[' || gw.fwj_bh_year || ']' || gw.fwj_bh_no as bh, '' as fs, (select h.username from wf_history_course h where h.rowguid = t.rowguid and h.workitemid = (select w.workitemid from wf_workitem w where w.flowinstanceid = t.flowinstanceid and w.actdefid = …

2013-11-21T14:20:58Z · 数据库 · 评论(0)

纯js ajax调用action

var xmlHttpRequest; var temp ; function createXMLHttpRequest() { if (window.xmlHttpRequest) { xmlHttpRequest = new XMLHttpRequest(); } else { xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } } function autoSendRequest(v,s) { temp = s; createXMLHttpRequest(); if(document.getElementById(s).…

2013-11-21T14:19:12Z · Web前端 · 评论(0)

My97 老版本去掉onclick事件

//增加 function bindMy97(el) { unbindMy97(el); $(el).click(function() { WdatePicker({skin:'whyGreen'}); }).addClass('Wdate').attr('disabled', false); } //去除my97 function unbindMy97(el) { $(el).unbind('click').removeClass('Wdate').attr('disabled', true); }

2013-04-24T16:28:42Z · 评论(0)

ora-01033:oracle initialization or shutdown in progress 解决方法

ora-01033:oracle initialization or shutdown in progress 解决方法 今天win7除了死机了,只好强制关机重启。 再用PL/SQL Developer 登录oracle数据库就出现了这个问题: 如果以normal登录就出现提示:ora-01033:oracle initialization or shutdown in progress 。 如果以sysdba登录 可以进去,但是出现提示:数据库无法访问。 解决办法如下: 在DOS环境下 sqlplus /NOLOG SQL>connect sys/sys as sysdba SQL>shu…

2013-02-23T16:16:57Z · 数据库 · 评论(0)

Ubuntu使用命令大全

查看软件xxx安装内容 #dpkg -L xxx 查找软件 #apt-cache search 正则表达式 查找文件属于哪个包 #dpkg -S filename apt-file search filename 查询软件xxx依赖哪些包 #apt-cache depends xxx 查询软件xxx被哪些包依赖 #apt-cache rdepends xxx 增加一个光盘源 #sudo apt-cdrom add 系统升级 #sudo apt-get update #sudo apt-get upgrade #sudo apt-get dist-upgrade 清除所以删除包的残余配置文件 …

2012-12-22T14:19:43Z · 编程语言 · 评论(0)

jquery easyui 更改dialog的title名称

function edit(readonly) { if(readonly){ $("#dlg-edit").dialog({title:'查看试验风光'}); $('#dlg-edit .easyui-linkbutton').hide(); }else{ $("#dlg-edit").dialog({title:'编辑试验风光'}); $('#dlg-edit .easyui-linkbutton').show(); } var node = $('#TDM_TEST_PIC').datagrid('getSelected'); $('#frm').form('load', 'edit.…

2012-12-18T15:51:15Z · Web前端 · 评论(0)

jQuery EasyUI 的表单验证

<html><head><title></title> <link style="text/css" rel="stylesheet" href="../参考资料/JQuery/jquery-easyui-1.1.2/themes/default/easyui.css"> <script src="jquery-1.4.2.min.js"></script> <script src="jquery.easyui.min.js"></script> <script> $.extend($.fn.validatebox.defaults.rules, { minLength: { validat…

2012-12-18T15:41:07Z · 移动开发 · 评论(0)