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 适易查询分析、工作流、内容管理及项目管理演示平台