Disposing attribute field attribute jabdp

### Third, field properties

1, display name

The new display name field when the modification, attribute names will change, but after saving changes, attribute names will not be changed. To modify the display name, do not modify the properties directly on the panel, it is invalid, to change on a whim in the form.

2, property name

With the change of name attribute is the field name changes, and can not be modified.

3, international settings

International platform for control applications field, a different language can display a different field names.

4, virtual field

And whether the virtual table form [similar]. This does not create the table in the database after the check.

5, the header field

The role of the header fields and the role of the virtual field similar can be said to be another virtual field. When the header is generally used to create a multi-layer, the specific header field may look as shown below:

Picture 1.png

Red is boxed header field, when you create a multi-layer header, this field need to check on this property.

6, dynamic display settings

See detailed dynamic display attributes of the form.

7, field permissions enabled

Rights for a field used to control only has permission for the field user can see and operate this field.

8, revised enable field

After checking this property, can in the case of approval, modification value field and save the data sink to the database. Specific effects look: Picture 2.png

Picture 3.png

9, the field name

Although the field names can be modified, but it is not advisable to modify, because once the change field names, will add a new field in the database.

10, the data type

Represents the field type field, a total of six types:

Picture 4.png

11, the length

The corresponding database field length.

Picture 5.png

12, accuracy

[Database] corresponds to the decimal point.

Picture 6.png

13, non-empty

The corresponding database [not null]. 

Pictures 7.png

After checking on the property, it will display the following effect on the application platform:

Picture 8.png

14, the only

It represents data can not be repeated.

15, editor type

Represents the control type, specific see Chapter VII.

16, allows multiple selections

After checking the property, some controls, multiple choice control becomes possible to select a plurality of values, for example: comboBox, checkbox.

17, showing

Only check this field, the field is visible.

18, read-only

Pictures 9.png After checking this property, this operation can not be edited field.

19, view the status operable

This property is used for link control, after checking on the property, even if the link is in view state when the event can trigger the link control.

20, auto-complete

This property is only comboBox property available, the effect is similar to Baidu search box, enter the text will automatically add the appropriate content. Specific results are as follows:

与不勾选这个属性的下拉框控件其实是有点类似的,都需要配置数据源,唯一的区别,如果数据源中不存在你输入的值,下拉框控件是不能保存这个数据的,而勾选了这个属性的下拉框是可以保存这个数据的。

具体配置看下图:

Picture 10.png

Picture 11.png

Picture 12.png

Picture 13.png

保存更新后就可以了。

21、过滤主表唯一

此属性只对子表有用,主表无效。作用就是防止子表中有重复的数据。如果字段勾选了该属性,那么该字段下的值就不能出现重复的值,如果有重复的值,保存时就会有提示。

22、内容对齐方式

此属性一共有三个值:左对齐,居中对齐和右对齐。此属性只对主表有用,子表无效,用于控制字段中内容的对齐方式。比如:设置【键】字段的内容对齐方式为居中对齐,显示效果如下图: Picture 14.png

23、显示格式

此属性一般用于时间控件的格式设置,也有用于字典树控件的,具体的使用方法请看第七章。

24、最小日期

该属性只有时间控件可用。用于设置时间控件的最小日期

25、最大日期

该属性只有时间控件可用。用于设置时间空间的最大日期。

26、默认值

用于设置字段的默认值。

27、自动编号规则

具体使用方法请看第十章的函数模块。

28、字段后缀

主子表都有效。效果如下图。

主表: Picture 15.png

Picture 16.png

子表: Picture 17.png

Picture 18.png

29、数据源设置

具体用法见第七章的下拉框部分。

30、限定记录数

该属性是用来控制数据的显示条数的,有设置过数据源的控件都适用此属性,默认是20条,也就是第20条之后的数据是不会显示的。需要注意的是,此属性对数据源设置为固定值的是无效的。

可以看如下的具体例子:

系统用户在数据库中的记录为两条,所以你可以设置该属性为1,那下拉框下就只会显示一条数据。 Picture 19.png

Picture 20.png

31、快速添加数据

具体用法请见第七章下拉框部分。

32、公式代码

用于给字段设置计算公式之用。

用法很简单,就是选择表,然后选择字段,进行加减乘除就可以了,so easy。

Picture 21.png

Picture 22.png

Picture 23.png

最后保存更新就可以了。

33、sql编辑

用于新增和修改sql语句之用。具体使用方法可见第七章下拉框部分。

34、事件编辑

用于编写字段事件,具体事件可看第十章事件部分。

35、宽度

用于设置控件的宽度。如下图:

Picture 24.png

36、高度

用于设置控件高度的。如下图

Picture 25.png

37、上边距

该属性只有在绝对布局下才有效,相当于css中的top。

38、左边距

该属性只有在绝对布局下才有效,相当于css中的left。

39、列表显示

想要让自己新建的字段在模块的列表界面中显示出来,要配置两个地方,一个是表单属性的是否列表显示,一个是相应字段的列表属性。

Picture 26.png

Picture 27.png

配置好后更新帐套。

配置好的字段就列表显示出来了。

Picture 28.png

还有一个简单的方法可以快速配置。先选中你所有要显示的字段,然后右键选中属性,就会出现字段公共属性,勾选列表显示属性就能很快速的将所有选中的字段全部都设定成列表可见的。具体操作如下:

Picture 29.png

Picture 30.png

40、查询属性

查询属性一共有两种:作为查询条件和作为常用查询条件。

问题来了,查询条件和常用查询条件有啥区别呢?接下来由我慢慢道来。

查询条件,就是需要通过点击列表页面的高级查询才能看到查询条件,换句话说,也就是自定义查询条件。可以看看具体的效果,如下图:

Picture 31.png

常用查询条件,就是直接能在列表页面顶部直接看到的查询条件。具体效果图如下:

Picture 32.png

自定义查询条件的设置:点击相应字段的字段属性的作为查询条件。

Picture 33.png

更新帐套,查询过滤功能即可快速生成。

Picture 34.png

 查用查询条件的设置:点击相应字段的字段属性的作为常用查询条件

Picture 35.png

41、冻结列

先看下冻结列的具体效果图:

Picture 36.png

具体的设置:点击相应字段属性的作为冻结列,保存并更新。 Picture 37.png

42、字段公共属性

既然在前面的内容提到了字段公共属性,在这里就进行一些详细的介绍。

对于调出字段公共属性的操作是比较简单和方便的。只需要选中你想要操作的所有字段,右键其中的一个字段,会弹出一个菜单栏。点击属性,右侧的属性面板会变成字段公共属性的面板,具体操作如下图: Picture 38.png

有了公共字段属性,很多设置就都方便了很多。比如:

1. 列表显示的设置(上面设置过了,就不多说了)

2. 查询条件的设置

在字段公共属性面板上勾选上作为查询条件,就能快速将多个字段设置为查询条件。 Picture 39.png

3. 冻结列的快速设置

在字段公共属性面板上勾选上作为查询条件,就能快速将多个字段设置为查询条件。

Picture 40.png

4. 字段查看状态可操作、可见和只读的快速设置。

以上都是一些常用属性通过字段公共属性快速设置的技巧。

43、多层表头设置

Picture 41.png

在这里介绍一下多层表头的设置。

设置多层表头需要对字段属性中的三个属性进行设置:表头层级、表头跨行数和表头快列数。

Picture 42.png

要实现跨行,就设置表头跨行数。比如设置一个2,就说了该字段跨了两行,如上面的效果图【跨行】字段就是跨了两行。

要实现跨列,就设置表头跨列数。比如设置一个2,如上面的效果图【跨列】字段就是跨了两列。

如何实现层二一和层二二的效果呢?就需要设置表头层级了。因为【跨列】的表头层级为1,那么层二一和层二二就需要设置 表头层级为2。

这里需要注意的是,设置了表头跨列数,就必须要有一个或以上的表头层级为2的字段存在,并且这些字段都需要设置列表显示为true。如果没进行这些设置,是会报错的。还有一点就是跨列这个字段属于表头字段,需要勾选上表头字段这个属性。

Picture 43.png

