Commit 0e5d5093 authored by Aurel's avatar Aurel

2006-05-23 aurel

* add simulation_state column in item and fix Resource_zGetTrackingList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f05af69c
...@@ -56,6 +56,12 @@ ...@@ -56,6 +56,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>getSimulationState</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>getStopDate</string> </key> <key> <string>getStopDate</string> </key>
<value> <value>
...@@ -101,6 +107,7 @@ ...@@ -101,6 +107,7 @@
<string>getDestinationSectionUid</string> <string>getDestinationSectionUid</string>
<string>getResourceUid</string> <string>getResourceUid</string>
<string>getVariationText</string> <string>getVariationText</string>
<string>getSimulationState</string>
<string>getAggregateUidList</string> <string>getAggregateUidList</string>
</list> </list>
</value> </value>
...@@ -118,14 +125,15 @@ ...@@ -118,14 +125,15 @@
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>isMovement\n <value> <string>isMovement\r\n
isAccountable\n isAccountable\r\n
uid\n uid\r\n
getStopDate\n getStopDate\r\n
getDestinationUid\n getDestinationUid\r\n
getDestinationSectionUid\n getDestinationSectionUid\r\n
getResourceUid\n getResourceUid\r\n
getVariationText\n getVariationText\r\n
getSimulationState\r\n
getAggregateUidList</string> </value> getAggregateUidList</string> </value>
</item> </item>
<item> <item>
...@@ -195,7 +203,8 @@ VALUES\n ...@@ -195,7 +203,8 @@ VALUES\n
<dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n
<dtml-sqlvar sequence-item type="int" optional>,\n <dtml-sqlvar sequence-item type="int" optional>,\n
<dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>\n <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>\n
)\n )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n </dtml-in>\n
...@@ -271,7 +280,8 @@ VALUES\n ...@@ -271,7 +280,8 @@ VALUES\n
<dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,\n
<dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n
<dtml-sqlvar sequence-item type="int" optional>,\n <dtml-sqlvar sequence-item type="int" optional>,\n
<dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>\n <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getSimulationState[loop_item]" type="string" optional>\n
)\n )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n </dtml-in>\n
......
...@@ -103,6 +103,7 @@ CREATE TABLE `item` (\n ...@@ -103,6 +103,7 @@ CREATE TABLE `item` (\n
`resource_uid` BIGINT UNSIGNED default \'0\',\n `resource_uid` BIGINT UNSIGNED default \'0\',\n
`aggregate_uid` BIGINT UNSIGNED default \'0\',\n `aggregate_uid` BIGINT UNSIGNED default \'0\',\n
`variation_text` VARCHAR(255),\n `variation_text` VARCHAR(255),\n
`simulation_state` VARCHAR(255) default \'\',\n
KEY `uid` (`uid`),\n KEY `uid` (`uid`),\n
KEY `node_uid` (`node_uid`),\n KEY `node_uid` (`node_uid`),\n
KEY `section_uid` (`section_uid`),\n KEY `section_uid` (`section_uid`),\n
...@@ -156,6 +157,7 @@ CREATE TABLE `item` (\n ...@@ -156,6 +157,7 @@ CREATE TABLE `item` (\n
`resource_uid` BIGINT UNSIGNED default \'0\',\n `resource_uid` BIGINT UNSIGNED default \'0\',\n
`aggregate_uid` BIGINT UNSIGNED default \'0\',\n `aggregate_uid` BIGINT UNSIGNED default \'0\',\n
`variation_text` VARCHAR(255),\n `variation_text` VARCHAR(255),\n
`simulation_state` VARCHAR(255) default \'\',\n
KEY `uid` (`uid`),\n KEY `uid` (`uid`),\n
KEY `node_uid` (`node_uid`),\n KEY `node_uid` (`node_uid`),\n
KEY `section_uid` (`section_uid`),\n KEY `section_uid` (`section_uid`),\n
......
...@@ -111,6 +111,17 @@ ...@@ -111,6 +111,17 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>simulation_state_list</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item> <item>
<key> <string>to_date</string> </key> <key> <string>to_date</string> </key>
<value> <value>
...@@ -143,6 +154,7 @@ ...@@ -143,6 +154,7 @@
<string>group_by_expression</string> <string>group_by_expression</string>
<string>join_on_item</string> <string>join_on_item</string>
<string>date_condition_in_join</string> <string>date_condition_in_join</string>
<string>simulation_state_list</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -340,7 +352,8 @@ selection_report\r\n ...@@ -340,7 +352,8 @@ selection_report\r\n
order_by_expression\r\n order_by_expression\r\n
group_by_expression\r\n group_by_expression\r\n
join_on_item\r\n join_on_item\r\n
date_condition_in_join</string> </value> date_condition_in_join\r\n
simulation_state_list:list</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -414,6 +427,17 @@ FROM\n ...@@ -414,6 +427,17 @@ FROM\n
<dtml-else>\n <dtml-else>\n
next_item.date > item.date\n next_item.date > item.date\n
</dtml-if>\n </dtml-if>\n
<dtml-if simulation_state_list>\n
AND (\n
<dtml-in simulation_state_list>\n
next_item.simulation_state = <dtml-sqlvar sequence-item type="string"> \n
<dtml-if sequence-end>\n
<dtml-else>\n
OR \n
</dtml-if>\n
</dtml-in>\n
)\n
</dtml-if>\n
)\n )\n
</dtml-if>\n </dtml-if>\n
\n \n
...@@ -522,6 +546,17 @@ FROM\n ...@@ -522,6 +546,17 @@ FROM\n
<dtml-else>\n <dtml-else>\n
next_item.date > item.date\n next_item.date > item.date\n
</dtml-if>\n </dtml-if>\n
<dtml-if simulation_state_list>\n
AND (\n
<dtml-in simulation_state_list>\n
next_item.simulation_state = <dtml-sqlvar sequence-item type="string"> \n
<dtml-if sequence-end>\n
<dtml-else>\n
OR \n
</dtml-if>\n
</dtml-in>\n
)\n
</dtml-if>\n
)\n )\n
</dtml-if>\n </dtml-if>\n
\n \n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment