List Form表单常用功能
来源:互联网 发布:用js设置秒表 编辑:程序博客网 时间:2024/06/07 09:46
1、非树状的,继承AbstractListPlugin
2、 ListView获取当前实体id
BillList list = this.getControl(BILLLISTID);
String billEntityId = list.getEntityId();
3、List获取当前选中行:ListSelectedRowCollection
BillList billList = this.getControl(BILLLISTID);
billList.getSelectedRows()
4、获取ListSelectedRow里的id
String pk = listSelectedRow.getPrimaryKeyValue().toString()
5、//获取listView是否选中数据
IListView listView = (IListView) getView();
boolean hasNoSelData = "focus".equals(this.getParameter().get("listDelScope"))? listView.getFocusRow() < 0 : listView.getSelectedRows().size() == 0;
6、//列表页面设置过滤条件 在initialize方法里设置
BillList list = this.getControl("billlistap");
ListShowParameter showParam = (ListShowParameter) this.getView().getFormShowParameter();
//showParam.setIsolationOrg(false);
ListFilterParameter listFilterParameter = showParam.getListFilterParameter();
String qFilterStr = listFilterParameter.getQFilter();
if (StringUtils.isNotEmpty(qFilterStr)) {
// 如果有传过滤条件,以传的过滤条件为准
list.setListFilter(qFilterStr);
} else {
QFilter baseBillFilter = getBaseBillFilter();
FilterParameter filterParameter = new FilterParameter();
filterParameter.setFilter(baseBillFilter);
list.setFilterParameter(filterParameter);
}
//设置排序
list.setOrderBy("bizdate desc,billno desc");
7、//审核后刷新页面
public void afterDoOperation(AfterDoOperationEventArgs e) {
super.afterDoOperation(e);
String objectId = e.getObjectId();
if ("approval".equalsIgnoreCase(objectId)) {
BillList list = this.getControl("billlistap");
list.refresh();
}
}
8、//列表界面调用查看事件
IListView listView = (IListView) this.getView();
listView.invokeOperation("view");
BillList list = this.getControl(BILLLISTID);
String billEntityId = list.getEntityId();
3、List获取当前选中行:ListSelectedRowCollection
BillList billList = this.getControl(BILLLISTID);
billList.getSelectedRows()
4、获取ListSelectedRow里的id
String pk = listSelectedRow.getPrimaryKeyValue().toString()
5、//获取listView是否选中数据
IListView listView = (IListView) getView();
boolean hasNoSelData = "focus".equals(this.getParameter().get("listDelScope"))? listView.getFocusRow() < 0 : listView.getSelectedRows().size() == 0;
6、//列表页面设置过滤条件 在initialize方法里设置
BillList list = this.getControl("billlistap");
ListShowParameter showParam = (ListShowParameter) this.getView().getFormShowParameter();
//showParam.setIsolationOrg(false);
ListFilterParameter listFilterParameter = showParam.getListFilterParameter();
String qFilterStr = listFilterParameter.getQFilter();
if (StringUtils.isNotEmpty(qFilterStr)) {
// 如果有传过滤条件,以传的过滤条件为准
list.setListFilter(qFilterStr);
} else {
QFilter baseBillFilter = getBaseBillFilter();
FilterParameter filterParameter = new FilterParameter();
filterParameter.setFilter(baseBillFilter);
list.setFilterParameter(filterParameter);
}
//设置排序
list.setOrderBy("bizdate desc,billno desc");
7、//审核后刷新页面
public void afterDoOperation(AfterDoOperationEventArgs e) {
super.afterDoOperation(e);
String objectId = e.getObjectId();
if ("approval".equalsIgnoreCase(objectId)) {
BillList list = this.getControl("billlistap");
list.refresh();
}
}
8、//列表界面调用查看事件
IListView listView = (IListView) this.getView();
listView.invokeOperation("view");
阅读全文
0 0
- List Form表单常用功能
- form表单常用输入
- Oracle Form 常用功能
- form表单以及常用组件
- form表单常用的验证
- form表单中常用对象
- Flex form 提交list数据表单
- SpringMVC form表单提交list对象集合
- 剖析Form表单的文件上传功能
- form表单运用datagrid的一些功能
- 利用form表单实现小功能
- Struts2 form表单常用标签学习笔记
- form表单常用的属性和方法
- ExtJS form表单常用元素操作
- Form表单传递List数组属性到后台对象中
- DOC 列表表单域类型List form field type
- FORM表单
- 表单form
- Java之instanceof
- JVM--详解虚拟机字节码执行引擎之栈帧结构
- python 判断debug
- 【Scikit-Learn 中文文档】处理文本数据
- Scala Cookbook.pdf 英文原版 免费下载
- List Form表单常用功能
- Android——使用OkHttp(含各种请求方法)
- java数字转换
- Leetcode 712 Minimum ASCII Delete Sum for Two Strings
- 【NodeJS】回调和异步调用的关系
- SSL P2324 细胞问题
- MDK中STM32使用Printf函数详细解析
- 2017-12-8
- Living Clojure.pdf 英文原版 免费下载