예제 #1
0
 function modelo()
 {
     parent::Conexion();
 }
예제 #2
0
 function Querys()
 {
     parent::Conexion();
 }
예제 #3
0
 public function UpdateStock($CodProducto, $Stock, $StockOriginal, $NroAgregado, $Usuario)
 {
     $ObjConexion = new Conexion();
     if (strlen($Usuario) > 0) {
         $log = true;
         $this->Sql = "UPDATE stock SET ";
         $this->Sql .= "StockOriginal=Stock, ";
         $this->Sql .= "Stock=Stock+" . $NroAgregado . ", ";
         $this->Sql .= "NroAgregado=" . $NroAgregado . ", ";
         $this->Sql .= "UsuarioModificacion='" . $Usuario . "', ";
         $this->Sql .= "FechaModificacion=now() ";
         $this->Sql .= "WHERE CodProducto=" . $CodProducto . " ";
         $this->Rs = mysql_query($this->Sql, $ObjConexion->Conexion()) or die(mysql_error());
     } else {
         $log = false;
     }
     return $log;
 }