Added: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml?view=auto&rev=498895 ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml Mon Jan 22 18:27:12 2007 @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed 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://www.ofbiz.org/dtds/widget-form.xsd"> + + <form name="EditProduct" type="single" + target="updateProduct" title="" default-map-name="product" + default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + + <alt-target use-when="product==null" target="createProduct"/> + + <field use-when="product==null" name="isCreate"><hidden value="true"/></field> + + <field use-when="product!=null" name="productId" title="${uiLabelMap.ProductProductId}" tooltip="${uiLabelMap.ProductNotModificationRecreatingProduct}"><display/></field> + <field use-when="product==null&&productId==null" name="productId" title="${uiLabelMap.ProductProductId}"><text size="20" maxlength="20"/></field> + <field use-when="product==null&&productId!=null" name="productId" title="${uiLabelMap.ProductProductId}" tooltip="${uiLabelMap.ProductNotFindProductId} [${productId}]"><text size="20" maxlength="20"/></field> + + <field name="productTypeId"><hidden value="FINISHED_GOOD"/></field> + <field name="primaryProductCategoryId"><hidden/></field> + <field name="internalName" title="${uiLabelMap.ProductInternalName}"><text size="30" maxlength="60"/></field> + <field name="brandName" title="${uiLabelMap.ProductBrandName}" ><text size="30" maxlength="60"/></field> + <field name="manufacturerPartyId" title="${uiLabelMap.AccountingFixedAssetManufacturerId}" ><lookup target-form-name="LookupPartyName"/></field> + <field name="comments" title="${uiLabelMap.CommonComments}"><text size="60" maxlength="250"/></field> + <field name="requireInventory"><hidden value="N"/></field> + <field name="autoCreateKeywords"><hidden value="N"/></field> + <field name="primaryProductCategoryId" title="${uiLabelMap.ProductPrimaryCategory}" widget-style="selectBox"> + <drop-down allow-empty="true"> + <entity-options entity-name="ProductCategory" key-field-name="productCategoryId" description="${description} [${productCategoryId}]"> + <entity-constraint name="productCategoryTypeId" value="CATALOG_CATEGORY"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="Update" use-when="product!=null" widget-style="smallSubmit"><submit button-type="button"/></field> + <field name="submitButton" title="Create" use-when="product==null" widget-style="smallSubmit"><submit button-type="button"/></field> + <field use-when="product!=null" name="lastUpdatedByText" title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext"> + <display description="[${product.lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${product.lastModifiedDate}" also-hidden="false"/> + </field> + <field use-when="product!=null" name="createdByText" title="${uiLabelMap.ProductCreatedBy}:" widget-style="tabletext"> + <display description="[${product.createdByUserLogin}] ${uiLabelMap.CommonOn} ${product.createdDate}" also-hidden="false"/> + </field> + </form> + <!-- List Product --> + <form name="ListProducts" type="list" list-name="listIt" paginate-target="${submitTarget}" + default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext" + default-title-area-style="viewOneTR1" even-row-style="viewManyTR2" odd-row-style="viewManyTR1"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="Product"/> + </service> + </actions> + <field name="productId" title="${uiLabelMap.CommonId}" widget-style="buttontext"> + <hyperlink also-hidden="false" description="${productId}" target="EditProduct?productId=${productId}"/> + </field> + <field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field> + <field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field> + <field name="searchVariants" title="" widget-style="buttontext" use-when="isVirtual!=null&&"${isVirtual}".equals("Y")"> + <hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct?productId=${productId}"/> + </field> + </form> + <form name="lookupProduct" + default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox" + target="${submitTarget}" type="single"> + <!-- <auto-fields-entity entity-name="Product" default-field-type="hidden" /> --> + <field name="productId" title="${uiLabelMap.CommonId}"><text-find default-option="contains" ignore-case="true"/></field> + <field name="brandName" title="${uiLabelMap.ProductBrandName}"><text-find default-option="contains" ignore-case="true"/></field> + <field name="internalName" title="${uiLabelMap.ProductInternalName}"><text-find default-option="contains" ignore-case="true"/></field> + <field name="primaryProductCategoryId"><hidden/></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="isVariant"><hidden value="N"/></field> --> + <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="listLookupProduct" + default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext" + list-name="listIt" paginate-target="${submitTarget}" + title="" type="list"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="Product"/> + </service> + </actions> + <field name="productId" title="${uiLabelMap.CommonId}" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${productId}" target="javascript:set_values('${productId}', '${internalName}')"/> + </field> + <field name="brandName" title="${uiLabelMap.ProductBrandName}"><display/></field> + <field name="internalName" title="${uiLabelMap.ProductInternalName}"><display/></field> + <field name="primaryProductCategoryId" title="Category"><display/></field> + <field name="searchVariants" title="" widget-style="buttontext" use-when="isVirtual!=null&&"${isVirtual}".equals("Y")"> + <hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.ProductVariants}" target="LookupVariantProduct?productId=${productId}"/> + </field> + </form> +</forms> Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/ProductForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml?view=auto&rev=498895 ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml Mon Jan 22 18:27:12 2007 @@ -0,0 +1,219 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- +Licensed 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://www.ofbiz.org/dtds/widget-form.xsd"> + <form name="EditWorkEffort" target="updateWorkEffort" title="" type="single" default-map-name="workEffort" + default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox"> + <alt-target target="createWorkEffort" use-when="workEffort==null"/> + <field name="maintHistSeqId" map-name="fixedAssetMaint"><hidden/></field> + <field map-name="workEffort" name="workEffortId" title="${uiLabelMap.WorkEffortWorkEffortId}*"><display/></field> + <field map-name="workEffort" name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text size="60"/></field> + <field map-name="workEffort" name="description" position="1" title="${uiLabelMap.CommonDescription}*"><text size="60"/></field> + <field map-name="workEffort" name="workEffortPurposeTypeId" title="${uiLabelMap.CommonPurpose}" position="1"> + <drop-down allow-empty="true"> + <entity-options description="${workEffortPurposeTypeId}-${description}" entity-name="WorkEffortPurposeType" key-field-name="workEffortPurposeTypeId"> + <entity-order-by field-name="workEffortPurposeTypeId"/> + </entity-options> + </drop-down> + </field> + <field map-name="workEffort" name="currentStatusId" title="${uiLabelMap.CommonStatus}*" position="1"> + <drop-down> + <entity-options entity-name="StatusItem" key-field-name="statusId" description="[Task] ${description}"> + <entity-constraint name="statusTypeId" value="TASK_STATUS"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field map-name="workEffort" name="percentComplete" position="2"><text/></field> + <field map-name="workEffort" name="estimatedStartDate" position="1"><date-time/></field> + <field map-name="workEffort" name="estimatedCompletionDate" position="2"><date-time/></field> + <field map-name="workEffort" name="actualStartDate" position="1"><date-time/></field> + <field map-name="workEffort" name="actualCompletionDate" position="2"><date-time/></field> + <field map-name="workEffort" name="workEffortParentId" title="${uiLabelMap.WorkEffortWorkEffortParentId}*"><lookup target-form-name="LookupWorkEffort"/></field> + <field map-name="workEffort" name="facilityId" title="${uiLabelMap.AccountingFacilityId}" ><lookup target-form-name="LookupFacility"/></field> + <field map-name="workEffort" name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}"><hidden/></field> + <field map-name="workEffort" name="moneyUomId" title="${uiLabelMap.CommonCurrency}"><ignored/></field> + <field map-name="workEffort" name="workEffortTypeId"><hidden value="TASK"/></field> + <field map-name="workEffort" name="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> + </form> + + <form name="AddWorkEffortChild" target="createWorkEffortAndAssoc" title="" type="single" + default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox"> + + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="workEffortIdTo"><hidden/></field> + <field name="workEffortIdFrom"><hidden/></field> + <field name="workEffortTypeId"><hidden value="TASK"/></field> + + <field name="workEffortAssocTypeId" title="${uiLabelMap.WorkEffortWorkEffortAssocTypeId}"> + <drop-down> + <entity-options entity-name="WorkEffortAssocType" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="sequenceNum"><text/></field> + <field name="fromDate"><date-time/></field> + <field name="thruDate"><date-time/></field> + <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text size="30"/></field> + <field name="currentStatusId" title="${uiLabelMap.CommonStatus}"> + <drop-down> + <entity-options entity-name="StatusItem" key-field-name="statusId" description="[Task] ${description}"> + <entity-constraint name="statusTypeId" value="TASK_STATUS"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="workEffortPurposeTypeId" title="${uiLabelMap.CommonPurpose}"> + <drop-down allow-empty="true"> + <entity-options description="${workEffortPurposeTypeId}-${description}" entity-name="WorkEffortPurposeType" key-field-name="workEffortPurposeTypeId"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="actualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><date-time/></field> + <field name="actualCompletionDate" title="${uiLabelMap.WorkEffortActualEndDate}"><date-time/></field> + <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="WorkEffortChildren" target="updateWorkEffortAndAssoc" title="" type="list" default-widget-style="inputBox" + default-title-style="tableheadtext" default-tooltip-style="tabletext" even-row-style="viewManyTR2" odd-row-style="viewManyTR1" + default-title-area-style="viewOneTR1" separate-columns="true"> + <actions> + <entity-condition entity-name="WorkEffortAssocView"> + <condition-expr field-name="workEffortIdFrom" operator="equals" env-name="workEffortIdFrom"/> + </entity-condition> + </actions> + <field name="workEffortTypeId"><hidden/></field> + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="workEffortId" title="${uiLabelMap.WorkEffortWorkEffortId}" widget-style="buttontext"><hidden/></field> + <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text size="30"/></field> + <field name="currentStatusId"> + <drop-down> + <entity-options entity-name="StatusItem" key-field-name="statusId" description="[Task] ${description}"> + <entity-constraint name="statusTypeId" value="TASK_STATUS"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="workEffortPurposeTypeId" title="${uiLabelMap.CommonPurpose}"> + <drop-down allow-empty="true"> + <entity-options description="${workEffortPurposeTypeId}-${description}" entity-name="WorkEffortPurposeType" key-field-name="workEffortPurposeTypeId"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="actualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><date-time/></field> + <field name="actualCompletionDate" title="${uiLabelMap.WorkEffortActualEndDate}"><date-time/></field> + <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <form name="AddWorkEffortTimeEntry" type="single" target="createWorkEffortTimeEntry" title="" + default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + <auto-fields-service service-name="createTimeEntry"/> + + <field name="workEffortId"><hidden/></field> + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="timeEntryId"><ignored/><!-- don't pass, will be sequenced --></field> + <field name="timesheetId"><lookup size="10" target-form-name="LookupTimesheet"/></field> + + <field name="partyId" title="${uiLabelMap.PartyParty}"><lookup target-form-name="LookupPerson" default-value="${timesheet.partyId}"/></field> + <field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}" widget-style="selectBox"> + <drop-down> + <entity-options entity-name="RateType" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="invoiceId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field> + <field name="invoiceItemSeqId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field> + <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <!-- TimeEntry --> + <form name="ListWorkEffortTimeEntries" type="list" list-name="timesheetEntries" target="updateWorkEffortTimeEntry" + separate-columns="false" default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext" + default-title-area-style="viewOneTR1" even-row-style="viewManyTR2" odd-row-style="viewManyTR1"> + <actions> + <entity-condition entity-name="TimeEntry"> + <condition-expr field-name="workEffortId" env-name="workEffortId"/> + <order-by field-name="timesheetId"/> + <order-by field-name="partyId"/> + <order-by field-name="rateTypeId"/> + <order-by field-name="-fromDate"/> + </entity-condition> + </actions> + <auto-fields-service service-name="updateTimeEntry"/> + + <field name="workEffortId"><hidden/></field> + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="timeEntryId"><hidden/></field> + <field name="timesheetId"> + <lookup size="10" target-form-name="LookupTimesheet"> + <sub-hyperlink target="EditTimesheet?timesheetId=${timesheetId}" link-style="buttontext" description="TS:${timesheetId}"/> + </lookup> + </field> + <field name="partyId" title="${uiLabelMap.PartyParty}"><lookup size="12" target-form-name="LookupPartyName" default-value="${timesheet.partyId}"/></field> + <field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}" widget-style="selectBox"> + <drop-down> + <entity-options entity-name="RateType" description="${description}"> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="invoiceId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field> + <field name="invoiceItemSeqId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field> + <field name="invoiceInfo"><hidden/></field> + <field name="comments"><text size="60"/></field> + <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> + <field name="deleteLink" title="" widget-style="buttontext"> + <hyperlink target="deleteWorkEffortTimeEntry?workEffortId=${workEffortId}&timeEntryId=${timeEntryId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/> + </field> + </form> + + <!-- WorkEffort Note --> + <form name="ListWorkEffortNotes" type="list" list-name="workEffortNotes" + default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext" + default-title-area-style="viewOneTR1" even-row-style="viewManyTR2" odd-row-style="viewManyTR1"> + <actions> + <entity-condition entity-name="WorkEffortNoteAndData"> + <condition-expr field-name="workEffortId" env-name="workEffortId"/> + <order-by field-name="noteId"/> + </entity-condition> + </actions> + <field name="workEffortId"><hidden/></field> + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="noteId" widget-style="tabletext"><display/></field> + <field name="noteInfo" title="${uiLabelMap.CommonNote}" widget-style="tabletext"><display/></field> + <field name="noteParty" title="${uiLabelMap.CommonBy}" widget-style="tabletext"><display description="${bsh:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, noteParty, true)} at ${noteDateTime}"/></field> + </form> + + <form name="AddWorkEffortNote" type="single" target="createWorkEffortNote" title="" + default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + <auto-fields-service service-name="createWorkEffortNote"/> + <field name="noteId"><ignored/><!-- don't pass, will be sequenced --></field> + <field name="workEffortId"><hidden/></field> + <field name="fixedAssetId"><hidden/></field> + <field name="maintHistSeqId"><hidden/></field> + <field name="noteInfo" title="${uiLabelMap.OrderNote}"><textarea cols="70" rows="5" /></field> + <field name="noteParty"><hidden/></field> + <field name="noteName"><hidden/></field> + <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> +</forms> Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/forms/WorkEffortForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/specialpurpose/build.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/build.xml?view=diff&rev=498895&r1=498894&r2=498895 ============================================================================== --- ofbiz/trunk/specialpurpose/build.xml (original) +++ ofbiz/trunk/specialpurpose/build.xml Mon Jan 22 18:27:12 2007 @@ -1,7 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- -Copyright 2001-2006 The Apache Software Foundation - Licensed 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 @@ -17,7 +15,7 @@ <project name="OFBiz Special Purpose Applications Build" default="build" basedir="."> <filelist id="application-builds" dir="." - files="pos/build.xml, hhfacility/build.xml"/> + files="pos/build.xml, hhfacility/build.xml, assetmaint/build.xml"/> <!-- ================================================================== --> <!-- Removes all created files and directories --> Modified: ofbiz/trunk/specialpurpose/component-load.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/component-load.xml?view=diff&rev=498895&r1=498894&r2=498895 ============================================================================== --- ofbiz/trunk/specialpurpose/component-load.xml (original) +++ ofbiz/trunk/specialpurpose/component-load.xml Mon Jan 22 18:27:12 2007 @@ -1,7 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- -Copyright 2001-2006 The Apache Software Foundation - Licensed 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 @@ -19,4 +17,5 @@ xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/component-loader.xsd"> <load-component component-location="${ofbiz.home}/specialpurpose/pos"/> <load-component component-location="${ofbiz.home}/specialpurpose/hhfacility"/> + <load-component component-location="${ofbiz.home}/specialpurpose/assetmaint"/> </component-loader> |
Free forum by Nabble | Edit this page |