摘要: 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) 编辑