Commit c5099a0fb32b961df163a57303a37f84d6a0cb1e
1 parent
64dfc3ba
changed to display with document details
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2166 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
9 additions
and
6 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentBL.php
| ... | ... | @@ -37,6 +37,7 @@ if (checkSession()) { |
| 37 | 37 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc"); |
| 38 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 39 | 39 | |
| 40 | + require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkInDocumentUI.inc"); | |
| 40 | 41 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc"); |
| 41 | 42 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc"); |
| 42 | 43 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| ... | ... | @@ -116,11 +117,11 @@ if (checkSession()) { |
| 116 | 117 | } |
| 117 | 118 | } else { |
| 118 | 119 | $sErrorMessage = "Please select a document by first clicking on 'Browse'. Then click 'Check-In'"; |
| 119 | - $oPatternCustom->setHtml(getCheckInEditPage($oDocument)); | |
| 120 | + $oPatternCustom->setHtml(getCheckInPage($oDocument)); | |
| 120 | 121 | } |
| 121 | 122 | } else { |
| 122 | 123 | // prompt the user for a check in comment and the file |
| 123 | - $oPatternCustom->setHtml(getCheckInEditPage($oDocument)); | |
| 124 | + $oPatternCustom->setHtml(getCheckInPage($oDocument)); | |
| 124 | 125 | } |
| 125 | 126 | } else { |
| 126 | 127 | // you don't have this doc checked out | ... | ... |
presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php
| ... | ... | @@ -25,6 +25,7 @@ if (checkSession()) { |
| 25 | 25 | require_once("$default->fileSystemRoot/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 26 | 26 | require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTransaction.inc"); |
| 27 | 27 | require_once("$default->fileSystemRoot/lib/documentmanagement/Document.inc"); |
| 28 | + require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentCollaboration.inc"); | |
| 28 | 29 | |
| 29 | 30 | require_once("$default->fileSystemRoot/lib/foldermanagement/FolderCollaboration.inc"); |
| 30 | 31 | require_once("$default->fileSystemRoot/lib/foldermanagement/FolderUserRole.inc"); |
| ... | ... | @@ -37,6 +38,7 @@ if (checkSession()) { |
| 37 | 38 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListFromQuery.inc"); |
| 38 | 39 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 39 | 40 | |
| 41 | + require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentUI.inc"); | |
| 40 | 42 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc"); |
| 41 | 43 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc"); |
| 42 | 44 | require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc"); |
| ... | ... | @@ -78,8 +80,7 @@ if (checkSession()) { |
| 78 | 80 | $default->log->info("checkOutDocumentBL.php fired $count subscription alerts for checked out document " . $oDocument->getName()); |
| 79 | 81 | |
| 80 | 82 | // display checkout success message in the document view page |
| 81 | - $oPatternCustom->setHtml(getCheckOutEditPage($oDocument, true)); | |
| 82 | - | |
| 83 | + $oPatternCustom->setHtml(getCheckOutPage($oDocument, true)); | |
| 83 | 84 | |
| 84 | 85 | } else { |
| 85 | 86 | // document update failed |
| ... | ... | @@ -87,7 +88,7 @@ if (checkSession()) { |
| 87 | 88 | } |
| 88 | 89 | } else { |
| 89 | 90 | // prompt the user for a checkout comment |
| 90 | - $oPatternCustom->setHtml(getCheckOutEditPage($oDocument)); | |
| 91 | + $oPatternCustom->setHtml(getCheckOutPage($oDocument)); | |
| 91 | 92 | } |
| 92 | 93 | } else { |
| 93 | 94 | // this document is already checked out |
| ... | ... | @@ -109,9 +110,10 @@ if (checkSession()) { |
| 109 | 110 | $oPatternCustom->setHtml(renderErrorPage("No document is currently selected for check out")); |
| 110 | 111 | } |
| 111 | 112 | |
| 113 | + | |
| 112 | 114 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 113 | 115 | $main->setCentralPayload($oPatternCustom); |
| 114 | 116 | $main->setFormAction($_SERVER["PHP_SELF"]); |
| 115 | 117 | $main->render(); |
| 116 | 118 | } |
| 117 | 119 | -?> |
| 120 | +?> | |
| 118 | 121 | \ No newline at end of file | ... | ... |