Picture 44.png

Picture 45.png

Picture 46.png

Picture 47.png

44、占用行数和占用列数

Picture 48.png

如上图两个字段属性的设置,只对表单有效。

比如,进行如下图的设置: Picture 49.png

Picture 50.png

会产生如图所示的效果:

Picture 51.png

从编辑页面设计中不难看出,跨行占了两行,跨列占了两列。

45、分组归属

Picture 52.png

分组归属的设置是比较常用的,可以实现让同一张表的字段处于多个不同的显示页面内。具体可以看如下效果图:

Picture 53.png

如上两个框起来的字段都同属于主表,但是因为配置了分组归属,导致不在同一个框中显示。

既然知道了分组归属是什么意思,接下来就来看看怎么配置吧!

首先进入到编辑页面设计,右键编辑页面设计,新建分组。

Picture 54.png

修改分组的显示名

Picture 55.png

这个显示名就是分组归属中需要用到的东西,然后回到数据库设计,选中你需要放到该分组下的字段(这里可以选中所有自己需要用到的字段),右键属性,在公共属性面板中找到分组归属,选择自己创建的分组。

Picture 56.png

最后保存更新就可以了。

46、表格内对齐方式

该属性只对列表页面和子表的字段有效。具体效果与内容对齐方式的效果一样,区别在于一个是对主表有用,一个是对子表和列表页面有效。

47、是否排序字段

设置字段为排序字段。

48、是否页面过滤

该属性被勾选上之后,平台列表页面或者子表上右键该字段,会出现如下图所示的效果:

Picture 57.png

之后可以根据值进行筛选,但只对当前页面的数据有效,与excel的功能有点类似。

49、列宽

用于设置列表页面的列宽。

50、作为树形查询

这个属性只对树形控件有效,比如:comboTree和DictTree。设置了这个之后,在列表页面左侧会出现如下图所示的效果:

Picture 58.png

具体效果与设置系统分类的效果是一样的,可以跳到第九章系统分类管理部分进行查看。

此处以部门字段为例。

编辑类型选择comboTree,数据源选择sql语句,填入编写好的sql语句,如下:

SELECT

ID,

ORGANIZATION_NAME,

PARENT_ID

FROM

SYS_ORGANIZATION

Picture 59.png

勾选上列表显示和作为属性查询,保存更新就可以了。

51、作为标签页查询

此属性只适用于设置了数据源并且字段key中包含【key】和【caption】的。具体效果如下:

Picture 60.png

点击相应的标签可以对数据进行筛选。

52、作为共享用户属性

该属性只能用于数据源为用户的字段,比如:客服,业务员之类的。普通用户一般只能看到自己创建的数据(也就是create_user等于自身账号的用户id的数据),但是勾选上这个属性后(此处以业务员字段勾选上该属性为例,自己的账号所属角色为业务员),你就能看到所业务员等于自身账号的用户id的所有数据。

比如销售订单中有客服和业务员两个字段,有时候订单是客服下的,有时候订单是客服下的。一般来说,用户是只能看到自己下的订单。可能某些订单中的客服或者业务员是自己,但用户是看不到这些数据的。要想用户能看到这些数据,就可以在客户或者业务员字段中勾选上这些数据。

53、数据权限控制字段

该属性只能用于有设置数据源的字段。

如果某个字段勾选上了这个属性,那么当前模块所拥有的的权限就与该字段数据源勾选上的权限绑定(注:权限是可以叠加的)。就是该模块列表页面所查询出来的记录,是在该字段数据源可见范围之内的。

Order-module (the module customer field check on the property), for example. If the user can see a customer in the customer data source field, you can see all orders for this customer. In general, users can only see the order you have created. And what they have certain customers may be transferred to other people their own, then the orders before the customers themselves can not see, to see orders before the customers can check on the field on the client this property

54, the same value of the merged cell

This value applies only to the child table (for a list page is invalid). After this property is set, it will make the same value adjacent to the child table into one cell, specifically as: Picture 61.png

Source: http://daohang.1994july.club/

Guess you like

Origin www.cnblogs.com/1994july/p/12403573.html