
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://w.cidesa.com.ve/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>http://w.cidesa.com.ve/index.php?feed=atom&amp;target=Jaime&amp;title=Especial%3AContribuciones%2FJaime</id>
		<title>CidesaWiki - Contribuciones del usuario [es]</title>
		<link rel="self" type="application/atom+xml" href="http://w.cidesa.com.ve/index.php?feed=atom&amp;target=Jaime&amp;title=Especial%3AContribuciones%2FJaime"/>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Especial:Contribuciones/Jaime"/>
		<updated>2026-04-15T03:41:49Z</updated>
		<subtitle>De CidesaWiki</subtitle>
		<generator>MediaWiki 1.16.2</generator>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Criteriojoin</id>
		<title>Criteriojoin</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Criteriojoin"/>
				<updated>2007-03-23T19:18:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funcion para Realizar una consultas con varios Joins&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt;ingjjsg&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  public function getCon_pago()&lt;br /&gt;
  {&lt;br /&gt;
  	//consulta a 3 tablas para saber tipo de pago&lt;br /&gt;
  	  $c = new Criteria;&lt;br /&gt;
  	  $this-&amp;gt;campo = $this-&amp;gt;caordcom-&amp;gt;getOrdcom();  	  &lt;br /&gt;
  	  $c-&amp;gt;add(CaordcomPeer::ORDCOM, $this-&amp;gt;campo);	  &lt;br /&gt;
  	  $c-&amp;gt;addJoin(CaordconpagPeer::ORDCOM,CaordcomPeer::ORDCOM);&lt;br /&gt;
  	  $c-&amp;gt;addJoin(CaconpagPeer::CODCONPAG,CaordconpagPeer::CODCONPAG);&lt;br /&gt;
  	  $this-&amp;gt;rt = CaconpagPeer::doSelect($c);&lt;br /&gt;
  	  if ($this-&amp;gt;rt)&lt;br /&gt;
	  	{    &lt;br /&gt;
	  	    $this-&amp;gt;codigo = $this-&amp;gt;rt[0]-&amp;gt;getCodconpag();&lt;br /&gt;
	  	    $this-&amp;gt;descripcion = $this-&amp;gt;rt[0]-&amp;gt;getDesconpag();&lt;br /&gt;
	  	}&lt;br /&gt;
	  	else&lt;br /&gt;
	  	{&lt;br /&gt;
	  	    $this-&amp;gt;codigo = '&amp;lt;!Registro no Encontrado o vacio!&amp;gt;';&lt;br /&gt;
	  	    $this-&amp;gt;descripcion = '&amp;lt;!Registro no Encontrado o vacio!&amp;gt;';&lt;br /&gt;
	  	}&lt;br /&gt;
  }	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Criteriocustom</id>
		<title>Criteriocustom</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Criteriocustom"/>
				<updated>2007-03-23T19:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;La funion personalisa tu busqueda utilizando el criteria&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt;ingjjsg&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
