Merge remote branch 'upstream/master'
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -192,7 +192,7 @@ def buildPmdynaform(homeDir, targetDir, mode)
|
||||
template += s
|
||||
end
|
||||
|
||||
htmlTemplates=["cases_Step_Pmdynaform.html","cases_Step_Pmdynaform_Preview.html","cases_Step_Pmdynaform_View.html","WebEntry_Pmdynaform.html"]
|
||||
htmlTemplates=["pmdynaform.html"]
|
||||
htmlTemplates.each do |htmlTemplate|
|
||||
|
||||
FileUtils.cp("#{Dir.pwd}/workflow/engine/templates/cases/#{htmlTemplate}", "#{pmdynaformDir}/build/#{htmlTemplate}")
|
||||
|
||||
@@ -20,16 +20,7 @@ class UploadFormat extends Format
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $allowedMimeTypes = array(
|
||||
'image/jpeg',
|
||||
'image/png',
|
||||
'image/png',
|
||||
'application/octet-stream',
|
||||
'text/plain',
|
||||
'text/xml',
|
||||
'text/html',
|
||||
'text/css'
|
||||
);
|
||||
public static $allowedMimeTypes = array();
|
||||
/**
|
||||
* use it to restrict uploads based on file size
|
||||
* set it to 0 to allow all sizes
|
||||
@@ -40,7 +31,7 @@ class UploadFormat extends Format
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public static $maximumFileSize = 1048576;
|
||||
public static $maximumFileSize = 0;
|
||||
/**
|
||||
* Your own validation function for validating each uploaded file
|
||||
* it can return false or throw an exception for invalid file
|
||||
|
||||
@@ -338,8 +338,8 @@ function database_upgrade($command, $args) {
|
||||
$arrayData["MESS_RAUTH"] = (int)($emailConfiguration["MESS_RAUTH"]);
|
||||
$arrayData["MESS_ACCOUNT"] = $emailConfiguration["MESS_ACCOUNT"];
|
||||
$arrayData["MESS_PASSWORD"] = $emailConfiguration["MESS_PASSWORD"];
|
||||
$arrayData["MESS_FROM_MAIL"] = $emailConfiguration["MESS_FROM_MAIL"];
|
||||
$arrayData["MESS_FROM_NAME"] = $emailConfiguration["MESS_FROM_NAME"];
|
||||
$arrayData["MESS_FROM_MAIL"] = isset($emailConfiguration["MESS_FROM_MAIL"]) ? $emailConfiguration["MESS_FROM_MAIL"] : "";
|
||||
$arrayData["MESS_FROM_NAME"] = isset($emailConfiguration["MESS_FROM_NAME"]) ? $emailConfiguration["MESS_FROM_NAME"] : "";
|
||||
$arrayData["SMTPSECURE"] = $emailConfiguration["SMTPSecure"];
|
||||
$arrayData["MESS_TRY_SEND_INMEDIATLY"] = (int)($emailConfiguration["MESS_TRY_SEND_INMEDIATLY"]);
|
||||
$arrayData["MAIL_TO"] = $emailConfiguration["MAIL_TO"];
|
||||
|
||||
@@ -1060,6 +1060,14 @@ class Cases
|
||||
|
||||
$appAssignSelfServiceValue->remove($sAppUid);
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if(!isset($Fields['DEL_INDEX'])){
|
||||
$Fields['DEL_INDEX'] = 1;
|
||||
}
|
||||
$inbox = new ListInbox();
|
||||
$inbox->update($Fields);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
//Return
|
||||
return $Fields;
|
||||
@@ -1190,8 +1198,10 @@ class Cases
|
||||
$oAppDel = AppDelegationPeer::retrieveByPk($sAppUid, $iDelIndex);
|
||||
$oAppDel->setDelInitDate("now");
|
||||
$oAppDel->save();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$inbox = new ListInbox();
|
||||
$inbox->update(array('APP_UID'=>$sAppUid, 'DEL_INDEX'=>$iDelIndex, 'DEL_INIT_DATE'=>Date("Y-m-d H:i:s")));
|
||||
/*----------------------------------********---------------------------------*/
|
||||
//update searchindex
|
||||
if ($this->appSolr != null) {
|
||||
$this->appSolr->updateApplicationSearchIndex($sAppUid);
|
||||
@@ -1911,8 +1921,16 @@ class Cases
|
||||
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$inbox = new ListInbox();
|
||||
$inbox->remove($sAppUid, $iDelIndex);
|
||||
$data['DEL_THREAD_STATUS'] = 'CLOSED';
|
||||
$data['APP_UID'] = $sAppUid;
|
||||
$data['DEL_INDEX'] = $iDelIndex;
|
||||
$data['USR_UID'] = $appDel->getUsrUid();
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
$listParticipatedLast->refresh($data);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
} catch (exception $e) {
|
||||
throw ($e);
|
||||
}
|
||||
@@ -4099,7 +4117,7 @@ class Cases
|
||||
if ($this->appSolr != null) {
|
||||
$this->appSolr->updateApplicationSearchIndex($sApplicationUID);
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$data = array (
|
||||
'APP_UID' => $sApplicationUID,
|
||||
'DEL_INDEX' => $iIndex,
|
||||
@@ -4108,6 +4126,7 @@ class Cases
|
||||
$data = array_merge($aFields, $data);
|
||||
$oListCanceled = new ListCanceled();
|
||||
$oListCanceled->create($data);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* class.configuration.php
|
||||
*
|
||||
@@ -654,7 +655,7 @@ class Configurations // extends Configuration
|
||||
* @param string $translation Translation
|
||||
* @return array Return the fields and configuration
|
||||
*
|
||||
*/
|
||||
*/
|
||||
public function casesListDefaultFieldsAndConfig($action, $translation = 1)
|
||||
{
|
||||
$caseColumns = array();
|
||||
@@ -777,7 +778,7 @@ class Configurations // extends Configuration
|
||||
$caseColumns[] = array("header" => ($translation == 1) ? G::LoadTranslation("ID_TASK") : "ID_TASK", "dataIndex" => "APP_TAS_TITLE", "width" => 120);
|
||||
$caseColumns[] = array("header" => ($translation == 1) ? G::LoadTranslation("ID_CURRENT_USER") : "ID_CURRENT_USER", "dataIndex" => "APP_CURRENT_USER", "width" => 120, "sortable" => true);
|
||||
$caseColumns[] = array("header" => ($translation == 1) ? G::LoadTranslation("ID_LAST_MODIFY") : "ID_LAST_MODIFY", "dataIndex" => "APP_UPDATE_DATE", "width" => 80);
|
||||
$caseColumns[] = array("header" => ($translation == 1) ? G::LoadTranslation("ID_STATUS") : "ID_STATUS", "dataIndex" => "APP_STATUS_LABEL", "width" => 50);
|
||||
$caseColumns[] = array("header" => ($translation == 1) ? G::LoadTranslation("ID_DEL_THREAD_STATUS") : "ID_DEL_THREAD_STATUS", "dataIndex" => "DEL_THREAD_STATUS", "width" => 50);
|
||||
|
||||
$caseReaderFields[] = array("name" => "APP_UID");
|
||||
$caseReaderFields[] = array("name" => "USR_UID");
|
||||
@@ -796,7 +797,7 @@ class Configurations // extends Configuration
|
||||
$caseReaderFields[] = array("name" => "DEL_TASK_DUE_DATE");
|
||||
$caseReaderFields[] = array("name" => "APP_UPDATE_DATE");
|
||||
$caseReaderFields[] = array("name" => "DEL_PRIORITY");
|
||||
$caseReaderFields[] = array("name" => "APP_STATUS_LABEL");
|
||||
$caseReaderFields[] = array("name" => "DEL_THREAD_STATUS");
|
||||
$caseReaderFields[] = array("name" => "APP_FINISH_DATE");
|
||||
$caseReaderFields[] = array("name" => "CASE_SUMMARY");
|
||||
$caseReaderFields[] = array("name" => "CASE_NOTES_COUNT");
|
||||
|
||||
@@ -972,10 +972,16 @@ class Derivation
|
||||
}
|
||||
$aParentCase['APP_DATA'] = array_merge( $aParentCase['APP_DATA'], $aNewFields );
|
||||
$oCase->updateCase( $aSA['APP_PARENT'], $aParentCase );
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$inbox = new ListInbox();
|
||||
$inbox->update($aParentCase);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
//Update table SUB_APPLICATION
|
||||
$oSubApplication = new SubApplication();
|
||||
$oSubApplication->update( array ('APP_UID' => $sApplicationUID,'APP_PARENT' => $aSA['APP_PARENT'],'DEL_INDEX_PARENT' => $aSA['DEL_INDEX_PARENT'],'DEL_THREAD_PARENT' => $aSA['DEL_THREAD_PARENT'],'SA_STATUS' => 'FINISHED','SA_VALUES_IN' => serialize( $aNewFields ),'SA_FINISH_DATE' => date( 'Y-m-d H:i:s' )
|
||||
) );
|
||||
|
||||
//Derive the parent case
|
||||
$aDeriveTasks = $this->prepareInformation( array ('USER_UID' => - 1,'APP_UID' => $aSA['APP_PARENT'],'DEL_INDEX' => $aSA['DEL_INDEX_PARENT']
|
||||
) );
|
||||
|
||||
@@ -11,86 +11,26 @@ class pmDynaform
|
||||
{
|
||||
|
||||
public static $instance = null;
|
||||
private $debugMode = false;
|
||||
public $dyn_uid = null;
|
||||
public $record = null;
|
||||
public $app_data = null;
|
||||
public $credentials = null;
|
||||
public $items = array();
|
||||
public $data = array();
|
||||
public $variables = array();
|
||||
public $arrayFieldRequired = array();
|
||||
public $arrayFieldRequired = array();
|
||||
|
||||
public function __construct($dyn_uid, $app_data = array())
|
||||
{
|
||||
{
|
||||
$this->dyn_uid = $dyn_uid;
|
||||
$this->app_data = $app_data;
|
||||
$this->getDynaform();
|
||||
|
||||
//items
|
||||
$dynContent = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
if (isset($dynContent->items)) {
|
||||
$this->items = $dynContent->items[0]->items;
|
||||
$n = count($this->items);
|
||||
for ($i = 0; $i < $n; $i++) {
|
||||
$m = count($this->items[$i]);
|
||||
for ($j = 0; $j < $m; $j++) {
|
||||
if (isset($this->items[$i][$j]->required) && $this->items[$i][$j]->required == 1) {
|
||||
array_push($this->arrayFieldRequired, $this->items[$i][$j]->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($app_data) && isset($app_data["APPLICATION"])){
|
||||
//data
|
||||
$this->getCredentials();
|
||||
if (isset($app_data["APPLICATION"])) {
|
||||
$cases = new \ProcessMaker\BusinessModel\Cases();
|
||||
$this->data = $cases->getCaseVariables($app_data["APPLICATION"]);
|
||||
|
||||
//variables
|
||||
$this->variables = array();
|
||||
|
||||
$a = new Criteria("workflow");
|
||||
$a->addSelectColumn(ProcessVariablesPeer::VAR_NAME);
|
||||
$a->addSelectColumn(ProcessVariablesPeer::VAR_SQL);
|
||||
$a->addSelectColumn(ProcessVariablesPeer::VAR_ACCEPTED_VALUES);
|
||||
$a->addSelectColumn(ProcessVariablesPeer::VAR_DBCONNECTION);
|
||||
|
||||
$c3 = $a->getNewCriterion(ProcessVariablesPeer::VAR_ACCEPTED_VALUES, "", Criteria::ALT_NOT_EQUAL);
|
||||
$c2 = $a->getNewCriterion(ProcessVariablesPeer::VAR_ACCEPTED_VALUES, "[]", Criteria::ALT_NOT_EQUAL);
|
||||
$c2->addAnd($c3);
|
||||
|
||||
$c4 = $a->getNewCriterion(ProcessVariablesPeer::PRJ_UID, $this->app_data["PROCESS"], Criteria::EQUAL);
|
||||
|
||||
$c1 = $a->getNewCriterion(ProcessVariablesPeer::VAR_SQL, "", Criteria::ALT_NOT_EQUAL);
|
||||
$c1->addOr($c2);
|
||||
$c1->addAnd($c4);
|
||||
|
||||
$a->add($c1);
|
||||
|
||||
$ds = ProcessPeer::doSelectRS($a);
|
||||
$ds->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
while ($ds->next()) {
|
||||
$row = $ds->getRow();
|
||||
//options
|
||||
$rows2 = G::json_decode($row["VAR_ACCEPTED_VALUES"]);
|
||||
$n = count($rows2);
|
||||
for ($i = 0; $i < $n; $i++) {
|
||||
$rows2[$i] = array($rows2[$i]->keyValue, $rows2[$i]->value);
|
||||
}
|
||||
//query
|
||||
$arrayVariable = array();
|
||||
if ($row["VAR_DBCONNECTION"] !== "none" && $row["VAR_SQL"] !== "") {
|
||||
$cnn = Propel::getConnection($row["VAR_DBCONNECTION"]);
|
||||
$stmt = $cnn->createStatement();
|
||||
$rs = $stmt->executeQuery(\G::replaceDataField($row["VAR_SQL"], $arrayVariable), \ResultSet::FETCHMODE_NUM);
|
||||
while ($rs->next()) {
|
||||
array_push($rows2, $rs->getRow());
|
||||
}
|
||||
}
|
||||
$this->variables[$row["VAR_NAME"]] = $rows2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getDynaform()
|
||||
@@ -107,96 +47,114 @@ class pmDynaform
|
||||
$ds = ProcessPeer::doSelectRS($a);
|
||||
$ds->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$ds->next();
|
||||
$row = $ds->getRow();
|
||||
$row = $ds->getRow();
|
||||
$this->record = isset($row) ? $row : null;
|
||||
|
||||
return $this->record;
|
||||
}
|
||||
|
||||
private function searchValues($varName, $value)
|
||||
|
||||
public function getCredentials()
|
||||
{
|
||||
if (!$varName || !isset($this->variables[$varName])) {
|
||||
return "";
|
||||
}
|
||||
$options = $this->variables[$varName];
|
||||
foreach ($options as $valueOptions) {
|
||||
if ($valueOptions[0] === $value) {
|
||||
return $valueOptions[1];
|
||||
}
|
||||
if ($this->credentials != null) {
|
||||
return $this->credentials;
|
||||
}
|
||||
$a = $this->clientToken();
|
||||
$this->credentials = array(
|
||||
"accessToken" => $a["access_token"],
|
||||
"expiresIn" => $a["expires_in"],
|
||||
"tokenType" => $a["token_type"],
|
||||
"scope" => $a["scope"],
|
||||
"refreshToken" => $a["refresh_token"],
|
||||
"clientId" => $a["client_id"],
|
||||
"clientSecret" => $a["client_secret"]
|
||||
);
|
||||
return $this->credentials;
|
||||
}
|
||||
|
||||
private function mergeAppData($app_uid, &$items)
|
||||
public function jsonr(&$json)
|
||||
{
|
||||
foreach ($items as $key => $value) {
|
||||
if (is_array($items[$key])) {
|
||||
$this->mergeAppData($app_uid, $items[$key]);
|
||||
} else {
|
||||
if (isset($items[$key]->name) && isset($this->data[$items[$key]->name])) {
|
||||
if ($items[$key]->type === "grid") {
|
||||
$rows = $this->data[$items[$key]->name];
|
||||
foreach ($json as $key => $value) {
|
||||
$sw1 = is_array($value);
|
||||
$sw2 = is_object($value);
|
||||
if ($sw1 || $sw2) {
|
||||
$this->jsonr($value);
|
||||
}
|
||||
if (!$sw1 && !$sw2) {
|
||||
//property
|
||||
$prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
|
||||
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
|
||||
$triggerValue = substr($value, 2);
|
||||
if (isset($this->app_data[$triggerValue])) {
|
||||
$json->$key = $this->app_data[$triggerValue];
|
||||
}
|
||||
}
|
||||
//data
|
||||
if ($key === "type" && ($value === "text" || $value === "textarea" || $value === "dropdown")) {
|
||||
$json->data = array(
|
||||
"value" => isset($this->data[$json->name]) ? $this->data[$json->name] : "",
|
||||
"label" => isset($this->data[$json->name . "_label"]) ? $this->data[$json->name . "_label"] : ""
|
||||
);
|
||||
}
|
||||
if ($key === "type" && ($value === "suggets")) {
|
||||
$json->data = array(
|
||||
"value" => isset($this->data[$json->name . "_label"]) ? $this->data[$json->name . "_label"] : "",
|
||||
"label" => isset($this->data[$json->name]) ? $this->data[$json->name] : ""
|
||||
);
|
||||
}
|
||||
//query & options
|
||||
if ($key === "type" && ($value === "text" || $value === "textarea" || $value === "dropdown" || $value === "suggets")) {
|
||||
if (!isset($json->dbConnection))
|
||||
$json->dbConnection = "none";
|
||||
if (!isset($json->sql))
|
||||
$json->sql = "";
|
||||
if (!isset($json->options))
|
||||
$json->options = array();
|
||||
if ($json->dbConnection !== "none" && $json->sql !== "") {
|
||||
$cnn = Propel::getConnection($json->dbConnection);
|
||||
$stmt = $cnn->createStatement();
|
||||
$rs = $stmt->executeQuery(\G::replaceDataField($json->sql, array()), \ResultSet::FETCHMODE_NUM);
|
||||
while ($rs->next()) {
|
||||
$row = $rs->getRow();
|
||||
$option = array(
|
||||
"label" => $row[1],
|
||||
"value" => $row[0]
|
||||
);
|
||||
array_push($json->options, $option);
|
||||
}
|
||||
$json->data = isset($json->options[0]) ? $json->options[0] : $json->data;
|
||||
}
|
||||
}
|
||||
//grid
|
||||
if ($key === "type" && ($value === "grid")) {
|
||||
if (isset($this->data[$json->name])) {
|
||||
//rows
|
||||
$rows = $this->data[$json->name];
|
||||
foreach ($rows as $keyRow => $row) {
|
||||
$newRow = array();
|
||||
foreach ($row as $keyCelda => $celda) {
|
||||
array_push($newRow, array(
|
||||
"value" => $celda,
|
||||
"label" => $this->searchValues($keyCelda, $celda)
|
||||
));
|
||||
//cells
|
||||
$cells = array();
|
||||
foreach ($json->columns as $column) {
|
||||
//data
|
||||
if ($column->type === "text" || $column->type === "textarea" || $column->type === "dropdown") {
|
||||
array_push($cells, array(
|
||||
"value" => $row[$column->name],
|
||||
"label" => $row[$column->name . "_label"]
|
||||
));
|
||||
}
|
||||
if ($column->type === "suggest") {
|
||||
array_push($cells, array(
|
||||
"value" => $row[$column->name . "_label"],
|
||||
"label" => $row[$column->name]
|
||||
));
|
||||
}
|
||||
}
|
||||
$rows[$keyRow] = $newRow;
|
||||
$rows[$keyRow] = $cells;
|
||||
}
|
||||
$items[$key]->rows = count($rows);
|
||||
$items[$key]->data = $rows;
|
||||
$json->rows = count($rows);
|
||||
$json->data = $rows;
|
||||
}
|
||||
if ($items[$key]->type !== "grid") {
|
||||
$value = $this->data[$items[$key]->name];
|
||||
$label = "";
|
||||
if (isset($this->data[$items[$key]->name . "_label"])) {
|
||||
$value = $this->data[$items[$key]->name];
|
||||
$label = $this->data[$items[$key]->name . "_label"];
|
||||
}
|
||||
if (isset($this->data[$items[$key]->name . "_value"])) {
|
||||
$value = $this->data[$items[$key]->name . "_value"];
|
||||
$label = $this->data[$items[$key]->name];
|
||||
}
|
||||
$items[$key]->data = array(
|
||||
"value" => $value,
|
||||
"label" => $label
|
||||
);
|
||||
}
|
||||
}
|
||||
if (isset($items[$key]->options) && isset($this->variables[$items[$key]->name])) {
|
||||
$options = $this->variables[$items[$key]->name];
|
||||
$n = count($options);
|
||||
for ($i = 0; $i < $n; $i++) {
|
||||
$options[$i] = array(
|
||||
"value" => $options[$i][0],
|
||||
"label" => $options[$i][1]
|
||||
);
|
||||
}
|
||||
$items[$key]->options = $options;
|
||||
}
|
||||
if (isset($items[$key]->columns)) {
|
||||
$this->mergeAppData($app_uid, $items[$key]->columns);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function mergeDynContentAppData($app_uid, &$items)
|
||||
{
|
||||
$dynContent = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
if (isset($dynContent->items)) {
|
||||
$this->items = $dynContent->items[0]->items;
|
||||
}
|
||||
|
||||
$this->mergeAppData($app_uid, $items);
|
||||
$dynContent->items[0]->items = $this->items;
|
||||
|
||||
$a = G::json_encode($dynContent);
|
||||
$a = str_replace("\/", "/", $a);
|
||||
$this->record["DYN_CONTENT"] = $a;
|
||||
}
|
||||
|
||||
public function isResponsive()
|
||||
{
|
||||
@@ -206,8 +164,9 @@ class pmDynaform
|
||||
public function printView($pm_run_outside_main_app, $application)
|
||||
{
|
||||
ob_clean();
|
||||
$this->mergeDynContentAppData($application, $this->items);
|
||||
|
||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
$this->jsonr($json);
|
||||
|
||||
$a = $this->clientToken();
|
||||
$clientToken = array(
|
||||
"accessToken" => $a["access_token"],
|
||||
@@ -218,16 +177,44 @@ class pmDynaform
|
||||
"clientId" => $a["client_id"],
|
||||
"clientSecret" => $a["client_secret"]
|
||||
);
|
||||
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/cases_Step_Pmdynaform_View.html');
|
||||
$file = str_replace("{JSON_DATA}", $this->record["DYN_CONTENT"], $file);
|
||||
$file = str_replace("{PM_RUN_OUTSIDE_MAIN_APP}", $pm_run_outside_main_app, $file);
|
||||
$file = str_replace("{DYN_UID}", $this->dyn_uid, $file);
|
||||
$file = str_replace("{DYNAFORMNAME}", $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"], $file);
|
||||
$file = str_replace("{APP_UID}", $application, $file);
|
||||
$file = str_replace("{PRJ_UID}", $this->app_data["PROCESS"], $file);
|
||||
$file = str_replace("{WORKSPACE}", $this->app_data["SYS_SYS"], $file);
|
||||
$file = str_replace("{credentials}", json_encode($clientToken), $file);
|
||||
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var pm_run_outside_main_app = '" . $pm_run_outside_main_app . "';\n" .
|
||||
"var dyn_uid = '" . $this->dyn_uid . "';\n" .
|
||||
"var __DynaformName__ = '" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "';\n" .
|
||||
"var app_uid = '" . $application . "';\n" .
|
||||
"var prj_uid = '" . $this->app_data["PROCESS"] . "';\n" .
|
||||
"var step_mode = null;\n" .
|
||||
"var workspace = '" . $this->app_data["SYS_SYS"] . "';\n" .
|
||||
"var credentials = " . G::json_encode($clientToken) . ";\n" .
|
||||
"var filePost = null;\n" .
|
||||
"var fieldsRequired = null;\n" .
|
||||
"$(window).load(function () {\n" .
|
||||
" var data = jsondata;\n" .
|
||||
" data.items[0].mode = 'view';\n" .
|
||||
" window.project = new PMDynaform.core.Project({\n" .
|
||||
" data: data,\n" .
|
||||
" keys: {\n" .
|
||||
" server: location.host,\n" .
|
||||
" projectId: prj_uid,\n" .
|
||||
" workspace: workspace\n" .
|
||||
" },\n" .
|
||||
" token: credentials,\n" .
|
||||
" submitRest: false\n" .
|
||||
" });\n" .
|
||||
" $(document).find('form').submit(function (e) {\n" .
|
||||
" e.preventDefault();\n" .
|
||||
" return false;\n" .
|
||||
" });\n" .
|
||||
"});\n" .
|
||||
"</script>\n";
|
||||
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/pmdynaform.html');
|
||||
$file = str_replace("{javascript}", $javascrip, $file);
|
||||
|
||||
$this->debug();
|
||||
echo $file;
|
||||
exit();
|
||||
}
|
||||
@@ -235,34 +222,44 @@ class pmDynaform
|
||||
public function printEdit($pm_run_outside_main_app, $application, $headData, $step_mode = 'EDIT')
|
||||
{
|
||||
ob_clean();
|
||||
$this->mergeDynContentAppData($application, $this->items);
|
||||
|
||||
$a = $this->clientToken();
|
||||
$clientToken = array(
|
||||
"accessToken" => $a["access_token"],
|
||||
"expiresIn" => $a["expires_in"],
|
||||
"tokenType" => $a["token_type"],
|
||||
"scope" => $a["scope"],
|
||||
"refreshToken" => $a["refresh_token"],
|
||||
"clientId" => $a["client_id"],
|
||||
"clientSecret" => $a["client_secret"]
|
||||
);
|
||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
$this->jsonr($json);
|
||||
$title = "<table width='100%' align='center'>\n" .
|
||||
" <tr class='userGroupTitle'>\n" .
|
||||
" <td width='100%' align='center'>" . $headData["CASE"] . " #: " . $headData["APP_NUMBER"] . " " . $headData["TITLE"] . ": " . $headData["APP_TITLE"] . "</td>\n" .
|
||||
" </tr>\n" .
|
||||
"</table>\n";
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var pm_run_outside_main_app = '" . $pm_run_outside_main_app . "';\n" .
|
||||
"var dyn_uid = '" . $this->dyn_uid . "';\n" .
|
||||
"var __DynaformName__ = '" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "';\n" .
|
||||
"var app_uid = '" . $application . "';\n" .
|
||||
"var prj_uid = '" . $this->app_data["PROCESS"] . "';\n" .
|
||||
"var step_mode = '" . $step_mode . "';\n" .
|
||||
"var workspace = '" . $this->app_data["SYS_SYS"] . "';\n" .
|
||||
"var credentials = " . G::json_encode($this->credentials) . ";\n" .
|
||||
"var filePost = null;\n" .
|
||||
"var fieldsRequired = null;\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/cases_Step.js'></script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
($this->app_data["PRO_SHOW_MESSAGE"] === 1 ? '' : $title ) .
|
||||
"<div style='width:100%;padding:0px 10px 0px 10px;margin:15px 0px 0px 0px;'>\n" .
|
||||
" <img src='/images/bulletButtonLeft.gif' style='float:left;'> \n" .
|
||||
" <a id='dyn_backward' href='' style='float:left;'>\n" .
|
||||
" </a>\n" .
|
||||
" <img src='/images/bulletButton.gif' style='float:right;'> \n" .
|
||||
" <a id='dyn_forward' href='' style='float:right;font-size:12px;line-height:1;margin:0px 5px 1px 0px;'>\n" .
|
||||
" Next Step\n" .
|
||||
" </a>\n" .
|
||||
"</div>";
|
||||
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/cases_Step_Pmdynaform.html');
|
||||
$file = str_replace("{JSON_DATA}", $this->record["DYN_CONTENT"], $file);
|
||||
$file = str_replace("{CASE}", $headData["CASE"], $file);
|
||||
$file = str_replace("{APP_NUMBER}", $headData["APP_NUMBER"], $file);
|
||||
$file = str_replace("{TITLE}", $headData["TITLE"], $file);
|
||||
$file = str_replace("{APP_TITLE}", $headData["APP_TITLE"], $file);
|
||||
$file = str_replace("{PM_RUN_OUTSIDE_MAIN_APP}", $pm_run_outside_main_app, $file);
|
||||
$file = str_replace("{DYN_UID}", $this->dyn_uid, $file);
|
||||
$file = str_replace("{DYNAFORMNAME}", $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"], $file);
|
||||
$file = str_replace("{APP_UID}", $application, $file);
|
||||
$file = str_replace("{PRJ_UID}", $this->app_data["PROCESS"], $file);
|
||||
$file = str_replace("{STEP_MODE}", $step_mode, $file);
|
||||
$file = str_replace("{WORKSPACE}", $this->app_data["SYS_SYS"], $file);
|
||||
$file = str_replace("{PORT}", $_SERVER["SERVER_PORT"] , $file);
|
||||
$file = str_replace("{credentials}", G::json_encode($clientToken), $file);
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/pmdynaform.html');
|
||||
$file = str_replace("{javascript}", $javascrip, $file);
|
||||
|
||||
$this->debug();
|
||||
echo $file;
|
||||
exit();
|
||||
}
|
||||
@@ -270,25 +267,51 @@ class pmDynaform
|
||||
public function printWebEntry($filename)
|
||||
{
|
||||
ob_clean();
|
||||
$a = $this->clientToken();
|
||||
$clientToken = array(
|
||||
"accessToken" => $a["access_token"],
|
||||
"expiresIn" => $a["expires_in"],
|
||||
"tokenType" => $a["token_type"],
|
||||
"scope" => $a["scope"],
|
||||
"refreshToken" => $a["refresh_token"],
|
||||
"clientId" => $a["client_id"],
|
||||
"clientSecret" => $a["client_secret"]
|
||||
);
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/WebEntry_Pmdynaform.html');
|
||||
$file = str_replace("{JSON_DATA}", $this->record["DYN_CONTENT"], $file);
|
||||
$file = str_replace("{DYN_UID}", $this->dyn_uid, $file);
|
||||
$file = str_replace("{PRJ_UID}",$this->record["PRO_UID"], $file);
|
||||
$file = str_replace("{WORKSPACE}", SYS_SYS, $file);
|
||||
$file = str_replace("{FILEPOST}", $filename, $file);
|
||||
$file = str_replace("{PORT}", $_SERVER["SERVER_PORT"] , $file);
|
||||
$file = str_replace("{credentials}", G::json_encode($clientToken), $file);
|
||||
$file = str_replace("{FIELDSREQUIRED}", G::json_encode($this->arrayFieldRequired), $file);
|
||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
$this->jsonr($json);
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var pm_run_outside_main_app = null;\n" .
|
||||
"var dyn_uid = '" . $this->dyn_uid . "';\n" .
|
||||
"var __DynaformName__ = null;\n" .
|
||||
"var app_uid = null;\n" .
|
||||
"var prj_uid = '" . $this->record["PRO_UID"] . "';\n" .
|
||||
"var step_mode = null;\n" .
|
||||
"var workspace = '" . SYS_SYS . "';\n" .
|
||||
"var credentials = " . G::json_encode($this->credentials) . ";\n" .
|
||||
"var filePost = '" . $filename . "';\n" .
|
||||
"var fieldsRequired = " . G::json_encode($this->arrayFieldRequired) . ";\n" .
|
||||
"</script>\n" .
|
||||
"<script type='text/javascript' src='/jscore/cases/core/pmDynaform.js'></script>\n" .
|
||||
"<div style='width:100%;padding: 0px 10px 0px 10px;margin:15px 0px 0px 0px;'>\n" .
|
||||
" <img src='/images/bulletButton.gif' style='float:right;'> \n" .
|
||||
" <a id='dyn_forward' href='' style='float:right;font-size:12px;line-height:1;margin:0px 5px 1px 0px;'>\n" .
|
||||
" Next Step\n" .
|
||||
" </a>\n" .
|
||||
"</div>";
|
||||
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/pmdynaform.html');
|
||||
$file = str_replace("{javascript}", $javascrip, $file);
|
||||
|
||||
$this->debug();
|
||||
echo $file;
|
||||
exit();
|
||||
}
|
||||
|
||||
public function printPmDynaform()
|
||||
{
|
||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||
$this->jsonr($json);
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>" .
|
||||
"var jsonData = " . G::json_encode($json) . ";" .
|
||||
"</script>";
|
||||
|
||||
$file = file_get_contents(PATH_HOME . 'public_html/lib/pmdynaform/build/pmdynaform.html');
|
||||
$file = str_replace("{javascript}", $javascrip, $file);
|
||||
|
||||
$this->debug();
|
||||
echo $file;
|
||||
exit();
|
||||
}
|
||||
@@ -360,4 +383,13 @@ class pmDynaform
|
||||
return array('dsn' => $dsn, 'username' => DB_USER, 'password' => DB_PASS);
|
||||
}
|
||||
|
||||
private function debug()
|
||||
{
|
||||
if ($this->debugMode) {
|
||||
echo "<pre>";
|
||||
echo G::json_encode($json);
|
||||
echo "</pre>";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -151,8 +151,16 @@ class AppDelegation extends BaseAppDelegation
|
||||
if ($this->validate()) {
|
||||
try {
|
||||
$res = $this->save();
|
||||
$inbox = new ListInbox();
|
||||
$inbox->newRow($this->toArray(BasePeer::TYPE_FIELDNAME), $delPreviusUsrUid);
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$task = TaskPeer::retrieveByPK( $this->getTasUid() );
|
||||
$taskType = $task->getTasType();
|
||||
if($taskType == 'NORMAL'){
|
||||
$inbox = new ListInbox();
|
||||
$res = $this->toArray(BasePeer::TYPE_FIELDNAME);
|
||||
$inbox->newRow($this->toArray(BasePeer::TYPE_FIELDNAME), $delPreviusUsrUid);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
} catch (PropelException $e) {
|
||||
throw ($e);
|
||||
}
|
||||
@@ -222,6 +230,10 @@ class AppDelegation extends BaseAppDelegation
|
||||
$c->addSelectColumn( AppDelegationPeer::PRO_UID );
|
||||
$c->addSelectColumn( AppDelegationPeer::TAS_UID );
|
||||
$c->addSelectColumn( AppDelegationPeer::USR_UID );
|
||||
$c->addSelectColumn( AppDelegationPeer::DEL_DELEGATE_DATE );
|
||||
$c->addSelectColumn( AppDelegationPeer::DEL_INIT_DATE );
|
||||
$c->addSelectColumn( AppDelegationPeer::DEL_TASK_DUE_DATE );
|
||||
$c->addSelectColumn( AppDelegationPeer::DEL_FINISH_DATE );
|
||||
|
||||
$c->add( AppDelegationPeer::DEL_THREAD_STATUS, 'OPEN' );
|
||||
$c->add( AppDelegationPeer::APP_UID, $AppUid );
|
||||
@@ -234,8 +246,14 @@ class AppDelegation extends BaseAppDelegation
|
||||
|
||||
while (is_array($row)) {
|
||||
$case = array();
|
||||
$case['TAS_UID'] = $row['TAS_UID'];
|
||||
$case['USR_UID'] = $row['USR_UID'];
|
||||
$case['TAS_UID'] = $row['TAS_UID'];
|
||||
$case['USR_UID'] = $row['USR_UID'];
|
||||
$case['DEL_INDEX'] = $row['DEL_INDEX'];
|
||||
$case['TAS_UID'] = $row['TAS_UID'];
|
||||
$case['DEL_DELEGATE_DATE'] = $row['DEL_DELEGATE_DATE'];
|
||||
$case['DEL_INIT_DATE'] = $row['DEL_INIT_DATE'];
|
||||
$case['DEL_TASK_DUE_DATE'] = $row['DEL_TASK_DUE_DATE'];
|
||||
$case['DEL_FINISH_DATE'] = $row['DEL_FINISH_DATE'];
|
||||
$aCases[] = $case;
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
require_once 'classes/model/om/BaseListInbox.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'LIST_INBOX' table.
|
||||
*
|
||||
@@ -14,6 +13,7 @@ require_once 'classes/model/om/BaseListInbox.php';
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
|
||||
class ListInbox extends BaseListInbox
|
||||
{
|
||||
/**
|
||||
@@ -47,9 +47,11 @@ class ListInbox extends BaseListInbox
|
||||
|
||||
// remove and create participated last
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
$listParticipatedLast->remove($data['APP_UID'], $data['USR_UID']);
|
||||
$listParticipatedLast->remove($data['APP_UID'], $data['USR_UID'],$data['DEL_INDEX']);
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
$listParticipatedLast->create($data);
|
||||
$listParticipatedLast->create($data);
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
$listParticipatedLast->refresh($data);
|
||||
|
||||
return $result;
|
||||
} catch(Exception $e) {
|
||||
@@ -78,14 +80,7 @@ class ListInbox extends BaseListInbox
|
||||
|
||||
// update participated history
|
||||
$listParticipatedHistory = new ListParticipatedHistory();
|
||||
$listParticipatedHistory->update($data);
|
||||
|
||||
$oRow = ListInboxPeer::retrieveByPK( $data['APP_UID'], $data['DEL_INDEX'] );
|
||||
$newData = $oRow->toArray( BasePeer::TYPE_FIELDNAME );
|
||||
|
||||
// update participated last
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
$listParticipatedLast->update($newData);
|
||||
$listParticipatedHistory->update($data);
|
||||
return $result;
|
||||
} else {
|
||||
$con->rollback();
|
||||
@@ -145,6 +140,7 @@ class ListInbox extends BaseListInbox
|
||||
}
|
||||
|
||||
public function newRow ($data, $delPreviusUsrUid) {
|
||||
|
||||
$data['DEL_PREVIOUS_USR_UID'] = $delPreviusUsrUid;
|
||||
if (isset($data['DEL_TASK_DUE_DATE'])) {
|
||||
$data['DEL_DUE_DATE'] = $data['DEL_TASK_DUE_DATE'];
|
||||
@@ -212,6 +208,10 @@ class ListInbox extends BaseListInbox
|
||||
$data['DEL_PREVIOUS_USR_FIRSTNAME'] = $aRow['USR_FIRSTNAME'];
|
||||
$data['DEL_PREVIOUS_USR_LASTNAME'] = $aRow['USR_LASTNAME'];
|
||||
}
|
||||
|
||||
if(!isset($data['APP_STATUS']) && $data['DEL_INDEX']>1){
|
||||
$data['APP_STATUS'] = 'TO_DO';
|
||||
}
|
||||
|
||||
self::create($data);
|
||||
}
|
||||
@@ -300,6 +300,7 @@ class ListInbox extends BaseListInbox
|
||||
$criteria->addSelectColumn(ListInboxPeer::TAS_UID);
|
||||
$criteria->addSelectColumn(ListInboxPeer::PRO_UID);
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_NUMBER);
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_STATUS);
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_TITLE);
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_PRO_TITLE);
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_TAS_TITLE);
|
||||
@@ -328,9 +329,9 @@ class ListInbox extends BaseListInbox
|
||||
$paged = isset($filters['paged']) ? $filters['paged'] : 1;
|
||||
|
||||
if ($filters['action'] == 'draft') {
|
||||
$criteria->add( ListInboxPeer::DEL_INDEX, 1, Criteria::EQUAL );
|
||||
} else {
|
||||
$criteria->add( ListInboxPeer::DEL_INDEX, 1, Criteria::NOT_EQUAL );
|
||||
$criteria->add( ListInboxPeer::APP_STATUS, 'DRAFT', Criteria::EQUAL );
|
||||
} else {
|
||||
$criteria->add( ListInboxPeer::APP_STATUS, 'TO_DO', Criteria::EQUAL );
|
||||
}
|
||||
|
||||
if ($dir == "DESC") {
|
||||
@@ -353,7 +354,6 @@ class ListInbox extends BaseListInbox
|
||||
$aRow['DEL_PRIORITY'] = G::LoadTranslation( "ID_PRIORITY_{$aPriorities[$aRow['DEL_PRIORITY']]}" );
|
||||
$data[] = $aRow;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,8 @@ require_once 'classes/model/om/BaseListParticipatedLast.php';
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
*/
|
||||
|
||||
class ListParticipatedLast extends BaseListParticipatedLast
|
||||
{
|
||||
/**
|
||||
@@ -24,7 +25,7 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
*
|
||||
*/
|
||||
public function create($data)
|
||||
{
|
||||
{
|
||||
$criteria = new Criteria();
|
||||
$criteria->addSelectColumn(UsersPeer::USR_USERNAME);
|
||||
$criteria->addSelectColumn(UsersPeer::USR_FIRSTNAME);
|
||||
@@ -73,7 +74,8 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
* @throws type
|
||||
*/
|
||||
public function update($data)
|
||||
{
|
||||
{
|
||||
$data['DEL_THREAD_STATUS'] = (isset($data['DEL_THREAD_STATUS'])) ? $data['DEL_THREAD_STATUS'] : 'OPEN';
|
||||
$con = Propel::getConnection( ListParticipatedLastPeer::DATABASE_NAME );
|
||||
try {
|
||||
$con->begin();
|
||||
@@ -92,7 +94,34 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
throw ($e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh List Participated Last
|
||||
*
|
||||
* @param type $seqName
|
||||
* @return type
|
||||
* @throws type
|
||||
*
|
||||
*/
|
||||
public function refresh ($data)
|
||||
{
|
||||
$data['APP_STATUS'] = (empty($data['APP_STATUS'])) ? 'TO_DO' : $data['APP_STATUS'];
|
||||
$criteria = new Criteria();
|
||||
$criteria->addSelectColumn(UsersPeer::USR_USERNAME);
|
||||
$criteria->addSelectColumn(UsersPeer::USR_FIRSTNAME);
|
||||
$criteria->addSelectColumn(UsersPeer::USR_LASTNAME);
|
||||
$criteria->add( UsersPeer::USR_UID, $data['USR_UID'], Criteria::EQUAL );
|
||||
$dataset = UsersPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$dataset->next();
|
||||
$aRow = $dataset->getRow();
|
||||
|
||||
$data['DEL_CURRENT_USR_UID'] = $data['USR_UID'];
|
||||
$data['DEL_CURRENT_USR_USERNAME'] = $aRow['USR_USERNAME'];
|
||||
$data['DEL_CURRENT_USR_FIRSTNAME'] = $aRow['USR_FIRSTNAME'];
|
||||
$data['DEL_CURRENT_USR_LASTNAME'] = $aRow['USR_LASTNAME'];
|
||||
$this->update($data);
|
||||
|
||||
}
|
||||
/**
|
||||
* Remove List Participated History
|
||||
*
|
||||
@@ -101,11 +130,12 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
* @throws type
|
||||
*
|
||||
*/
|
||||
public function remove ($app_uid, $usr_uid)
|
||||
public function remove ($app_uid, $usr_uid, $del_index)
|
||||
{
|
||||
$con = Propel::getConnection( ListParticipatedLastPeer::DATABASE_NAME );
|
||||
try {
|
||||
$this->setAppUid($app_uid);
|
||||
$this->setDelIndex($del_index);
|
||||
$this->setUsrUid($usr_uid);
|
||||
|
||||
$con->begin();
|
||||
@@ -140,8 +170,8 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
|
||||
if ($search != '') {
|
||||
$criteria->add(
|
||||
$criteria->getNewCriterion( 'CON_APP.CON_VALUE', '%' . $search . '%', Criteria::LIKE )->
|
||||
addOr( $criteria->getNewCriterion( 'CON_TAS.CON_VALUE', '%' . $search . '%', Criteria::LIKE )->
|
||||
$criteria->getNewCriterion( ListParticipatedLastPeer::APP_TITLE, '%' . $search . '%', Criteria::LIKE )->
|
||||
addOr( $criteria->getNewCriterion( ListParticipatedLastPeer::APP_TAS_TITLE, '%' . $search . '%', Criteria::LIKE )->
|
||||
addOr( $criteria->getNewCriterion( ListParticipatedLastPeer::APP_NUMBER, $search, Criteria::LIKE ) ) ) );
|
||||
}
|
||||
|
||||
@@ -197,6 +227,7 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
$criteria = new Criteria();
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_UID);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::USR_UID);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::TAS_UID);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::PRO_UID);
|
||||
@@ -204,8 +235,7 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_TITLE);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_PRO_TITLE);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_TAS_TITLE);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_STATUS);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_STATUS);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME);
|
||||
@@ -217,6 +247,7 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INIT_DATE);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_DUE_DATE);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PRIORITY);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_THREAD_STATUS);
|
||||
|
||||
$arrayTaskTypeToExclude = array("WEBENTRYEVENT", "END-MESSAGE-EVENT", "START-MESSAGE-EVENT", "INTERMEDIATE-THROW-MESSAGE-EVENT", "INTERMEDIATE-CATCH-MESSAGE-EVENT");
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'LIST_INBOX' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
@@ -16,6 +15,7 @@ include_once 'creole/CreoleTypes.php';
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
|
||||
class ListInboxMapBuilder
|
||||
{
|
||||
|
||||
@@ -76,6 +76,8 @@ class ListInboxMapBuilder
|
||||
$tMap->addColumn('PRO_UID', 'ProUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('APP_NUMBER', 'AppNumber', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('APP_STATUS', 'AppStatus', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('APP_TITLE', 'AppTitle', 'string', CreoleTypes::VARCHAR, true, 255);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'LIST_PARTICIPATED_LAST' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
@@ -16,6 +15,7 @@ include_once 'creole/CreoleTypes.php';
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
|
||||
class ListParticipatedLastMapBuilder
|
||||
{
|
||||
|
||||
@@ -66,7 +66,9 @@ class ListParticipatedLastMapBuilder
|
||||
$tMap->setUseIdGenerator(false);
|
||||
|
||||
$tMap->addPrimaryKey('APP_UID', 'AppUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
|
||||
$tMap->addPrimaryKey('DEL_INDEX', 'DelIndex', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addPrimaryKey('USR_UID', 'UsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('TAS_UID', 'TasUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
@@ -83,8 +85,6 @@ class ListParticipatedLastMapBuilder
|
||||
|
||||
$tMap->addColumn('APP_STATUS', 'AppStatus', 'string', CreoleTypes::VARCHAR, false, 20);
|
||||
|
||||
$tMap->addColumn('DEL_INDEX', 'DelIndex', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('DEL_PREVIOUS_USR_UID', 'DelPreviousUsrUid', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
$tMap->addColumn('DEL_PREVIOUS_USR_USERNAME', 'DelPreviousUsrUsername', 'string', CreoleTypes::VARCHAR, false, 100);
|
||||
@@ -106,6 +106,8 @@ class ListParticipatedLastMapBuilder
|
||||
$tMap->addColumn('DEL_DUE_DATE', 'DelDueDate', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||
|
||||
$tMap->addColumn('DEL_PRIORITY', 'DelPriority', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('DEL_THREAD_STATUS', 'DelThreadStatus', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
|
||||
@@ -9,13 +9,15 @@ include_once 'propel/util/Criteria.php';
|
||||
|
||||
include_once 'classes/model/ListInboxPeer.php';
|
||||
|
||||
|
||||
/**
|
||||
* Base class that represents a row from the 'LIST_INBOX' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
*/
|
||||
|
||||
abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
{
|
||||
|
||||
@@ -62,6 +64,12 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
* @var int
|
||||
*/
|
||||
protected $app_number = 0;
|
||||
|
||||
/**
|
||||
* The value for the app_status field.
|
||||
* @var string
|
||||
*/
|
||||
protected $app_status = '';
|
||||
|
||||
/**
|
||||
* The value for the app_title field.
|
||||
@@ -214,6 +222,17 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
|
||||
return $this->app_number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [app_status] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppStatus()
|
||||
{
|
||||
|
||||
return $this->app_status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [app_title] column value.
|
||||
@@ -562,7 +581,28 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
} // setAppNumber()
|
||||
|
||||
/**
|
||||
* Set the value of [app_status] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setAppStatus($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->app_status !== $v || $v === '') {
|
||||
$this->app_status = $v;
|
||||
$this->modifiedColumns[] = ListInboxPeer::APP_STATUS;
|
||||
}
|
||||
|
||||
} // setAppStatus()
|
||||
/**
|
||||
* Set the value of [app_title] column.
|
||||
*
|
||||
@@ -883,37 +923,39 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
$this->pro_uid = $rs->getString($startcol + 4);
|
||||
|
||||
$this->app_number = $rs->getInt($startcol + 5);
|
||||
|
||||
$this->app_status = $rs->getString($startcol + 6);
|
||||
|
||||
$this->app_title = $rs->getString($startcol + 6);
|
||||
$this->app_title = $rs->getString($startcol + 7);
|
||||
|
||||
$this->app_pro_title = $rs->getString($startcol + 7);
|
||||
$this->app_pro_title = $rs->getString($startcol + 8);
|
||||
|
||||
$this->app_tas_title = $rs->getString($startcol + 8);
|
||||
$this->app_tas_title = $rs->getString($startcol + 9);
|
||||
|
||||
$this->app_update_date = $rs->getTimestamp($startcol + 9, null);
|
||||
$this->app_update_date = $rs->getTimestamp($startcol + 10, null);
|
||||
|
||||
$this->del_previous_usr_uid = $rs->getString($startcol + 10);
|
||||
$this->del_previous_usr_uid = $rs->getString($startcol + 11);
|
||||
|
||||
$this->del_previous_usr_username = $rs->getString($startcol + 11);
|
||||
$this->del_previous_usr_username = $rs->getString($startcol + 12);
|
||||
|
||||
$this->del_previous_usr_firstname = $rs->getString($startcol + 12);
|
||||
$this->del_previous_usr_firstname = $rs->getString($startcol + 13);
|
||||
|
||||
$this->del_previous_usr_lastname = $rs->getString($startcol + 13);
|
||||
$this->del_previous_usr_lastname = $rs->getString($startcol + 14);
|
||||
|
||||
$this->del_delegate_date = $rs->getTimestamp($startcol + 14, null);
|
||||
$this->del_delegate_date = $rs->getTimestamp($startcol + 15, null);
|
||||
|
||||
$this->del_init_date = $rs->getTimestamp($startcol + 15, null);
|
||||
$this->del_init_date = $rs->getTimestamp($startcol + 16, null);
|
||||
|
||||
$this->del_due_date = $rs->getTimestamp($startcol + 16, null);
|
||||
$this->del_due_date = $rs->getTimestamp($startcol + 17, null);
|
||||
|
||||
$this->del_priority = $rs->getString($startcol + 17);
|
||||
$this->del_priority = $rs->getString($startcol + 18);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 18; // 18 = ListInboxPeer::NUM_COLUMNS - ListInboxPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 19; // 18 = ListInboxPeer::NUM_COLUMNS - ListInboxPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating ListInbox object", $e);
|
||||
@@ -1136,41 +1178,45 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
return $this->getAppNumber();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getAppTitle();
|
||||
return $this->getAppStatus();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getAppProTitle();
|
||||
return $this->getAppTitle();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getAppTasTitle();
|
||||
return $this->getAppProTitle();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getAppUpdateDate();
|
||||
return $this->getAppTasTitle();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getDelPreviousUsrUid();
|
||||
return $this->getAppUpdateDate();
|
||||
break;
|
||||
case 11:
|
||||
return $this->getDelPreviousUsrUsername();
|
||||
return $this->getDelPreviousUsrUid();
|
||||
break;
|
||||
case 12:
|
||||
return $this->getDelPreviousUsrFirstname();
|
||||
return $this->getDelPreviousUsrUsername();
|
||||
break;
|
||||
case 13:
|
||||
return $this->getDelPreviousUsrLastname();
|
||||
return $this->getDelPreviousUsrFirstname();
|
||||
break;
|
||||
case 14:
|
||||
return $this->getDelDelegateDate();
|
||||
return $this->getDelPreviousUsrLastname();
|
||||
break;
|
||||
case 15:
|
||||
return $this->getDelInitDate();
|
||||
return $this->getDelDelegateDate();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getDelDueDate();
|
||||
return $this->getDelInitDate();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getDelDueDate();
|
||||
break;
|
||||
case 18:
|
||||
return $this->getDelPriority();
|
||||
break;
|
||||
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -1197,18 +1243,19 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
$keys[3] => $this->getTasUid(),
|
||||
$keys[4] => $this->getProUid(),
|
||||
$keys[5] => $this->getAppNumber(),
|
||||
$keys[6] => $this->getAppTitle(),
|
||||
$keys[7] => $this->getAppProTitle(),
|
||||
$keys[8] => $this->getAppTasTitle(),
|
||||
$keys[9] => $this->getAppUpdateDate(),
|
||||
$keys[10] => $this->getDelPreviousUsrUid(),
|
||||
$keys[11] => $this->getDelPreviousUsrUsername(),
|
||||
$keys[12] => $this->getDelPreviousUsrFirstname(),
|
||||
$keys[13] => $this->getDelPreviousUsrLastname(),
|
||||
$keys[14] => $this->getDelDelegateDate(),
|
||||
$keys[15] => $this->getDelInitDate(),
|
||||
$keys[16] => $this->getDelDueDate(),
|
||||
$keys[17] => $this->getDelPriority(),
|
||||
$keys[6] => $this->getAppStatus(),
|
||||
$keys[7] => $this->getAppTitle(),
|
||||
$keys[8] => $this->getAppProTitle(),
|
||||
$keys[9] => $this->getAppTasTitle(),
|
||||
$keys[10] => $this->getAppUpdateDate(),
|
||||
$keys[11] => $this->getDelPreviousUsrUid(),
|
||||
$keys[12] => $this->getDelPreviousUsrUsername(),
|
||||
$keys[13] => $this->getDelPreviousUsrFirstname(),
|
||||
$keys[14] => $this->getDelPreviousUsrLastname(),
|
||||
$keys[15] => $this->getDelDelegateDate(),
|
||||
$keys[16] => $this->getDelInitDate(),
|
||||
$keys[17] => $this->getDelDueDate(),
|
||||
$keys[18] => $this->getDelPriority(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1259,39 +1306,42 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
$this->setAppNumber($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setAppTitle($value);
|
||||
$this->setAppStatus($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setAppProTitle($value);
|
||||
$this->setAppTitle($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setAppTasTitle($value);
|
||||
$this->setAppProTitle($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setAppUpdateDate($value);
|
||||
$this->setAppTasTitle($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setDelPreviousUsrUid($value);
|
||||
$this->setAppUpdateDate($value);
|
||||
break;
|
||||
case 11:
|
||||
$this->setDelPreviousUsrUsername($value);
|
||||
$this->setDelPreviousUsrUid($value);
|
||||
break;
|
||||
case 12:
|
||||
$this->setDelPreviousUsrFirstname($value);
|
||||
$this->setDelPreviousUsrUsername($value);
|
||||
break;
|
||||
case 13:
|
||||
$this->setDelPreviousUsrLastname($value);
|
||||
$this->setDelPreviousUsrFirstname($value);
|
||||
break;
|
||||
case 14:
|
||||
$this->setDelDelegateDate($value);
|
||||
$this->setDelPreviousUsrLastname($value);
|
||||
break;
|
||||
case 15:
|
||||
$this->setDelInitDate($value);
|
||||
$this->setDelDelegateDate($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setDelDueDate($value);
|
||||
$this->setDelInitDate($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setDelDueDate($value);
|
||||
break;
|
||||
case 18:
|
||||
$this->setDelPriority($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -1340,53 +1390,57 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setAppNumber($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setAppTitle($arr[$keys[6]]);
|
||||
$this->setAppStatus($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setAppProTitle($arr[$keys[7]]);
|
||||
$this->setAppTitle($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setAppTasTitle($arr[$keys[8]]);
|
||||
$this->setAppProTitle($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setAppUpdateDate($arr[$keys[9]]);
|
||||
$this->setAppTasTitle($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setDelPreviousUsrUid($arr[$keys[10]]);
|
||||
$this->setAppUpdateDate($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setDelPreviousUsrUsername($arr[$keys[11]]);
|
||||
$this->setDelPreviousUsrUid($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setDelPreviousUsrFirstname($arr[$keys[12]]);
|
||||
$this->setDelPreviousUsrUsername($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[13], $arr)) {
|
||||
$this->setDelPreviousUsrLastname($arr[$keys[13]]);
|
||||
$this->setDelPreviousUsrFirstname($arr[$keys[13]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[14], $arr)) {
|
||||
$this->setDelDelegateDate($arr[$keys[14]]);
|
||||
$this->setDelPreviousUsrLastname($arr[$keys[14]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[15], $arr)) {
|
||||
$this->setDelInitDate($arr[$keys[15]]);
|
||||
$this->setDelDelegateDate($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setDelDueDate($arr[$keys[16]]);
|
||||
$this->setDelInitDate($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setDelPriority($arr[$keys[17]]);
|
||||
$this->setDelDueDate($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[18], $arr)) {
|
||||
$this->setDelPriority($arr[$keys[18]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1423,6 +1477,10 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(ListInboxPeer::APP_NUMBER)) {
|
||||
$criteria->add(ListInboxPeer::APP_NUMBER, $this->app_number);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListInboxPeer::APP_STATUS)) {
|
||||
$criteria->add(ListInboxPeer::APP_STATUS, $this->app_status);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListInboxPeer::APP_TITLE)) {
|
||||
$criteria->add(ListInboxPeer::APP_TITLE, $this->app_title);
|
||||
@@ -1545,6 +1603,8 @@ abstract class BaseListInbox extends BaseObject implements Persistent
|
||||
$copyObj->setProUid($this->pro_uid);
|
||||
|
||||
$copyObj->setAppNumber($this->app_number);
|
||||
|
||||
$copyObj->setAppStatus($this->app_status);
|
||||
|
||||
$copyObj->setAppTitle($this->app_title);
|
||||
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
<?php
|
||||
|
||||
|
||||
require_once 'propel/util/BasePeer.php';
|
||||
// The object class -- needed for instanceof checks in this class.
|
||||
// actual class may be a subclass -- as returned by ListInboxPeer::getOMClass()
|
||||
include_once 'classes/model/ListInbox.php';
|
||||
|
||||
|
||||
/**
|
||||
* Base static class for performing query and update operations on the 'LIST_INBOX' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
*/
|
||||
|
||||
abstract class BaseListInboxPeer
|
||||
{
|
||||
|
||||
@@ -48,6 +51,9 @@ abstract class BaseListInboxPeer
|
||||
|
||||
/** the column name for the APP_NUMBER field */
|
||||
const APP_NUMBER = 'LIST_INBOX.APP_NUMBER';
|
||||
|
||||
/** the column name for the APP_STATUS field */
|
||||
const APP_STATUS = 'LIST_INBOX.APP_STATUS';
|
||||
|
||||
/** the column name for the APP_TITLE field */
|
||||
const APP_TITLE = 'LIST_INBOX.APP_TITLE';
|
||||
@@ -96,10 +102,10 @@ abstract class BaseListInboxPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppUpdateDate', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
|
||||
BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID, ListInboxPeer::DEL_INDEX, ListInboxPeer::USR_UID, ListInboxPeer::TAS_UID, ListInboxPeer::PRO_UID, ListInboxPeer::APP_NUMBER, ListInboxPeer::APP_TITLE, ListInboxPeer::APP_PRO_TITLE, ListInboxPeer::APP_TAS_TITLE, ListInboxPeer::APP_UPDATE_DATE, ListInboxPeer::DEL_PREVIOUS_USR_UID, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME, ListInboxPeer::DEL_DELEGATE_DATE, ListInboxPeer::DEL_INIT_DATE, ListInboxPeer::DEL_DUE_DATE, ListInboxPeer::DEL_PRIORITY, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_UPDATE_DATE', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppStatus','AppTitle', 'AppProTitle', 'AppTasTitle', 'AppUpdateDate', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
|
||||
BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID, ListInboxPeer::DEL_INDEX, ListInboxPeer::USR_UID, ListInboxPeer::TAS_UID, ListInboxPeer::PRO_UID, ListInboxPeer::APP_NUMBER, ListInboxPeer::APP_STATUS, ListInboxPeer::APP_TITLE, ListInboxPeer::APP_PRO_TITLE, ListInboxPeer::APP_TAS_TITLE, ListInboxPeer::APP_UPDATE_DATE, ListInboxPeer::DEL_PREVIOUS_USR_UID, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME, ListInboxPeer::DEL_DELEGATE_DATE, ListInboxPeer::DEL_INIT_DATE, ListInboxPeer::DEL_DUE_DATE, ListInboxPeer::DEL_PRIORITY, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_STATUS', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_UPDATE_DATE', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -110,9 +116,9 @@ abstract class BaseListInboxPeer
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 1, 'UsrUid' => 2, 'TasUid' => 3, 'ProUid' => 4, 'AppNumber' => 5, 'AppTitle' => 6, 'AppProTitle' => 7, 'AppTasTitle' => 8, 'AppUpdateDate' => 9, 'DelPreviousUsrUid' => 10, 'DelPreviousUsrUsername' => 11, 'DelPreviousUsrFirstname' => 12, 'DelPreviousUsrLastname' => 13, 'DelDelegateDate' => 14, 'DelInitDate' => 15, 'DelDueDate' => 16, 'DelPriority' => 17, ),
|
||||
BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID => 0, ListInboxPeer::DEL_INDEX => 1, ListInboxPeer::USR_UID => 2, ListInboxPeer::TAS_UID => 3, ListInboxPeer::PRO_UID => 4, ListInboxPeer::APP_NUMBER => 5, ListInboxPeer::APP_TITLE => 6, ListInboxPeer::APP_PRO_TITLE => 7, ListInboxPeer::APP_TAS_TITLE => 8, ListInboxPeer::APP_UPDATE_DATE => 9, ListInboxPeer::DEL_PREVIOUS_USR_UID => 10, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME => 11, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME => 12, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME => 13, ListInboxPeer::DEL_DELEGATE_DATE => 14, ListInboxPeer::DEL_INIT_DATE => 15, ListInboxPeer::DEL_DUE_DATE => 16, ListInboxPeer::DEL_PRIORITY => 17, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_TITLE' => 6, 'APP_PRO_TITLE' => 7, 'APP_TAS_TITLE' => 8, 'APP_UPDATE_DATE' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_PREVIOUS_USR_USERNAME' => 11, 'DEL_PREVIOUS_USR_FIRSTNAME' => 12, 'DEL_PREVIOUS_USR_LASTNAME' => 13, 'DEL_DELEGATE_DATE' => 14, 'DEL_INIT_DATE' => 15, 'DEL_DUE_DATE' => 16, 'DEL_PRIORITY' => 17, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
BasePeer::TYPE_COLNAME => array (ListInboxPeer::APP_UID => 0, ListInboxPeer::DEL_INDEX => 1, ListInboxPeer::USR_UID => 2, ListInboxPeer::TAS_UID => 3, ListInboxPeer::PRO_UID => 4, ListInboxPeer::APP_NUMBER => 5, ListInboxPeer::APP_STATUS => 6, ListInboxPeer::APP_TITLE => 7, ListInboxPeer::APP_PRO_TITLE => 8, ListInboxPeer::APP_TAS_TITLE => 9, ListInboxPeer::APP_UPDATE_DATE => 10, ListInboxPeer::DEL_PREVIOUS_USR_UID => 11, ListInboxPeer::DEL_PREVIOUS_USR_USERNAME => 12, ListInboxPeer::DEL_PREVIOUS_USR_FIRSTNAME => 13, ListInboxPeer::DEL_PREVIOUS_USR_LASTNAME => 14, ListInboxPeer::DEL_DELEGATE_DATE => 15, ListInboxPeer::DEL_INIT_DATE => 16, ListInboxPeer::DEL_DUE_DATE => 17, ListInboxPeer::DEL_PRIORITY => 18, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_STATUS' => 6, 'APP_TITLE' => 7, 'APP_PRO_TITLE' => 8, 'APP_TAS_TITLE' => 9, 'APP_UPDATE_DATE' => 10, 'DEL_PREVIOUS_USR_UID' => 11, 'DEL_PREVIOUS_USR_USERNAME' => 12, 'DEL_PREVIOUS_USR_FIRSTNAME' => 13, 'DEL_PREVIOUS_USR_LASTNAME' => 14, 'DEL_DELEGATE_DATE' => 15, 'DEL_INIT_DATE' => 16, 'DEL_DUE_DATE' => 17, 'DEL_PRIORITY' => 18, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -224,6 +230,8 @@ abstract class BaseListInboxPeer
|
||||
$criteria->addSelectColumn(ListInboxPeer::PRO_UID);
|
||||
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_NUMBER);
|
||||
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_STATUS);
|
||||
|
||||
$criteria->addSelectColumn(ListInboxPeer::APP_TITLE);
|
||||
|
||||
|
||||
@@ -9,13 +9,15 @@ include_once 'propel/util/Criteria.php';
|
||||
|
||||
include_once 'classes/model/ListParticipatedLastPeer.php';
|
||||
|
||||
|
||||
/**
|
||||
* Base class that represents a row from the 'LIST_PARTICIPATED_LAST' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
*/
|
||||
|
||||
abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
{
|
||||
|
||||
@@ -33,6 +35,12 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $app_uid = '';
|
||||
|
||||
/**
|
||||
* The value for the del_index field.
|
||||
* @var int
|
||||
*/
|
||||
protected $del_index = 0;
|
||||
|
||||
/**
|
||||
* The value for the usr_uid field.
|
||||
* @var string
|
||||
@@ -81,12 +89,6 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $app_status = '0';
|
||||
|
||||
/**
|
||||
* The value for the del_index field.
|
||||
* @var int
|
||||
*/
|
||||
protected $del_index = 0;
|
||||
|
||||
/**
|
||||
* The value for the del_previous_usr_uid field.
|
||||
* @var string
|
||||
@@ -152,6 +154,12 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
* @var string
|
||||
*/
|
||||
protected $del_priority = '3';
|
||||
|
||||
/**
|
||||
* The value for the del_thread_status field.
|
||||
* @var string
|
||||
*/
|
||||
protected $del_thread_status = '';
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
@@ -177,7 +185,18 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
return $this->app_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [del_index] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getDelIndex()
|
||||
{
|
||||
|
||||
return $this->del_index;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [usr_uid] column value.
|
||||
*
|
||||
@@ -265,18 +284,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
return $this->app_status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [del_index] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getDelIndex()
|
||||
{
|
||||
|
||||
return $this->del_index;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the [del_previous_usr_uid] column value.
|
||||
*
|
||||
@@ -460,6 +468,17 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
return $this->del_priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [del_thread_status] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDelThreadStatus()
|
||||
{
|
||||
|
||||
return $this->del_thread_status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [app_uid] column.
|
||||
@@ -482,6 +501,28 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
} // setAppUid()
|
||||
|
||||
/**
|
||||
* Set the value of [del_index] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setDelIndex($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
if ($this->del_index !== $v || $v === 0) {
|
||||
$this->del_index = $v;
|
||||
$this->modifiedColumns[] = ListParticipatedLastPeer::DEL_INDEX;
|
||||
}
|
||||
|
||||
} // setDelIndex()
|
||||
|
||||
/**
|
||||
* Set the value of [usr_uid] column.
|
||||
@@ -659,28 +700,6 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
} // setAppStatus()
|
||||
|
||||
/**
|
||||
* Set the value of [del_index] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setDelIndex($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is integer,
|
||||
// we will cast the input value to an int (if it is not).
|
||||
if ($v !== null && !is_int($v) && is_numeric($v)) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
if ($this->del_index !== $v || $v === 0) {
|
||||
$this->del_index = $v;
|
||||
$this->modifiedColumns[] = ListParticipatedLastPeer::DEL_INDEX;
|
||||
}
|
||||
|
||||
} // setDelIndex()
|
||||
|
||||
/**
|
||||
* Set the value of [del_previous_usr_uid] column.
|
||||
*
|
||||
@@ -943,6 +962,28 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
} // setDelPriority()
|
||||
|
||||
/**
|
||||
* Set the value of [del_thread_status] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setDelThreadStatus($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->del_thread_status !== $v || $v === 'OPEN') {
|
||||
$this->del_thread_status = $v;
|
||||
$this->modifiedColumns[] = ListParticipatedLastPeer::DEL_THREAD_STATUS;
|
||||
}
|
||||
|
||||
} // setDelThreadStatus()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
@@ -962,24 +1003,24 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
try {
|
||||
|
||||
$this->app_uid = $rs->getString($startcol + 0);
|
||||
|
||||
$this->del_index = $rs->getInt($startcol + 1);
|
||||
|
||||
$this->usr_uid = $rs->getString($startcol + 1);
|
||||
$this->usr_uid = $rs->getString($startcol + 2);
|
||||
|
||||
$this->tas_uid = $rs->getString($startcol + 2);
|
||||
$this->tas_uid = $rs->getString($startcol + 3);
|
||||
|
||||
$this->pro_uid = $rs->getString($startcol + 3);
|
||||
$this->pro_uid = $rs->getString($startcol + 4);
|
||||
|
||||
$this->app_number = $rs->getInt($startcol + 4);
|
||||
$this->app_number = $rs->getInt($startcol + 5);
|
||||
|
||||
$this->app_title = $rs->getString($startcol + 5);
|
||||
$this->app_title = $rs->getString($startcol + 6);
|
||||
|
||||
$this->app_pro_title = $rs->getString($startcol + 6);
|
||||
$this->app_pro_title = $rs->getString($startcol + 7);
|
||||
|
||||
$this->app_tas_title = $rs->getString($startcol + 7);
|
||||
$this->app_tas_title = $rs->getString($startcol + 8);
|
||||
|
||||
$this->app_status = $rs->getString($startcol + 8);
|
||||
|
||||
$this->del_index = $rs->getInt($startcol + 9);
|
||||
$this->app_status = $rs->getString($startcol + 9);
|
||||
|
||||
$this->del_previous_usr_uid = $rs->getString($startcol + 10);
|
||||
|
||||
@@ -1002,13 +1043,15 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$this->del_due_date = $rs->getTimestamp($startcol + 19, null);
|
||||
|
||||
$this->del_priority = $rs->getString($startcol + 20);
|
||||
|
||||
$this->del_thread_status = $rs->getString($startcol + 21);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 21; // 21 = ListParticipatedLastPeer::NUM_COLUMNS - ListParticipatedLastPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 22; // 22 = ListParticipatedLastPeer::NUM_COLUMNS - ListParticipatedLastPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating ListParticipatedLast object", $e);
|
||||
@@ -1216,32 +1259,32 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
return $this->getAppUid();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getUsrUid();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getTasUid();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getAppNumber();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getAppTitle();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getAppProTitle();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getAppTasTitle();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getAppStatus();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getDelIndex();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getUsrUid();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getTasUid();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getAppNumber();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getAppTitle();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getAppProTitle();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getAppTasTitle();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getAppStatus();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getDelPreviousUsrUid();
|
||||
break;
|
||||
@@ -1275,6 +1318,9 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
case 20:
|
||||
return $this->getDelPriority();
|
||||
break;
|
||||
case 21:
|
||||
return $this->getDelThreadStatus();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -1296,15 +1342,15 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$keys = ListParticipatedLastPeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getAppUid(),
|
||||
$keys[1] => $this->getUsrUid(),
|
||||
$keys[2] => $this->getTasUid(),
|
||||
$keys[3] => $this->getProUid(),
|
||||
$keys[4] => $this->getAppNumber(),
|
||||
$keys[5] => $this->getAppTitle(),
|
||||
$keys[6] => $this->getAppProTitle(),
|
||||
$keys[7] => $this->getAppTasTitle(),
|
||||
$keys[8] => $this->getAppStatus(),
|
||||
$keys[9] => $this->getDelIndex(),
|
||||
$keys[1] => $this->getDelIndex(),
|
||||
$keys[2] => $this->getUsrUid(),
|
||||
$keys[3] => $this->getTasUid(),
|
||||
$keys[4] => $this->getProUid(),
|
||||
$keys[5] => $this->getAppNumber(),
|
||||
$keys[6] => $this->getAppTitle(),
|
||||
$keys[7] => $this->getAppProTitle(),
|
||||
$keys[8] => $this->getAppTasTitle(),
|
||||
$keys[9] => $this->getAppStatus(),
|
||||
$keys[10] => $this->getDelPreviousUsrUid(),
|
||||
$keys[11] => $this->getDelPreviousUsrUsername(),
|
||||
$keys[12] => $this->getDelPreviousUsrFirstname(),
|
||||
@@ -1316,6 +1362,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$keys[18] => $this->getDelInitDate(),
|
||||
$keys[19] => $this->getDelDueDate(),
|
||||
$keys[20] => $this->getDelPriority(),
|
||||
$keys[21] => $this->getDelThreadStatus(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1351,32 +1398,32 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$this->setAppUid($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setDelIndex($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setUsrUid($value);
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
$this->setTasUid($value);
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
$this->setProUid($value);
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
$this->setAppNumber($value);
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
$this->setAppTitle($value);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
$this->setAppProTitle($value);
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
$this->setAppTasTitle($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setAppStatus($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setDelIndex($value);
|
||||
break;
|
||||
$this->setAppStatus($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setDelPreviousUsrUid($value);
|
||||
break;
|
||||
@@ -1410,6 +1457,9 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
case 20:
|
||||
$this->setDelPriority($value);
|
||||
break;
|
||||
case 21:
|
||||
$this->setDelThreadStatus($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -1436,42 +1486,42 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[0], $arr)) {
|
||||
$this->setAppUid($arr[$keys[0]]);
|
||||
}
|
||||
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setUsrUid($arr[$keys[1]]);
|
||||
$this->setDelIndex($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setTasUid($arr[$keys[2]]);
|
||||
$this->setUsrUid($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setProUid($arr[$keys[3]]);
|
||||
$this->setTasUid($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setAppNumber($arr[$keys[4]]);
|
||||
$this->setProUid($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setAppTitle($arr[$keys[5]]);
|
||||
$this->setAppNumber($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setAppProTitle($arr[$keys[6]]);
|
||||
$this->setAppTitle($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setAppTasTitle($arr[$keys[7]]);
|
||||
$this->setAppProTitle($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setAppStatus($arr[$keys[8]]);
|
||||
$this->setAppTasTitle($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setDelIndex($arr[$keys[9]]);
|
||||
}
|
||||
$this->setAppStatus($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setDelPreviousUsrUid($arr[$keys[10]]);
|
||||
@@ -1516,6 +1566,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[20], $arr)) {
|
||||
$this->setDelPriority($arr[$keys[20]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[21], $arr)) {
|
||||
$this->setDelThreadStatus($arr[$keys[21]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1531,6 +1585,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::APP_UID)) {
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $this->app_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_INDEX)) {
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::USR_UID)) {
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $this->usr_uid);
|
||||
@@ -1562,11 +1620,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::APP_STATUS)) {
|
||||
$criteria->add(ListParticipatedLastPeer::APP_STATUS, $this->app_status);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_INDEX)) {
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID)) {
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, $this->del_previous_usr_uid);
|
||||
@@ -1611,6 +1665,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_PRIORITY)) {
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_PRIORITY, $this->del_priority);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ListParticipatedLastPeer::DEL_THREAD_STATUS)) {
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_THREAD_STATUS, $this->del_thread_status);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
@@ -1629,6 +1687,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$criteria = new Criteria(ListParticipatedLastPeer::DATABASE_NAME);
|
||||
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $this->app_uid);
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $this->del_index);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $this->usr_uid);
|
||||
|
||||
return $criteria;
|
||||
@@ -1644,8 +1703,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$pks = array();
|
||||
|
||||
$pks[0] = $this->getAppUid();
|
||||
|
||||
$pks[1] = $this->getDelIndex();
|
||||
|
||||
$pks[1] = $this->getUsrUid();
|
||||
$pks[2] = $this->getUsrUid();
|
||||
|
||||
return $pks;
|
||||
}
|
||||
@@ -1660,8 +1721,10 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
{
|
||||
|
||||
$this->setAppUid($keys[0]);
|
||||
|
||||
$this->setDelIndex($keys[1]);
|
||||
|
||||
$this->setUsrUid($keys[1]);
|
||||
$this->setUsrUid($keys[2]);
|
||||
|
||||
}
|
||||
|
||||
@@ -1692,7 +1755,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setAppStatus($this->app_status);
|
||||
|
||||
$copyObj->setDelIndex($this->del_index);
|
||||
// $copyObj->setDelIndex($this->del_index);
|
||||
|
||||
$copyObj->setDelPreviousUsrUid($this->del_previous_usr_uid);
|
||||
|
||||
@@ -1715,11 +1778,15 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
||||
$copyObj->setDelDueDate($this->del_due_date);
|
||||
|
||||
$copyObj->setDelPriority($this->del_priority);
|
||||
|
||||
$copyObj->setDelThreadStatus($this->del_thread_status);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
$copyObj->setAppUid(''); // this is a pkey column, so set to default value
|
||||
|
||||
$copyObj->setDelIndex(''); // this is a pkey column, so set to default value
|
||||
|
||||
$copyObj->setUsrUid(''); // this is a pkey column, so set to default value
|
||||
|
||||
|
||||
@@ -5,13 +5,15 @@ require_once 'propel/util/BasePeer.php';
|
||||
// actual class may be a subclass -- as returned by ListParticipatedLastPeer::getOMClass()
|
||||
include_once 'classes/model/ListParticipatedLast.php';
|
||||
|
||||
|
||||
/**
|
||||
* Base static class for performing query and update operations on the 'LIST_PARTICIPATED_LAST' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
*/
|
||||
|
||||
abstract class BaseListParticipatedLastPeer
|
||||
{
|
||||
|
||||
@@ -33,6 +35,9 @@ abstract class BaseListParticipatedLastPeer
|
||||
|
||||
/** the column name for the APP_UID field */
|
||||
const APP_UID = 'LIST_PARTICIPATED_LAST.APP_UID';
|
||||
|
||||
/** the column name for the DEL_INDEX field */
|
||||
const DEL_INDEX = 'LIST_PARTICIPATED_LAST.DEL_INDEX';
|
||||
|
||||
/** the column name for the USR_UID field */
|
||||
const USR_UID = 'LIST_PARTICIPATED_LAST.USR_UID';
|
||||
@@ -56,10 +61,7 @@ abstract class BaseListParticipatedLastPeer
|
||||
const APP_TAS_TITLE = 'LIST_PARTICIPATED_LAST.APP_TAS_TITLE';
|
||||
|
||||
/** the column name for the APP_STATUS field */
|
||||
const APP_STATUS = 'LIST_PARTICIPATED_LAST.APP_STATUS';
|
||||
|
||||
/** the column name for the DEL_INDEX field */
|
||||
const DEL_INDEX = 'LIST_PARTICIPATED_LAST.DEL_INDEX';
|
||||
const APP_STATUS = 'LIST_PARTICIPATED_LAST.APP_STATUS';
|
||||
|
||||
/** the column name for the DEL_PREVIOUS_USR_UID field */
|
||||
const DEL_PREVIOUS_USR_UID = 'LIST_PARTICIPATED_LAST.DEL_PREVIOUS_USR_UID';
|
||||
@@ -93,6 +95,9 @@ abstract class BaseListParticipatedLastPeer
|
||||
|
||||
/** the column name for the DEL_PRIORITY field */
|
||||
const DEL_PRIORITY = 'LIST_PARTICIPATED_LAST.DEL_PRIORITY';
|
||||
|
||||
/** the column name for the DEL_THREAD_STATUS field */
|
||||
const DEL_THREAD_STATUS = 'LIST_PARTICIPATED_LAST.DEL_THREAD_STATUS';
|
||||
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
@@ -105,10 +110,10 @@ abstract class BaseListParticipatedLastPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppStatus', 'DelIndex', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelCurrentUsrUsername', 'DelCurrentUsrFirstname', 'DelCurrentUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', ),
|
||||
BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID, ListParticipatedLastPeer::USR_UID, ListParticipatedLastPeer::TAS_UID, ListParticipatedLastPeer::PRO_UID, ListParticipatedLastPeer::APP_NUMBER, ListParticipatedLastPeer::APP_TITLE, ListParticipatedLastPeer::APP_PRO_TITLE, ListParticipatedLastPeer::APP_TAS_TITLE, ListParticipatedLastPeer::APP_STATUS, ListParticipatedLastPeer::DEL_INDEX, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME, ListParticipatedLastPeer::DEL_DELEGATE_DATE, ListParticipatedLastPeer::DEL_INIT_DATE, ListParticipatedLastPeer::DEL_DUE_DATE, ListParticipatedLastPeer::DEL_PRIORITY, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_STATUS', 'DEL_INDEX', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_CURRENT_USR_USERNAME', 'DEL_CURRENT_USR_FIRSTNAME', 'DEL_CURRENT_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid', 'DelIndex', 'UsrUid', 'TasUid', 'ProUid', 'AppNumber', 'AppTitle', 'AppProTitle', 'AppTasTitle', 'AppStatus', 'DelPreviousUsrUid', 'DelPreviousUsrUsername', 'DelPreviousUsrFirstname', 'DelPreviousUsrLastname', 'DelCurrentUsrUsername', 'DelCurrentUsrFirstname', 'DelCurrentUsrLastname', 'DelDelegateDate', 'DelInitDate', 'DelDueDate', 'DelPriority', 'DelPriority', 'DelThreadStatus'),
|
||||
BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID, ListParticipatedLastPeer::DEL_INDEX, ListParticipatedLastPeer::USR_UID, ListParticipatedLastPeer::TAS_UID, ListParticipatedLastPeer::PRO_UID, ListParticipatedLastPeer::APP_NUMBER, ListParticipatedLastPeer::APP_TITLE, ListParticipatedLastPeer::APP_PRO_TITLE, ListParticipatedLastPeer::APP_TAS_TITLE, ListParticipatedLastPeer::APP_STATUS, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME, ListParticipatedLastPeer::DEL_DELEGATE_DATE, ListParticipatedLastPeer::DEL_INIT_DATE, ListParticipatedLastPeer::DEL_DUE_DATE, ListParticipatedLastPeer::DEL_PRIORITY, ListParticipatedLastPeer::DEL_THREAD_STATUS, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID', 'DEL_INDEX', 'USR_UID', 'TAS_UID', 'PRO_UID', 'APP_NUMBER', 'APP_TITLE', 'APP_PRO_TITLE', 'APP_TAS_TITLE', 'APP_STATUS', 'DEL_PREVIOUS_USR_UID', 'DEL_PREVIOUS_USR_USERNAME', 'DEL_PREVIOUS_USR_FIRSTNAME', 'DEL_PREVIOUS_USR_LASTNAME', 'DEL_CURRENT_USR_USERNAME', 'DEL_CURRENT_USR_FIRSTNAME', 'DEL_CURRENT_USR_LASTNAME', 'DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_DUE_DATE', 'DEL_PRIORITY', 'DEL_THREAD_STATUS', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -118,10 +123,10 @@ abstract class BaseListParticipatedLastPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'UsrUid' => 1, 'TasUid' => 2, 'ProUid' => 3, 'AppNumber' => 4, 'AppTitle' => 5, 'AppProTitle' => 6, 'AppTasTitle' => 7, 'AppStatus' => 8, 'DelIndex' => 9, 'DelPreviousUsrUid' => 10, 'DelPreviousUsrUsername' => 11, 'DelPreviousUsrFirstname' => 12, 'DelPreviousUsrLastname' => 13, 'DelCurrentUsrUsername' => 14, 'DelCurrentUsrFirstname' => 15, 'DelCurrentUsrLastname' => 16, 'DelDelegateDate' => 17, 'DelInitDate' => 18, 'DelDueDate' => 19, 'DelPriority' => 20, ),
|
||||
BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID => 0, ListParticipatedLastPeer::USR_UID => 1, ListParticipatedLastPeer::TAS_UID => 2, ListParticipatedLastPeer::PRO_UID => 3, ListParticipatedLastPeer::APP_NUMBER => 4, ListParticipatedLastPeer::APP_TITLE => 5, ListParticipatedLastPeer::APP_PRO_TITLE => 6, ListParticipatedLastPeer::APP_TAS_TITLE => 7, ListParticipatedLastPeer::APP_STATUS => 8, ListParticipatedLastPeer::DEL_INDEX => 9, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID => 10, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME => 11, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME => 12, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME => 13, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME => 14, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME => 15, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME => 16, ListParticipatedLastPeer::DEL_DELEGATE_DATE => 17, ListParticipatedLastPeer::DEL_INIT_DATE => 18, ListParticipatedLastPeer::DEL_DUE_DATE => 19, ListParticipatedLastPeer::DEL_PRIORITY => 20, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'USR_UID' => 1, 'TAS_UID' => 2, 'PRO_UID' => 3, 'APP_NUMBER' => 4, 'APP_TITLE' => 5, 'APP_PRO_TITLE' => 6, 'APP_TAS_TITLE' => 7, 'APP_STATUS' => 8, 'DEL_INDEX' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_PREVIOUS_USR_USERNAME' => 11, 'DEL_PREVIOUS_USR_FIRSTNAME' => 12, 'DEL_PREVIOUS_USR_LASTNAME' => 13, 'DEL_CURRENT_USR_USERNAME' => 14, 'DEL_CURRENT_USR_FIRSTNAME' => 15, 'DEL_CURRENT_USR_LASTNAME' => 16, 'DEL_DELEGATE_DATE' => 17, 'DEL_INIT_DATE' => 18, 'DEL_DUE_DATE' => 19, 'DEL_PRIORITY' => 20, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppUid' => 0, 'DelIndex' => 2, 'UsrUid' => 3, 'TasUid' => 4, 'ProUid' => 5, 'AppNumber' => 6, 'AppTitle' => 7, 'AppProTitle' => 8, 'AppTasTitle' => 9, 'AppStatus' => 9, 'DelPreviousUsrUid' => 10, 'DelPreviousUsrUsername' => 11, 'DelPreviousUsrFirstname' => 12, 'DelPreviousUsrLastname' => 13, 'DelCurrentUsrUsername' => 14, 'DelCurrentUsrFirstname' => 15, 'DelCurrentUsrLastname' => 16, 'DelDelegateDate' => 17, 'DelInitDate' => 18, 'DelDueDate' => 19, 'DelPriority' => 20, 'DelThreadStatus' => 21,),
|
||||
BasePeer::TYPE_COLNAME => array (ListParticipatedLastPeer::APP_UID => 0, ListParticipatedLastPeer::DEL_INDEX => 1, ListParticipatedLastPeer::USR_UID => 2, ListParticipatedLastPeer::TAS_UID => 3, ListParticipatedLastPeer::PRO_UID => 4, ListParticipatedLastPeer::APP_NUMBER => 5, ListParticipatedLastPeer::APP_TITLE => 6, ListParticipatedLastPeer::APP_PRO_TITLE => 7, ListParticipatedLastPeer::APP_TAS_TITLE => 8, ListParticipatedLastPeer::APP_STATUS => 9, ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID => 10, ListParticipatedLastPeer::DEL_PREVIOUS_USR_USERNAME => 11, ListParticipatedLastPeer::DEL_PREVIOUS_USR_FIRSTNAME => 12, ListParticipatedLastPeer::DEL_PREVIOUS_USR_LASTNAME => 13, ListParticipatedLastPeer::DEL_CURRENT_USR_USERNAME => 14, ListParticipatedLastPeer::DEL_CURRENT_USR_FIRSTNAME => 15, ListParticipatedLastPeer::DEL_CURRENT_USR_LASTNAME => 16, ListParticipatedLastPeer::DEL_DELEGATE_DATE => 17, ListParticipatedLastPeer::DEL_INIT_DATE => 18, ListParticipatedLastPeer::DEL_DUE_DATE => 19, ListParticipatedLastPeer::DEL_PRIORITY => 20, ListParticipatedLastPeer::DEL_THREAD_STATUS => 21, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_UID' => 0, 'DEL_INDEX' => 1, 'USR_UID' => 2, 'TAS_UID' => 3, 'PRO_UID' => 4, 'APP_NUMBER' => 5, 'APP_TITLE' => 6, 'APP_PRO_TITLE' => 7, 'APP_TAS_TITLE' => 8, 'APP_STATUS' => 9, 'DEL_PREVIOUS_USR_UID' => 10, 'DEL_PREVIOUS_USR_USERNAME' => 11, 'DEL_PREVIOUS_USR_FIRSTNAME' => 12, 'DEL_PREVIOUS_USR_LASTNAME' => 13, 'DEL_CURRENT_USR_USERNAME' => 14, 'DEL_CURRENT_USR_FIRSTNAME' => 15, 'DEL_CURRENT_USR_LASTNAME' => 16, 'DEL_DELEGATE_DATE' => 17, 'DEL_INIT_DATE' => 18, 'DEL_DUE_DATE' => 19, 'DEL_PRIORITY' => 20, 'DEL_THREAD_STATUS' => 21, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -223,6 +228,8 @@ abstract class BaseListParticipatedLastPeer
|
||||
{
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_UID);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::USR_UID);
|
||||
|
||||
@@ -238,9 +245,7 @@ abstract class BaseListParticipatedLastPeer
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_TAS_TITLE);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_STATUS);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_INDEX);
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::APP_STATUS);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PREVIOUS_USR_UID);
|
||||
|
||||
@@ -263,6 +268,8 @@ abstract class BaseListParticipatedLastPeer
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_DUE_DATE);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_PRIORITY);
|
||||
|
||||
$criteria->addSelectColumn(ListParticipatedLastPeer::DEL_THREAD_STATUS);
|
||||
|
||||
}
|
||||
|
||||
@@ -478,6 +485,9 @@ abstract class BaseListParticipatedLastPeer
|
||||
|
||||
$comparison = $criteria->getComparison(ListParticipatedLastPeer::APP_UID);
|
||||
$selectCriteria->add(ListParticipatedLastPeer::APP_UID, $criteria->remove(ListParticipatedLastPeer::APP_UID), $comparison);
|
||||
|
||||
$comparison = $criteria->getComparison(ListParticipatedLastPeer::DEL_INDEX);
|
||||
$selectCriteria->add(ListParticipatedLastPeer::DEL_INDEX, $criteria->remove(ListParticipatedLastPeer::DEL_INDEX), $comparison);
|
||||
|
||||
$comparison = $criteria->getComparison(ListParticipatedLastPeer::USR_UID);
|
||||
$selectCriteria->add(ListParticipatedLastPeer::USR_UID, $criteria->remove(ListParticipatedLastPeer::USR_UID), $comparison);
|
||||
@@ -555,10 +565,12 @@ abstract class BaseListParticipatedLastPeer
|
||||
|
||||
$vals[0][] = $value[0];
|
||||
$vals[1][] = $value[1];
|
||||
$vals[2][] = $value[2];
|
||||
}
|
||||
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $vals[0], Criteria::IN);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $vals[1], Criteria::IN);
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $vals[1], Criteria::IN);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $vals[2], Criteria::IN);
|
||||
}
|
||||
|
||||
// Set the correct dbName
|
||||
@@ -624,13 +636,14 @@ abstract class BaseListParticipatedLastPeer
|
||||
* @param Connection $con
|
||||
* @return ListParticipatedLast
|
||||
*/
|
||||
public static function retrieveByPK($app_uid, $usr_uid, $con = null)
|
||||
public static function retrieveByPK($app_uid, $usr_uid, $del_index, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
$criteria = new Criteria();
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $app_uid);
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $del_index);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $usr_uid);
|
||||
$v = ListParticipatedLastPeer::doSelect($criteria, $con);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2199,6 +2199,7 @@ CREATE TABLE `LIST_INBOX`
|
||||
`TAS_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`PRO_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`APP_NUMBER` INTEGER default 0 NOT NULL,
|
||||
`APP_STATUS` VARCHAR(32) default '' NOT NULL,
|
||||
`APP_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_PRO_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_TAS_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
@@ -2212,7 +2213,7 @@ CREATE TABLE `LIST_INBOX`
|
||||
`DEL_DUE_DATE` DATETIME,
|
||||
`DEL_PRIORITY` VARCHAR(32) default '3' NOT NULL,
|
||||
PRIMARY KEY (`APP_UID`,`DEL_INDEX`),
|
||||
KEY `indexInboxUser`(`USR_UID`, `DEL_DELEGATE_DATE`)
|
||||
KEY `indexInboxUser`(`USR_UID`, `DEL_DELEGATE_DATE`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Inbox list';
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- LIST_PARTICIPATED_HISTORY
|
||||
@@ -2256,6 +2257,7 @@ DROP TABLE IF EXISTS `LIST_PARTICIPATED_LAST`;
|
||||
CREATE TABLE `LIST_PARTICIPATED_LAST`
|
||||
(
|
||||
`APP_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`DEL_INDEX` INTEGER default 0 NOT NULL,
|
||||
`USR_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`TAS_UID` VARCHAR(32) default '' NOT NULL,
|
||||
`PRO_UID` VARCHAR(32) default '' NOT NULL,
|
||||
@@ -2264,7 +2266,6 @@ CREATE TABLE `LIST_PARTICIPATED_LAST`
|
||||
`APP_PRO_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_TAS_TITLE` VARCHAR(255) default '' NOT NULL,
|
||||
`APP_STATUS` VARCHAR(20) default '0',
|
||||
`DEL_INDEX` INTEGER default 0 NOT NULL,
|
||||
`DEL_PREVIOUS_USR_UID` VARCHAR(32) default '',
|
||||
`DEL_PREVIOUS_USR_USERNAME` VARCHAR(100) default '',
|
||||
`DEL_PREVIOUS_USR_FIRSTNAME` VARCHAR(50) default '',
|
||||
@@ -2276,7 +2277,8 @@ CREATE TABLE `LIST_PARTICIPATED_LAST`
|
||||
`DEL_INIT_DATE` DATETIME,
|
||||
`DEL_DUE_DATE` DATETIME,
|
||||
`DEL_PRIORITY` VARCHAR(32) default '3' NOT NULL,
|
||||
PRIMARY KEY (`APP_UID`,`USR_UID`)
|
||||
`DEL_THREAD_STATUS` VARCHAR(32) default 'OPEN' NOT NULL,
|
||||
PRIMARY KEY (`APP_UID`,`DEL_INDEX`,`USR_UID`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Participated last list';
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- LIST_COMPLETED
|
||||
|
||||
@@ -26,14 +26,13 @@ $(window).load(function () {
|
||||
if (parent.showCaseNavigatorPanel) {
|
||||
parent.showCaseNavigatorPanel('DRAFT');
|
||||
}
|
||||
|
||||
if (parent.setCurrent) {
|
||||
parent.setCurrent(dyn_uid);
|
||||
}
|
||||
}
|
||||
|
||||
var data = jsondata;
|
||||
data.items[0].mode = step_mode.toLowerCase();
|
||||
if (step_mode)
|
||||
data.items[0].mode = step_mode.toLowerCase();
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
@@ -69,8 +68,12 @@ $(window).load(function () {
|
||||
appuid.type = "hidden";
|
||||
appuid.name = "APP_UID";
|
||||
appuid.value = app_uid;
|
||||
var arrayRequired = document.createElement("input");
|
||||
arrayRequired.type = "hidden";
|
||||
arrayRequired.name = "DynaformRequiredFields";
|
||||
arrayRequired.value = fieldsRequired;
|
||||
var form = document.getElementsByTagName("form")[0];
|
||||
form.action = "cases_SaveData?UID=" + dyn_uid + "&APP_UID=" + app_uid;
|
||||
form.action = filePost ? filePost : "cases_SaveData?UID=" + dyn_uid + "&APP_UID=" + app_uid;
|
||||
form.method = "post";
|
||||
form.enctype = "multipart/form-data";
|
||||
form.appendChild(type);
|
||||
@@ -79,7 +82,7 @@ $(window).load(function () {
|
||||
form.appendChild(action);
|
||||
form.appendChild(dynaformname);
|
||||
form.appendChild(appuid);
|
||||
|
||||
form.appendChild(arrayRequired);
|
||||
var dyn_forward = document.getElementById("dyn_forward");
|
||||
dyn_forward.onclick = function () {
|
||||
form.submit();
|
||||
@@ -1,86 +0,0 @@
|
||||
function dynaFormChanged(frm) {
|
||||
for (var i1 = 0; i1 <= frm.elements.length - 1; i1++) {
|
||||
if ((frm.elements[i1].type === "radio" || frm.elements[i1].type === "checkbox") && (frm.elements[i1].checked !== frm.elements[i1].defaultChecked)) {
|
||||
return true;
|
||||
}
|
||||
if ((frm.elements[i1].type === "textarea" || frm.elements[i1].type === "text" || frm.elements[i1].type === "file") && (frm.elements[i1].value !== frm.elements[i1].defaultValue)) {
|
||||
return true;
|
||||
}
|
||||
if (frm.elements[i1].tagName.toLowerCase() === "select") {
|
||||
var selectDefaultValue = frm.elements[i1].value;
|
||||
for (var i2 = 0; i2 <= frm.elements[i1].options.length - 1; i2++) {
|
||||
if (frm.elements[i1].options[i2].defaultSelected) {
|
||||
selectDefaultValue = frm.elements[i1].options[i2].value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (frm.elements[i1].value !== selectDefaultValue) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
$(window).load(function () {
|
||||
/*if ((navigator.userAgent.indexOf("MSIE") !== -1) || (navigator.userAgent.indexOf("Trident") !== -1)) {
|
||||
document.body.innerHTML = "<div style='margin:15px'>Responsive Dynaforms are not supported in this browser.</div>";
|
||||
return;
|
||||
}*/
|
||||
var data = jsondata;
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
server: location.host,
|
||||
projectId: prj_uid,
|
||||
workspace: workspace
|
||||
},
|
||||
token: credentials,
|
||||
submitRest: false
|
||||
});
|
||||
|
||||
var type = document.createElement("input");
|
||||
type.type = "hidden";
|
||||
type.name = "TYPE";
|
||||
type.value = "ASSIGN_TASK";
|
||||
var uid = document.createElement("input");
|
||||
uid.type = "hidden";
|
||||
uid.name = "UID";
|
||||
uid.value = dyn_uid;
|
||||
var position = document.createElement("input");
|
||||
position.type = "hidden";
|
||||
position.name = "POSITION";
|
||||
position.value = "10000";
|
||||
var action = document.createElement("input");
|
||||
action.type = "hidden";
|
||||
action.name = "ACTION";
|
||||
action.value = "ASSIGN";
|
||||
var dynaformname = document.createElement("input");
|
||||
dynaformname.type = "hidden";
|
||||
dynaformname.name = "__DynaformName__";
|
||||
//dynaformname.value = __DynaformName__;
|
||||
var appuid = document.createElement("input");
|
||||
appuid.type = "hidden";
|
||||
appuid.name = "APP_UID";
|
||||
|
||||
var arrayRequired = document.createElement("input");
|
||||
arrayRequired.type = "hidden";
|
||||
arrayRequired.name = "DynaformRequiredFields";
|
||||
arrayRequired.value = fieldsRequired;
|
||||
//appuid.value = app_uid;
|
||||
var form = document.getElementsByTagName("form")[0];
|
||||
form.action = filePost;
|
||||
form.method = "post";
|
||||
form.appendChild(type);
|
||||
form.appendChild(uid);
|
||||
form.appendChild(position);
|
||||
form.appendChild(action);
|
||||
form.appendChild(dynaformname);
|
||||
form.appendChild(appuid);
|
||||
form.appendChild(arrayRequired);
|
||||
|
||||
var dyn_forward = document.getElementById("dyn_forward");
|
||||
dyn_forward.onclick = function () {
|
||||
form.submit();
|
||||
return false;
|
||||
};
|
||||
});
|
||||
@@ -3,12 +3,13 @@ unset($_SESSION['APPLICATION']);
|
||||
|
||||
//get the action from GET or POST, default is todo
|
||||
$action = isset( $_GET['action'] ) ? $_GET['action'] : (isset( $_POST['action'] ) ? $_POST['action'] : 'todo');
|
||||
//fix a previous inconsistency
|
||||
|
||||
//fix a previous inconsistency
|
||||
$urlProxy = 'proxyCasesList';
|
||||
if ($action == 'selfservice') {
|
||||
$action = 'unassigned';
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$urlProxy = '/api/1.0/' . SYS_SYS . '/lists/';
|
||||
switch ($action) {
|
||||
@@ -37,7 +38,7 @@ switch ($action) {
|
||||
case 'my-inbox':
|
||||
$urlProxy .= 'my-inbox';
|
||||
break;
|
||||
case 'selfservice':
|
||||
case 'unassigned':
|
||||
$urlProxy = 'proxyCasesList';
|
||||
$action = 'unassigned';
|
||||
break;
|
||||
|
||||
@@ -115,25 +115,41 @@ $objProc = new Process();
|
||||
$aProc = $objProc->load( $Fields['PRO_UID'] );
|
||||
$Fields['PRO_TITLE'] = $aProc['PRO_TITLE'];
|
||||
|
||||
$objTask = new Task();
|
||||
//$aTask = $objTask->load( $Fields['TAS_UID'] );
|
||||
//$Fields['TAS_TITLE'] = $aTask['TAS_TITLE'];
|
||||
|
||||
if (isset($_SESSION['ACTION']) && ($_SESSION['ACTION'] == 'jump')) {
|
||||
$task = explode('-', $Fields['TAS_UID']);
|
||||
$Fields['TAS_TITLE'] = '';
|
||||
for( $i = 0; $i < sizeof($task)-1; $i ++ ) {
|
||||
$aTask = $objTask->load( $task[$i] );
|
||||
$Fields['TAS_TITLE'][] = $aTask['TAS_TITLE'];
|
||||
}
|
||||
$Fields['TAS_TITLE'] = implode(" - ", array_values($Fields['TAS_TITLE']));
|
||||
} else {
|
||||
$aTask = $objTask->load( $Fields['TAS_UID'] );
|
||||
$Fields['TAS_TITLE'] = $aTask['TAS_TITLE'];
|
||||
}
|
||||
|
||||
$objTask = new Task();
|
||||
$aTask = $objTask->load( $Fields['TAS_UID'] );
|
||||
$Fields['TAS_TITLE'] = $aTask['TAS_TITLE'];
|
||||
|
||||
$objUser = new Users();
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptFile( '/jscore/cases/core/cases_Step.js' );
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Resume.xml', '', $Fields, '' );
|
||||
if($Fields['APP_STATUS'] != 'COMPLETED'){
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Resume_Current_Task_Title.xml', '', $Fields, '' );
|
||||
$objDel = new AppDelegation();
|
||||
$parallel = $objDel->LoadParallel ($Fields['APP_UID']);
|
||||
$FieldsPar = $Fields;
|
||||
if(empty($parallel)){
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Resume_Current_Task.xml', '', $Fields, '' );
|
||||
}else{
|
||||
foreach($parallel as $row){
|
||||
$FieldsPar['TAS_UID'] = $row['TAS_UID'];
|
||||
$aTask = $objTask->load( $row['TAS_UID'] );
|
||||
$FieldsPar['TAS_TITLE'] = $aTask['TAS_TITLE'];
|
||||
$FieldsPar['USR_UID'] = $row['USR_UID'];
|
||||
$aUser = $objUser->loadDetails ($row['USR_UID']);
|
||||
$FieldsPar['CURRENT_USER'] = $aUser['USR_FULLNAME'];
|
||||
$FieldsPar['DEL_DELEGATE_DATE'] = $row['DEL_DELEGATE_DATE'];
|
||||
$FieldsPar['DEL_INIT_DATE'] = $row['DEL_INIT_DATE'];
|
||||
$FieldsPar['DEL_TASK_DUE_DATE'] = $row['DEL_TASK_DUE_DATE'];
|
||||
$FieldsPar['DEL_FINISH_DATE'] = $row['DEL_FINISH_DATE'];
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Resume_Current_Task.xml', '', $FieldsPar, '' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
|
||||
|
||||
@@ -271,6 +271,7 @@ try {
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform($_GET['UID'], $Fields['APP_DATA']);
|
||||
if ($a->isResponsive()) {
|
||||
$a->app_data["PRO_SHOW_MESSAGE"] = $noShowTitle;
|
||||
$a->printEdit((!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) ? "true" : "false", $_SESSION['APPLICATION'], $array, $oStep->getStepMode());
|
||||
} else {
|
||||
$G_PUBLISH->AddContent('dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['UID'], '', $Fields['APP_DATA'], 'cases_SaveData?UID=' . $_GET['UID'] . '&APP_UID=' . $_SESSION['APPLICATION'], '', (strtolower($oStep->getStepMode()) != 'edit' ? strtolower($oStep->getStepMode()) : ''));
|
||||
|
||||
@@ -91,10 +91,8 @@ while ($ds->next()) {
|
||||
$row = $ds->getRow();
|
||||
$bpmnProjects[] = $row['PRJ_UID'];
|
||||
}
|
||||
|
||||
$oStep = new Step();
|
||||
$oStep = $oStep->loadByProcessTaskPosition( $case['PRO_UID'], $case['TAS_UID'], 1 );
|
||||
|
||||
$oHeadPublisher->assign( 'uri', $script . $uri );
|
||||
$oHeadPublisher->assign( '_APP_NUM', '#: ' . $case['APP_NUMBER'] );
|
||||
$oHeadPublisher->assign( '_PROJECT_TYPE', in_array($case['PRO_UID'], $bpmnProjects) ? 'bpmn' : 'classic' );
|
||||
|
||||
6
workflow/engine/methods/cases/pmDynaform.php
Normal file
6
workflow/engine/methods/cases/pmDynaform.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$DYN_UID = $_GET["dyn_uid"];
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform($DYN_UID);
|
||||
$a->printPmDynaform();
|
||||
@@ -13,7 +13,7 @@ class EmailServer
|
||||
"MESS_PASSWORD" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "emailServerPassword"),
|
||||
"MESS_FROM_MAIL" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "emailServerFromMail"),
|
||||
"MESS_FROM_NAME" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "emailServerFromName"),
|
||||
"SMTPSECURE" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("No", "tls", "ssl"), "fieldNameAux" => "emailServerSecureConnection"),
|
||||
"SMTPSECURE" => array("type" => "string", "required" => false, "empty" => false, "defaultValues" => array("No", "tls", "ssl", "none"), "fieldNameAux" => "emailServerSecureConnection"),
|
||||
"MESS_TRY_SEND_INMEDIATLY" => array("type" => "int", "required" => false, "empty" => false, "defaultValues" => array(0, 1), "fieldNameAux" => "emailServerSendTestMail"),
|
||||
"MAIL_TO" => array("type" => "string", "required" => false, "empty" => true, "defaultValues" => array(), "fieldNameAux" => "emailServerMailTo"),
|
||||
"MESS_DEFAULT" => array("type" => "int", "required" => false, "empty" => false, "defaultValues" => array(0, 1), "fieldNameAux" => "emailServerDefault")
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
namespace ProcessMaker\BusinessModel;
|
||||
|
||||
use \G;
|
||||
|
||||
/**
|
||||
@@ -18,7 +17,7 @@ class Lists {
|
||||
*
|
||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||
* @copyright Colosa - Bolivia
|
||||
*/
|
||||
*/
|
||||
public function getList($listName = 'inbox', $dataList = array(), $total = false)
|
||||
{
|
||||
Validator::isArray($dataList, '$dataList');
|
||||
@@ -31,7 +30,6 @@ class Lists {
|
||||
$userUid = $dataList["userId"];
|
||||
$filters["paged"] = isset( $dataList["paged"] ) ? $dataList["paged"] : true;
|
||||
$filters['count'] = isset( $dataList['count'] ) ? $dataList['count'] : true;
|
||||
|
||||
$filters["category"] = isset( $dataList["category"] ) ? $dataList["category"] : "";
|
||||
$filters["process"] = isset( $dataList["process"] ) ? $dataList["process"] : "";
|
||||
$filters["search"] = isset( $dataList["search"] ) ? $dataList["search"] : "";
|
||||
@@ -87,7 +85,7 @@ class Lists {
|
||||
$filters["start"] = (int)$filters["start"];
|
||||
$filters["start"] = abs($filters["start"]);
|
||||
if ($filters["start"] != 0) {
|
||||
$filters["start"]--;
|
||||
$filters["start"]+1;
|
||||
}
|
||||
|
||||
$filters["limit"] = (int)$filters["limit"];
|
||||
@@ -162,11 +160,10 @@ class Lists {
|
||||
//$value = array_change_key_case($value, CASE_LOWER);
|
||||
}
|
||||
}
|
||||
|
||||
$response = array();
|
||||
if ($filters["paged"]) {
|
||||
$filtersData = array();
|
||||
$filtersData['start'] = $filters["start"]+1;
|
||||
$filtersData['start'] = $filters["start"];
|
||||
$filtersData['limit'] = $filters["limit"];
|
||||
$filtersData['sort'] = G::toLower($filters["sort"]);
|
||||
$filtersData['dir'] = G::toLower($filters["dir"]);
|
||||
@@ -177,11 +174,10 @@ class Lists {
|
||||
$filtersData['date_to'] = $filters["dateTo"];
|
||||
$response['filters'] = $filtersData;
|
||||
$response['data'] = $result;
|
||||
$response['totalCount'] = $list->countTotal($userUid, $filters);
|
||||
$response['totalCount'] = $list->countTotal($userUid, $filtersData);
|
||||
} else {
|
||||
$response = $result;
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
@@ -213,23 +213,23 @@ class Process
|
||||
if ($arrayFieldDefinition[$fieldName]["empty"] && $fieldValue . "" == "") {
|
||||
//
|
||||
} else {
|
||||
$eregDate = "[1-9]\d{3}\-(?:0[1-9]|1[012])\-(?:[0][1-9]|[12][0-9]|3[01])";
|
||||
$eregHour = "(?:[0-1]\d|2[0-3])\:(?:[0-5]\d)(?:\:[0-5]\d)?";
|
||||
$eregDatetime = $eregDate . "\s" . $eregHour;
|
||||
$regexpDate = "[1-9]\d{3}\-(?:0[1-9]|1[012])\-(?:[0][1-9]|[12][0-9]|3[01])";
|
||||
$regexpHour = "(?:[0-1]\d|2[0-3])\:(?:[0-5]\d)(?:\:[0-5]\d)?";
|
||||
$regexpDatetime = $regexpDate . "\s" . $regexpHour;
|
||||
|
||||
switch ($arrayFieldDefinition[$fieldName]["type"]) {
|
||||
case "date":
|
||||
if (!preg_match("/^" . $eregDate . "$/", $fieldValue)) {
|
||||
if (!preg_match("/^" . $regexpDate . "$/", $fieldValue)) {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE", array($fieldNameAux)));
|
||||
}
|
||||
break;
|
||||
case "hour":
|
||||
if (!preg_match("/^" . $eregHour . "$/", $fieldValue)) {
|
||||
if (!preg_match("/^" . $regexpHour . "$/", $fieldValue)) {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE", array($fieldNameAux)));
|
||||
}
|
||||
break;
|
||||
case "datetime":
|
||||
if (!preg_match("/^" . $eregDatetime . "$/", $fieldValue)) {
|
||||
if (!preg_match("/^" . $regexpDatetime . "$/", $fieldValue)) {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE", array($fieldNameAux)));
|
||||
}
|
||||
break;
|
||||
@@ -239,9 +239,12 @@ class Process
|
||||
case 2:
|
||||
switch ($arrayFieldDefinition[$fieldName]["type"]) {
|
||||
case "array":
|
||||
$regexpArray1 = "\s*array\s*\(";
|
||||
$regexpArray2 = "\)\s*";
|
||||
|
||||
//type
|
||||
if (!is_array($fieldValue)) {
|
||||
if ($fieldValue != "" && !preg_match("/^\s*array\s*\(.*\)\s*$/", $fieldValue)) {
|
||||
if ($fieldValue != "" && !preg_match("/^" . $regexpArray1 . ".*" . $regexpArray2 . "$/", $fieldValue)) {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_THIS_MUST_BE_ARRAY", array($fieldNameAux)));
|
||||
}
|
||||
}
|
||||
@@ -255,7 +258,13 @@ class Process
|
||||
}
|
||||
|
||||
if (is_string($fieldValue) && trim($fieldValue) . "" != "") {
|
||||
eval("\$arrayAux = $fieldValue;");
|
||||
//eval("\$arrayAux = $fieldValue;");
|
||||
|
||||
if (preg_match("/^" . $regexpArray1 . "(.*)" . $regexpArray2 . "$/", $fieldValue, $arrayMatch)) {
|
||||
if (trim($arrayMatch[1], " ,") != "") {
|
||||
$arrayAux = array(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (count($arrayAux) == 0) {
|
||||
|
||||
@@ -24,8 +24,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -45,8 +45,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -63,8 +63,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -83,8 +83,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Inbox
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -98,8 +98,8 @@ class Lists extends Api
|
||||
* @url GET /total
|
||||
*/
|
||||
public function doGetCountInbox(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -108,8 +108,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -132,8 +132,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -153,8 +153,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -170,8 +170,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -188,8 +188,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Participated Last
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -203,8 +203,8 @@ class Lists extends Api
|
||||
* @url GET /participated-last/total
|
||||
*/
|
||||
public function doGetCountParticipatedLast(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -213,8 +213,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -237,8 +237,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -257,8 +257,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -274,8 +274,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -292,8 +292,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Participated History
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -306,8 +306,8 @@ class Lists extends Api
|
||||
* @url GET /participated-history/total
|
||||
*/
|
||||
public function doGetCountParticipatedHistory(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -316,8 +316,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -343,8 +343,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -363,8 +363,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_PAUSED_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -380,8 +380,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -398,8 +398,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Paused
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -412,8 +412,8 @@ class Lists extends Api
|
||||
* @url GET /paused/total
|
||||
*/
|
||||
public function doGetCountPaused(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -422,8 +422,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -448,8 +448,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -468,8 +468,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_CANCELED_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -485,8 +485,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -503,8 +503,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Canceled
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -517,8 +517,8 @@ class Lists extends Api
|
||||
* @url GET /canceled/total
|
||||
*/
|
||||
public function doGetCountCanceled(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -527,8 +527,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -552,8 +552,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -572,8 +572,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -589,8 +589,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -607,8 +607,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Participated History
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -621,8 +621,8 @@ class Lists extends Api
|
||||
* @url GET /completed/total
|
||||
*/
|
||||
public function doGetCountCompleted(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -631,8 +631,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -656,8 +656,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -676,8 +676,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -693,8 +693,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -711,8 +711,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Participated History
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -725,8 +725,8 @@ class Lists extends Api
|
||||
* @url GET /my-inbox/total
|
||||
*/
|
||||
public function doGetCountListMyInbox(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -735,8 +735,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -759,8 +759,8 @@ class Lists extends Api
|
||||
* @param string $limit {@from path}
|
||||
* @param string $sort {@from path}
|
||||
* @param string $dir {@from path}
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -779,8 +779,8 @@ class Lists extends Api
|
||||
$limit = 0,
|
||||
$sort = 'APP_UPDATE_DATE',
|
||||
$dir = 'DESC',
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -797,8 +797,8 @@ class Lists extends Api
|
||||
$dataList['sort'] = $sort;
|
||||
$dataList['dir'] = $dir;
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
@@ -815,8 +815,8 @@ class Lists extends Api
|
||||
/**
|
||||
* Get count list Unassigned
|
||||
*
|
||||
* @param string $cat_uid {@from path}
|
||||
* @param string $pro_uid {@from path}
|
||||
* @param string $category {@from path}
|
||||
* @param string $process {@from path}
|
||||
* @param string $search {@from path}
|
||||
* @param string $filter {@from path}
|
||||
* @param string $date_from {@from path}
|
||||
@@ -829,8 +829,8 @@ class Lists extends Api
|
||||
* @url GET /unassigned/total
|
||||
*/
|
||||
public function doGetCountUnassigned(
|
||||
$cat_uid = '',
|
||||
$pro_uid = '',
|
||||
$category = '',
|
||||
$process = '',
|
||||
$search = '',
|
||||
$filter = '',
|
||||
$date_from = '',
|
||||
@@ -839,8 +839,8 @@ class Lists extends Api
|
||||
try {
|
||||
$dataList['userId'] = $this->getUserId();
|
||||
|
||||
$dataList['category'] = $cat_uid;
|
||||
$dataList['process'] = $pro_uid;
|
||||
$dataList['category'] = $category;
|
||||
$dataList['process'] = $process;
|
||||
$dataList['search'] = $search;
|
||||
$dataList['filter'] = $filter;
|
||||
$dataList['dateFrom'] = $date_from;
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PMDynaform</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/build/css/PMDynaform.css">
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/jquery/jquery-1.11.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/bootstrap-3.1.1/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/backbone/backbone-min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/restclient/restclient.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
###TEMPLATES###
|
||||
<script type="text/javascript" src="/lib/pmdynaform/build/js/PMDynaform.js"></script>
|
||||
<script type="text/javascript">
|
||||
var jsondata = {JSON_DATA};
|
||||
//var pm_run_outside_main_app = '{PM_RUN_OUTSIDE_MAIN_APP}';
|
||||
var dyn_uid = '{DYN_UID}';
|
||||
//var __DynaformName__ = '{DYNAFORMNAME}';
|
||||
//var app_uid = '{APP_UID}';
|
||||
var prj_uid = '{PRJ_UID}';
|
||||
//var step_mode = '{STEP_MODE}';
|
||||
var workspace = '{WORKSPACE}';
|
||||
var credentials = {credentials};
|
||||
var filePost = '{FILEPOST}';
|
||||
var port = '{PORT}';
|
||||
var fieldsRequired = {FIELDSREQUIRED};
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="/jscore/cases/core/cases_Step.js"></script>
|
||||
<script type="text/javascript" src="/jscore/cases/core/webentry_pmdynaform.js"></script>
|
||||
<table width="100%" align="center">
|
||||
<tr class="userGroupTitle">
|
||||
<!--td width="100%" align="center">{CASE} #: {APP_NUMBER} {TITLE}: {APP_TITLE}</td-->
|
||||
</tr>
|
||||
</table>
|
||||
<div style="width:100%;padding: 0px 10px 0px 10px">
|
||||
<img src="/images/bulletButtonLeft.gif" style="float:left;">
|
||||
<a id="dyn_backward" href="" style="float:left;">
|
||||
</a>
|
||||
<img src="/images/bulletButton.gif" style="float:right;">
|
||||
<a id="dyn_forward" href="" style="float:right;font-size:12px;line-height:1;margin:0px 5px 1px 0px;">
|
||||
Next Step
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -805,7 +805,7 @@ Ext.onReady ( function() {
|
||||
sortInfo:{field: 'APP_CACHE_VIEW.APP_NUMBER', direction: "DESC"},
|
||||
listeners: {
|
||||
load: function(response){
|
||||
//console.log(response.reader.jsonData);
|
||||
|
||||
if (response.reader.jsonData.result === false) {
|
||||
PMExt.notify('ERROR', response.reader.jsonData.message);
|
||||
//PMExt.error
|
||||
@@ -2267,17 +2267,11 @@ var gridForm = new Ext.FormPanel({
|
||||
comboCategory.setValue("");
|
||||
comboProcess.setValue("");
|
||||
comboStatus.setValue("");
|
||||
comboUser.setValue("");
|
||||
if(typeof(comboUser) != 'undefined'){
|
||||
comboUser.setValue("");
|
||||
}
|
||||
comboAllUsers.setValue("CURRENT_USER");
|
||||
|
||||
// hidding the buttons for the reassign
|
||||
// if (action=='to_reassign'){
|
||||
// btnSelectAll.hide();
|
||||
// btnUnSelectAll.hide();
|
||||
// btnReassign.hide();
|
||||
// }
|
||||
|
||||
|
||||
function reassign(){
|
||||
storeReassignCases.removeAll();
|
||||
var rows = grid.getSelectionModel().getSelections();
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PMDynaform</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/build/css/PMDynaform.css">
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/jquery/jquery-1.11.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/bootstrap-3.1.1/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/backbone/backbone-min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/restclient/restclient.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/html5/html5.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
###TEMPLATES###
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/build/js/PMDynaform.js"></script>
|
||||
<script type="text/javascript">
|
||||
var jsondata = {JSON_DATA};
|
||||
var pm_run_outside_main_app = '{PM_RUN_OUTSIDE_MAIN_APP}';
|
||||
var dyn_uid = '{DYN_UID}';
|
||||
var __DynaformName__ = '{DYNAFORMNAME}';
|
||||
var app_uid = '{APP_UID}';
|
||||
var prj_uid = '{PRJ_UID}';
|
||||
var step_mode = '{STEP_MODE}';
|
||||
var workspace = '{WORKSPACE}';
|
||||
var port = '{PORT}';
|
||||
var credentials = {credentials};
|
||||
</script>
|
||||
<script type="text/javascript" src="/jscore/cases/core/cases_Step.js"></script>
|
||||
<script type="text/javascript" src="/jscore/cases/core/cases_Step_Pmdynaform.js"></script>
|
||||
<table width="100%" align="center">
|
||||
<tr class="userGroupTitle">
|
||||
<td width="100%" align="center">{CASE} #: {APP_NUMBER} {TITLE}: {APP_TITLE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="width:100%;padding: 0px 10px 0px 10px">
|
||||
<img src="/images/bulletButtonLeft.gif" style="float:left;">
|
||||
<a id="dyn_backward" href="" style="float:left;">
|
||||
</a>
|
||||
<img src="/images/bulletButton.gif" style="float:right;">
|
||||
<a id="dyn_forward" href="" style="float:right;font-size:12px;line-height:1;margin:0px 5px 1px 0px;">
|
||||
Next Step
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,53 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PMDynaform</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/lib/pmdynaform/build/css/PMDynaform.css">
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/jquery/jquery-1.11.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/bootstrap-3.1.1/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/backbone/backbone-min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/restclient/restclient.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/html5/html5.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
###TEMPLATES###
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/build/js/PMDynaform.js"></script>
|
||||
<script type="text/javascript">
|
||||
var jsondata = {JSON_DATA};
|
||||
var pm_run_outside_main_app = '{PM_RUN_OUTSIDE_MAIN_APP}';
|
||||
var dyn_uid = '{DYN_UID}';
|
||||
var __DynaformName__ = '{DYNAFORMNAME}';
|
||||
var app_uid = '{APP_UID}';
|
||||
var prj_uid = '{PRJ_UID}';
|
||||
var workspace = '{WORKSPACE}';
|
||||
var credentials = {credentials};
|
||||
$(window).load(function () {
|
||||
var data = jsondata;
|
||||
data.items[0].mode = "view";
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
server: location.host,
|
||||
projectId: prj_uid,
|
||||
workspace: workspace
|
||||
},
|
||||
token: credentials,
|
||||
submitRest: false
|
||||
});
|
||||
$(document).find('form').submit(function (e) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,13 +13,13 @@
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/backbone/backbone-min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/restclient/restclient.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/html5/html5.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/html5/html5.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
###TEMPLATES###
|
||||
<script type="text/javascript" src="/lib/pmdynaform/libs/underscore/underscore-1.6.js"></script>
|
||||
<script type="text/javascript" src="/lib/pmdynaform/build/js/PMDynaform.js"></script>
|
||||
{javascript}
|
||||
</body>
|
||||
</html>
|
||||
@@ -27,7 +27,7 @@ function parseItemArray($array) {
|
||||
* @return array of objects
|
||||
*/
|
||||
function convertFormToWSObjects($form) {
|
||||
|
||||
$aVariables = array();
|
||||
foreach ( $form as $key => $val ) {
|
||||
if (! is_array($val)) { //Normal Variables
|
||||
$obj = new stdClass();
|
||||
|
||||
@@ -27,7 +27,7 @@ function parseItemArray($array) {
|
||||
* @return array of objects
|
||||
*/
|
||||
function convertFormToWSObjects($form) {
|
||||
|
||||
$aVariables = array();
|
||||
foreach ( $form as $key => $val ) {
|
||||
if (! is_array($val)) { //Normal Variables
|
||||
$obj = new stdClass();
|
||||
|
||||
@@ -1,54 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="cases_Resume" type="xmlform" width="550px" labelWidth="150px">
|
||||
<TITLE1 type="title">
|
||||
<en><![CDATA[Case Properties]]></en>
|
||||
</TITLE1>
|
||||
<PRO_TITLE type="text" mode="view">
|
||||
<en><![CDATA[Process]]></en>
|
||||
</PRO_TITLE>
|
||||
<TITLE type="text" mode="view">
|
||||
<en><![CDATA[Case Title]]></en>
|
||||
</TITLE>
|
||||
<APP_NUMBER type="text" mode="view">
|
||||
<en><![CDATA[Case Number]]></en>
|
||||
</APP_NUMBER>
|
||||
<STATUS type="text" mode="view">
|
||||
<en><![CDATA[Case Status]]></en>
|
||||
</STATUS>
|
||||
<APP_UID type="text" mode="view">
|
||||
<en><![CDATA[Case Uid]]></en>
|
||||
</APP_UID>
|
||||
<CREATOR type="text" mode="view">
|
||||
<en><![CDATA[Creator]]></en>
|
||||
</CREATOR>
|
||||
<CREATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Create Date]]></en>
|
||||
</CREATE_DATE>
|
||||
<UPDATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Last Update]]></en>
|
||||
</UPDATE_DATE>
|
||||
<TITLE2 type="title">
|
||||
<en><![CDATA[Current Task Properties]]></en>
|
||||
</TITLE2>
|
||||
<TAS_TITLE type="text" mode="view">
|
||||
<en><![CDATA[Task]]></en>
|
||||
</TAS_TITLE>
|
||||
<CURRENT_USER type="text" mode="view">
|
||||
<en><![CDATA[Current User]]></en>
|
||||
</CURRENT_USER>
|
||||
<DEL_DELEGATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Delegate Date]]></en>
|
||||
</DEL_DELEGATE_DATE>
|
||||
<DEL_INIT_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Init Date]]></en>
|
||||
</DEL_INIT_DATE>
|
||||
<DEL_TASK_DUE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Due Date]]></en>
|
||||
</DEL_TASK_DUE_DATE>
|
||||
<DEL_FINISH_DATE type="text" mode="view">
|
||||
<en><![CDATA[Finish Date]]></en>
|
||||
</DEL_FINISH_DATE>
|
||||
<DESCRIPTION type="text" mode="view">
|
||||
<en><![CDATA[Case Description]]></en>
|
||||
</DESCRIPTION>
|
||||
</dynaForm>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<dynaForm name="cases_Resume" type="xmlform" width="550px" labelWidth="150px">
|
||||
<TITLE1 type="title">
|
||||
<en><![CDATA[Case Properties]]></en>
|
||||
</TITLE1>
|
||||
<PRO_TITLE type="text" mode="view">
|
||||
<en><![CDATA[Process]]></en>
|
||||
</PRO_TITLE>
|
||||
<TITLE type="text" mode="view">
|
||||
<en><![CDATA[Case Title]]></en>
|
||||
</TITLE>
|
||||
<APP_NUMBER type="text" mode="view">
|
||||
<en><![CDATA[Case Number]]></en>
|
||||
</APP_NUMBER>
|
||||
<STATUS type="text" mode="view">
|
||||
<en><![CDATA[Case Status]]></en>
|
||||
</STATUS>
|
||||
<APP_UID type="text" mode="view">
|
||||
<en><![CDATA[Case Uid]]></en>
|
||||
</APP_UID>
|
||||
<CREATOR type="text" mode="view">
|
||||
<en><![CDATA[Creator]]></en>
|
||||
</CREATOR>
|
||||
<CREATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Create Date]]></en>
|
||||
</CREATE_DATE>
|
||||
<UPDATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Last Update]]></en>
|
||||
</UPDATE_DATE>
|
||||
<DESCRIPTION type="text" mode="view">
|
||||
<en><![CDATA[Case Description]]></en>
|
||||
</DESCRIPTION>
|
||||
</dynaForm>
|
||||
|
||||
22
workflow/engine/xmlform/cases/cases_Resume_Current_Task.xml
Normal file
22
workflow/engine/xmlform/cases/cases_Resume_Current_Task.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<dynaForm name="cases_Resume_Current_Task" type="xmlform" width="550px" labelWidth="150px">
|
||||
<TAS_TITLE type="text" mode="view">
|
||||
<en><![CDATA[Task]]></en>
|
||||
</TAS_TITLE>
|
||||
<CURRENT_USER type="text" mode="view">
|
||||
<en><![CDATA[Current User]]></en>
|
||||
</CURRENT_USER>
|
||||
<DEL_DELEGATE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Delegate Date]]></en>
|
||||
</DEL_DELEGATE_DATE>
|
||||
<DEL_INIT_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Init Date]]></en>
|
||||
</DEL_INIT_DATE>
|
||||
<DEL_TASK_DUE_DATE type="text" mode="view">
|
||||
<en><![CDATA[Task Due Date]]></en>
|
||||
</DEL_TASK_DUE_DATE>
|
||||
<DEL_FINISH_DATE type="text" mode="view">
|
||||
<en><![CDATA[Finish Date]]></en>
|
||||
</DEL_FINISH_DATE>
|
||||
</dynaForm>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<dynaForm name="cases_Resume_Current_Task" type="xmlform" width="550px" labelWidth="150px">
|
||||
<TITLE2 type="title">
|
||||
<en><![CDATA[Current Task(s) Properties]]></en>
|
||||
</TITLE2>
|
||||
</dynaForm>
|
||||
Reference in New Issue
Block a user