| | |
| | | //汇总信息
 |
| | | summaryCount = function(){
 |
| | | view.get("#ajaxSummary").execute(function(result){
 |
| | | console.log(result);
 |
| | | //console.log(result);
 |
| | | jQuery('#child-num1').text(result.selfTodo);
 |
| | | jQuery('#child-num2').text(result.assignTodo);
 |
| | | jQuery('#child-num3').text(result.todayTodo);
 |
| | |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var dialog = view.get("#dialogMain");
 |
| | | view.get('^btnTag').set('disabled',false);
 |
| | | view.get('#btnTodo').set('disabled',false);
 |
| | | if(1 == tabIndex){
 |
| | | view.get('^btnTag').set('disabled',true);
 |
| | | view.get('#btnTodo').set('disabled',true);
 |
| | | }
 |
| | | dialog.show();
 |
| | | 
 |
| | |
| | | }
 |
| | | view.get("#ajaxTodo").set('parameter',process).execute(function(result){
 |
| | | if('200' != result.code){
 |
| | | view.get('#dialogTodo').hide();
 |
| | | $alert(result.message);
 |
| | | }else{
 |
| | | $alert("执行成功!");
 |
| | | view.get('#dialogTodo').hide();
 |
| | | view.get("#dialogMain").hide();
 |
| | | query();
 |
| | | }
 |
| | | });
 |
| | |
| | | </AutoForm> |
| | | <ToolBar> |
| | | <Fill/> |
| | | <ToolBarButton> |
| | | <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> |
| | | <ToolBarButton id="btnTodo"> |
| | | <Property name="caption">工单审批</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">selectUser();</ClientEvent> |
| | | <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">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> |
| | | <Property name="menu">menus</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogMain").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | </ToolBarButton> |
| | |
| | | <AjaxAction id="ajaxSummary"> |
| | | <Property name="service">workOrderPR#pageSummary</Property> |
| | | </AjaxAction> |
| | | <Menu id="menus"> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','pass')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">审批通过</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">selectUser();</ClientEvent> |
| | | <Property name="caption">转交处理</Property> |
| | | <Property name="iconClass">fa fa-repeat</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','refuse')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">审批拒绝</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </MenuItem> |
| | | <Separator/> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','error')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">异常处理</Property> |
| | | <Property name="iconClass">fa fa-tags</Property> |
| | | <Property name="tip">异常工单处理--直接流程结束</Property> |
| | | </MenuItem> |
| | | </Menu> |
| | | </View> |
| | | </ViewConfig> |