1. 公文配置
根据业务单自动创建公文的配置
1.1. 文档表设置
- 配置mps_docctg 表,字段 dc_tag=0,则可由业务单生成该目录下的文档( 即只能操作 mps_document表)
- 业务单生成文档时,系统自动将业务单中的附件复制到 mps_document 中
- 配置mps_docctg 表,字段 dc_frombiz=0,则该目录下的文档可在【个人工作台】 的最新公文中显示
1.2. 表单相关设置
- 业务单中,正文字段配置为:{context},系统自动将{context}中的内容,写入文档正文,例如:
| 基本信息 | |||||
| 公文编号 | 作者 |
发布日期 |
|||
| 标 题 | |||||
| 通知对象 | |||||
| 附 件 |
file
|
||||
<table id="td_demo" class="tablesimpleline excel mediauto" cellspacing="0" cellpadding="0" border="0" prdlists="0" ctgid="0" topn="20" data-sort="sortDisabled">
<tbody>
<tr class="firstRow" html="">
<td colspan="6" style=";background-color:#f5f5f5" type="string">
<strong>基本信息</strong>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td style="width: 100px; text-align: center;">
公文编号
</td>
<td style=";width:200px" name="ord_no" editable="0" readonly="readonly" type="string"></td>
<td style="width: 100px; text-align: center;">
作者
</td>
<td style=";width:200px" name="ord_creator" editable="0" readonly="readonly" type="string"></td>
<td style="width: 100px; text-align: center;">
发布日期<br/>
</td>
<td style=";width:200px" name="ord_date" readonly="readonly" type="datetime" fmt="yyyy-mm-dd"></td>
</tr>
<tr class="firstRow">
<td style="text-align: center; width:100px">
标 题
</td>
<td style="" rowspan="1" colspan="5" name="ord_doctitle" editable="0" caption="标 题" type="string" mandatory="0" max-length="2000">
</td>
</tr>
<tr class="firstRow">
<td placeholder="通知正文" rowspan="1" colspan="6" name="context" editable="0" caption="通知正文" type="richtext" valign="top" style=";height:350px"></td>
</tr>
<tr>
<td align="center" style="">
通知对象
</td>
<td name="ord_docreceiver" pms="mydocview" editable="0" a="{ord_bizid}" caption="通知对象" type="string" html="" readonly="readonly" style="" mandatory="0" colspan="5"></td>
</tr>
<tr>
<td align="center" html="附件">
附 件
</td>
<td align="center" valign="middle" caption="附件" colspan="5">
<div addbyebs="true" ebstype="attach" category="公文附件" type="biz2371" objid="[this.ordid]" attach="1" min="0" view="" name="docenclosure" editable="0" style="text-align: left;" filetype="file" popwin="0,0/">
file
</div>
</td>
</tr>
</tbody>
</table>
1.2.1. 权限逻辑说明
对于mps_docment表,增加了mps_document_permission (文档权限表),可以对每篇文章进行权限设置
从业务单中,自动生成文档,系统会做以下处理
生成mps_document主记录
将order_x_users中的权限数据,写入 mps_document_users中。权限类别的对应关系是
| order | doc |
|---|---|
| mydocview | docview |
| mydocdelete | docdelete |
| my…… | …… |
- 将mps_permission中,与本文档有关的权限逻辑写入mps_document_permission,权限类别的对应关系
| mps_permission | mps_document_permission |
|---|---|
| mydocview | docview |
| mydocdelete | docdelete |
| my…… | …… |