~technofluid-team/openobject-addons/technofluid_multiple_installations

« back to all changes in this revision

Viewing changes to hr/report/attendance_errors.rml

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-dedd7f8a42bd4557112a0513082691b8590ad6cc
New trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<document filename="test.pdf">
 
3
  <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
 
4
    <pageTemplate id="first">
 
5
      <frame id="first" x1="57.0" y1="57.0" width="481" height="728"/>
 
6
    </pageTemplate>
 
7
  </template>
 
8
  <stylesheet>
 
9
    <blockTableStyle id="Standard_Outline">
 
10
      <blockAlignment value="LEFT"/>
 
11
      <blockValign value="TOP"/>
 
12
    </blockTableStyle>
 
13
    <blockTableStyle id="Tableau1">
 
14
      <blockAlignment value="LEFT"/>
 
15
      <blockValign value="TOP"/>
 
16
      <blockBackground colorName="#c0c0c0" start="0,0" stop="0,0"/>
 
17
      <blockBackground colorName="#c0c0c0" start="1,0" stop="1,0"/>
 
18
      <blockBackground colorName="#c0c0c0" start="2,0" stop="2,0"/>
 
19
    </blockTableStyle>
 
20
    <blockTableStyle id="Tableau2">
 
21
      <blockAlignment value="LEFT"/>
 
22
      <blockValign value="TOP"/>
 
23
      <lineStyle kind="GRID" colorName="black"/>
 
24
      <blockBackground colorName="#ff9966" start="0,0" stop="0,0"/>
 
25
    </blockTableStyle>
 
26
    <blockTableStyle id="Tableau3">
 
27
      <blockAlignment value="LEFT"/>
 
28
      <blockValign value="TOP"/>
 
29
      <lineStyle kind="GRID" colorName="black"/>
 
30
      <blockBackground colorName="#ffcc99" start="0,0" stop="0,0"/>
 
31
      <blockBackground colorName="#ffcc99" start="1,0" stop="1,0"/>
 
32
      <blockBackground colorName="#ffcc99" start="2,0" stop="2,0"/>
 
33
      <blockBackground colorName="#ffcc99" start="3,0" stop="3,0"/>
 
34
      <blockBackground colorName="#ffcc99" start="4,0" stop="4,0"/>
 
35
    </blockTableStyle>
 
36
    <blockTableStyle id="Tableau4">
 
37
      <blockAlignment value="LEFT"/>
 
38
      <blockValign value="TOP"/>
 
39
      <lineStyle kind="GRID" colorName="black"/>
 
40
      <blockBackground colorName="#e6e6ff" start="1,0" stop="1,0"/>
 
41
      <blockBackground colorName="#e6e6ff" start="2,0" stop="2,0"/>
 
42
    </blockTableStyle>
 
43
    <initialize>
 
44
      <paraStyle name="all" alignment="justify"/>
 
45
    </initialize>
 
46
    <paraStyle name="P1" fontName="Times-Roman" fontSize="22.0" leading="27" alignment="CENTER"/>
 
47
    <paraStyle name="P2" fontName="Times-Roman" alignment="RIGHT"/>
 
48
    <paraStyle name="P3" fontName="Times-Roman" fontSize="14.0" leading="17" alignment="CENTER"/>
 
49
    <paraStyle name="Standard" fontName="Times-Roman"/>
 
50
    <paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
51
    <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
 
52
    <paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
53
    <paraStyle name="Table Contents" fontName="Times-Roman"/>
 
54
    <paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
 
55
    <paraStyle name="Index" fontName="Times-Roman"/>
 
56
  </stylesheet>
 
57
  <story>
 
58
    <blockTable colWidths="122.0,269.0,91.0" style="Tableau1">
 
59
      <tr>
 
60
        <td>
 
61
          <para style="Table Contents">Report</para>
 
62
          <para style="Table Contents">From: [[ data['form']['init_date'] ]]</para>
 
63
          <para style="Table Contents">To: [[ data['form']['end_date'] ]]</para>
 
64
        </td>
 
65
        <td>
 
66
          <para style="P1">Attendance Errors</para>
 
67
        </td>
 
68
        <td>
 
69
          <para style="P2">Date Printed:</para>
 
70
          <para style="P2">[[ time.strftime('%Y/%m/%d') ]]</para>
 
71
        </td>
 
72
      </tr>
 
73
    </blockTable>
 
74
    <para style="Standard">
 
75
      <font color="white"> </font>
 
76
    </para>
 
77
    <section>
 
78
      <para style="Standard">[[ repeatIn(objects, 'employee') ]]</para>
 
79
      <blockTable colWidths="482.0" repeatRows="1" style="Tableau2">
 
80
        <tr>
 
81
          <td>
 
82
            <para style="P3">[[ employee.name ]]</para>
 
83
          </td>
 
84
        </tr>
 
85
      </blockTable>
 
86
      <blockTable colWidths="67.0,106.0,134.0,85.0,90.0" style="Tableau3">
 
87
        <tr>
 
88
          <td>
 
89
            <para style="Table Contents">Operation</para>
 
90
          </td>
 
91
          <td>
 
92
            <para style="Table Contents">Date Signed</para>
 
93
          </td>
 
94
          <td>
 
95
            <para style="Table Contents">Date Recorded</para>
 
96
          </td>
 
97
          <td>
 
98
            <para style="Table Contents">Delay</para>
 
99
          </td>
 
100
          <td>
 
101
            <para style="Table Contents">Avg Delay</para>
 
102
          </td>
 
103
        </tr>
 
104
        <tr>
 
105
          <td>
 
106
            <para style="Table Contents"><font face="Times-Roman">[[repeatIn(lst(employee.id,data['form']['init_date'], data['form']['end_date'], data['form']['max_delay']), 'att') ]]</font> [[att['action'] ]]</para>
 
107
          </td>
 
108
          <td>
 
109
            <para style="Table Contents">[[ att['date'] ]]</para>
 
110
          </td>
 
111
          <td>
 
112
            <para style="Table Contents">[[ att['create_date'] ]]</para>
 
113
          </td>
 
114
          <td>
 
115
            <para style="Table Contents">[[ att['delay'] ]]</para>
 
116
          </td>
 
117
          <td>
 
118
            <para style="Table Contents">[[ att['delay2'] ]]</para>
 
119
          </td>
 
120
        </tr>
 
121
      </blockTable>
 
122
      <blockTable colWidths="307.0,85.0,90.0" style="Tableau4">
 
123
        <tr>
 
124
          <td>
 
125
            <para style="Table Contents">Total period:</para>
 
126
          </td>
 
127
          <td>
 
128
            <para style="Table Contents">
 
129
              <font face="Times-Roman">[[total(employee.id,data['form']['init_date'], data['form']['end_date'], data['form']['max_delay'])[0] ]]</font>
 
130
            </para>
 
131
          </td>
 
132
          <td>
 
133
            <para style="Table Contents">
 
134
              <font face="Times-Roman">[[total(employee.id,data['form']['init_date'], data['form']['end_date'], data['form']['max_delay'])[1] ]]</font>
 
135
            </para>
 
136
          </td>
 
137
        </tr>
 
138
      </blockTable>
 
139
      <para style="Standard">
 
140
        <font color="white"> </font>
 
141
      </para>
 
142
    </section>
 
143
    <para style="Standard">
 
144
      <font color="white"> </font>
 
145
    </para>
 
146
    <para style="Standard">(*) A positive delay means that the employee worked less than recorded.</para>
 
147
    <para style="Standard">(*) A negative delay means that the employee worked more than encoded.</para>
 
148
  </story>
 
149
</document>
 
150