this bug 6305 was fixed, now the fields of type int are checked into webEntry

This commit is contained in:
Carlos Pacha
2011-03-02 20:30:43 +00:00
parent 70a561aa0d
commit 6a92d80ecf
3 changed files with 72 additions and 3 deletions

View File

@@ -529,6 +529,58 @@ class Step extends BaseStep {
return StepPeer::doSelect($c);
}
/**
* Get the uids of the grids into a xml form
*
* @param string $sproUid the uid of the process
* @param string $sdbsUid the uid of the db connection
* @author krlos <carlos@colosa.com>
*/
function lookingforUidGrids($sproUid,$sObjUID) {
require_once ( "classes/model/DynaformPeer.php" );
G::LoadSystem('dynaformhandler');
$uidsGrids=array();
$oC = new Criteria('workflow');
$oC->add(DynaformPeer::DYN_UID, $sObjUID);
$oC->add(DynaformPeer::PRO_UID, $sproUid);
$oDataset = DynaformPeer::doSelectRS($oC);
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$oDataset->next();
$aRow = $oDataset->getRow();
if($aRow['DYN_TYPE']=='xmlform') {
$oC1 = new Criteria('workflow');
$oC1->add(DynaformPeer::PRO_UID, $sproUid);
$oC1->add(DynaformPeer::DYN_TYPE, "xmlform");
$oDataset = DynaformPeer::doSelectRS($oC1);
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
while($oDataset->next()){
$aRow1 = $oDataset->getRow();
$dynHandler = new dynaFormHandler(PATH_DYNAFORM.$sproUid."/".$sObjUID.".xml");
$dynFields = $dynHandler->getFields();
$sxmlgrid = '';
$sType = '';
$check=0;
foreach($dynFields as $field){
$sType = $this->getAttribute($field, 'type');
if($sType == 'grid'){
$sxmlgrid = $this->getAttribute($field, 'xmlgrid');
//print_r($sxmlgrid);print"<hr>";
$aGridInfo= explode("/",$sxmlgrid);
$uidsGrids[]=$aGridInfo[1];
}
}
}
return ($uidsGrids);
}
}
} // Step