Author: hansbak Date: Tue Mar 4 06:32:14 2014 New Revision: 1573884 URL: http://svn.apache.org/r1573884 Log: adding budget services, screens and forms
Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml ofbiz/trunk/applications/accounting/data/AccountingTypeData.xml ofbiz/trunk/applications/accounting/ofbiz-component.xml ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml ofbiz/trunk/applications/accounting/widget/FieldLookupForms.xml ofbiz/trunk/applications/accounting/widget/LookupScreens.xml Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Mar 4 06:32:14 2014 @@ -2392,6 +2392,51 @@ <value xml:lang="zh">å票ç¼å·ï¼InvoiceIdï¼åè´¦åè´¦æ·ç¼å·ï¼BillingAccountIdï¼é½æ¯ç©ºç</value> <value xml:lang="zh_TW">ç¼ç¥¨ç·¨èï¼InvoiceIdï¼å賬å®è³¬æ¶ç·¨èï¼BillingAccountIdï¼é½æ¯ç©ºç</value> </property> + <property key="AccountingBudgetFind"> + <value xml:lang="en">Find</value> + </property> + <property key="AccountingBudgetHeader"> + <value xml:lang="en">Header</value> + </property> + <property key="AccountingBudgetItems"> + <value xml:lang="en">Items</value> + </property> + <property key="AccountingBudgetItemsAdd"> + <value xml:lang="en">Add a new budget Item</value> + </property> + <property key="AccountingBudgetOverview"> + <value xml:lang="en">Overview</value> + </property> + <property key="AccountingBudgetReviewAdd"> + <value xml:lang="en">Add a new Budget Review</value> + </property> + <property key="AccountingBudgetReviewResult"> + <value xml:lang="en">Budget Review Result</value> + </property> + <property key="AccountingBudgetReviews"> + <value xml:lang="en">Reviews</value> + </property> + <property key="AccountingBudgetRoles"> + <value xml:lang="en">Roles</value> + </property> + <property key="AccountingBudgets"> + <value xml:lang="en">Budgets</value> + </property> + <property key="AccountingBudgetStatus"> + <value xml:lang="en">Status</value> + </property> + <property key="AccountingBudgetStatusToApproved"> + <value xml:lang="en">Status To 'Approved'</value> + </property> + <property key="AccountingBudgetStatusToReviewed"> + <value xml:lang="en">Status To 'Reviewed'</value> + </property> + <property key="AccountingBudgetStatusToRejected"> + <value xml:lang="en">Status To 'Rejected'</value> + </property> + <property key="AccountingBudgetType"> + <value xml:lang="en">Budget Type</value> + </property> <property key="AccountingByAccount"> <value xml:lang="de">Nach Konto</value> <value xml:lang="en">By Account</value> @@ -4482,6 +4527,9 @@ <value xml:lang="zh">ç¼è¾è´¦æ·å¯¹è´¦</value> <value xml:lang="zh_TW">ä¿®æ¹å¸³æ¶èª¿ç¯</value> </property> + <property key="AccountingEditBudget"> + <value xml:lang="en">Edit Budget</value> + </property> <property key="AccountingEditCreditCard"> <value xml:lang="cs">Zpracovat kreditnà kartu</value> <value xml:lang="de">Kreditkarte bearbeiten</value> @@ -5310,6 +5358,9 @@ <value xml:lang="zh">æ¥æ¾åºæ¶æ¯ä»</value> <value xml:lang="zh_TW">æ¾å°ææ¶æ¯ä»</value> </property> + <property key="AccountingFindBudgets"> + <value xml:lang="en">Find Budgets</value> + </property> <property key="AccountingFindDepositSlip"> <value xml:lang="de">Finde Einzahlungsscheine für Finanzkonto : ${finAccount.finAccountName} [${finAccountId}]</value> <value xml:lang="en">Find Deposit Slips for Financial Account : ${finAccount.finAccountName} [${finAccountId}]</value> @@ -8958,6 +9009,9 @@ <value xml:lang="zh">æ°å»ºå忡件</value> <value xml:lang="zh_TW">æ°å»ºå忢件</value> </property> + <property key="AccountingNewBudget"> + <value xml:lang="en">Create New Budget</value> + </property> <property key="AccountingNewCompany"> <value xml:lang="en">Create new accounting company</value> </property> @@ -19870,6 +19924,9 @@ <value xml:lang="zh">æ¹éæ¯ä»</value> <value xml:lang="zh_TW">æ¹æ¬¡ä»æ¬¾</value> </property> + <property key="PageTitleBudgetOverview"> + <value xml:lang="en">Budget Overview</value> + </property> <property key="PageTitleCopyAgreement"> <value xml:lang="en">Copy Agreement</value> <value xml:lang="fr">Copie d'accords commerciaux</value> @@ -20133,6 +20190,9 @@ <value xml:lang="zh">ç¼è¾è´¦åè´¦æ·æ¡ä»¶</value> <value xml:lang="zh_TW">編輯賬å®è³¬æ¶æ¢ä»¶</value> </property> + <property key="PageTitleEditBudget"> + <value xml:lang="en">Edit Budget</value> + </property> <property key="PageTitleEditFinAccount"> <value xml:lang="en">Edit Financial Account</value> <value xml:lang="fr">Modifier un compte financier</value> @@ -20966,6 +21026,15 @@ <value xml:lang="zh">å忡件å表</value> <value xml:lang="zh_TW">å忢件å表</value> </property> + <property key="PageTitleListBudget"> + <value xml:lang="en">List Budget</value> + </property> + <property key="PageTitleListBudgetReviews"> + <value xml:lang="en">List Budget Reviews</value> + </property> + <property key="PageTitleListBudgetRoles"> + <value xml:lang="en">List Budget Roles</value> + </property> <property key="PageTitleListEditInvoiceApplications"> <value xml:lang="en">List Edit Invoice Applications</value> <value xml:lang="es">Lista Editar Aplicaciones de Factura</value> @@ -21256,6 +21325,9 @@ <value xml:lang="zh">æåç§°æ¥æ¾è´¦åè´¦æ·</value> <value xml:lang="zh_TW">æåç¨±æ¥æ¾è³¬å®è³¬æ¶</value> </property> + <property key="PageTitleLookupCustomTimePeriod"> + <value xml:lang="en">Lookup Custom Time Period</value> + </property> <property key="PageTitleLookupFixedAsset"> <value xml:lang="en">Lookup Fixed Asset</value> <value xml:lang="es">Buscar Activo Fijo</value> Modified: ofbiz/trunk/applications/accounting/data/AccountingTypeData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/data/AccountingTypeData.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/data/AccountingTypeData.xml (original) +++ ofbiz/trunk/applications/accounting/data/AccountingTypeData.xml Tue Mar 4 06:32:14 2014 @@ -1090,4 +1090,20 @@ under the License. <!-- invoice export replacement Id types --> <GoodIdentificationType description="replacement value for partyId in the invoice export function in accounting" goodIdentificationTypeId="INVOICE_EXPORT"/> <PartyIdentificationType description="replacement value for partyId in the invoice export function in accounting" partyIdentificationTypeId="INVOICE_EXPORT"/> + + <!-- Budget Type Data --> + <StatusItem description="Created" sequenceId="00" statusCode="CREATED" statusId="BG_CREATED" statusTypeId="BUDGET_STATUS"/> + <StatusItem description="Reviewed" sequenceId="01" statusCode="REVIEWED" statusId="BG_REVIEWED" statusTypeId="BUDGET_STATUS"/> + <StatusItem description="Approved" sequenceId="02" statusCode="APPROVED" statusId="BG_APPROVED" statusTypeId="BUDGET_STATUS"/> + <StatusItem description="Rejected" sequenceId="03" statusCode="REJECTED" statusId="BG_REJECTED" statusTypeId="BUDGET_STATUS"/> + <StatusValidChange condition="" statusId="BG_CREATED" statusIdTo="BG_REVIEWED" transitionName="Review Budget"/> + <StatusValidChange condition="" statusId="BG_CREATED" statusIdTo="BG_APPROVED" transitionName="Submit Budget"/> + <StatusValidChange condition="" statusId="BG_CREATED" statusIdTo="BG_REJECTED" transitionName="Reject Budget"/> + <StatusValidChange condition="" statusId="BG_REVIEWED" statusIdTo="BG_APPROVED" transitionName="Approved Budget"/> + <StatusValidChange condition="" statusId="BG_REVIEWED" statusIdTo="BG_REJECTED" transitionName="Reject Budget"/> + <StatusValidChange condition="" statusId="BG_APPROVED" statusIdTo="BG_CREATED" transitionName="Accept Budget"/> + <StatusValidChange condition="" statusId="BG_APPROVED" statusIdTo="BG_REJECTED" transitionName="Reject Budget"/> + + <BudgetReviewResultType description="Accepted" budgetReviewResultTypeId="BGR_ACCEPTED"/> + <BudgetReviewResultType description="Rejected" budgetReviewResultTypeId="BGR_REJECTED"/> </entity-engine-xml> Modified: ofbiz/trunk/applications/accounting/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/ofbiz-component.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/ofbiz-component.xml (original) +++ ofbiz/trunk/applications/accounting/ofbiz-component.xml Tue Mar 4 06:32:14 2014 @@ -53,11 +53,13 @@ under the License. <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoPaymentsInvoices.xml"/> <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoAccountingUserData.xml"/> <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoAssetMaintData.xml"/> + <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoBudgetData.xml"/> <!-- General Payment Service Definitions --> <service-resource type="model" loader="main" location="servicedef/services_agreement.xml"/> <service-resource type="model" loader="main" location="servicedef/services_admin.xml"/> <service-resource type="model" loader="main" location="servicedef/services_billing.xml"/> + <service-resource type="model" loader="main" location="servicedef/services_budget.xml"/> <service-resource type="model" loader="main" location="servicedef/services_finaccount.xml"/> <service-resource type="model" loader="main" location="servicedef/services_fixedasset.xml"/> <service-resource type="model" loader="main" location="servicedef/services_invoice.xml"/> Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml (original) +++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml Tue Mar 4 06:32:14 2014 @@ -1140,7 +1140,76 @@ under the License. <response name="success" type="view" value="EditFixedAssetMaintOrders"/> <response name="error" type="view" value="EditFixedAssetMaintOrders"/> </request-map> - + + <!-- =============== Budget mapping =================--> + <request-map uri="ListBudgets"><security https="true" auth="true"/><response name="success" type="view" value="ListBudgets"/></request-map> + <request-map uri="BudgetSearchResults"><security https="true" auth="false"/><response name="success" type="view" value="BudgetSearchResults"/></request-map> + <request-map uri="EditBudget"><security https="true" auth="true"/><response name="success" type="view" value="EditBudget"/></request-map> + <request-map uri="BudgetOverview"><security https="true" auth="true"/><response name="success" type="view" value="BudgetOverview"/></request-map> + <request-map uri="EditBudgetItems"><security https="true" auth="true"/><response name="success" type="view" value="EditBudgetItems"/></request-map> + <request-map uri="BudgetRoles"><security https="true" auth="true"/><response name="success" type="view" value="BudgetRoles"/></request-map> + <request-map uri="BudgetReviews"><security https="true" auth="true"/><response name="success" type="view" value="BudgetReviews"/></request-map> + <request-map uri="createBudget"> + <security https="true" auth="true"/> + <event type="service" invoke="createBudget"/> + <response name="success" type="view" value="EditBudget"/> + <response name="error" type="view" value="EditBudget"/> + </request-map> + <request-map uri="updateBudget"> + <security https="true" auth="true"/> + <event type="service" invoke="updateBudget"/> + <response name="success" type="view" value="EditBudget"/> + <response name="error" type="view" value="EditBudget"/> + </request-map> + <request-map uri="updateBudgetStatus"> + <security https="true" auth="true"/> + <event type="service" invoke="updateBudgetStatus"/> + <response name="success" type="view" value="BudgetOverview"/> + <response name="error" type="view" value="BudgetOverview"/> + </request-map> + <request-map uri="createBudgetItem"> + <security https="true" auth="true"/> + <event type="service" invoke="createBudgetItem"/> + <response name="success" type="view" value="EditBudgetItems"/> + <response name="error" type="view" value="EditBudgetItems"/> + </request-map> + <request-map uri="updateBudgetItem"> + <security https="true" auth="true"/> + <event type="service-multi" invoke="updateBudgetItem"/> + <response name="success" type="request-redirect" value="EditBudgetItems"/> + <response name="error" type="view" value="EditBudgetItems"/> + </request-map> + <request-map uri="removeBudgetItem"> + <security https="true" auth="true"/> + <event type="service" invoke="removeBudgetItem"/> + <response name="success" type="view" value="EditBudgetItems"/> + <response name="error" type="view" value="EditBudgetItems"/> + </request-map> + <request-map uri="createBudgetRole"> + <security https="true" auth="true"/> + <event type="service" invoke="createBudgetRole"/> + <response name="success" type="view" value="BudgetRoles"/> + <response name="error" type="view" value="BudgetRoles"/> + </request-map> + <request-map uri="removeBudgetRole"> + <security https="true" auth="true"/> + <event type="service" invoke="removeBudgetRole"/> + <response name="success" type="view" value="BudgetRoles"/> + <response name="error" type="view" value="BudgetRoles"/> + </request-map> + <request-map uri="createBudgetReview"> + <security https="true" auth="true"/> + <event type="service" invoke="createBudgetReview"/> + <response name="success" type="view" value="BudgetReviews"/> + <response name="error" type="view" value="BudgetReviews"/> + </request-map> + <request-map uri="removeBudgetReview"> + <security https="true" auth="true"/> + <event type="service" invoke="removeBudgetReview"/> + <response name="success" type="view" value="BudgetReviews"/> + <response name="error" type="view" value="BudgetReviews"/> + </request-map> + <!-- =============== Agreement mapping =================--> <request-map uri="FindAgreement"><security https="true" auth="true"/><response name="success" type="view" value="FindAgreement"/></request-map> <request-map uri="cancelAgreement"> @@ -2237,7 +2306,7 @@ under the License. <request-map uri="LookupAgreementItem"><security auth="true" https="true"/><response name="success" type="view" value="LookupAgreementItem"/></request-map> <request-map uri="LookupPaymentGroupMember"><security auth="true" https="true"/><response name="success" type="view" value="LookupPaymentGroupMember"/></request-map> <request-map uri="LookupGlReconciliation"><security auth="true" https="true"/><response name="success" type="view" value="LookupGlReconciliation"/></request-map> - + <request-map uri="LookupCustomTimePeriod"><security auth="true" https="true"/><response name="success" type="view" value="LookupCustomTimePeriod"/></request-map> <request-map uri="viewprofile"><security https="true" auth="true"/><response name="success" type="view" value="viewprofile"/></request-map> @@ -2698,6 +2767,15 @@ under the License. <view-map name="EditFixedAsset" type="screen" page="component://accounting/widget/FixedAssetScreens.xml#EditFixedAsset"/> <view-map name="ListFixedAssetProducts" type="screen" page="component://accounting/widget/FixedAssetScreens.xml#ListFixedAssetProducts"/> + <!-- Budget --> + <view-map name="ListBudgets" type="screen" page="component://accounting/widget/BudgetScreens.xml#ListBudgets"/> + <view-map name="BudgetSearchResults" type="screen" page="component://accounting/widget/BudgetScreens.xml#BudgetSearchResults"/> + <view-map name="EditBudget" type="screen" page="component://accounting/widget/BudgetScreens.xml#EditBudget"/> + <view-map name="BudgetOverview" type="screen" page="component://accounting/widget/BudgetScreens.xml#BudgetOverview"/> + <view-map name="EditBudgetItems" type="screen" page="component://accounting/widget/BudgetScreens.xml#EditBudgetItems"/> + <view-map name="BudgetRoles" type="screen" page="component://accounting/widget/BudgetScreens.xml#BudgetRoles"/> + <view-map name="BudgetReviews" type="screen" page="component://accounting/widget/BudgetScreens.xml#BudgetReviews"/> + <!-- TO BE REMOVED <view-map name="addFixedAssetProduct" type="screen" page="component://accounting/widget/FixedAssetScreens.xml#addFixedAssetProduct"/> <view-map name="updateFixedAssetProduct" type="screen" page="component://accounting/widget/FixedAssetScreens.xml#updateFixedAssetProduct"/> @@ -2822,6 +2900,7 @@ under the License. <view-map name="LookupBillingAccount" page="component://accounting/widget/LookupScreens.xml#LookupBillingAccount" type="screen"/> <view-map name="LookupPayment" page="component://accounting/widget/LookupScreens.xml#LookupPayment" type="screen"/> <view-map name="LookupInvoice" page="component://accounting/widget/LookupScreens.xml#LookupInvoice" type="screen"/> + <view-map name="LookupCustomTimePeriod" type="screen" page="component://accounting/widget/LookupScreens.xml#LookupCustomTimePeriod"/> <view-map name="LookupWorkEffort" type="screen" page="component://workeffort/widget/LookupScreens.xml#LookupWorkEffort"/> <view-map name="LookupOrderHeader" type="screen" page="component://order/widget/ordermgr/LookupScreens.xml#LookupOrderHeader"/> Modified: ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml (original) +++ ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml Tue Mar 4 06:32:14 2014 @@ -48,6 +48,7 @@ under the License. <menu-item name="TaxAuthorities" title="${uiLabelMap.AccountingTaxAuthorities}"><link target="FindTaxAuthority"/></menu-item> <menu-item name="agreements" title="${uiLabelMap.AccountingAgreements}"><link target="FindAgreement"/></menu-item> <menu-item name="ListFixedAssets" title="${uiLabelMap.AccountingFixedAssets}"><link target="ListFixedAssets"/></menu-item> + <menu-item name="ListBudgets" title="${uiLabelMap.AccountingBudgets}"><link target="ListBudgets"/></menu-item> <menu-item name="GlobalGLSettings" title="${uiLabelMap.AccountingGlobalGLSettings}"><link target="globalGLSettings"/></menu-item> <menu-item name="companies" title="${uiLabelMap.AccountingOrgGlSettings}"><link target="ListCompanies"/></menu-item> </menu> @@ -672,6 +673,117 @@ under the License. </menu-item> </menu> + <menu name="BudgetTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml" + default-menu-item-name="EditBudget"> + <menu-item name="ListBudgets" title="${uiLabelMap.AccountingBudgetFind}"> + <link target="ListBudgets"/> + </menu-item> + <menu-item name="BudgetOverview" title="${uiLabelMap.AccountingBudgetOverview}"> + <link target="BudgetOverview"> + <parameter param-name="budgetId"/> + </link> + </menu-item> + <menu-item name="EditBudget" title="${uiLabelMap.AccountingBudgetHeader}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <or> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + <if-compare field="statusId" operator="equals" value="BG_REVIEWED"/> + </or> + </and> + </condition> + <link target="EditBudget"> + <parameter param-name="budgetId"/> + </link> + </menu-item> + <menu-item name="BudgetItem" title="${uiLabelMap.AccountingBudgetItems}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <or> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + <if-compare field="statusId" operator="equals" value="BG_REVIEWED"/> + </or> + </and> + </condition> + <link target="EditBudgetItems"> + <parameter param-name="budgetId"/> + </link> + </menu-item> + <menu-item name="BudgetRoles" title="${uiLabelMap.AccountingBudgetRoles}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <or> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + <if-compare field="statusId" operator="equals" value="BG_REVIEWED"/> + </or> + </and> + </condition> + <link target="BudgetRoles"> + <parameter param-name="budgetId"/> + </link> + </menu-item> + <menu-item name="BudgetReviews" title="${uiLabelMap.AccountingBudgetReviews}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <if-compare field="statusId" operator="not-equals" value="BG_REJECTED"/> + </and> + </condition> + <link target="BudgetReviews"> + <parameter param-name="budgetId"/> + </link> + </menu-item> + </menu> + + <menu name="BudgetSubTabBar" menu-container-style="button-bar button-style-2" default-selected-style="selected"> + <menu-item name="statusToApproved" title="${uiLabelMap.AccountingBudgetStatusToApproved}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <or> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + <if-compare field="statusId" operator="equals" value="BG_REVIEWED"/> + </or> + </and> + </condition> + <link target="updateBudgetStatus"> + <parameter param-name="budgetId" from-field="budgetId"/> + <parameter param-name="statusId" value="BG_APPROVED"/> + </link> + </menu-item> + <menu-item name="statusToReview" title="${uiLabelMap.AccountingBudgetStatusToReviewed}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + </and> + </condition> + <link target="updateBudgetStatus"> + <parameter param-name="budgetId" from-field="budgetId"/> + <parameter param-name="statusId" value="BG_REVIEWED"/> + </link> + </menu-item> + <menu-item name="statusToReject" title="${uiLabelMap.AccountingBudgetStatusToRejected}"> + <condition> + <and> + <not><if-empty field="budgetId"/></not> + <or> + <if-compare field="statusId" operator="equals" value="BG_CREATED"/> + <if-compare field="statusId" operator="equals" value="BG_REVIEWED"/> + <if-compare field="statusId" operator="equals" value="BG_APPROVED"/> + </or> + </and> + </condition> + <link target="updateBudgetStatus"> + <parameter param-name="budgetId" from-field="budgetId"/> + <parameter param-name="statusId" value="BG_REJECTED"/> + </link> + </menu-item> + </menu> + <menu name="PartyGlShortCuts"> <menu-item name="CreateSalesAcctgTrans"> <link target="CreateAcctgTransAndEntries" text="${uiLabelMap.AccountingCreateSalesAcctgTrans}" style="buttontext"> Modified: ofbiz/trunk/applications/accounting/widget/FieldLookupForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FieldLookupForms.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/FieldLookupForms.xml (original) +++ ofbiz/trunk/applications/accounting/widget/FieldLookupForms.xml Tue Mar 4 06:32:14 2014 @@ -52,6 +52,38 @@ under the License. <field name="fixedAssetName" title="${uiLabelMap.CommonName}"><display/></field> <field name="fixedAssetTypeId" title="${uiLabelMap.AccountingFixedAssetTypeId}"><display-entity entity-name="FixedAssetType"/></field> </form> + <form name="lookupBudget" target="LookupBudget" title="" type="single" + header-row-style="header-row" default-table-style="basic-table"> + <auto-fields-entity entity-name="Budget" default-field-type="hidden"/> + <field name="budgetId"><text-find/></field> + <field name="budgetTypeId" title="${uiLabelMap.AccountingBudgetType}"> + <drop-down allow-empty="true"> + <entity-options entity-name="BudgetType" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="customTimePeriodId"><text-find/></field> + <field name="comments"><text-find/></field> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <form name="listLookupBudget" list-name="listIt" title="" type="list" paginate-target="LookupBudget" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map="result" result-map-list="listIt"> + <field-map field-name="inputFields" from-field="parameters"/> + <field-map field-name="entityName" value="FixedAsset"/> + <field-map field-name="viewIndex" from-field="viewIndex"/> + <field-map field-name="viewSize" from-field="viewSize"/> + </service> + </actions> + <field name="fixedAssetId" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${fixedAssetId}" target="javascript:set_value('${fixedAssetId}')"/> + </field> + <field name="fixedAssetName" title="${uiLabelMap.CommonName}"><display/></field> + <field name="fixedAssetTypeId" title="${uiLabelMap.AccountingFixedAssetTypeId}"><display-entity entity-name="FixedAssetType"/></field> + </form> <form name="lookupBillingAccount" target="LookupBillingAccount" title="" type="single" header-row-style="header-row" default-table-style="basic-table"> <auto-fields-entity entity-name="BillingAccount" default-field-type="hidden"/> @@ -308,4 +340,51 @@ under the License. <field name="organizationPartyId"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${firstName} ${lastName}[${partyId}]"/></field> <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field> </form> + + <form name="lookupCustomTimePeriod" target="LookupCustomTimePeriod" title="" type="single" + header-row-style="header-row" default-table-style="basic-table"> + <auto-fields-entity entity-name="CustomTimePeriod" default-field-type="hidden"/> + <field name="customTimePeriodId"><text-find/></field> + <field name="parentPeriodId"><text-find/></field> + <field name="periodTypeId"> + <drop-down allow-empty="true"> + <entity-options entity-name="PeriodType" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="periodNum"><text-find/></field> + <field name="periodName"><text-find/></field> + <field name="fromDate"><date-time/></field> + <field name="thruDate"><date-time/></field> + <field name="isClosed"> + <drop-down allow-empty="true"> + <option key="Y" description="${uiLabelMap.CommonY}"/> + <option key="N" description="${uiLabelMap.CommonN}"/> + </drop-down> + </field> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <form name="listLookupCustomTimePeriod" list-name="listIt" title="" type="list" paginate-target="LookupCustomTimePeriod" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map="result" result-map-list="listIt"> + <field-map field-name="inputFields" from-field="parameters"/> + <field-map field-name="entityName" value="CustomTimePeriod"/> + <field-map field-name="viewIndex" from-field="viewIndex"/> + <field-map field-name="viewSize" from-field="viewSize"/> + </service> + </actions> + <field name="customTimePeriodId" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${customTimePeriodId}" target="javascript:set_value('${customTimePeriodId}')"/> + </field> + <field name="parentPeriodId"><display/></field> + <field name="periodTypeId"><display-entity entity-name="PeriodType"/></field> + <field name="periodNum"><display/></field> + <field name="periodName"><display/></field> + <field name="fromDate"><display/></field> + <field name="thruDate"><display/></field> + <field name="isClosed"><display/></field> + </form> </forms> Modified: ofbiz/trunk/applications/accounting/widget/LookupScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/LookupScreens.xml?rev=1573884&r1=1573883&r2=1573884&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/LookupScreens.xml (original) +++ ofbiz/trunk/applications/accounting/widget/LookupScreens.xml Tue Mar 4 06:32:14 2014 @@ -268,4 +268,29 @@ under the License. </widgets> </section> </screen> + + <screen name="LookupCustomTimePeriod"> + <section> + <actions> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <set field="title" value="${uiLabelMap.PageTitleLookupCustomTimePeriod}"/> + <set field="queryString" from-field="result.queryString"/> + <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> + <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> + <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> + <set field="entityName" value="CustomTimePeriod"/> + <set field="searchFields" value="[customTimePeriodId, periodName]"/> + </actions> + <widgets> + <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="search-options"> + <include-form name="lookupCustomTimePeriod" location="component://accounting/widget/FieldLookupForms.xml"/> + </decorator-section> + <decorator-section name="search-results"> + <include-form name="listLookupCustomTimePeriod" location="component://accounting/widget/FieldLookupForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> </screens>