问题描述
客户、供应商、科目实现左树右表显示
解决方案:
客户
CasForArApUtil.setCustomerF7(AdjustBillEditUI.this, oppCompanyKDBizPromptBox, company.getId().toString(), company.getCU().getId().toString(), false, 0, null, false);
供应商
CasForArApUtil.setSupplierF7(AdjustBillEditUI.this, oppCompanyKDBizPromptBox, company.getId().toString(), company.getCU().getId().toString(), false, 0, null, false);
科目
//表头
CompanyOrgUnitInfo company = CUtils.getCurrentCompanyInfo(null);
CurrencyCollection currencyColl = CurrencyFactory.getRemoteInstance().getCurrencyCollection("where isoCode = 'RMB'");
EntityViewInfo treeevi = CasRecPayHandler.getAccountViewEvi(company.getCU().getId().toString(), company, currencyColl.get(0).getId().toString(), false, true);
AccountPromptBox opseelect = new AccountPromptBox(this, company, company.getAccountTable(), treeevi.getFilter(), false, true);
this.prmtaccountView.setSelector(opseelect);
//分录
KDBizPromptBox bizAccountPromptBox = (KDBizPromptBox)kdtEntrys.getColumn("accountView").getEditor().getComponent();
CurrencyCollection currencyColl = CurrencyFactory.getRemoteInstance().getCurrencyCollection("where isoCode = 'RMB'");
EntityViewInfo treeevi = CasRecPayHandler.getAccountViewEvi(company.getCU().getId().toString(), company, currencyColl.get(0).getId().toString(), false, true);
AccountPromptBox opseelect = new AccountPromptBox(AdjustBillEditUI.this, company, company.getAccountTable(), treeevi.getFilter(), false, true);
bizAccountPromptBox.setSelector(opseelect);
kdtEntrys.getColumn("accountView").setEditor(new KDTDefaultCellEditor(bizAccountPromptBox));