动态表单
动态表单 同一种业务表单,由于业务场景不同,业务表单需要记录的信息有一定差异。为灵活适应同一种业务表单不同业务场景的信息记录需求,特开发了“动态表单”模块。该模块允许用户为委托业务表单、样品登记业务表单、检测任务表单、采样方案表单等业务表单录入内容进行定制。平台默认提供一套完善的表单,用户可以根据需要修改,也可以新增表单,在业务登记时选择合适的业务表单。
动态表单列表
功能概述
动态表单列表 就是动态业务表单的列表,一条记录就是一个业务表单。包括创建表单、删除和编辑。
点击{系统配置}→{动态表单},弹出业务单据动态表单列表页面,如下图所示:
操作说明
创建表单 点击【创建表单】,弹出动态表单信息编辑页面,执行动态表单信息编辑操作。
编辑动态表单信息 点击【编辑】,弹出动态表单编辑操作页面,执行动态表单编辑操作页面
删除 点击【删除】,弹出删除确认对话框,点击【对,删的就是它】完成删除。
注意:删除操作请务必谨慎进行。请确保列表中至少有一条表单记录,否将无法录入相关业务信息。
动态表单信息编辑
操作说明
操作页面如下:
操作步骤如下:
步骤 | 描述 | 备注 | 是否必须 |
---|---|---|---|
第一步 | 录入动态表单名称 | √ | |
第二步 | 选择对象名称和对象类型 | √ | |
第三步 | 点击【创建表单】 | √ |
温馨提醒:“对象类型”指针对不同的委托类型,系统使用对应的表单。
动态表单编辑
功能概述
模板编辑 就是定义业务表单字段,建立模板中需要填充的数据栏目与平台云端数据库字段映射关系,以便平台将用户录入的业务保存到数据库。操作页面如下图所示:
在动态表单编辑操作页面中,分为字段属性区和表单编辑区。如上图所示。
操作说明
字段属性区中定义了表单输入的类型,目前有文本、下拉列表、单选框、复选框、日期、时间、文件上传等类型。未来根据需要进行扩展。可添加、编辑和删除字段,也可定义字段顺序。具体操作如下:
添加字段 点击左侧的字段类型按钮,弹出字段类型定义操作页面,执行字段类型定义操作。
编辑字段 点击某项目的编辑按钮,弹出字段类型定义操作页面,执行字段类型定义操作。
定义字段顺序 动态表单编辑操作页面中,可以控制各个输入项目的显示顺序。点击左右移动的箭头,进行顺序移动。
字段类型定义操作
- 文本字段类型定义操作页面 文本域字段、日期字段、时间字段、日期&时间字段和上传文件字段类型定义界面与文本字段类型定义操作页面相同,操作相同。如下图所示:
录入相关内容,创建完成后,点击【保存表单】按钮,即可生效。
注意:
key 为数据库字段名称,在程序和数据库中使用。必须为英文字母或下划线开头,建议为有明确意义的英文单词或汉语频音字母。例如,Sample_Name。
Label 为字段的中文标签,在操作页面中显示。必须为英文字母或下划线开头,建议为有明确意义的英文单词或汉语频音字母。例如,样品名称。
- 下拉表字段类型定义操作页面
基本操作请参照文本框类型字段定义操作,不同的是需要定义下拉选择项。具体操作如下: 在下拉框数据项目中定义选择项定义,一个编辑框定义一个下拉选择项。通过【添加一行】和【删除一行】定义选择项目数量。
- 单选框字段类型定义操作页面
基本操作请参照文本框类型字段定义操作,不同的是需要定义选择项。具体操作如下: 在单选框数据项目中定义选择项定义,一个编辑框定义一个选择项。通过【添加一行】和【删除一行】定义选择项目数量。
- 复选框字段类型定义操作页面
基本操作请参照文本框类型字段定义操作,不同的是需要定义选择项。具体操作如下: 在复选框数据项目中定义选择项定义,一个编辑框定义一个选择项。通过【添加一行】和【删除一行】定义选择项目数量。