Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 062dce75
authored
Mar 26, 2025
by
Prismana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
- Fix date format in pdf report in user page
- Hide add, update, delete in pemerintah page
1 parent
bd579c8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
opensipkd/base/reports/users.jrxml
opensipkd/base/views/company.py
opensipkd/base/reports/users.jrxml
View file @
062dce7
...
...
@@ -150,7 +150,7 @@ FROM users]]>
<rightPen
lineWidth=
"1.0"
lineStyle=
"Solid"
lineColor=
"#000000"
/>
</box>
<textElement
textAlignment=
"Center"
/>
<textFieldExpression>
<![CDATA[$F{last_login_date}== null ? " " : new java.text.SimpleDateFormat("
yyyy-MM-dd
HH:mm:ss").format($F{last_login_date})]]>
</textFieldExpression>
<textFieldExpression>
<![CDATA[$F{last_login_date}== null ? " " : new java.text.SimpleDateFormat("
dd-MM-yyyy
HH:mm:ss").format($F{last_login_date})]]>
</textFieldExpression>
</textField>
<textField>
<reportElement
x=
"355"
y=
"0"
width=
"54"
height=
"20"
uuid=
"47051f05-f634-4c32-97cc-ce9af7b8f382"
/>
...
...
opensipkd/base/views/company.py
View file @
062dce7
...
...
@@ -103,7 +103,9 @@ class ViewCompany(BaseView):
self
.
edit_schema
=
EditSchema
self
.
list_schema
=
ListSchema
self
.
table
=
ResCompany
self
.
list_buttons
=
self
.
list_buttons
+
self
.
list_report
+
(
button_import
,)
# Cannot add new, use import method button
self
.
list_buttons
=
self
.
list_report
+
(
button_import
,)
path
=
os
.
path
.
dirname
(
__file__
)
path
=
os
.
path
.
dirname
(
path
)
...
...
@@ -195,7 +197,14 @@ class ViewCompany(BaseView):
renderer
=
'templates/table.pt'
,
permission
=
'company'
)
def
view_list
(
self
):
return
super
()
.
view_list
()
# This view list cannot to save and updated
kwargs
=
{
"allow_view"
:
True
,
"allow_delete"
:
False
,
"allow_edit"
:
False
,
"state_save"
:
False
}
return
super
()
.
view_list
(
**
kwargs
)
def
filter_company
(
self
,
query
):
if
self
.
req
.
user
.
company_id
:
...
...
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