BUG 14958 "Perfil por creador de proceso" SOLVED
- Perfil por creador de proceso. - Problema resuelto, en el dynaform Edit Process se ha adicionado un dropdown que determina que tipo de proceso se crea con dos opciones Public y Private. En la lista de procesos se agrega una nueva columna Type Process que determina el tipo de proceso, en el listado se muestra todo los procesos publicos y privados creados por un mismo usuario a si tambien se muestrara los procesos publicos creados por otros usuarios. Al importar el proceso este se importa como publico.
This commit is contained in:
@@ -123,6 +123,12 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $pro_tri_unpaused = '';
|
||||
|
||||
/**
|
||||
* The value for the pro_type_process field.
|
||||
* @var string
|
||||
*/
|
||||
protected $pro_type_process = 'PUBLIC';
|
||||
|
||||
/**
|
||||
* The value for the pro_show_delegate field.
|
||||
* @var int
|
||||
@@ -403,6 +409,17 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
return $this->pro_tri_unpaused;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [pro_type_process] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProTypeProcess()
|
||||
{
|
||||
|
||||
return $this->pro_type_process;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [pro_show_delegate] column value.
|
||||
*
|
||||
@@ -956,6 +973,28 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
|
||||
} // setProTriUnpaused()
|
||||
|
||||
/**
|
||||
* Set the value of [pro_type_process] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setProTypeProcess($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->pro_type_process !== $v || $v === 'PUBLIC') {
|
||||
$this->pro_type_process = $v;
|
||||
$this->modifiedColumns[] = ProcessPeer::PRO_TYPE_PROCESS;
|
||||
}
|
||||
|
||||
} // setProTypeProcess()
|
||||
|
||||
/**
|
||||
* Set the value of [pro_show_delegate] column.
|
||||
*
|
||||
@@ -1349,42 +1388,44 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
|
||||
$this->pro_tri_unpaused = $rs->getString($startcol + 15);
|
||||
|
||||
$this->pro_show_delegate = $rs->getInt($startcol + 16);
|
||||
$this->pro_type_process = $rs->getString($startcol + 16);
|
||||
|
||||
$this->pro_show_dynaform = $rs->getInt($startcol + 17);
|
||||
$this->pro_show_delegate = $rs->getInt($startcol + 17);
|
||||
|
||||
$this->pro_category = $rs->getString($startcol + 18);
|
||||
$this->pro_show_dynaform = $rs->getInt($startcol + 18);
|
||||
|
||||
$this->pro_sub_category = $rs->getString($startcol + 19);
|
||||
$this->pro_category = $rs->getString($startcol + 19);
|
||||
|
||||
$this->pro_industry = $rs->getInt($startcol + 20);
|
||||
$this->pro_sub_category = $rs->getString($startcol + 20);
|
||||
|
||||
$this->pro_update_date = $rs->getTimestamp($startcol + 21, null);
|
||||
$this->pro_industry = $rs->getInt($startcol + 21);
|
||||
|
||||
$this->pro_create_date = $rs->getTimestamp($startcol + 22, null);
|
||||
$this->pro_update_date = $rs->getTimestamp($startcol + 22, null);
|
||||
|
||||
$this->pro_create_user = $rs->getString($startcol + 23);
|
||||
$this->pro_create_date = $rs->getTimestamp($startcol + 23, null);
|
||||
|
||||
$this->pro_height = $rs->getInt($startcol + 24);
|
||||
$this->pro_create_user = $rs->getString($startcol + 24);
|
||||
|
||||
$this->pro_width = $rs->getInt($startcol + 25);
|
||||
$this->pro_height = $rs->getInt($startcol + 25);
|
||||
|
||||
$this->pro_title_x = $rs->getInt($startcol + 26);
|
||||
$this->pro_width = $rs->getInt($startcol + 26);
|
||||
|
||||
$this->pro_title_y = $rs->getInt($startcol + 27);
|
||||
$this->pro_title_x = $rs->getInt($startcol + 27);
|
||||
|
||||
$this->pro_debug = $rs->getInt($startcol + 28);
|
||||
$this->pro_title_y = $rs->getInt($startcol + 28);
|
||||
|
||||
$this->pro_dynaforms = $rs->getString($startcol + 29);
|
||||
$this->pro_debug = $rs->getInt($startcol + 29);
|
||||
|
||||
$this->pro_derivation_screen_tpl = $rs->getString($startcol + 30);
|
||||
$this->pro_dynaforms = $rs->getString($startcol + 30);
|
||||
|
||||
$this->pro_derivation_screen_tpl = $rs->getString($startcol + 31);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 31; // 31 = ProcessPeer::NUM_COLUMNS - ProcessPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 32; // 32 = ProcessPeer::NUM_COLUMNS - ProcessPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating Process object", $e);
|
||||
@@ -1637,48 +1678,51 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
return $this->getProTriUnpaused();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getProShowDelegate();
|
||||
return $this->getProTypeProcess();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getProShowDynaform();
|
||||
return $this->getProShowDelegate();
|
||||
break;
|
||||
case 18:
|
||||
return $this->getProCategory();
|
||||
return $this->getProShowDynaform();
|
||||
break;
|
||||
case 19:
|
||||
return $this->getProSubCategory();
|
||||
return $this->getProCategory();
|
||||
break;
|
||||
case 20:
|
||||
return $this->getProIndustry();
|
||||
return $this->getProSubCategory();
|
||||
break;
|
||||
case 21:
|
||||
return $this->getProUpdateDate();
|
||||
return $this->getProIndustry();
|
||||
break;
|
||||
case 22:
|
||||
return $this->getProCreateDate();
|
||||
return $this->getProUpdateDate();
|
||||
break;
|
||||
case 23:
|
||||
return $this->getProCreateUser();
|
||||
return $this->getProCreateDate();
|
||||
break;
|
||||
case 24:
|
||||
return $this->getProHeight();
|
||||
return $this->getProCreateUser();
|
||||
break;
|
||||
case 25:
|
||||
return $this->getProWidth();
|
||||
return $this->getProHeight();
|
||||
break;
|
||||
case 26:
|
||||
return $this->getProTitleX();
|
||||
return $this->getProWidth();
|
||||
break;
|
||||
case 27:
|
||||
return $this->getProTitleY();
|
||||
return $this->getProTitleX();
|
||||
break;
|
||||
case 28:
|
||||
return $this->getProDebug();
|
||||
return $this->getProTitleY();
|
||||
break;
|
||||
case 29:
|
||||
return $this->getProDynaforms();
|
||||
return $this->getProDebug();
|
||||
break;
|
||||
case 30:
|
||||
return $this->getProDynaforms();
|
||||
break;
|
||||
case 31:
|
||||
return $this->getProDerivationScreenTpl();
|
||||
break;
|
||||
default:
|
||||
@@ -1717,21 +1761,22 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
$keys[13] => $this->getProTriPaused(),
|
||||
$keys[14] => $this->getProTriReassigned(),
|
||||
$keys[15] => $this->getProTriUnpaused(),
|
||||
$keys[16] => $this->getProShowDelegate(),
|
||||
$keys[17] => $this->getProShowDynaform(),
|
||||
$keys[18] => $this->getProCategory(),
|
||||
$keys[19] => $this->getProSubCategory(),
|
||||
$keys[20] => $this->getProIndustry(),
|
||||
$keys[21] => $this->getProUpdateDate(),
|
||||
$keys[22] => $this->getProCreateDate(),
|
||||
$keys[23] => $this->getProCreateUser(),
|
||||
$keys[24] => $this->getProHeight(),
|
||||
$keys[25] => $this->getProWidth(),
|
||||
$keys[26] => $this->getProTitleX(),
|
||||
$keys[27] => $this->getProTitleY(),
|
||||
$keys[28] => $this->getProDebug(),
|
||||
$keys[29] => $this->getProDynaforms(),
|
||||
$keys[30] => $this->getProDerivationScreenTpl(),
|
||||
$keys[16] => $this->getProTypeProcess(),
|
||||
$keys[17] => $this->getProShowDelegate(),
|
||||
$keys[18] => $this->getProShowDynaform(),
|
||||
$keys[19] => $this->getProCategory(),
|
||||
$keys[20] => $this->getProSubCategory(),
|
||||
$keys[21] => $this->getProIndustry(),
|
||||
$keys[22] => $this->getProUpdateDate(),
|
||||
$keys[23] => $this->getProCreateDate(),
|
||||
$keys[24] => $this->getProCreateUser(),
|
||||
$keys[25] => $this->getProHeight(),
|
||||
$keys[26] => $this->getProWidth(),
|
||||
$keys[27] => $this->getProTitleX(),
|
||||
$keys[28] => $this->getProTitleY(),
|
||||
$keys[29] => $this->getProDebug(),
|
||||
$keys[30] => $this->getProDynaforms(),
|
||||
$keys[31] => $this->getProDerivationScreenTpl(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1812,48 +1857,51 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
$this->setProTriUnpaused($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setProShowDelegate($value);
|
||||
$this->setProTypeProcess($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setProShowDynaform($value);
|
||||
$this->setProShowDelegate($value);
|
||||
break;
|
||||
case 18:
|
||||
$this->setProCategory($value);
|
||||
$this->setProShowDynaform($value);
|
||||
break;
|
||||
case 19:
|
||||
$this->setProSubCategory($value);
|
||||
$this->setProCategory($value);
|
||||
break;
|
||||
case 20:
|
||||
$this->setProIndustry($value);
|
||||
$this->setProSubCategory($value);
|
||||
break;
|
||||
case 21:
|
||||
$this->setProUpdateDate($value);
|
||||
$this->setProIndustry($value);
|
||||
break;
|
||||
case 22:
|
||||
$this->setProCreateDate($value);
|
||||
$this->setProUpdateDate($value);
|
||||
break;
|
||||
case 23:
|
||||
$this->setProCreateUser($value);
|
||||
$this->setProCreateDate($value);
|
||||
break;
|
||||
case 24:
|
||||
$this->setProHeight($value);
|
||||
$this->setProCreateUser($value);
|
||||
break;
|
||||
case 25:
|
||||
$this->setProWidth($value);
|
||||
$this->setProHeight($value);
|
||||
break;
|
||||
case 26:
|
||||
$this->setProTitleX($value);
|
||||
$this->setProWidth($value);
|
||||
break;
|
||||
case 27:
|
||||
$this->setProTitleY($value);
|
||||
$this->setProTitleX($value);
|
||||
break;
|
||||
case 28:
|
||||
$this->setProDebug($value);
|
||||
$this->setProTitleY($value);
|
||||
break;
|
||||
case 29:
|
||||
$this->setProDynaforms($value);
|
||||
$this->setProDebug($value);
|
||||
break;
|
||||
case 30:
|
||||
$this->setProDynaforms($value);
|
||||
break;
|
||||
case 31:
|
||||
$this->setProDerivationScreenTpl($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -1944,63 +1992,67 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setProShowDelegate($arr[$keys[16]]);
|
||||
$this->setProTypeProcess($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setProShowDynaform($arr[$keys[17]]);
|
||||
$this->setProShowDelegate($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[18], $arr)) {
|
||||
$this->setProCategory($arr[$keys[18]]);
|
||||
$this->setProShowDynaform($arr[$keys[18]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[19], $arr)) {
|
||||
$this->setProSubCategory($arr[$keys[19]]);
|
||||
$this->setProCategory($arr[$keys[19]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[20], $arr)) {
|
||||
$this->setProIndustry($arr[$keys[20]]);
|
||||
$this->setProSubCategory($arr[$keys[20]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[21], $arr)) {
|
||||
$this->setProUpdateDate($arr[$keys[21]]);
|
||||
$this->setProIndustry($arr[$keys[21]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[22], $arr)) {
|
||||
$this->setProCreateDate($arr[$keys[22]]);
|
||||
$this->setProUpdateDate($arr[$keys[22]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[23], $arr)) {
|
||||
$this->setProCreateUser($arr[$keys[23]]);
|
||||
$this->setProCreateDate($arr[$keys[23]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[24], $arr)) {
|
||||
$this->setProHeight($arr[$keys[24]]);
|
||||
$this->setProCreateUser($arr[$keys[24]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[25], $arr)) {
|
||||
$this->setProWidth($arr[$keys[25]]);
|
||||
$this->setProHeight($arr[$keys[25]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[26], $arr)) {
|
||||
$this->setProTitleX($arr[$keys[26]]);
|
||||
$this->setProWidth($arr[$keys[26]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[27], $arr)) {
|
||||
$this->setProTitleY($arr[$keys[27]]);
|
||||
$this->setProTitleX($arr[$keys[27]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[28], $arr)) {
|
||||
$this->setProDebug($arr[$keys[28]]);
|
||||
$this->setProTitleY($arr[$keys[28]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[29], $arr)) {
|
||||
$this->setProDynaforms($arr[$keys[29]]);
|
||||
$this->setProDebug($arr[$keys[29]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[30], $arr)) {
|
||||
$this->setProDerivationScreenTpl($arr[$keys[30]]);
|
||||
$this->setProDynaforms($arr[$keys[30]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[31], $arr)) {
|
||||
$this->setProDerivationScreenTpl($arr[$keys[31]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2078,6 +2130,10 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
$criteria->add(ProcessPeer::PRO_TRI_UNPAUSED, $this->pro_tri_unpaused);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ProcessPeer::PRO_TYPE_PROCESS)) {
|
||||
$criteria->add(ProcessPeer::PRO_TYPE_PROCESS, $this->pro_type_process);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ProcessPeer::PRO_SHOW_DELEGATE)) {
|
||||
$criteria->add(ProcessPeer::PRO_SHOW_DELEGATE, $this->pro_show_delegate);
|
||||
}
|
||||
@@ -2222,6 +2278,8 @@ abstract class BaseProcess extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setProTriUnpaused($this->pro_tri_unpaused);
|
||||
|
||||
$copyObj->setProTypeProcess($this->pro_type_process);
|
||||
|
||||
$copyObj->setProShowDelegate($this->pro_show_delegate);
|
||||
|
||||
$copyObj->setProShowDynaform($this->pro_show_dynaform);
|
||||
|
||||
Reference in New Issue
Block a user