public function getFuncion()&lt;br /&gt;
{&lt;br /&gt;
  // funcion custom&lt;br /&gt;
  $c = new Criteria;&lt;br /&gt;
  //creamos la sentencia auxiliar&lt;br /&gt;
  $this-&amp;gt;sql = &amp;quot;Tabla.Campo=(Select * from tabla_name where      campo=rpad('&amp;quot;.$this-&amp;gt;tabla-&amp;gt;getOtro_campo().&amp;quot;',10,' '))&amp;quot;;&lt;br /&gt;
  $c-&amp;gt;add(TablaPeer::Campo, $this-&amp;gt;sql, Criteria::CUSTOM);&lt;br /&gt;
  $this-&amp;gt;rs= TablaPeer::doSelect($c);&lt;br /&gt;
  //Hacer Validacion del nompro&lt;br /&gt;
}&lt;br /&gt;
nota: Tabla.Campo Pertenece TablaPeer osea quedaria en sql&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM Tabla WHERE Tabla.Campo=(Select campo from tabla_name where campo=rpad('&amp;quot;.$this-&amp;gt;tabla-&amp;gt;getOtro_campo().&amp;quot;',10,' '))&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Criteriojoin</id>
		<title>Criteriojoin</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Criteriojoin"/>
				<updated>2007-03-23T19:17:38Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: New page: Funcion para Realizar una consultas con varios Joins &amp;lt;pre&amp;gt;   public function getCon_pago()   {   	//consulta a 3 tablas para saber tipo de pago   	  $c = new Criteria;   	  $this-&amp;gt;campo = ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funcion para Realizar una consultas con varios Joins&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  public function getCon_pago()&lt;br /&gt;
  {&lt;br /&gt;
  	//consulta a 3 tablas para saber tipo de pago&lt;br /&gt;
  	  $c = new Criteria;&lt;br /&gt;
  	  $this-&amp;gt;campo = $this-&amp;gt;caordcom-&amp;gt;getOrdcom();  	  &lt;br /&gt;
  	  $c-&amp;gt;add(CaordcomPeer::ORDCOM, $this-&amp;gt;campo);	  &lt;br /&gt;
  	  $c-&amp;gt;addJoin(CaordconpagPeer::ORDCOM,CaordcomPeer::ORDCOM);&lt;br /&gt;
  	  $c-&amp;gt;addJoin(CaconpagPeer::CODCONPAG,CaordconpagPeer::CODCONPAG);&lt;br /&gt;
  	  $this-&amp;gt;rt = CaconpagPeer::doSelect($c);&lt;br /&gt;
  	  if ($this-&amp;gt;rt)&lt;br /&gt;
	  	{    &lt;br /&gt;
	  	    $this-&amp;gt;codigo = $this-&amp;gt;rt[0]-&amp;gt;getCodconpag();&lt;br /&gt;
	  	    $this-&amp;gt;descripcion = $this-&amp;gt;rt[0]-&amp;gt;getDesconpag();&lt;br /&gt;
	  	}&lt;br /&gt;
	  	else&lt;br /&gt;
	  	{&lt;br /&gt;
	  	    $this-&amp;gt;codigo = '&amp;lt;!Registro no Encontrado o vacio!&amp;gt;';&lt;br /&gt;
	  	    $this-&amp;gt;descripcion = '&amp;lt;!Registro no Encontrado o vacio!&amp;gt;';&lt;br /&gt;
	  	}&lt;br /&gt;
  }	&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Criteriocustom</id>
		<title>Criteriocustom</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Criteriocustom"/>
				<updated>2007-03-23T19:09:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;La funion personalisa tu busqueda utilizando el criteria&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
public function getFuncion()&lt;br /&gt;
{&lt;br /&gt;
  // funcion custom&lt;br /&gt;
  $c = new Criteria;&lt;br /&gt;
  //creamos la sentencia auxiliar&lt;br /&gt;
  $this-&amp;gt;sql = &amp;quot;Tabla.Campo=(Select * from tabla_name where      campo=rpad('&amp;quot;.$this-&amp;gt;tabla-&amp;gt;getOtro_campo().&amp;quot;',10,' '))&amp;quot;;&lt;br /&gt;
  $c-&amp;gt;add(TablaPeer::Campo, $this-&amp;gt;sql, Criteria::CUSTOM);&lt;br /&gt;
  $this-&amp;gt;rs= TablaPeer::doSelect($c);&lt;br /&gt;
  //Hacer Validacion del nompro&lt;br /&gt;
}&lt;br /&gt;
nota: Tabla.Campo Pertenece TablaPeer osea quedaria en sql&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM Tabla WHERE Tabla.Campo=(Select campo from tabla_name where campo=rpad('&amp;quot;.$this-&amp;gt;tabla-&amp;gt;getOtro_campo().&amp;quot;',10,' '))&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Criteriocustom</id>
		<title>Criteriocustom</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Criteriocustom"/>
				<updated>2007-03-23T18:51:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: New page: public function getDes_pro() {   // funcion custom   $c = new Criteria;   //creamos la sentencia auxiliar   $this-&amp;gt;campo = &amp;quot;caprovee.CODPRO=(Select codpro from caordcom where      codpro=r...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;public function getDes_pro()&lt;br /&gt;
{&lt;br /&gt;
  // funcion custom&lt;br /&gt;
  $c = new Criteria;&lt;br /&gt;
  //creamos la sentencia auxiliar&lt;br /&gt;
  $this-&amp;gt;campo = &amp;quot;caprovee.CODPRO=(Select codpro from caordcom where      codpro=rpad('&amp;quot;.$this-&amp;gt;caordcom-&amp;gt;getCodpro().&amp;quot;',10,' '))&amp;quot;;&lt;br /&gt;
  $c-&amp;gt;add(CaproveePeer::CODPRO, $this-&amp;gt;campo, Criteria::CUSTOM);&lt;br /&gt;
  $this-&amp;gt;nompro = CaproveePeer::doSelect($c);&lt;br /&gt;
  //Hacer Validacion del nompro&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	<entry>
		<id>http://w.cidesa.com.ve/index.php/Symfony</id>
		<title>Symfony</title>
		<link rel="alternate" type="text/html" href="http://w.cidesa.com.ve/index.php/Symfony"/>
				<updated>2007-03-23T18:39:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jaime: New page: Articulos  * Crear una busqueda criteria con Custom&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Articulos&lt;br /&gt;
&lt;br /&gt;
* [[criteriocustom|Crear una busqueda criteria con Custom]]&lt;/div&gt;</summary>
		<author><name>Jaime</name></author>	</entry>

	</feed>