Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3a68cf3
authored
Jun 19, 2015
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update esipkd 19-06-2015
1 parent
d665e387
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
esipkd/reports/R0009.jrxml
esipkd/reports/R0010.jrxml
esipkd/views/reports.py
esipkd/reports/R0009.jrxml
View file @
e3a68cf
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<textElement
textAlignment=
"Center"
>
<textElement
textAlignment=
"Center"
>
<font
isBold=
"true"
/>
<font
isBold=
"true"
/>
</textElement>
</textElement>
<text>
<![CDATA[DAFTAR
SUBJEK PAJAK
]]>
</text>
<text>
<![CDATA[DAFTAR
PENYETOR
]]>
</text>
</staticText>
</staticText>
</band>
</band>
</title>
</title>
...
...
esipkd/reports/R0010.jrxml
View file @
e3a68cf
...
@@ -14,14 +14,17 @@
...
@@ -14,14 +14,17 @@
<field
name=
"kode"
class=
"java.lang.String"
>
<field
name=
"kode"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[kode]]>
</fieldDescription>
<fieldDescription>
<![CDATA[kode]]>
</fieldDescription>
</field>
</field>
<field
name=
"no"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[no]]>
</fieldDescription>
</field>
<field
name=
"nama"
class=
"java.lang.String"
>
<field
name=
"nama"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[nama]]>
</fieldDescription>
<fieldDescription>
<![CDATA[nama]]>
</fieldDescription>
</field>
</field>
<field
name=
"
alamat_1
"
class=
"java.lang.String"
>
<field
name=
"
rekening
"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[
alamat_1
]]>
</fieldDescription>
<fieldDescription>
<![CDATA[
rekening
]]>
</fieldDescription>
</field>
</field>
<field
name=
"
alamat_2
"
class=
"java.lang.String"
>
<field
name=
"
wilayah
"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[
alamat_2
]]>
</fieldDescription>
<fieldDescription>
<![CDATA[
wilayah
]]>
</fieldDescription>
</field>
</field>
<field
name=
"status"
class=
"java.lang.String"
>
<field
name=
"status"
class=
"java.lang.String"
>
<fieldDescription>
<![CDATA[status]]>
</fieldDescription>
<fieldDescription>
<![CDATA[status]]>
</fieldDescription>
...
@@ -42,7 +45,7 @@
...
@@ -42,7 +45,7 @@
<textElement
textAlignment=
"Center"
>
<textElement
textAlignment=
"Center"
>
<font
isBold=
"true"
/>
<font
isBold=
"true"
/>
</textElement>
</textElement>
<text>
<![CDATA[DAFTAR
SUBJEK PAJA
K]]>
</text>
<text>
<![CDATA[DAFTAR
OBJE
K]]>
</text>
</staticText>
</staticText>
</band>
</band>
</title>
</title>
...
@@ -85,7 +88,7 @@
...
@@ -85,7 +88,7 @@
<textElement
textAlignment=
"Center"
>
<textElement
textAlignment=
"Center"
>
<font
size=
"8"
isBold=
"true"
/>
<font
size=
"8"
isBold=
"true"
/>
</textElement>
</textElement>
<text>
<![CDATA[
Alamat 2
]]>
</text>
<text>
<![CDATA[
Wilayah
]]>
</text>
</staticText>
</staticText>
<staticText>
<staticText>
<reportElement
x=
"441"
y=
"0"
width=
"54"
height=
"12"
/>
<reportElement
x=
"441"
y=
"0"
width=
"54"
height=
"12"
/>
...
@@ -111,7 +114,7 @@
...
@@ -111,7 +114,7 @@
<textElement
textAlignment=
"Center"
>
<textElement
textAlignment=
"Center"
>
<font
size=
"8"
isBold=
"true"
/>
<font
size=
"8"
isBold=
"true"
/>
</textElement>
</textElement>
<text>
<![CDATA[
Alamat 1
]]>
</text>
<text>
<![CDATA[
Rekening
]]>
</text>
</staticText>
</staticText>
</band>
</band>
</pageHeader>
</pageHeader>
...
@@ -151,7 +154,7 @@
...
@@ -151,7 +154,7 @@
<textElement
textAlignment=
"Center"
>
<textElement
textAlignment=
"Center"
>
<font
size=
"8"
/>
<font
size=
"8"
/>
</textElement>
</textElement>
<textFieldExpression>
<![CDATA[$F{
alamat_2
}]]>
</textFieldExpression>
<textFieldExpression>
<![CDATA[$F{
wilayah
}]]>
</textFieldExpression>
</textField>
</textField>
<textField
isStretchWithOverflow=
"true"
isBlankWhenNull=
"true"
>
<textField
isStretchWithOverflow=
"true"
isBlankWhenNull=
"true"
>
<reportElement
stretchType=
"RelativeToBandHeight"
x=
"441"
y=
"0"
width=
"54"
height=
"12"
/>
<reportElement
stretchType=
"RelativeToBandHeight"
x=
"441"
y=
"0"
width=
"54"
height=
"12"
/>
...
@@ -173,7 +176,7 @@
...
@@ -173,7 +176,7 @@
<textElement>
<textElement>
<font
size=
"8"
/>
<font
size=
"8"
/>
</textElement>
</textElement>
<textFieldExpression>
<![CDATA[$F{
alamat_1
}]]>
</textFieldExpression>
<textFieldExpression>
<![CDATA[$F{
rekening
}]]>
</textFieldExpression>
</textField>
</textField>
</band>
</band>
</detail>
</detail>
...
...
esipkd/views/reports.py
View file @
e3a68cf
...
@@ -271,7 +271,11 @@ class ViewLaporan(BaseViews):
...
@@ -271,7 +271,11 @@ class ViewLaporan(BaseViews):
return
response
return
response
###################### ARINVOICE
###################### ARINVOICE
elif
url_dict
[
'act'
]
==
'r100'
:
elif
url_dict
[
'act'
]
==
'r100'
:
query
=
DBSession
.
query
(
ARInvoice
)
.
order_by
(
ARInvoice
.
kode
)
.
all
()
u
=
req
.
user
.
id
print
"------------------------->>"
,
u
query
=
DBSession
.
query
(
ARInvoice
)
.
filter
(
ARInvoice
.
owner_id
==
u
)
.
order_by
(
ARInvoice
.
kode
)
.
all
()
generator
=
r100Generator
()
generator
=
r100Generator
()
pdf
=
generator
.
generate
(
query
)
pdf
=
generator
.
generate
(
query
)
response
=
req
.
response
response
=
req
.
response
...
@@ -279,7 +283,7 @@ class ViewLaporan(BaseViews):
...
@@ -279,7 +283,7 @@ class ViewLaporan(BaseViews):
response
.
content_disposition
=
'filename=output.pdf'
response
.
content_disposition
=
'filename=output.pdf'
response
.
write
(
pdf
)
response
.
write
(
pdf
)
return
response
return
response
###################### ARSSPD
###################### ARSSPD
elif
url_dict
[
'act'
]
==
'r200'
:
elif
url_dict
[
'act'
]
==
'r200'
:
query
=
DBSession
.
query
(
ARSspd
)
.
join
(
ARInvoice
)
.
order_by
(
ARSspd
.
id
)
.
all
()
query
=
DBSession
.
query
(
ARSspd
)
.
join
(
ARInvoice
)
.
order_by
(
ARSspd
.
id
)
.
all
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment