F7设置过滤
来源:互联网 发布:借绳法视频软件 编辑:程序博客网 时间:2024/04/27 16:01
1. 对分录F7字段设置数据过滤
<span style="font-family:Microsoft YaHei;">public void onLoad() throws Exception { final KDBizPromptBox kdtCT_owner_PromptBox = new KDBizPromptBox(); kdtCT_owner_PromptBox.setQueryInfo("com.kingdee.eas.basedata.org.app.SaleOrgUnitQuery"); kdtCT_owner_PromptBox.setVisible(true); kdtCT_owner_PromptBox.setEditable(true); kdtCT_owner_PromptBox.setDisplayFormat("$number$"); kdtCT_owner_PromptBox.setEditFormat("$number$"); kdtCT_owner_PromptBox.setCommitFormat("$number$"); EntityViewInfo eviOwner = new EntityViewInfo(); //过滤设置 FilterInfo fiOwner = new FilterInfo(); fiOwner.getFilterItems().add(new FilterItemInfo("isBizUnit", Boolean.TRUE)); //实体字段名称 eviOwner.setFilter(fiOwner); kdtCT_owner_PromptBox.setEntityViewInfo(eviOwner); KDTDefaultCellEditor kdtCT_owner_CellEditor = new KDTDefaultCellEditor(kdtCT_owner_PromptBox); this.kdtCT.getColumn("owner").setEditor(kdtCT_owner_CellEditor); ObjectValueRender kdtCT_owner_OVR = new ObjectValueRender(); kdtCT_owner_OVR.setFormat(new BizDataFormat("$name$")); this.kdtCT.getColumn("owner").setRenderer(kdtCT_owner_OVR);}</span>
2. F7字段没有对应的 bizunit 界面设置数据过滤
<span style="font-family:Microsoft YaHei;">public void onLoad() throws Exception { super.onLoad(); final KDBizPromptBox kdtEntrys_attachID_PromptBox = new KDBizPromptBox(); //分录字段名称 -- 标准 kdtEntrys_attachID_PromptBox.setQueryInfo("com.kingdee.eas.fdc.basedata.app.AttachmentQuery"); kdtEntrys_attachID_PromptBox.setVisible(true); kdtEntrys_attachID_PromptBox.setEditable(true); kdtEntrys_attachID_PromptBox.setDisplayFormat("$attachID$"); kdtEntrys_attachID_PromptBox.setEditFormat("$attachID$"); kdtEntrys_attachID_PromptBox.setCommitFormat("$attachID$"); KDTDefaultCellEditor kdtEntrys_attachID_CellEditor = new KDTDefaultCellEditor(kdtEntrys_attachID_PromptBox); this.kdtEntrys.getColumn("attachID").setEditor(kdtEntrys_attachID_CellEditor); ObjectValueRender kdtEntrys_attachID_OVR = new ObjectValueRender(); kdtEntrys_attachID_OVR.setFormat(new BizDataFormat("$attachID$")); this.kdtEntrys.getColumn("attachID").setRenderer(kdtEntrys_attachID_OVR); kdtEntrys_detailPanel.setTitle("合同列表"); kdtEntrys.getColumn("attachName").getStyleAttributes().setLocked(true); //分录关联字段不可编辑设置 kdtEntrys.getColumn("attachType").getStyleAttributes().setLocked(true);}public void kdtEntrys_Changed(int rowIndex, int colIndex) throws Exception {//在对应的值改变事件中对关联字段赋值 super.kdtEntrys_Changed(rowIndex, colIndex); if ("attachID".equalsIgnoreCase(kdtEntrys.getColumn(colIndex).getKey())){ //改变的是指定的设置的 F7 Object attachIDVal = kdtEntrys.getCell(rowIndex, "attachID").getValue(); if (attachIDVal != null) { AttachmentCollection attachmentCol = AttachmentFactory.getRemoteInstance().getAttachmentCollection( " where name = '" + attachIDVal.toString() + "'"); //主要是防止多条数据 if (attachmentCol.size() > 0){ AttachmentInfo attachmentInfo = attachmentCol.get(0); kdtEntrys.getCell(rowIndex, "attachID").setValue(attachmentInfo.getAttachID());//分录界面是文本框,值改变事件之后需充值 kdtEntrys.getCell(rowIndex, "attachType").setValue(attachmentInfo.getType()); kdtEntrys.getCell(rowIndex, "attachName").setValue(attachmentInfo.getName()); }} }}</span>
0 0
- F7设置过滤
- 设置F7过滤界面为左树右边
- F7控件经常被设置各种过滤条件
- 表格F7控件设置固定的过滤条件
- F7过滤方法
- 分录F7字段过滤
- EAS F7 过滤 单头
- 如何获取单据分录上列中的F7控件设置过滤条件?
- 给ListUI中的查询界面中的(默认)F7字段进行设置过滤
- 给ListUI中的查询界面中的(默认)F7字段进行设置过滤
- 金蝶EAS,分录表格中F7字段实现数据过滤,FilterInfo多条件关系设置
- 表格F7样式设置
- 通过sql语句给F7过滤条件
- 表格F7后台数据设置
- EAS单据F7引用设置
- EAS自定义F7的设置
- F7的CU隔离设置
- EAS自定义F7的设置
- Unity在Android和iOS中如何调用Native API (2)
- iOS APP 架构漫谈(二)
- 关于柳州派胜纳科技网络有限公司的基本信息
- android中长按home键的时候让程序不显示在列表中
- HDU 3631(Shortest Path) 最短路问题 (Floyd)
- F7设置过滤
- errno
- 搜狗浏览器下 禁止浏览器自动填写用户名、密码
- 情商是怎样提高起来的?
- spring 发送邮件
- Single Round Match 479 Round 1 - Division I, Level Two TheAirTripDivOne
- 获取前一天的日期的方法
- 在MAC应用里显示多个图片(IKImageBrowserView控件使用)
- UML之用例图