Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schleicherhof-pms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Wilhelm
schleicherhof-pms
Commits
32c0ceb4
Commit
32c0ceb4
authored
4 years ago
by
Johannes Wilhelm
Browse files
Options
Downloads
Patches
Plain Diff
array
parent
e7a949f1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
schleicherhof_pms/src/main/java/de/thd/pms/model/Zimmer.java
+29
-13
29 additions, 13 deletions
schleicherhof_pms/src/main/java/de/thd/pms/model/Zimmer.java
schleicherhof_pms/src/main/resources/templates/buchung.html
+9
-1
9 additions, 1 deletion
schleicherhof_pms/src/main/resources/templates/buchung.html
with
38 additions
and
14 deletions
schleicherhof_pms/src/main/java/de/thd/pms/model/Zimmer.java
+
29
−
13
View file @
32c0ceb4
...
...
@@ -21,21 +21,23 @@ public class Zimmer {
return
anzbettErw
;
}
public
void
setAnzbettErw
(
int
anzbettErw
)
{
this
.
anzbettErw
=
anzbettErw
;
}
public
int
getAnzbettKind
()
{
return
anzbettKind
;
}
public
void
setAnzbettKind
(
int
anzbettKind
)
{
this
.
anzbettKind
=
anzbettKind
;
}
private
int
preisKind
;
public
Integer
[]
getAnzbettArrayErw
()
{
Integer
[]
result
=
new
Integer
[
anzbettErw
];
for
(
int
i
=
0
;
i
<
anzbettErw
;
i
++)
{
result
[
i
]
=
i
;
}
return
result
;
}
public
Integer
[]
getAnzbettArrayKind
()
{
Integer
[]
result
=
new
Integer
[
anzbettKind
];
for
(
int
i
=
0
;
i
<
anzbettKind
;
i
++)
{
result
[
i
]
=
i
;
}
return
result
;
}
@Override
public
String
toString
()
{
...
...
@@ -86,4 +88,18 @@ public class Zimmer {
public
void
setZimmername
(
String
zimmername
)
{
this
.
zimmername
=
zimmername
;
}
public
void
setAnzbettErw
(
int
anzbettErw
)
{
this
.
anzbettErw
=
anzbettErw
;
}
public
int
getAnzbettKind
()
{
return
anzbettKind
;
}
public
void
setAnzbettKind
(
int
anzbettKind
)
{
this
.
anzbettKind
=
anzbettKind
;
}
private
int
preisKind
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
schleicherhof_pms/src/main/resources/templates/buchung.html
+
9
−
1
View file @
32c0ceb4
...
...
@@ -47,7 +47,15 @@
placeholder=
"kind_anz"
name=
"kind_anz"
th:value=
"*{kind_anz}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"sitze"
>
Belegung Zimmer Erwachsene
</label>
<p
class=
"form-control-static"
>
<select
name=
"anzbettErw"
>
<option
th:each=
"i : ${zimmer.anzbettArrayErw}"
th:value=
"${zimmer.anzbettArrayErw}"
></option>
</select>
</p>
</div>
<div
class=
"form-group"
>
<input
type=
"hidden"
name=
"zimmerid"
th:value=
"${zimmer.id}"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment