摘要: =========================================================【修改】方法一:根据id改变他的状态。就一个字段时。首先循环去的id,然后在他的action里遍历的根据id(要修改的字段的id)查出实体对象,并且赋值setisnotice字段,最后save。即:find——》set——》saveString[] IdArray=ids.split(","); for(String tempId:IdArray){ Article temp=articleService.getArticleById(Long.parseLon 阅读全文
posted @ 2013-08-28 15:46 一杯水的天堂 阅读(234) 评论(0) 推荐(0) 编辑
摘要: jsp:// -------------------------ajax异步刷新-------------------- //一级子节点 $(function () { $("#tree1").ligerTree( { url : 'node!getNodeTree.action?' + $.param( { parentid : '-1', iconroot : '../' }), checkbox:false, nodeWidth : 120, onBeforeExpand: onBeforeExpand, attribu 阅读全文
posted @ 2013-08-28 15:43 一杯水的天堂 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1、加载树,2、无限制节点,3、反键菜单效果图:2、 //加载数据完毕后闭合树结构3、 function collapseAll() {4、 tree.collapseAll();5、 }6、 function getKnowledgeTree(){7、 treeManager = $("#tree1").ligerTree({8、 url : "knowledgeclassify!showtree.action",9、 nodeDraggable: false,10、 idFieldName : "classid",11、 pare 阅读全文
posted @ 2013-08-28 15:41 一杯水的天堂 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 两级节点的树效果图:说明:这是只显示两级节点的树,并且窗体加载的时候树就成展开形式,并不需要异步加载!Jsp:/** * 初始投诉分类 */ function p_initpreclass(){ //左侧分类树 treeManager = $("#complaintree").ligerTree({ url : "../press/prereflectclassify!showtree.action", nodeDraggable: false, checkbox : false, idFieldName : "classid",[d 阅读全文
posted @ 2013-08-28 15:39 一杯水的天堂 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 递归树,异步加载树Jsp:$("#maintree").ligerTree( { url : 'busiticket!getTree.action?' + $.param( { filter_EQL_parentid : '0', id : '0', root : '票务信息',[d1] rooticon : '', iconroot : '../' }), checkbox : false, slide : false, isleaf : false, nodeWidth : 阅读全文
posted @ 2013-08-28 15:38 一杯水的天堂 阅读(957) 评论(0) 推荐(0) 编辑
摘要: 服务卡列表 [d1] 搜索 [d21] 最终效果图:补充:在父窗体调用子窗体的f_select方法function f_findContactOK(item, dialog) { var fn = dialog.frame.f_select || dialog.frame.window.f_select; var data = fn(); if (!data) { alert('请选择行!'); return; } var idStr = ""; var idName =""; $(data).each(function(i,item){ 阅读全文
posted @ 2013-08-28 15:33 一杯水的天堂 阅读(1593) 评论(0) 推荐(0) 编辑
摘要: 方式一:类似于一下这种验证 标题: * 摘要: ${abstract_} * 首页显示 checked />是 checked/>否 正文: ${content} 方式二:[d1]第一:申明一个验证用的变量[d2]第二:在初始化函数中把表单绑定到验证变量上[d3]第三:如果添加失败,返回页面聚焦到标题输入框[d4]第四:在save方法点击后,先验证再save[d5]第五:页面上运用验证变量。限制输入字符大小。[d6]定义tab下面的确定和取消按钮。需要再LG.js里面看setFormDefaultBtn()方法是否写了。否... 阅读全文
posted @ 2013-08-28 15:27 一杯水的天堂 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: 一:when标签 商业投诉 通信投诉 二:selectfunction statuschange() { $("#pervalue").val(''); } 三: 订单号:${orderno} 四联单号:${billno} 状态: 待处理 已分配 处理中 未成交 成交 关闭 修改关闭 待解决 已处理 四:iterator 受理商家:${company.companyname } 五:默认选择上一次选中的checkbox。 首页显示 checked />是 checked/>否 阅读全文
posted @ 2013-08-28 15:23 一杯水的天堂 阅读(407) 评论(0) 推荐(0) 编辑
摘要: in修改为exists一:inhql +=" and b.newsidin (select f.object from FeedBack f where f.type=1 and f.operate=1 and f.userid in (select u.userid from SysUser u where f.userid = u.userid and u.username like '%"+filterValue+"%'))";二:existhql +=" and exists (select f.object from 阅读全文
posted @ 2013-08-28 15:21 一杯水的天堂 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Action:/* * 检测商品简码是否唯一,不重复 */ public String checkCode() throws Exception { try { HttpServletRequest request = Struts2Utils.getRequest(); String goodscode = request.getParameter("goodscode"); String oldGc = request.getParameter("oldGc"); goodscode = new String(goodscode.getBytes(& 阅读全文
posted @ 2013-08-28 15:13 一杯水的天堂 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 方式一:function f_add() { //f_openWindow('custom/cusinformation!input.action', '添加用户', 600, 450); top.f_addTab("addcustom", '增加客户信息', 'custom/cusinformation!input.action');[d1] }跳转到input空方法——》到input页面Action:private CusInformation entity;public String getModelJs 阅读全文
posted @ 2013-08-28 15:00 一杯水的天堂 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 方式一:Jsp中:case "delete": $.ligerDialog.confirm[d1]('确定删除?', function (y) { if (!y) return; f_handle[d2][d3]("this.customid","cusinformation!delete.action"); }); break;//获得选中的行function getSelectIds(){ var rowsdata = gridManager.getCheckedRows(); if (!rowsdata.leng 阅读全文
posted @ 2013-08-28 14:58 一杯水的天堂 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 方式一:Tabfunction f_modify() { var rowsdata = gridManager.getCheckedRows();[d1] if (!rowsdata.length[d2]) { $.ligerDialog.warn('请先选择行!'); return; } if(rowsdata.length>1){ $.ligerDialog.warn[d3][d4]('一次只能修改一条数据!'); return; } var id = rowsdata[0].customid[d5][d6]; top.f_addTab("m 阅读全文
posted @ 2013-08-28 14:40 一杯水的天堂 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 查看方式一:用超链接{ display: 'id', name: 'customid', align: 'left', width: 120, minWidth: 120,render:function(row){ return ""+row.customid+"";[d1] }},function f_viewCustom(customid){ top.f_addTab("viewcustom", '查看客户信息', 'custom/cusinformation 阅读全文
posted @ 2013-08-28 14:32 一杯水的天堂 阅读(298) 评论(0) 推荐(0) 编辑