author Asier Lostalé <>
Mon, 05 May 2008 06:59:24 +0000
changeset 799 fef2c5e2feb7
parent 0 0247c26f10c6
child 6701 690d2af86089
permissions -rw-r--r--
Merged cleanup branch (r3931) with trunk
<?xml version="1.0" encoding="UTF-8" ?>
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.

<SqlClass name="RptMACCPMeasuresData" package="org.openbravo.erpReports">
   <SqlMethod name="select" type="preparedStatement" return="multiple">
        select s.Measuredate as measuredate, TO_CHAR(cg.frecuency, 'HH:MI') as frecuency, s.MA_MEASURE_SHIFT_ID as shiftid, g.MA_MEASURE_GROUP_ID as groupid, g.MA_CCP_GROUP_ID, cg.NAME as grupo, (CASE s.shift WHEN 'M' THEN 'MaƱana' ELSE 'Tarde' END) as shift, cg.seqno, REPLACE(s.observation, CHR(10), '') AS observation, (CASE WHEN s.AD_User_ID IS NULL THEN ' ' ELSE TO_CHAR(u.Name) END) as uname
        from AD_User u right join MA_Measure_Shift s on u.AD_User_ID  = s.AD_User_ID, MA_Measure_Group g, MA_CCP_Group cg
          and g.MA_CCP_GROUP_ID = cg.MA_CCP_GROUP_ID
          AND 1=1
        order by s.MA_Measure_Shift_ID, cg.seqno
      <Parameter name="maCcpGroupId" optional="true" type="argument" after="AND 1=1">
      <![CDATA[ AND s.MA_Measure_Shift_ID IN ]]>
   <SqlMethod name="set" type="constant" return="multiple">