配置实现-编辑(增加、修改及工作流任务)界面配置使用

l 编辑(工作流任务)界面配置使用

1、采用编辑模板实现编辑配置的加载、展现及处理。调用方法:Tmp/MyEdit.aspx?n=editTest(仅xml配置的文件名,不含后缀)

2、采用工作流任务处理模板实现工作流任务配置的加载、展现及处理。调用方法:WorkFlow/MyTask.aspx?edit=Edit (在流程中定义),如果自己调用则为WorkFlow/MyTask.aspx?edit=Edit&model=模型编号&task=任务编号&process=流程实例号

3、采用工作流任务展现模板实现工作流任务配置的加载、展现。调用方法:WorkFlow/MyTask.aspx?edit=Detail(在流程中定义)如果自己调用则为WorkFlow/MyTask.aspx?edit=Detail&model=模型编号&task=任务编号&process=流程实例号(仅xml配置的文件名,不含后缀)

4、Xml配置文件,如editTest.xml需在配置的xml目录的Query目录下(工作流节点任务的xml配置名称为Editmodel模型编号task任务编号.xml)

5、以editTest.xml为例:

<?xmlversion="1.0" encoding="utf-8"?>

<root>

<myquery title="测试问题信息" pagesize="0" >

<select>

<colgroup>

<col width="100px">

</col>

<col>

</col>

</colgroup>

<column name="RDate"title="发现日期"width="100px" type="textdate" maxlength="10"cssclass="input_date">

</column>

<column name="funname" title="所属模块" type="select" urlformatstring="sql:selectid,case when parentid>0 then ' '+name else name endfrom s_fun where iflag=1 order by id,sn">

</column>

<column name="title"title="标题" width="99%"type="textarea" maxlength="250" urlformatstring="3"cssclass="input_text">

<validates>

<validatetype="isnotnull">

</validate>

</validates>

</column>

<column name="notes"title="描述" width="99%"type="textarea" urlformatstring="8"cssclass="input_text">

</column>

<column name="IClass"title="严重程度"type="select" urlformatstring="1,严重;2,次要;3,一般;4,新需求">

</column>

<column name="iflag"title="当前状态"type="select" urlformatstring="0,发现;1,确认;2,解决;3,关闭">

</column>

<column name="userid"type="getvalue" visible="false"value="useraccount">

</column>

<column name="optime"type="getvalue" value="getdate">

</column>

</select>

<from type="table">

<table title="测试表">s_test</table>

</from>

<where isparameter="true">

<append type="querystring"name="id" datatype="int">

and id={0}

</append>

</where>

<buttons>

<button name="save"title="提 交" type="save"cssclass="input_button">

</button>

<button name="btnReturn"title="取 消"type="doscript" cssclass="input_button">

window.opener=null;window.open('','_self');window.close();

</button>

</buttons>

</myquery>

</root>

6、Editmodel110task3.xml为例:

<?xmlversion="1.0" encoding="utf-8"?>

<root>

<myquery title="网上咨询" pagesize="0">

<from type="table">

<table title="表"><![CDATA[Question]]></table>

</from>

<select>

<colgroup>

<col width="100px" />

<col width="220px" />

<col width="100px" />

<col />

</colgroup>

<column name="title"title="标题" type="detail"issort="true">

</column>

<column name="content"title="内容" type="detail">

</column>

<column name="rdate"title="时间"type="detail">

</column>

<column name="Reply"title="回复" type="text"width="200px" maxlength="500"cssclass="input_text" visible="true">

<validates>

<validate type="isnotnull">

</validate>

</validates>

</column>

<column name="depid"title="部门/组"type="select" width="205px" visible="true"urlformatstring="sql:select id,name from s_dep where iflag!=0 and(parentid='#USERDEPID#' or id='#USERDEPID#') order by id,sn">

</column>

<column name="hrdate"visible="false" value="getdate">

</column>

</select>

<where isparameter="true">

<append type="querystring"name="process" datatype="int">

or Process={0}

</append>

<append type="querystring"name="id" datatype="int">

or id={0}

</append>

</where>

</myquery>

</root>

欢迎访问:http://121.18.78.216 适易查询分析、工作流、内容管理及项目管理演示平台

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值