教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 互联网资料 >

金蝶EAS - BOS工作笔记(4)

来源:网络收集 时间:2026-08-27
导读: 将相应的CLASS文件及资源(.properties)打成JAR包并拷贝到服务器的/server/lib/sp,/server/lib/目录当中。将修改后的元数据手工打包并拷贝到服务器的/server/metas(/sp)目录。同时将解决方案目录下的subsystem.xml

将相应的CLASS文件及资源(.properties)打成JAR包并拷贝到服务器的/server/lib/sp,/server/lib/目录当中。将修改后的元数据手工打包并拷贝到服务器的/server/metas(/sp)目录。同时将解决方案目录下的subsystem.xml(subsystem_bos.xml)与服务器上的同名文件进行合并

2. 建议将客户机的解决方案导入到单位机器上面,然后在该解决方案上面直接开发,然后

找本地eas环境部署生成sp-bim-meta.jar包

92. “帐套和解决方案版本不匹配”如何解决?

帐套和解决方案版本不匹配是因为当前解决方案的版本与数据中心的版本不一致导致的。

解决方案的版本保存在解决方案的\文件当中,如<version>6.2.0</version>表示主版本为6,小版本为2

数据中心的版本保存在表T_SYS_DATACENTER当中。可通过以下语句查得两个版本号:SELECT TOP 1 FMajor , FMinor FROM T_SYS_DATACENTER。

所以你可以通过“解决方案设置”功能来修改版本号,以与数据库中的版本号匹配。

93. 关闭窗口 this.uiWindow.close(); getUIWindow().close(); 94. new ObjectUuidPK(BOSUuid.read(id)) 生成BOSUuid 95. 模糊查询:

filter8.getFilterItems().add(new

FilterItemInfo(\

96. 列表界面打开前过滤

protected FilterInfo getDefaultFilterForQuery() {

}

String bcxyid = this.getUIContext().get(\FilterInfo filter = super.getDefaultFilterForQuery();

filter.getFilterItems().add(new FilterItemInfo(\return filter;

97. 将query转化成sql语句 protected void execQuery() {

}

IQueryExecutor exec = getQueryExecutor(mainQueryPK, mainQuery); try { }

catch (BOSException e) { }

super.execQuery();

e.printStackTrace();

System.out.println(\

98. BOS lincense 问题:

找到BOS工具的安装目录,将此目录

BOSModular\\bim\\eclipse\\plugins\\com.kingdee.bos.bim_5.4.0\\configTemplet\\licenses 下的license文件拷贝覆盖到BIM当前工作空间解决方案的runtime\\server\\profiles\\server1\\config\\license. 请注意查看licensefile.xml文件指定的license路径,直接覆盖即可。 99. 给Query传过滤条件

EntityViewInfo evi = new EntityViewInfo();

FilterInfo filterInfo = new FilterInfo(); //建立过滤条件 filterInfo.getFilterItems().add(

new FilterItemInfo(\ CompareType.EQUALS)); filterInfo.getFilterItems().add(

new FilterItemInfo(\ CompareType.EQUALS)); filterInfo.setMaskString(\ evi.setFilter(filterInfo);

if (mainQuery == null) {

mainQuery = new EntityViewInfo(); }

mainQuery.setFilter(filterInfo); //添加过滤条件 this.execQuery(); 100.界面之间传递参数

1. 收集父界面要传递给子界面的参数集

HashMap map = new HashMap();

map.put(\必须。被启动UI的父UI对象 map.put(\

map.put(\ map.put(\

map.put(\ IUIFactory uiFactory = null; uiFactory ); //以模态对话框方式启动 IUIWindow uiWindow = uiFactory

create(\被启动对象的类名称 */map); uiWindow.show();

2. 在子界面获取传递下来的数据 private void loadContext() {

int mode = ((Integer)this.getUIContext().get(\ AccountTableInfo

accountTableInfo

=

(AccountTableInfo)

this.getUIContext().get(\

CtrlUnitInfo cuInfo = (CtrlUnitInfo) this.getUIContext().get(\ AsstAccountInfo

asstAccountInfo

=

(AsstAccountInfo)

this.getUIContext().get(\

AuxAccountEditUI ui = (AuxAccountEditUI) this.getUIContext().get(\ }

101. 特别控件的初始化

=

UIFactory.createUIFactory\

1.使用枚举给ComboBox控件赋值 public void setReceiveType() {

this.kDComboBox2.removeAllItems(); List list = new List();

Iterator it = ReceiveType.iterator(); while (it.hasNext()) {

list.add(ReceiveType.getEnum(it.toString()).toString()); } } 方法一:

check.setSelectedIndex(1); //check 为下拉控件;

//setSelectedIndex(1) 是将下拉框选中第一个值

方法二:

check.setSelectedItem(ContractStateEnum.interim); //check 为下拉控件; // setSelectedItem(ContractStateEnum.interim) 是将下拉框选中值为interim枚举对象

2.使用值对象集合给ComboBox控件赋值 // 获取结算方式列表 IAsstActTypeDefault

AsstActTypeDefaultFactory.getRemoteInstance();

AsstActTypeDefaultCollectioni asstActTypeColl = iAsstActType

.getAsstActTypeDefaultCollection(\ AsstActTypeDefaultInfo defaultVal = null; int count = asstActTypeColl.size(); Object[] typeValue = new Object[count]; for (int i = 0; i < count; i++) {

AsstActTypeDefaultInfo asstActTypeColl.get(i);

if (value.isIsDefaultAccountPayable()) {

defaultVal = value; }

ObjectUuidPK pk = new

ObjectUuidPK(BOSUuid.read(value.getAsstActType().getString(\ AsstActTypeInfo asstInfo =

AsstActTypeFactory.getRemoteInstance().getAsstActTypeInfo(pk);

//cbi[i] = new ComBoxInfo(asstInfo, asstInfo.getName(), true); String typeName = asstInfo.getName(); String typeId = asstInfo.getId().toString();

String typeQueryName = asstInfo.getDefaultQueryName();

value

=

(AsstActTypeDefaultInfo)

iAsstActType

=

String typeTableName = asstInfo.getRealtionDataObject(); int csType = 0; //asstActTypeInfo.getCsType().getValue();

asstActType = new AsstActTypeUtils(typeName, typeId, typeTableName, typeQueryName, csType);

typeValue[i] = (Object) asstActType; }

///String strQueryName = \ this.kDComAccountCussentType.removeAllItems(); this.kDComAccou …… 此处隐藏:3989字,全部文档内容请下载后查看。喜欢就下载吧 ……

金蝶EAS - BOS工作笔记(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/444213.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)