资源预览内容
第1页 / 共38页
第2页 / 共38页
第3页 / 共38页
第4页 / 共38页
第5页 / 共38页
第6页 / 共38页
第7页 / 共38页
第8页 / 共38页
第9页 / 共38页
第10页 / 共38页
亲,该文档总共38页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
客户端常用代码客户端常用代码客户端常用代码客户端常用代码 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.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.15 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); return 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 设置是否在调入列表界面之前先出过滤框设置是否在调入列表界面之前先出过滤框设置是否在调入列表界面之前先出过滤框设置是否在调入列表界面之前先出过滤框 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) MsgBox.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 ObjectStringPK(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.abort(); /; = ? botp?W ! super.actionCreateTo_actionPerformed(e); 1.6 动态调用动态调用动态调用动态调用 UIUIUIUI 界面,并在界面,并在界面,并在界面,并在 UIUIUIUI 之间传递变量之间传递变量之间传递变量之间传递变量 private void makePurOrderUI(PurOrderInfo srcBillInfo) throws EASBizException, UIException, BOSException, Exception String destBillEditUIClassName = “com.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(UIFactoryName.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 EASBizException, BOSException String companyId = OrgInnerUtils.getCurCompany(); ICodingRuleManager codeRuleMgr = nullC codeRuleMgr = CodingRuleManagerFactory.getRemoteInstance(); return codeRuleMgr.isExist(objValue, companyId); / YZ? LUV protected String getAutoCode(IObjectValue objValue) throws EASBizException, BOSException String companyId = OrgInnerUtils.getCurCompany(); ICodingRuleManager codeRuleMgr = nullC codeRuleMgr = CodingRuleManagerFactory.getRemoteInstance(); if (codeRuleMgr.isUseIntermitNumber(objValue, companyId) return codeRuleMgr.readNumber(objValue, companyId); else return codeRuleMgr.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.iterator(); 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() listIdindex = (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
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号