mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
Wiki에 계층보기 기능 추가 (글쓰기 권한이 있는 사용자가 문서들을 tree구조로 바꿀 수 있도록 함)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6637 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c40d10f686
commit
461144c955
22 changed files with 431 additions and 4 deletions
22
modules/wiki/queries/getTreeList.xml
Normal file
22
modules/wiki/queries/getTreeList.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<query id="getTreeList" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="doc"/>
|
||||
<table name="document_categories" alias="category" type="left join">
|
||||
<conditions>
|
||||
<condition operation="equal" column="category.module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="category.category_srl" default="doc.document_srl" filter="number" pipe="and" />
|
||||
</conditions>
|
||||
</table>
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="doc.title" alias="title" />
|
||||
<column name="doc.document_srl" alias="document_srl" />
|
||||
<column name="category.parent_srl" alias="parent_srl" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="doc.module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="doc.list_order" order="asc" />
|
||||
</navigation>
|
||||
</query>
|
||||
13
modules/wiki/queries/getTreeMinListorder.xml
Normal file
13
modules/wiki/queries/getTreeMinListorder.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<query id="getTreeMinListorder" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="doc"/>
|
||||
<table name="document_categories" alias="category" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="min(doc.list_order)" alias="list_order" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="category.parent_srl" var="parent_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="doc.document_srl" default="category.category_srl" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
21
modules/wiki/queries/getTreeNode.xml
Normal file
21
modules/wiki/queries/getTreeNode.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<query id="getTreeNode" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="doc"/>
|
||||
<table name="document_categories" alias="category" type="left join">
|
||||
<conditions>
|
||||
<condition operation="equal" column="category.category_srl" default="doc.document_srl" />
|
||||
</conditions>
|
||||
</table>
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="category.parent_srl" alias="parent_srl" />
|
||||
<column name="category.category_srl" alias="is_exists" />
|
||||
<column name="doc.module_srl" alias="module_srl" />
|
||||
<column name="doc.title" alias="title" />
|
||||
<column name="doc.document_srl" alias="document_srl" />
|
||||
<column name="doc.list_order" alias="list_order" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="doc.document_srl" var="source_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
15
modules/wiki/queries/insertTreeNode.xml
Normal file
15
modules/wiki/queries/insertTreeNode.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<query id="insertTreeNode" action="insert">
|
||||
<tables>
|
||||
<table name="document_categories" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="category_srl" var="source_srl" filter="number" notnull="notnull" />
|
||||
<column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
|
||||
<column name="title" var="title" notnull="notnull" minlength="1" maxlength="250" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
<column name="expand" default="Y" />
|
||||
<column name="parent_srl" var="parent_srl" filter="number" default="0" />
|
||||
<column name="last_update" var="last_update" default="curdate()" />
|
||||
<column name="list_order" var="list_order" default="0" />
|
||||
</columns>
|
||||
</query>
|
||||
11
modules/wiki/queries/updateDocumentListOrder.xml
Normal file
11
modules/wiki/queries/updateDocumentListOrder.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="updateDocumentListOrder" action="update">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="list_order" var="list_order" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
13
modules/wiki/queries/updateTreeListOrder.xml
Normal file
13
modules/wiki/queries/updateTreeListOrder.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<query id="updateTreeNode" action="update">
|
||||
<tables>
|
||||
<table name="document_categories" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="list_order" default="plus(2)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
|
||||
<condition operation="equal" column="parent_srl" var="parent_srl" filter="number" notnull="notnull" pipe="and" />
|
||||
<condition operation="more" column="list_order" var="list_order" filter="number" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
16
modules/wiki/queries/updateTreeNode.xml
Normal file
16
modules/wiki/queries/updateTreeNode.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<query id="updateTreeNode" action="update">
|
||||
<tables>
|
||||
<table name="document_categories" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="title" var="title" />
|
||||
<column name="expand" default="Y" />
|
||||
<column name="parent_srl" var="parent_srl" />
|
||||
<column name="last_update" var="last_update" default="curdate()" />
|
||||
<column name="list_order" var="list_order" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
|
||||
<condition operation="equal" column="category_srl" var="source_srl" filter="number" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue