苍穹开发云笔记

苍穹开发云笔记

1、调用操作跳过操作中的warn校验:

OperateOption operateOption = OperateOption.create();

operateOption.setVariableValue("ignorewarn", String.valueOf(true));

2、判断是审批流程中打开页面:

String scene = (String)this.getView().getFormShowParameter().getCustomParams().get("SCENE");

3、单据体赋值

this.getModel().updateEntryCache(entryColl);

this.getView().updateView(KEY_ENTRYENTITY);

4、修改字段标题:

LocaleString capTion = entityType.getProperties().get(CreditLimitBillProp.ORG).getDisplayName();

orgField.setCaption(capTion);

Map allFields = this.getModel().getDataEntityType().getAllFields();

IDataEntityProperty propertys = allFields.get(CreditmApplyProp.ORG);

propertys.getDisplayName().setLocaleValue(capTion.getLocaleValue());

5、基础资料引用检查白名单配置:bd_ignorerefcheck

6、字段提示:Label title = this.getView().getControl("title");

Tips tips = new Tips();

tips.setType(Tips.Text);

tips.setContent(new LocaleString(content));

title.addTips(tips);

7、操作中赋值单据体seq字段:如果在操作中的getSelector添加查询字段seq,会提示实体类型entryentity中不存在名为seq的属性;

解决方式:

在getSelector中加入“entry.seq",此时操作中就可以使用seq。

相关推荐

tnt副本攻略?(tnt玩法)
365bet足球现金网

tnt副本攻略?(tnt玩法)

📅 10-17 👁️ 7932
什么叫见过世面,这是我见过最好的回答。
beat365体育官网平台

什么叫见过世面,这是我见过最好的回答。

📅 08-18 👁️ 8465
linuxtelnet命令在那个目录
365bet手机网址是多少

linuxtelnet命令在那个目录

📅 07-06 👁️ 4847