摘要: 添加数据时候自动更新时间,注意添加数据时,要设置最大主键 时间的工具类:CommonUtil 人的工具类: ContextUtil ScmCompanyAccount scmCompanyAccount=new ScmCompanyAccount(); //设置最大主键 scmCompanyAccount.setAccountId(new L... 阅读全文
posted @ 2018-01-25 11:24 酷酷的飞 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 弹窗给选中数据赋值:t/** * 设置分派员 */ function onDispatchMan(){ var rec=ajaxgrid.getCheckedRecords(); if(rec.length==0){ $.alert("提示信息","至少要选择一条分派人员的记录"); return; } this.showPersonTree(); } /** *分派人选... 阅读全文
posted @ 2018-01-22 21:46 酷酷的飞 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 时间的比较: var rec = ajaxform.getRecord(); var sd = rec.get("startDate"); var ed = rec.get("endDate"); if(sd==null||sd=="null"||sd==""||ed==null||ed=="null"||ed==""){ return; }else{ if(ed<sd){ ... 阅读全文
posted @ 2018-01-18 13:10 酷酷的飞 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 按钮的判断 var record = ajaxgrid.getAllRecords(); if(record.length>0){ var isPack=record[0].get("dispatchDate"); if(isPack==null){ onsave_id.display("block"); dispatch_id.displ... 阅读全文
posted @ 2018-01-17 21:38 酷酷的飞 阅读(203) 评论(0) 推荐(0) 编辑
摘要: uep的保存操作分为ajaxgrid和ajaxform两种方式 1、ajaxgrid public void storeInfoSave(){ try { //两个dataWrap 一个dataWrap对应一个表 WzStoreInfo neWzStoreInfo = dataWrap.getData(); List updateList = this.coverWrap.ge... 阅读全文
posted @ 2018-01-15 21:39 酷酷的飞 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 语法及其应用: 查询部门创建时间最早的三条记录 select * from ( select * from dept t order by t.cdate ) where rowmun=2 and r1; 统计平均奖金大于2000 的各个职位的最高工资 select job,max(comm) from emp1 e group by e.job having avg(... 阅读全文
posted @ 2017-12-27 15:25 酷酷的飞 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 常用快捷键 格式化 ctrl+shift+f 导入包 ctrl+shift+o 注释 ctrl+/,ctrl+shift+/,ctrl+shift+\ 代码上下移动 选中代码alt+上/下箭头 查看源码 选中类名(F3或者Ctrl+鼠标点击) 自动生成构造方法 a:无参构造方法 // alt+shift+s +c b:带参构造方法 ... 阅读全文
posted @ 2017-12-27 14:53 酷酷的飞 阅读(238) 评论(0) 推荐(0) 编辑
摘要: UEP中添加新的表格标签:function initCustomToolBar(){ var strHtml=" 进货合计(元): " +"税额合计(元): " +"价税合计(元): "; ajaxgridlist.addCustomToolBarByHtml(strHtml,"right"); } 阅读全文
posted @ 2017-12-27 11:43 酷酷的飞 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 例子:https://www.w3cschool.cn/regexp/x9hf1pq9.html 阅读全文
posted @ 2017-12-27 10:08 酷酷的飞 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 这里的标签都是常用不好理解的: formatfunc="showFormatNumer" 显示数字在页面上 ockedcolumnnum="6" 几列是不动的 sortable="true" 是否支持排序 readonly="true" 只读页面不能更改 showpagerbar 是否显示分... 阅读全文
posted @ 2017-12-25 14:39 酷酷的飞 阅读(89) 评论(0) 推荐(0) 编辑