Blame view

applications/order/widget/ordermgr/OrderTaskScreens.xml 4.35 KB
c16038356   Anchit Jindal   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
  -->
  
  <!--
  To use these screens add these entries to the controller.xml file:
  
  <request-map uri="tasklist"><security https="true" auth="true"/><response name="success" type="view" value="ordertasklist"/></request-map>
  
  <!- - Order Manager Task List Requests - ->
  <request-map uri="acceptassignment">
      <security https="true" auth="true"/>
      <event type="java" path="org.ofbiz.order.task.TaskEvents" invoke="acceptRoleAssignment"/>
      <response name="success" type="view" value="orderview"/>
      <response name="error" type="view" value="ordertasklist"/>
  </request-map>
  <request-map uri="delegateassignment">
      <security https="true" auth="true"/>
      <event type="java" path="org.ofbiz.order.task.TaskEvents" invoke="delegateAndAcceptAssignment"/>
      <response name="success" type="view" value="orderview"/>
      <response name="error" type="view" value="ordertasklist"/>
  </request-map>
  <request-map uri="completeassignment">
      <security https="true" auth="true"/>
      <event type="java" path="org.ofbiz.order.task.TaskEvents" invoke="completeAssignment"/>
      <response name="success" type="view" value="ordertasklist"/>
      <response name="error" type="view" value="ordertasklist"/>
  </request-map>
  <request-map uri="holdorder">
      <security https="true" auth="true"/>
      <event type="service" path="" invoke="wfSuspendActivity"/>
      <response name="success" type="view" value="ordertasklist"/>
      <response name="error" type="view" value="ordertasklist"/>
  </request-map>
  <request-map uri="releasehold">
      <security https="true" auth="true"/>
      <event type="service" path="" invoke="wfResumeActivity"/>
      <response name="success" type="view" value="ordertasklist"/>
      <response name="error" type="view" value="ordertasklist"/>
  </request-map>
  
  
  <view-map name="ordertasklist" type="screen" page="component://order/widget/ordermgr/OrderTaskScreens.xml#OrderTaskList"/>
  
  ==================
  Also add this back to appheader.ftl:
  
  <li<#if selected = "tasklist"> class="selected"</#if>><a href="<@ofbizUrl>tasklist</@ofbizUrl>">${uiLabelMap.OrderOrderTasks}</a></li>
  
  -->
  
  <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
      <screen name="CommonOrderTaskDecorator">
          <section>
              <widgets>
                  <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                      <decorator-section name="body">
                          <section>
                              <widgets>
                                  <decorator-section-include name="body"/>
                              </widgets>
                          </section>
                      </decorator-section>
                  </decorator-screen>
              </widgets>
          </section>
      </screen>
      <screen name="OrderTaskList">
          <section>
              <actions>
                  <set field="titleProperty" value="OrderOrderTasks"/>
                  <set field="headerItem" value="tasklist"/>
                  <script location="component://order/webapp/ordermgr/WEB-INF/actions/task/OrderTaskList.groovy"/>
              </actions>
              <widgets>
                  <decorator-screen name="CommonOrderTaskDecorator">
                      <decorator-section name="body">
                          <platform-specific>
                              <html><html-template location="component://order/webapp/ordermgr/task/ordertasklist.ftl"/></html>
                          </platform-specific>
                      </decorator-section>
                  </decorator-screen>
              </widgets>
          </section>
      </screen>
  </screens>