Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewParkAPP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YONG-LIN SU
NewParkAPP
Commits
15fa2c1e
Commit
15fa2c1e
authored
Sep 12, 2022
by
YONG-LIN SU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新費率及車格資料
parent
b3781c77
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
417 additions
and
413 deletions
+417
-413
Space
app/src/main/assets/Space
+348
-350
SpaceFee
app/src/main/assets/SpaceFee
+28
-28
VehicleType
app/src/main/assets/VehicleType
+2
-2
SpaceFee.java
...rc/main/java/ecom/android/newparkapp/entity/SpaceFee.java
+5
-1
T01ImportDbViewModel.java
...om/android/newparkapp/viewModel/T01ImportDbViewModel.java
+4
-2
Space
相關文件/基本資料/嘉義舊資料轉換/Space
+0
-0
SpaceFee
相關文件/基本資料/嘉義舊資料轉換/SpaceFee
+28
-28
VehicleType
相關文件/基本資料/嘉義舊資料轉換/VehicleType
+2
-2
轉換表.xlsx
相關文件/基本資料/嘉義舊資料轉換/轉換表.xlsx
+0
-0
新嘉義開單APP-內部技術文件.docx
相關文件/新嘉義開單APP-內部技術文件.docx
+0
-0
No files found.
app/src/main/assets/Space
View file @
15fa2c1e
This diff is collapsed.
Click to expand it.
app/src/main/assets/SpaceFee
View file @
15fa2c1e
1
2 2
0
2
2 2
0
3
2 2
0
4
2 2
0
5
2 2
0
6
2 2
0
7
2 2
0
8
2 2
0
9
2 2
0
10
2 2
0
11
2 4
0
12
2 20
13
2 20
14
2 4
0
1
1 25
2
1 25
3
1 25
4
1 25
5
1 25
6
1 25
7
1 25
8
1 25
9
1 25
10
1 25
11
1 5
0
12
1 15
13
1 15
14
1 5
0
1
1 25
0
2
1 25
0
3
1 25
0
4
1 25
0
5
1 25
0
6
1 50
0
7
1 50
0
8
1 50
0
9
1 25
0
10
1 25
0
11
1 25
0
12
1 15 4
13
1 15 4
14
1 25
0
1
2 20 0
2
2 20 0
3
2 20 0
4
2 20 0
5
2 20 0
6
2 40 0
7
2 40 0
8
2 40 0
9
2 20 0
10
2 20 0
11
2 20
0
12
2 10 4
13
2 10 4
14
2 20
0
app/src/main/assets/VehicleType
View file @
15fa2c1e
...
...
@@ -6,9 +6,9 @@
06 大自客貨
07 遊覽車
08 大營貨
09 大型機車
10 計程車
11 交通車
12 身心障礙(府-2)
13 身心障礙(社-4)
14 其他
\ No newline at end of file
31 輕機
\ No newline at end of file
app/src/main/java/ecom/android/newparkapp/entity/SpaceFee.java
View file @
15fa2c1e
...
...
@@ -19,10 +19,14 @@ public class SpaceFee {
@ColumnInfo
(
name
=
"fee"
)
public
int
fee
;
public
SpaceFee
(
int
id
,
VehicleType
vehicleType
,
SpaceRate
spaceRate
,
int
fee
)
{
@ColumnInfo
(
name
=
"free_time"
)
public
float
freeTime
;
// 免費時數
public
SpaceFee
(
int
id
,
VehicleType
vehicleType
,
SpaceRate
spaceRate
,
int
fee
,
float
freeTime
)
{
this
.
id
=
id
;
this
.
vehicleType
=
vehicleType
;
this
.
spaceRate
=
spaceRate
;
this
.
fee
=
fee
;
this
.
freeTime
=
freeTime
;
}
}
app/src/main/java/ecom/android/newparkapp/viewModel/T01ImportDbViewModel.java
View file @
15fa2c1e
...
...
@@ -288,14 +288,16 @@ public class T01ImportDbViewModel extends AndroidViewModel {
infoRepository
.
spaceFeeDao
.
deleteAll
();
for
(
int
i
=
0
;
i
<
lines
.
length
;
i
++)
{
String
[]
columnString
=
lines
[
i
].
trim
().
split
(
"[ ]"
);
if
(
columnString
.
length
!=
3
){
if
(
columnString
.
length
!=
4
){
continue
;
}
int
vehicleTypeId
,
spaceRateId
,
fee
;
float
freeTime
;
try
{
vehicleTypeId
=
Integer
.
parseInt
(
columnString
[
0
]);
spaceRateId
=
Integer
.
parseInt
(
columnString
[
1
]);
fee
=
Integer
.
parseInt
(
columnString
[
2
]);
freeTime
=
Float
.
parseFloat
(
columnString
[
3
]);
}
catch
(
NumberFormatException
e
){
continue
;
}
...
...
@@ -308,7 +310,7 @@ public class T01ImportDbViewModel extends AndroidViewModel {
if
(
spaceRateList
.
size
()
==
0
){
continue
;}
SpaceRate
spaceRate
=
spaceRateList
.
get
(
0
);
SpaceFee
spaceFee
=
new
SpaceFee
(
0
,
vehicleType
,
spaceRate
,
fee
);
SpaceFee
spaceFee
=
new
SpaceFee
(
0
,
vehicleType
,
spaceRate
,
fee
,
freeTime
);
infoRepository
.
spaceFeeDao
.
insertAll
(
spaceFee
);
}
});
...
...
相關文件/基本資料/嘉義舊資料轉換/Space
View file @
15fa2c1e
This diff is collapsed.
Click to expand it.
相關文件/基本資料/嘉義舊資料轉換/SpaceFee
View file @
15fa2c1e
1
2 2
0
2
2 2
0
3
2 2
0
4
2 2
0
5
2 2
0
6
2 2
0
7
2 2
0
8
2 2
0
9
2 2
0
10
2 2
0
11
2 4
0
12
2 20
13
2 20
14
2 4
0
1
1 25
2
1 25
3
1 25
4
1 25
5
1 25
6
1 25
7
1 25
8
1 25
9
1 25
10
1 25
11
1 5
0
12
1 15
13
1 15
14
1 5
0
1
1 25
0
2
1 25
0
3
1 25
0
4
1 25
0
5
1 25
0
6
1 50
0
7
1 50
0
8
1 50
0
9
1 25
0
10
1 25
0
11
1 25
0
12
1 15 4
13
1 15 4
14
1 25
0
1
2 20 0
2
2 20 0
3
2 20 0
4
2 20 0
5
2 20 0
6
2 40 0
7
2 40 0
8
2 40 0
9
2 20 0
10
2 20 0
11
2 20
0
12
2 10 4
13
2 10 4
14
2 20
0
相關文件/基本資料/嘉義舊資料轉換/VehicleType
View file @
15fa2c1e
...
...
@@ -6,9 +6,9 @@
06 大自客貨
07 遊覽車
08 大營貨
09 大型機車
10 計程車
11 交通車
12 身心障礙(府-2)
13 身心障礙(社-4)
14 其他
\ No newline at end of file
31 輕機
\ No newline at end of file
相關文件/基本資料/嘉義舊資料轉換/轉換表.xlsx
View file @
15fa2c1e
No preview for this file type
相關文件/新嘉義開單APP-內部技術文件.docx
View file @
15fa2c1e
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment