金蝶EAS_BOS_V5.4客户端常用代码

上传人:QQ15****706 文档编号:107052870 上传时间:2019-10-17 格式:PDF 页数:38 大小:448.75KB
返回 下载 相关 举报
金蝶EAS_BOS_V5.4客户端常用代码_第1页
第1页 / 共38页
金蝶EAS_BOS_V5.4客户端常用代码_第2页
第2页 / 共38页
金蝶EAS_BOS_V5.4客户端常用代码_第3页
第3页 / 共38页
金蝶EAS_BOS_V5.4客户端常用代码_第4页
第4页 / 共38页
金蝶EAS_BOS_V5.4客户端常用代码_第5页
第5页 / 共38页
点击查看更多>>
资源描述

《金蝶EAS_BOS_V5.4客户端常用代码》由会员分享,可在线阅读,更多相关《金蝶EAS_BOS_V5.4客户端常用代码(38页珍藏版)》请在金锄头文库上搜索。

1、客户端常用代码客户端常用代码客户端常用代码客户端常用代码 1 列表界面常用代码列表界面常用代码列表界面常用代码列表界面常用代码.3 1.1 ? ? ? !“#$% .(?AB .5 1.4 C ?DEFG?HI 6 1.5 JK 6 1.6 LM= ? UI .(N Ug .( ,- 9 16 2.17 BIGDECIMAL ?) 17 2.18 OBJECTUUIDPK.17 2.19 17 2.20 uv “? 17 2.21 B? F7 18 qr qrqr qr .19 3.1 F7.19 3.2 19 3.3 C ? F7.19 3.4 f F7.19 3.5 C VF7.19 3.

2、6 F7.19 3.7 G F7.19 3.8 F7.20 3.9 G F7.20 3.10 F7.20 3.11 ? F7.20 3.12 F7.20 3.13 ? F7.20 4 st stst st20 4.1 x 4 V20 4.2 x 4 V22 4.3 x 4 V22 4.4 uv22 4.5 uv 9E 23 4.6 .(?OPQ y 3 23 4.7 QUERY P /0 .24 4.8 8l)*?) 25 4.9 PQ y 3?8l) 25 4.10 0? 25 4.11 F7 9 .26 4.12 ,-x 4 x 28 4.13 ,-x 1 Ug28 4.14 29 4.1

3、5 F7 ?.(? ,-.29 4.16 uv M31 4.17 uv 31 4.18 uvy 3 y 3 ,- ? V.31 4.19 | 32 4.20 TREE- LIST % try dialog.addUserPanel(getUserPanel(); dialog.setShowFilter(true); dialog.setShowSorter(true); dialog.setHeight(380); dialog.setWidth(500); dialog.setTitle(“C ? ”); catch (Exception e) handUIException(e); re

4、turn dialog; protected CustomerQueryPanel getUserPanel() throws Exception if (this.userPanel = null) this.userPanel = new PurOrderQueryUI(); userPanel.onLoad(); return this.userPanel; 16% FilterInfo filter = new FilterInfo(); /filter /0* ev.setFilter(filter); return ev; 1.3 设置是否在调入列表界面之前先出过滤框设置是否在调入

5、列表界面之前先出过滤框设置是否在调入列表界面之前先出过滤框设置是否在调入列表界面之前先出过滤框 protected boolean initDefaultFilter() return true; 1.4 客户端对审核的操作客户端对审核的操作客户端对审核的操作客户端对审核的操作 f?+?FGHI actionAuditing public void actionAuditing_actionPerformed(ActionEvent e) throws Exception / x 4 M if (!checkStatus(tblMain, BillStatusEnum.SUBMITED) Ms

6、gBox.showInfo(this, Day4Resource.getStrResource(“isNotSubmitStatus“); / M “,-./01 SysUtil.abort(); IPurOrder purorder = (IPurOrder) getBizInterface(); String billIdlist = getSelectedListId(); / ? BE2)* int i = MsgBox.showConfirm2(this, “sureAudit“); if (i = MsgBox.OK) / FGHI purOrder.audit(new Objec

7、tStringPK(bill); /3 45678 / 9 .( actionRefresh_actionPerformed(null); 1.5 关联生成关联生成关联生成关联生成 public void actionCreateTo_actionPerformed(ActionEvent e) throws Exception checkSelected(); / : FG x 4“ JK if (!checkStatus(tblMain, BillStatusEnum.AUDITED) MsgBox.showInfo(this, “billIsUnAudited“); SysUtil.ab

8、ort(); /; = ? botp?W ! super.actionCreateTo_actionPerformed(e); 1.6 动态调用动态调用动态调用动态调用 UIUIUIUI 界面,并在界面,并在界面,并在界面,并在 UIUIUIUI 之间传递变量之间传递变量之间传递变量之间传递变量 private void makePurOrderUI(PurOrderInfo srcBillInfo) throws EASBizException, UIException, BOSException, Exception String destBillEditUIClassName = “co

9、m.kingdee.PurOrderEditUI”; Map map = new UIContext(this); map.put(“srcBillID“, srcBillInfo.getId().toString(); map.put(UIContext.OWNER, this); map.put(“srcBillBOSTypeString“, destBillInfo.getBOSType(); IUIWindow uiWindow = null ; / UIFactoryName.MODEL B uiWindow = UIFactory.createUIFactory(UIFactory

10、Name.MODEL). create(destBillEditUIClassName, map, null, OprtState.ADDNEW); / 1E“? ui A HI /(CoreBillEditUI).uiWindow.getUIObject(). /setMakeRelations(btpResult.getBOTRelationCollection(); / ? 1.7 关于编码规则关于编码规则关于编码规则关于编码规则 / :;BUVW ! protected boolean isCodeRuleEnable(IObjectValue objValue) throws EAS

11、BizException, BOSException String companyId = OrgInnerUtils.getCurCompany(); ICodingRuleManager codeRuleMgr = nullC codeRuleMgr = CodingRuleManagerFactory.getRemoteInstance(); return codeRuleMgr.isExist(objValue, companyId); / YZ? LUV protected String getAutoCode(IObjectValue objValue) throws EASBiz

12、Exception, BOSException String companyId = OrgInnerUtils.getCurCompany(); ICodingRuleManager codeRuleMgr = nullC codeRuleMgr = CodingRuleManagerFactory.getRemoteInstance(); if (codeRuleMgr.isUseIntermitNumber(objValue, companyId) return codeRuleMgr.readNumber(objValue, companyId); else return codeRu

13、leMgr.getNumber(objValue, companyId); 1.8 如何得到当前选中行的如何得到当前选中行的如何得到当前选中行的如何得到当前选中行的 idididid / YZ? id public String getSelectedListId() checkSelected(); / SelectManager :kdtable D1 ArrayList blocks = tblMain.getSelectManager().getBlocks(); ArrayList idList = new ArrayList(); Iterator iter = blocks.it

14、erator(); while (iter.hasNext() KDTSelectBlock block = (KDTSelectBlock) iter.next(); int top = block.getTop(); int bottom = block.getBottom(); for (int rowIndex = top; rowIndex 0) Iterator iterat = idList.iterator(); listId = new StringidList.size(); int index = 0; while (iterat.hasNext() listIdinde

15、x = (String) iterat.next(); index+; return listId; 1.9 关于数字精度的设置关于数字精度的设置关于数字精度的设置关于数字精度的设置 private void changeShowData(int fistRow, int lastRow) throws EASBizException, BOSException for (int i = fistRow; i = lastRow; i+) IRow row = tblMain.getRow(i); / 4 ,- a ICell cell = row.getCell(“columnName”); /E ?a 2 int precision = 2; if (cell != null catch (Exc

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 总结/报告

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号