src/org/openbravo/erpCommon/ad_callouts/SE_PeriodNo_data.xsql
author RM packaging bot <staff.rm@openbravo.com>
Wed, 25 May 2011 10:31:25 +0000
changeset 9449 d467781fb9a6
parent 9072 79e55dfc8af0
permissions -rw-r--r--
Update AD_MODULE version to 2.50MP30
asier@1929
     1
<?xml version="1.0" encoding="UTF-8"?>
asier@1929
     2
<!--
asier@1929
     3
 *************************************************************************
asier@1929
     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
asier@1929
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
asier@1929
     7
 * file except in compliance with the License. You  may  obtain  a copy of
asier@1929
     8
 * the License at http://www.openbravo.com/legal/license.html 
asier@1929
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
asier@1929
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
asier@1929
    11
 * License for the specific  language  governing  rights  and  limitations
asier@1929
    12
 * under the License. 
asier@1929
    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) 2008-2009 Openbravo SLU 
asier@1929
    16
 * All Rights Reserved. 
asier@1929
    17
 * Contributor(s):  ______________________________________.
asier@1929
    18
 ************************************************************************
asier@1929
    19
-->
asier@1929
    20
asier@1929
    21
<SqlClass name="SEPeriodNoData" package="org.openbravo.erpCommon.ad_callouts">
asier@1929
    22
 <SqlMethod name="getPeriodNo" type="preparedStatement" return="multiple">
asier@1929
    23
    <SqlMethodComment></SqlMethodComment>
asier@1929
    24
    <Sql>
asier@1929
    25
      <![CDATA[
victor@3099
    26
        SELECT C_Period_ID AS ID, Name AS NAME
asier@1929
    27
        FROM C_Period
asier@1929
    28
        WHERE C_Year_ID=?
asier@1929
    29
        ORDER BY StartDate ASC
asier@1929
    30
      ]]>
asier@1929
    31
    </Sql>
asier@1929
    32
    <Parameter name="CYearId"/>
victor@3099
    33
 </SqlMethod>
victor@3099
    34
 
victor@3099
    35
 <SqlMethod name="getCalendar" type="preparedStatement" return="multiple">
victor@3099
    36
    <SqlMethodComment></SqlMethodComment>
victor@3099
    37
    <Sql>
victor@3099
    38
      <![CDATA[
victor@3099
    39
        SELECT AD_Org.C_Calendar_ID AS ID, C_Calendar.Name
victor@3099
    40
        FROM AD_Org, C_Calendar
victor@3099
    41
        WHERE AD_Org.C_Calendar_ID = C_Calendar.C_Calendar_ID
victor@3162
    42
        AND AD_Org.AD_Org_ID=AD_ORG_GETCALENDAROWNER(?)
victor@3099
    43
      ]]>
victor@3099
    44
    </Sql>
victor@3099
    45
    <Parameter name="AdOrgId"/>
victor@3099
    46
 </SqlMethod>
victor@3099
    47
 
victor@3099
    48
 <SqlMethod name="getYears" type="preparedStatement" return="multiple">
victor@3099
    49
    <SqlMethodComment></SqlMethodComment>
victor@3099
    50
    <Sql>
victor@3099
    51
      <![CDATA[
victor@4249
    52
        SELECT DISTINCT(C_Year.C_Year_ID) AS ID, C_Year.Year as Name
victor@3099
    53
        FROM C_Year, AD_Org
victor@3099
    54
        WHERE AD_Org.C_Calendar_ID=C_Year.C_Calendar_ID
victor@3162
    55
        AND AD_Org.C_Calendar_ID=?
victor@3099
    56
        ORDER BY Name DESC
victor@3099
    57
      ]]>
victor@3099
    58
    </Sql>
victor@3099
    59
    <Parameter name="CCalendarId"/>
victor@3099
    60
 </SqlMethod>
asier@1929
    61
</SqlClass>