src/org/openbravo/erpCommon/ad_callouts/LocatorCombo_data.xsql
author RM packaging bot <staff.rm@openbravo.com>
Tue, 28 Jun 2011 10:33:23 +0000
changeset 9542 845811ab032b
parent 9072 79e55dfc8af0
permissions -rw-r--r--
Update AD_MODULE version to 2.50MP31
juanpablo@378
     1
<?xml version="1.0" encoding="UTF-8" ?>
juanpablo@378
     2
<!--
juanpablo@378
     3
 *************************************************************************
juanpablo@378
     4
 * The contents of this file are subject to the Openbravo  Public  License
priya@9072
     5
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@378
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@378
     7
 * file except in compliance with the License. You  may  obtain  a copy of
juanpablo@378
     8
 * the License at http://www.openbravo.com/legal/license.html 
juanpablo@378
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@378
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@378
    11
 * License for the specific  language  governing  rights  and  limitations
juanpablo@378
    12
 * under the License. 
juanpablo@378
    13
 * The Original Code is Openbravo ERP. 
ggi@6701
    14
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6701
    15
 * All portions are Copyright (C) 2001-2007 Openbravo SLU 
juanpablo@378
    16
 * All Rights Reserved. 
juanpablo@378
    17
 * Contributor(s):  ______________________________________.
juanpablo@378
    18
 ************************************************************************
juanpablo@378
    19
-->
juanpablo@378
    20
juanpablo@378
    21
stefan@3932
    22
    <SqlClass name="LocatorComboData" package="org.openbravo.erpCommon.ad_callouts">
juanpablo@378
    23
       <SqlClassComment>Clase LocatorComboData</SqlClassComment>
juanpablo@378
    24
       <SqlMethod name="select" type="preparedStatement" return="multiple">
juanpablo@378
    25
          <SqlMethodComment>RelaciĆ³n de pasillos de un almacen de la aplicacion</SqlMethodComment>
juanpablo@378
    26
          <Sql><![CDATA[
juanpablo@378
    27
            SELECT L.M_LOCATOR_ID, AD_COLUMN_IDENTIFIER(TO_CHAR('M_Locator'),TO_CHAR(M_LOCATOR_ID),TO_CHAR(?)) AS NAME, '' AS ID 
juanpablo@378
    28
            FROM M_LOCATOR L, M_WAREHOUSE W
juanpablo@378
    29
			WHERE W.M_WAREHOUSE_ID = L.M_WAREHOUSE_ID
juanpablo@378
    30
            AND L.IsActive='Y' 
juanpablo@1605
    31
            AND W.M_WAREHOUSE_ID = ? 
juanpablo@1605
    32
            AND L.AD_Client_ID = ? 
juanpablo@378
    33
            ORDER BY NAME
juanpablo@378
    34
            
juanpablo@378
    35
          ]]></Sql>
juanpablo@378
    36
            <Parameter name="language"/>
juanpablo@378
    37
            <Parameter name="warehouse"/>
juanpablo@378
    38
            <Parameter name="client"/>
juanpablo@378
    39
       </SqlMethod>
juanpablo@378
    40
       <SqlMethod name="selectCombo" type="preparedStatement" return="multiple">
juanpablo@378
    41
          <SqlMethodComment>RelaciĆ³n de organizaciones de un rol de la aplicacion</SqlMethodComment>
juanpablo@378
    42
          <Sql><![CDATA[
juanpablo@378
    43
            SELECT M_LOCATOR_ID, X AS Name 
juanpablo@378
    44
            FROM M_LOCATOR
juanpablo@378
    45
            WHERE IsActive='Y' 
juanpablo@378
    46
            AND AD_Client_ID IN ('1') 
juanpablo@378
    47
            ORDER BY Name
juanpablo@378
    48
          ]]></Sql>
juanpablo@378
    49
            <Parameter name="adUserClient" type="replace" optional="true" after="AD_Client_ID IN (" text="'1'"/>
juanpablo@378
    50
       </SqlMethod>
juanpablo@378
    51
    </SqlClass>