Se agrega la opcion para comentario en INPUTDOCUMENTS
This commit is contained in:
@@ -119,12 +119,13 @@ class InputDocument
|
|||||||
*
|
*
|
||||||
* @param string $applicationUid
|
* @param string $applicationUid
|
||||||
* @param string $taskUid
|
* @param string $taskUid
|
||||||
|
* @param string $appDocComment
|
||||||
* @param string $inputDocumentUid
|
* @param string $inputDocumentUid
|
||||||
* @param string $userUid
|
* @param string $userUid
|
||||||
*
|
*
|
||||||
* return array Return an array with data of an InputDocument
|
* return array Return an array with data of an InputDocument
|
||||||
*/
|
*/
|
||||||
public function addCasesInputDocument($applicationUid, $taskUid, $inputDocumentUid, $userUid)
|
public function addCasesInputDocument($applicationUid, $taskUid, $appDocComment, $inputDocumentUid, $userUid)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if ((isset( $_FILES['form'] )) && ($_FILES['form']['error'] != 0)) {
|
if ((isset( $_FILES['form'] )) && ($_FILES['form']['error'] != 0)) {
|
||||||
@@ -164,7 +165,6 @@ class InputDocument
|
|||||||
$appDocUid = \G::generateUniqueID();
|
$appDocUid = \G::generateUniqueID();
|
||||||
$docVersion = '';
|
$docVersion = '';
|
||||||
$appDocType = 'INPUT';
|
$appDocType = 'INPUT';
|
||||||
$appDocComment = (isset($_POST["form"]))? $_POST["form"] : "";
|
|
||||||
$case = new \Cases();
|
$case = new \Cases();
|
||||||
$delIndex = \AppDelegation::getCurrentIndex($applicationUid);
|
$delIndex = \AppDelegation::getCurrentIndex($applicationUid);
|
||||||
$case->thisIsTheCurrentUser($applicationUid, $delIndex, $userUid, "REDIRECT", "casesListExtJs");
|
$case->thisIsTheCurrentUser($applicationUid, $delIndex, $userUid, "REDIRECT", "casesListExtJs");
|
||||||
|
|||||||
@@ -66,14 +66,15 @@ class InputDocument extends Api
|
|||||||
*
|
*
|
||||||
* @param string $app_uid { @min 32}{@max 32}
|
* @param string $app_uid { @min 32}{@max 32}
|
||||||
* @param string $tas_uid {@min 32}{@max 32}
|
* @param string $tas_uid {@min 32}{@max 32}
|
||||||
|
* @param string $app_doc_comment
|
||||||
* @param string $inp_doc_uid {@min 32}{@max 32}
|
* @param string $inp_doc_uid {@min 32}{@max 32}
|
||||||
*/
|
*/
|
||||||
public function doPostInputDocument($app_uid, $tas_uid, $inp_doc_uid)
|
public function doPostInputDocument($app_uid, $tas_uid, $app_doc_comment, $inp_doc_uid)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$userUid = $this->getUserId();
|
$userUid = $this->getUserId();
|
||||||
$inputDocument = new \BusinessModel\Cases\InputDocument();
|
$inputDocument = new \BusinessModel\Cases\InputDocument();
|
||||||
$response = $inputDocument->addCasesInputDocument($app_uid, $tas_uid, $inp_doc_uid, $userUid);
|
$response = $inputDocument->addCasesInputDocument($app_uid, $tas_uid, $app_doc_comment, $inp_doc_uid, $userUid);
|
||||||
return $response;
|
return $response;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||||
|
|||||||
Reference in New Issue
Block a user