| | |
| | | </PropertyDef> |
| | | <PropertyDef name="node"> |
| | | <Property></Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("workOrderPR#triggerNode").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="label">流程环节</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createById"> |
| | | <Property></Property> |
| | |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">截止时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="scope"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtWordProcess"> |
| | | <Property name="creationType">com.fzzy.work.domain.WorkOrderProcess</Property> |
| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">query= function(){
 |
| | | <ClientEvent name="onReady">view.TAG = 1;
 |
| | | query= function(){
 |
| | | var param = view.get("#dsQuery.data");
 |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | param.set("scope","all");
 |
| | | if(0 == tabIndex){
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | }else{
 |
| | | view.get("#dsMain2").set("parameter",param).flushAsync();
 |
| | | param.set("scope","self");
 |
| | | }
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | }
 |
| | | query();
 |
| | | 
 |
| | | //宣传操作
 |
| | | renderCell1 = function(arg,self){
 |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | var data = arg.data;
 |
| | | var htm = "<a onClick='audit()' class='a-btn1'>指派</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | if(1 == tabIndex){
 |
| | | htm = "<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | }
 |
| | | arg.dom.innerHTML = htm;
 |
| | | };
 |
| | | 
 |
| | |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var dialog = view.get("#dialogMain");
 |
| | | view.get('^btnTag').set('visible',true);
 |
| | | if(1 == tabIndex){
 |
| | | cur = view.get("#dsMain2.data:#");
 |
| | | view.get('^btnTag').set('visible',false);
 |
| | | }
 |
| | | dialog.show();
 |
| | | 
 |
| | |
| | | }
 |
| | | }
 |
| | | //执行审批
 |
| | | todo = function(action){
 |
| | | todo = function(){
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set("orderId", cur.get("id"));
 |
| | | process.set("action", action);
 |
| | | process.set("node", cur.get("node"));
 |
| | | 
 |
| | | var remark = process.get('remark');
 |
| | | if(!remark){
 |
| | | $notify("请填写审批意见……");
 |
| | |
| | | }
 |
| | | view.get("#ajaxTodo").set('parameter',process).execute(function(result){
 |
| | | if('200' != result.code){
 |
| | | $alert(result.msg);
 |
| | | $alert(result.message);
 |
| | | }else{
 |
| | | $alert("执行成功!");
 |
| | | view.get('#dialogTodo').hide();
 |
| | | query();
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | cancelTodo = function(){
 |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set("action",null);
 |
| | | process.set('remark',null);
 |
| | | view.get('#dialogTodo').hide();
 |
| | | }
 |
| | |
| | | <DataSet id="dsMain"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");</ClientEvent> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQueryByUserType</Property> |
| | | <Property name="pageSize">10</Property> |
| | | <Property name="loadMode">lazy</Property> |
| | | </DataSet> |
| | | <DataSet id="dsMain2"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");</ClientEvent> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery2</Property> |
| | | <Property name="pageSize">10</Property> |
| | | <Property name="loadMode">lazy</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <TabControl id="tabMain"> |
| | | <ClientEvent name="onTabChange">if(view.TAG) query();</ClientEvent> |
| | | <ControlTab> |
| | | <Property name="caption">全部</Property> |
| | | <Property name="caption">我的工单</Property> |
| | | <Property name="iconClass">fa fa-th-large</Property> |
| | | <Property name="width">150</Property> |
| | | <Container> |
| | | <DataGrid layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">self.set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="fixedColumnCount">3</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="width">160</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="width">250</Property> |
| | | </DataColumn> |
| | | <DataColumn name="title"> |
| | | <Property name="property">title</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent> |
| | | <Property name="property">status</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn name="node"> |
| | | <Property name="property">node</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab> |
| | | <Property name="caption">全部工单</Property> |
| | | <Property name="iconClass">fa fa-history</Property> |
| | | <Property name="width">150</Property> |
| | | <Container> |
| | | <DataGrid layoutConstraint="padding:8"> |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn name="node"> |
| | | <Property name="property">node</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | <Property name="width">120</Property> |
| | |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab> |
| | | <Property name="caption">已结束</Property> |
| | | <Property name="iconClass">fa fa-history</Property> |
| | | <Property name="width">150</Property> |
| | | <Container> |
| | | <DataGrid layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">self.set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain2</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="fixedColumnCount">3</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="width">250</Property> |
| | | </DataColumn> |
| | | <DataColumn name="title"> |
| | | <Property name="property">title</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent> |
| | | <Property name="property">status</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain2</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | |
| | | <ToolBar> |
| | | <Fill/> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogTodo").show();
 |
| | | </ClientEvent> |
| | | <Property name="caption">处理</Property> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','pass')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">通过</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <Property name="caption">转交</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | view.get("#dialogMain").hide();</ClientEvent> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','refuse')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">拒绝</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn5</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogMain").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="updateSave"> |
| | | <UpdateItem> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">确定要执行删除么?</Property> |
| | | </AjaxAction> |
| | | <Dialog id="dialogTodo"> |
| | | <Property name="width">600</Property> |
| | | <Property name="caption">审批处理</Property> |
| | |
| | | <Property name="iconClass">fa fa-bookmark</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">todo('pass');</ClientEvent> |
| | | <Property name="caption">通过</Property> |
| | | <ClientEvent name="onClick">todo();</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">todo('refuse');</ClientEvent> |
| | | <Property name="caption">拒绝</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">cancelTodo();</ClientEvent> |
| | | <Property name="caption">取消操作</Property> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="width">90</Property> |