Added: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml?rev=728389&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml (added) +++ ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml Sat Dec 20 20:40:27 2008 @@ -0,0 +1,1292 @@ +<?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. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + <screen name="newEvent"> + <section> + <actions> + <set field="donePage" from-field="donePage" default-value="myCompanyComms"/> + <set field="headerItem" from-field="parameters.donePage"/> + </actions> + <widgets> + <section> + <widgets> + <decorator-screen name="main-decorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet> + <include-form name="newEvent" + location="component://mypage/widget/MyPortalForms.xml" /> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </widgets> + </section> + </screen> + <screen name="MyTimesheet"> + <section> + <actions> + <set field="donePage" value="parameters.portalPageId"/> + <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/EditWeekTimesheet.groovy"/> + </actions> + <widgets> + <section> + <condition> + <if-has-permission permission="PROJECTMGR" action="_VIEW"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.PageTitleCurrentTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.ProjectMgrWeek}: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get("fromDate").toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get("thruDate").toString().substring(0,10)}" + navigation-menu-name="MyTimesheetMenu" collapsible="true" name="timesheet"> + <include-menu name="MyTimesheetMenu" location="component://mypage/widget/MyPageMenus.xml"/> + <section> + <condition> + <if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/> + </condition> + <widgets> + <include-form name="WeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/> + </widgets> + <fail-widgets> + <include-form name="EditWeekTimesheet" location="component://mypage/widget/MyPageForms.xml"/> + </fail-widgets> + </section> + </screenlet> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.PageTitleCurrentTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.ProjectMgrWeek}: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get("fromDate").toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get("thruDate").toString().substring(0,10)}" + collapsible="true" name="timesheet"> + <section> + <condition> + <if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/> + </condition> + <widgets> + <include-form name="WeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/> + </widgets> + <fail-widgets> + <include-form name="EditWeekTimesheet" location="component://mypage/widget/MyPageForms.xml"/> + </fail-widgets> + </section> + </screenlet> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + <screen name="MyTasks"> + <section> + <actions> + <set field="donePage" value="myTasks"/> + <entity-and entity-name="WorkEffortAndPartyAssign" + list-name="tasks" filter-by-date="true"> + <field-map field-name="partyId" env-name="userLogin.partyId" /> + <field-map field-name="workEffortTypeId" value="TASK" /> + <field-map field-name="currentStatusId" value="PTS_CREATED" /> + </entity-and> + </actions> + <widgets> + <section> + <condition> + <if-has-permission permission="PROJECTMGR" + action="_VIEW" /> + </condition> + <widgets> + <screenlet title="${uiLabelMap.PageTitleTaskAssignedToMe}" + name="mytasks" collapsible="true" navigation-menu-name="MyTasksMenu"> + <include-menu name="MyTasksMenu" + location="component://myportal/widget/MyPortalMenus.xml" /> + <section> + <condition> + <not> + <if-empty field-name="tasks" /> + </not> + </condition> + <widgets> + <include-form name="MyTasks" + location="component://myportal/widget/MyPortalForms.xml" /> + </widgets> + <fail-widgets> + <container> + <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen1}"></label> + </container> + <container> + <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen2}"></label> + </container> + </fail-widgets> + </section> + </screenlet> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.PageTitleTaskAssignedToMe}" + name="mytasks" collapsible="true"> + <section> + <condition> + <not> + <if-empty field-name="tasks" /> + </not> + </condition> + <widgets> + <include-form name="MyTasks" + location="component://myportal/widget/MyPortalForms.xml" /> + </widgets> + <fail-widgets> + <container> + <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen1}"></label> + </container> + <container> + <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen2}"></label> + </container> + </fail-widgets> + </section> + </screenlet> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="MyCompanyComms"> + <section> + <actions> + <set field="donePage" from-field="donePage" default-value="myCompanyComms"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.CompanyEvents}" navigation-menu-name="MyCompanyCommsMenu" name="companyEvents" collapsible="true"> + <include-menu name="MyCompanyCommsMenu" location="component://myportal/widget/MyPortalMenus.xml"/> + <include-form name="MyCompanyComms" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + </widgets> + </section> + </screen> + <screen name="MyCommunications"> + <section> + <actions> + <set field="partyId" from-field="userLogin.partyId" /> + <set field="donePage" value="myCommunications"/> + </actions> + <widgets> + <include-screen name="Communications"/> + </widgets> + </section> + </screen> + <screen name="Communications"> + <section> + <actions> + <set field="all" from-field="parameters.all"/> + <entity-condition entity-name="CommunicationEventAndRole" + list-name="commEvents"> + <condition-list combine="and"> + <condition-expr field-name="statusId" operator="not-equals" + value="COM_UNKNOWN_PARTY" /> + <condition-expr field-name="statusId" operator="not-equals" + value="COM_PENDING" /> + <condition-expr field-name="partyId" operator="equals" + value="${partyId}" /> + <condition-expr field-name="roleStatusId" + operator="not-equals" value="COM_ROLE_COMPLETED" ignore="${all}" /> + </condition-list> + <order-by field-name="-datetimeStarted" /> + </entity-condition> + <entity-condition entity-name="CommunicationEventAndRole" + list-name="commEventsUnknown"> + <condition-list combine="and"> + <condition-expr field-name="statusId" operator="equals" + value="COM_UNKNOWN_PARTY" /> + <condition-expr field-name="roleStatusId" operator="not-equals" + value="COM_ROLE_COMPLETED" /> + <condition-expr field-name="partyId" operator="equals" + value="${partyId}" /> + </condition-list> + <order-by field-name="-datetimeStarted" /> + </entity-condition> + <entity-condition entity-name="CommunicationEventAndRole" list-name="commEventDraft"> + <condition-list combine="and"> + <condition-expr field-name="statusId" operator="equals" + value="COM_PENDING"/> + <condition-expr field-name="partyId" operator="equals" + value="${partyId}"/> + </condition-list> + </entity-condition> + <entity-one entity-name="PartyNameView" value-name="partyName"> + <field-map field-name="partyId" env-name="partyId"/> + </entity-one> + </actions> + <widgets> + <screenlet title="${uiLabelMap.CommunicationsOfParty}: ${partyName.firstName} ${partyName.middleName} ${partyName.lastName} ${partyName.groupName} [${partyId}] " + navigation-menu-name="communicationsMenu" navigation-form-name="ListPartyCommEvents" + name="myComms"> + <include-menu name="communicationsMenu" + location="component://myportal/widget/MyPortalMenus.xml" /> + <section> + <condition> + <not> + <if-empty field-name="commEventsUnknown" /> + </not> + </condition> + <widgets> + <label style="h2" text="${uiLabelMap.EmailsFromUnknownOrigin}"></label> + <include-form + location="component://myportal/widget/MyPortalForms.xml" + name="ListMyUnknownPartyEmails" /> + </widgets> + </section> + <label style="h2" text="${uiLabelMap.EmailsFromKnownOrigin}"></label> + <include-form name="ListPartyCommEvents" + location="component://myportal/widget/MyPortalForms.xml" /> + <section> + <condition> + <not> + <if-empty field-name="commEventDraft" /> + </not> + </condition> + <widgets> + <label style="h2" text="${uiLabelMap.DraftEmails}"></label> + <include-form + location="component://myportal/widget/MyPortalForms.xml" + name="ListDraftEmails" /> + </widgets> + </section> + </screenlet> + </widgets> + </section> + </screen> + <screen name="OtherCommunications"> + <section> + <actions> + <set field="donePage" value="otherCommunications"/> + <entity-and list-name="emailOwners" entity-name="PartyRelationship" filter-by-date="true"> + <field-map field-name="partyIdFrom" value="${userLogin.partyId}" /> + <field-map field-name="roleTypeIdFrom" value="EMAIL_ADMIN" /> + </entity-and> + </actions> + <widgets> + <iterate-section entry-name="emailOwner" list-name="emailOwners"> + <section> + <actions> + <set field="partyId" from-field="emailOwner.partyIdTo" /> + </actions> + <widgets> + <include-screen name="Communications"/> + </widgets> + </section> + </iterate-section> + </widgets> + </section> + </screen> + <screen name="ViewCommunicationEvent"> + <section> + <actions> + <set field="donePage" value="${parameters.donePage}"/> + <set field="titleProperty" value="PageTitleViewCommunication" /> + <set field="tabButtonItem" value="OverView" /> + <set field="parentCommEventId" from-field="parameters.parentCommEventId" /> + <entity-one entity-name="CommunicationEvent" value-name="communicationEvent" /> + <set field="headerItem" value="donePage" /> + </actions> + <widgets> + <decorator-screen name="CommonCommunicationEventDecorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container style="lefthalf"> + <section> + <widgets> + <label style="h1" + text="${uiLabelMap.CommunicationEventId} ${parameters.communicationEventId}"></label> + <include-screen name="commEvent" + location="component://party/widget/partymgr/CommunicationScreens.xml" /> + </widgets> + </section> + <section> + <condition> + <not> + <if-empty field-name="communicationEvent.parentCommEventId" /> + </not> + </condition> + <actions> + <set field="parent" value="${uiLabelMap.CommonParent}"/> + <entity-one entity-name="CommunicationEvent" + value-name="communicationEvent"> + <field-map field-name="communicationEventId" + env-name="communicationEvent.parentCommEventId" /> + </entity-one> + <set field="donePage" from-field="parameters.donePage"/> + </actions> + <widgets> + <include-screen name="commEvent" + location="component://party/widget/partymgr/CommunicationScreens.xml" /> + </widgets> + </section> + </container> + <container style="righthalf"> + <label style="h1" text="${uiLabelMap.CommonRelatedInformation}" /> + <section> + <actions> + <set field="donePage" value="${parameters.donePage}"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.PartyCommEventRoles}"> + <include-form name="ViewCommRoles" + location="component://party/webapp/partymgr/communication/CommForms.xml" /> + </screenlet> + </widgets> + </section> + <section> + <actions> + <set field="donePage" value="${parameters.donePage}"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.PartyCommContent}"> + <include-form name="listCommContent" + location="component://party/webapp/partymgr/communication/CommForms.xml" /> + </screenlet> + </widgets> + </section> + <section> + <actions> + <entity-and list-name="commEvents" entity-name="CommunicationEvent"> + <field-map field-name="parentCommEventId" + env-name="parameters.communicationEventId" /> + </entity-and> + </actions> + <widgets> + <screenlet title="${uiLabelMap.PartyChildCommunicationEvents}"> + <include-form name="ListCommEvents" + location="component://party/webapp/partymgr/communication/CommForms.xml" /> + </screenlet> + </widgets> + </section> + <section> + <actions> + <set field="entityName" value="CustRequestAndCommEvent" /> + <set field="requestParameters.communicationEventId" + from-field="parameters.communicationEventId" /> + </actions> + <widgets> + <screenlet title="${uiLabelMap.OrderRequestList}"> + <include-form name="ListRequests" + location="component://order/webapp/ordermgr/request/RequestForms.xml" /> + </screenlet> + </widgets> + </section> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="ViewRequest"> + <section> + <actions> + <set field="MainColumnStyle" value="rightonly"/> + <set field="tabButtonItem" value="ViewRequest"/> + <set field="headerItem" value="request"/> + <set field="titleProperty" value="PageTitleViewRequest"/> + <set field="showRequestManagementLinks" value="Y"/> + <set field="custRequestId" from-field="parameters.custRequestId"/> + <entity-one entity-name="CustRequest" value-name="custRequest"/> + <get-related-one value-name="custRequest" relation-name="CustRequestType" to-value-name="custRequestType"/> + <get-related-one value-name="custRequest" relation-name="StatusItem" to-value-name="statusItem"/> + <get-related-one value-name="custRequest" relation-name="CurrencyUom" to-value-name="currency"/> + <get-related-one value-name="custRequest" relation-name="ProductStore" to-value-name="store"/> + <get-related-one value-name="custRequest" relation-name="FulfillContactMech" to-value-name="fulfillContactMech"/> + <entity-and list-name="requestWorkEfforts" entity-name="CustRequestAndWorkEffort"> + <field-map field-name="custRequestId" env-name="parameters.custRequestId"/> + </entity-and> + <get-related value-name="custRequest" relation-name="CustRequestParty" list-name="requestParties"/> + <set field="orderBy[]" value="sequenceNum"/> + <get-related value-name="custRequest" relation-name="CustRequestItem" list-name="custRequestItems" order-by-list-name="orderBy"/> + <entity-and list-name="commEvents" entity-name="CommunicationEventAndCustRequest"> + <field-map field-name="custRequestId" env-name="parameters.custRequestId"/> + </entity-and> + <entity-and entity-name="CustRequestAndContent" list-name="custRequestAndContents"> + <field-map field-name="custRequestId" env-name="custRequestId"/> + </entity-and> + </actions> + <widgets> + <decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container style="lefthalf"> + <screenlet title="${uiLabelMap.OrderRequest} ${custRequest.custRequestId} ${uiLabelMap.CommonInformation}"> + <include-form name="requestInfo" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.PageTitleRequestItems}"> + <include-form name="OverviewRequestItems" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </screenlet> + </container> + <container style="righthalf"> + <platform-specific> + <html><html-template location="component://order/webapp/ordermgr/request/requestDate.ftl"/></html> + </platform-specific> + <platform-specific> + <html><html-template location="component://order/webapp/ordermgr/request/requestContactMech.ftl"/></html> + </platform-specific> + <platform-specific> + <html><html-template location="component://order/webapp/ordermgr/request/requestRoles.ftl"/></html> + </platform-specific> + <screenlet title="${uiLabelMap.PartyListCommunicationEvents}" navigation-form-name="ViewRequestCommunicationEvents"> + <include-form name="ViewRequestCommunicationEvents" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.WorkEffortWorkEfforts}" navigation-form-name="ViewRequestWorkEfforts"> + <include-form name="ViewRequestWorkEfforts" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.CommonContent}" navigation-form-name="ListCustRequestContent"> + <include-form name="ListCustRequestContent" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </screenlet> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditRequest"> + <section> + <actions> + <set field="titleProperty" value="OrderRequest"/> + <set field="tabButtonItem" value="editRequest"/> + <set field="headerItem" value="request"/> + + <set field="custRequestId" from-field="parameters.custRequestId"/> + <entity-one entity-name="CustRequest" value-name="custRequest"/> + + <set field="statusId" from-field="custRequest.statusId"/> + <entity-one entity-name="StatusItem" value-name="currentStatus"/> + </actions> + <widgets> + <section> + <widgets> + <decorator-screen name="main-decorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet title="${uiLabelMap.OrderNewRequest}"> + <include-form name="EditCustRequest" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </widgets> + </section> + </screen> + <screen name="ListInvoices"> + <section> + <actions> + <set field="headerItem" value="invoices"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetMyCompany.groovy"/> + <entity-condition list-name="invoices" entity-name="Invoice"> + <condition-list combine="and"> + <condition-expr field-name="partyId" operator="equals" env-name="myCompanyId"/> + <condition-list combine="or"> + <condition-expr field-name="statusId" operator="equals" value="INVOICE_APPROVED"/> + <condition-expr field-name="statusId" operator="equals" value="INVOICE_SEND"/> + <condition-expr field-name="statusId" operator="equals" value="INVOICE_READY"/> + <condition-expr field-name="statusId" operator="equals" value="INVOICE_PAID"/> + </condition-list> + </condition-list> + <order-by field-name="invoiceDate DESC"/> + </entity-condition> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet title="${uiLabelMap.PageTitleListInvoices}" navigation-form-name="ListInvoices"> + <include-form name="ListInvoices" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="CreateCustRequestNotification"> + <section> + <actions> + <set field="title" value="Customer Request Creation Notification Mail #${custRequestId}"/> + </actions> + <widgets> + <platform-specific><html><html-template location="component://myportal/templates/email/CreateCustRequestNotification.ftl"/></html></platform-specific> + </widgets> + </section> + </screen> + <screen name="CompletedCustRequestNotification"> + <section> + <actions> + <set field="title" value="Customer Request Completed Notification Mail #${custRequestId}"/> + </actions> + <widgets> + <platform-specific><html><html-template location="component://myportal/templates/email/CompletedCustRequestNotification.ftl"/></html></platform-specific> + </widgets> + </section> + </screen> + <screen name="EditCommunicationEvent"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditCommunication" /> + <set field="tabButtonItem" value="CommunicationEvent" /> + <entity-one entity-name="CommunicationEvent" value-name="communicationEvent" /> + <script location="component://party/webapp/partymgr/WEB-INF/actions/communication/PrepCommEventReply.groovy"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/communication/PrepCommEventForward.groovy"/> + </actions> + <widgets> + <decorator-screen name="CommonCommunicationEventDecorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section><!-- Email --> + <condition> + <or><!-- have for e-mails a special form --> + <if-compare field-name="parameters.communicationEventTypeId" + operator="equals" value="EMAIL_COMMUNICATION" /> + <if-compare field-name="parameters.communicationEventTypeId" + operator="equals" value="AUTO_EMAIL_COMM" /> + </or> + </condition> + <widgets> + <screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true"> + <include-form location="component://myportal/widget/MyPortalForms.xml" name="MyPageNewEmail"/> + <include-screen name="AttachFiletList"/> + </screenlet> + </widgets> + </section> + <section> + <condition><!-- internal note --> + <if-compare field-name="parameters.communicationEventTypeId" + operator="equals" value="COMMENT_NOTE" /> + </condition> + <widgets> + <screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true"> + <include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="NewInternalNote"/> + </screenlet> + </widgets> + </section> + <section> + <condition><!-- others --> + <and> + <if-compare field-name="parameters.communicationEventTypeId" + operator="not-equals" value="COMMENT_NOTE" /> + <if-compare field-name="parameters.communicationEventTypeId" + operator="not-equals" value="EMAIL_COMMUNICATION" /> + <if-compare field-name="parameters.communicationEventTypeId" + operator="not-equals" value="AUTO_EMAIL_COMM" /> + </and> + </condition> + <widgets> + <screenlet id="EditCommunicationEventPanel" + title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true"> + <include-form + location="component://party/webapp/partymgr/communication/CommForms.xml" + name="EditCommEvent" /> + </screenlet> + <screenlet title="${uiLabelMap.PartyChildCommunicationEvents}" + navigation-form-name="ListChildCommEvents"> + <include-form + location="component://party/webapp/partymgr/communication/CommForms.xml" + name="ListChildCommEvents" /> + </screenlet> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="addAttachmentEmail"> + <section> + <actions> + <entity-condition entity-name="MimeType" list-name="mimeTypes"> + <order-by field-name="description"/> + <order-by field-name="mimeTypeId"/> + </entity-condition> + <set field="communicationEventId" from-field="parameters.communicationEventId"/> + <set field="communicationEventTypeId" from-field="parameters.communicationEventTypeId"/> + <set field="partyId" from-field="userLogin.partyId"/> + </actions> + <widgets> + <decorator-screen name="CommonCommunicationEventDecorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <platform-specific> + <html> + <html-template location="component://myportal/webapp/myportal/addAttachFile.ftl"/> + </html> + </platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="AttachFiletList"> + <section> + <actions> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/> + <entity-and entity-name="CommEventContentAssoc" list-name="commEventContent"> + <field-map field-name="communicationEventId" env-name="parameters.communicationEventId"/> + </entity-and> + <entity-and entity-name="PartyContent" list-name="partyContent"> + <field-map field-name="partyId" env-name="userLogin.partyId"/> + </entity-and> + </actions> + <widgets> + <platform-specific> + <html> + <html-template location="component://myportal/webapp/myportal/attachFileList.ftl"/> + </html> + </platform-specific> + </widgets> + </section> + </screen> + <screen name="ListProjects"> + <section> + <actions> + <set field="headerItem" value="projects"/> + <set field="layoutSettings.javaScripts[]" value="/images/jsgantt.js" global="true"/> + <set field="layoutSettings.styleSheets[]" value="/images/jsgantt.css" global="true"/> + <entity-condition list-name="projects" entity-name="WorkEffortPartyAssignment" filter-by-date="true"> + <condition-list combine="and"> + <condition-expr field-name="partyId" env-name="userLogin.partyId"/> + <condition-list combine="or"> + <condition-expr field-name="roleTypeId" value="CLIENT_MANAGER"/> + <condition-expr field-name="roleTypeId" value="CLIENT_ANALYST"/> + <condition-expr field-name="roleTypeId" value="CLIENT_BILLING"/> + </condition-list> + </condition-list> + </entity-condition> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <iterate-section entry-name="project" list-name="projects"> + <section> + <actions> + <set field="projectId" from-field="project.workEffortId"/> + <set field="parameters.projectId" from-field="project.workEffortId"/> + <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy"/> + <service service-name="getProject" result-map-name="result"> + <field-map field-name="projectId" env-name="projectId"/> + </service> + <set field="project" from-field="result.projectInfo"/> + </actions> + <widgets> + <label style="h1" text="${uiLabelMap.ProjectMgrProjectCurrent}: ${project.projectName}[${project.projectId}]"/> + <container style="lefthalf"> + <screenlet title="${uiLabelMap.PageTitleProjectInformation}"> + <include-form name="ProjectInfo" location="component://projectmgr/widget/forms/ProjectForms.xml"/> + </screenlet> + <section> + <actions> + <service service-name="getProjectPhaseList" result-map-name="result"> + <field-map field-name="projectId" env-name="projectId"/> + </service> + <set field="phases" from-field="result.phaseList"/> + </actions> + <widgets> + <container style="screenlet"> + <screenlet title="${uiLabelMap.ProjectMgrPhases}"> + <include-form name="ListPhaseInfo" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + </container> + </widgets> + </section> + </container> + <container style="righthalf"> + <section> + <actions> + <service service-name="getProjectTaskList" result-map-name="result"> + <field-map field-name="projectId" env-name="projectId"/> + </service> + <set field="tasks" from-field="result.taskList"/> + </actions> + <widgets> + <screenlet title="${uiLabelMap.ProjectMgrTasks}" navigation-form-name="ListTaskInfo"> + <include-form name="ListTaskInfo" location="component://myportal/widget/MyPortalForms.xml"/> + </screenlet> + </widgets> + </section> + </container> + <container style="clear"/> + <screenlet title="${uiLabelMap.PageTitleProjectGanttChart}"> + <platform-specific> + <html><html-template location="component://projectmgr/webapp/projectmgr/project/gantChart.ftl"/></html> + </platform-specific> + </screenlet> + </widgets> + </section> + </iterate-section> + <section> + <condition> + <if-empty field-name="projects"/> + </condition> + <widgets> + <label style="h2" text="no projects found"></label> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditCustRequestContent"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditRequestContent"/> + <set field="tabButtonItem" value="custRequestContent"/> + <set field="headerItem" value="request"/> + <set field="custRequestId" from-field="parameters.custRequestId"/> + <entity-one entity-name="Content" value-name="content"/> + <entity-one entity-name="CustRequest" value-name="custRequest"/> + <entity-and entity-name="CustRequestContent" list-name="custRequestContents" filter-by-date="true"> + <field-map field-name="custRequestId" env-name="custRequestId"/> + </entity-and> + <entity-and entity-name="CustRequestAndContent" list-name="custRequestAndContents"> + <field-map field-name="custRequestId" env-name="custRequestId"/> + </entity-and> + </actions> + <widgets> + <decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <screenlet id="AddCustRequestContentsPanel" title="${uiLabelMap.PageTitleAddContent}" collapsible="true"> + <include-form name="AddCustRequestContent" location="component://myportal/widget/RequestForms.xml"/> + </screenlet> + <include-form name="ListCustRequestContent" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ListRequestList"> + <section> + <actions> + <service service-name="getUserPreferenceGroup" result-map-name="preferences"> + <field-map field-name="userPrefGroupTypeId" value="MyPage"/> + </service> + <!-- check if there are any customer requests for this user --> + <entity-condition list-name="custRequests" entity-name="CustReqAndTypeAndPartyRel"> + <condition-list combine="and"> + <condition-expr field-name="statusId" operator="equals" value="CRQ_SUBMITTED"/> + <condition-list combine="and"> + <condition-expr field-name="roleTypeIdTo" operator="equals" value="REQ_TAKER"/> + <condition-expr field-name="partyIdTo" operator="equals" env-name="userLogin.partyId"/> + </condition-list> + </condition-list> + <order-by field-name="-custRequestDate"/> + </entity-condition> + </actions> + <widgets> + <section> + <condition> + <not><if-empty field-name="custRequests"/></not> + </condition> + <widgets> + <screenlet title="${uiLabelMap.IncomingCustRequests}" navigation-form-name="ListRequestList"> + <include-form name="ListRequestList" location="component://order/webapp/ordermgr/request/RequestForms.xml"/> + </screenlet> + </widgets> + </section> + </widgets> + </section> + </screen> + + <!--Create Portal Screen--> + <screen name="DisplayExamplePage"> + <section> + <actions> + <set field="portalPageId" from-field="parameters.portalPageId"/> + <set field="headerItem" from-field="portalPageId"/> + <set field="configurePortalPage" from-field="parameters.configurePortalPage"/> + <entity-one entity-name="PortalPage" value-name="currentPortalPage"/> + <entity-condition entity-name="PortalPageColumn" list-name="portalPageColumnList"> + <condition-expr field-name="portalPageId" env-name="portalPageId"/> + <order-by field-name="columnSeqId"/> + </entity-condition> + <entity-condition entity-name="PortalPagePortletView" list-name="portalPagePortletViewList"> + <condition-expr field-name="portalPageId" env-name="portalPageId"/> + <order-by field-name="sequenceNum"/> + </entity-condition> + <!--My Profile From Party--> + <set field="titleProperty" value="PageTitleViewPartyProfile"/> + <set field="tabButtonItem" value="viewprofile"/> + <set field="labelTitleProperty" value="PartyTaxAuthInfos"/> + <set field="parameters.partyId" from-field="userLogin.userLoginId"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/ViewProfile.groovy"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetUserLoginPrimaryEmail.groovy"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <platform-specific><html><html-template location="component://common/webcommon/portal/portalPage.ftl"/></html></platform-specific> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <!-- My Profile Screens --> + <screen name="model"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Party"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Contact"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="contactsAndAccounts"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="contactsAndAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="LoyaltyPoints"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="LoyaltyPoints" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="PaymentMethods"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="PaymentMethods" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="AvsSettings"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="AvsSettings" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="FinAccounts"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="FinAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="UserLogin"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="UserLogin" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Attributes"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Attributes" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Visits"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Visits" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Cart"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Cart" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="SerializedInventory"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="SerializedInventory" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Subscriptions"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Subscriptions" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Content"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="ShipperAccount"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="ShipperAccount" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="Notes"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="mytasksParty"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="mytasks" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="ViewInternalOrg"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field-name="party"/></not> + </condition> + <widgets> + <section> + <widgets> + <include-screen name="ViewInternalOrg" location="component://party/widget/partymgr/ProfileScreens.xml"/> + </widgets> + </section> + </widgets> + <fail-widgets> + <container> + <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label> + </container> + </fail-widgets> + </section> + </widgets> + </section> + </screen> +</screens> Propchange: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml?rev=728389&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml (added) +++ ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml Sat Dec 20 20:40:27 2008 @@ -0,0 +1,34 @@ +<?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. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + <form name="AddCustRequestContent" type="upload" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml" + target="createCustRequestContent?custRequestId=${parameters.custRequestId}" > + <field name="custRequestId" map-name="parameters"><hidden/></field> + <field name="contentId"><hidden/></field> + <field name="contentTypeId"><hidden/></field> + <field name="statusId"><hidden/></field> + <field name="mimeTypeId"><hidden/></field> + <field name="dataResourceName" title="${uiLabelMap.CommonUpload}*"><file/></field> + <field name="dataCategoryId"><hidden/></field> + <field name="createButton"><submit button-type="button"/></field> + </form> +</forms> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/myportal/widget/RequestForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |