Author: jacopoc
Date: Fri Aug 31 05:40:55 2007 New Revision: 571448 URL: http://svn.apache.org/viewvc?rev=571448&view=rev Log: Replaced 'estimated unit runtime' column with 'estimated total runtime'; OFBIZ-1214 Modified: ofbiz/trunk/applications/manufacturing/config/ManufacturingUiLabels.properties ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunTasks.bsh ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ViewProductionRun.bsh ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml Modified: ofbiz/trunk/applications/manufacturing/config/ManufacturingUiLabels.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/config/ManufacturingUiLabels.properties?rev=571448&r1=571447&r2=571448&view=diff ============================================================================== --- ofbiz/trunk/applications/manufacturing/config/ManufacturingUiLabels.properties (original) +++ ofbiz/trunk/applications/manufacturing/config/ManufacturingUiLabels.properties Fri Aug 31 05:40:55 2007 @@ -204,7 +204,8 @@ ManufacturingStartDate=Start Date ManufacturingStartTime=Start Time ManufacturingSummarizedPartBreakdown=Summarized Breakdown -ManufacturingTaskEstimatedMilliSeconds=Estimated Run Time +ManufacturingTaskEstimatedMilliSeconds=Estimated Unit Run Time +ManufacturingTaskEstimatedTotalMilliSeconds=Estimated Total Run Time ManufacturingTaskEstimatedSetupMillis=Estimated Setup Time ManufacturingTaskId=Task ID ManufacturingTaskName=Routing Task Name Modified: ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunTasks.bsh URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunTasks.bsh?rev=571448&r1=571447&r2=571448&view=diff ============================================================================== --- ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunTasks.bsh (original) +++ ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunTasks.bsh Fri Aug 31 05:40:55 2007 @@ -40,5 +40,6 @@ if (productionRun.exist()){ List productionRunRoutingTasks = productionRun.getProductionRunRoutingTasks(); context.put("productionRunRoutingTasks", productionRunRoutingTasks); + context.put("quantity", productionRun.getQuantity()); // this is useful to compute the total estimates runtime in the form } } Modified: ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ViewProductionRun.bsh URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ViewProductionRun.bsh?rev=571448&r1=571447&r2=571448&view=diff ============================================================================== --- ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ViewProductionRun.bsh (original) +++ ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ViewProductionRun.bsh Fri Aug 31 05:40:55 2007 @@ -71,6 +71,7 @@ // RoutingTasks list List productionRunRoutingTasks = productionRun.getProductionRunRoutingTasks(); context.put("productionRunRoutingTasks", productionRunRoutingTasks); + context.put("quantity", productionRun.getQuantity()); // this is useful to compute the total estimates runtime in the form // Product component/parts list List productionRunComponentsData = productionRun.getProductionRunComponents(); Modified: ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml?rev=571448&r1=571447&r2=571448&view=diff ============================================================================== --- ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml (original) +++ ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRunForms.xml Fri Aug 31 05:40:55 2007 @@ -127,22 +127,30 @@ </form> <form name="ViewListProductionRunRoutingTasks" type="list" title="" list-name="productionRunRoutingTasks"> + <row-actions> + <set field="estimatedTotalMilliSeconds" value="${bsh:estimatedMilliSeconds * quantity}" type="Double"/> + </row-actions> <field name="priority" title="${uiLabelMap.CommonSequenceNum}"><display/></field> <field name="workEffortId" title="${uiLabelMap.ManufacturingTaskName}"><display description="${workEffortName} [${workEffortId}]" /></field> <field name="fixedAssetId" title="${uiLabelMap.ManufacturingMachine}"><display/></field> <field name="estimatedStartDate" title="${uiLabelMap.ManufacturingStartDate}"><display/></field> <field name="estimatedCompletionDate" title="${uiLabelMap.ManufacturingEstimatedCompletionDate}"><display/></field> <field name="estimatedSetupMillis" title="${uiLabelMap.ManufacturingTaskEstimatedSetupMillis}" ><display/></field> - <field name="estimatedMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedMilliSeconds}" ><display/></field> + <!--<field name="estimatedMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedMilliSeconds}" ><display/></field>--> + <field name="estimatedTotalMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedTotalMilliSeconds}" ><display/></field> </form> <form name="ListProductionRunRoutingTasks" type="list" target="ProductionRunTasks" title="" list-name="productionRunRoutingTasks"> + <row-actions> + <set field="estimatedTotalMilliSeconds" value="${bsh:estimatedMilliSeconds * quantity}" type="Double"/> + </row-actions> <field name="priority" title="${uiLabelMap.CommonSequenceNum}"><display/></field> <field name="workEffortId" title="${uiLabelMap.ManufacturingTaskName}"><display description="${workEffortName} [${workEffortId}]" /></field> <field name="fixedAssetId" title="${uiLabelMap.ManufacturingMachine}"><display/></field> <field name="estimatedStartDate" title="${uiLabelMap.ManufacturingStartDate}"><display/></field> <field name="estimatedCompletionDate" title="${uiLabelMap.ManufacturingEstimatedCompletionDate}"><display/></field> <field name="estimatedSetupMillis" title="${uiLabelMap.ManufacturingTaskEstimatedSetupMillis}" ><display/></field> - <field name="estimatedMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedMilliSeconds}" ><display/></field> + <!--<field name="estimatedMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedMilliSeconds}" ><display/></field>--> + <field name="estimatedTotalMilliSeconds" title="${uiLabelMap.ManufacturingTaskEstimatedTotalMilliSeconds}" ><display/></field> <field name="editLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="smallSubmit"> <hyperlink target="ProductionRunTasks?routingTaskId=${workEffortId}&productionRunId=${workEffortParentId}" description="${uiLabelMap.CommonEdit}" also-hidden="false"/> </field> |
Free forum by Nabble | Edit this page |