Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
5764c078
Commit
5764c078
authored
Jul 16, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RFID連動作業
parent
d32bda85
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
10 deletions
+33
-10
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DBConnector.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DatabaseVersions.java
+1
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
+20
-6
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TOperation.java
+6
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/OperationDto.java
+4
-2
ABVJE_Launcher_Android/assets/check
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DBConnector.java
View file @
5764c078
...
...
@@ -19,7 +19,7 @@ import jp.agentec.abook.abv.bl.common.db.SQLiteDatabase;
public
class
DBConnector
{
private
static
volatile
DBConnector
dbConnector
=
null
;
public
static
final
String
DatabaseName
=
"ABVJE"
;
public
static
final
int
DatabaseVersion
=
DatabaseVersions
.
Ver1_
2_362
;
public
static
final
int
DatabaseVersion
=
DatabaseVersions
.
Ver1_
4_0
;
protected
SQLiteDatabase
db
=
null
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/DatabaseVersions.java
View file @
5764c078
...
...
@@ -6,6 +6,7 @@ public class DatabaseVersions {
public
static
final
int
Ver1_1_0
=
11
;
public
static
final
int
Ver1_2_0
=
21
;
public
static
final
int
Ver1_2_3
=
22
;
public
static
final
int
Ver1_4_0
=
41
;
//連続作業機能追加
public
static
final
int
Ver1_2_360
=
23
;
//チャット機能追加(1.2.360障害対応。)
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
View file @
5764c078
...
...
@@ -116,6 +116,16 @@ public class OperationDao extends AbstractDao {
dto
.
quickReport
=
cursor
.
getInt
(
column
);
}
column
=
cursor
.
getColumnIndex
(
"permit_code"
);
if
(
column
!=
-
1
)
{
dto
.
permitCode
=
cursor
.
getString
(
column
);
}
column
=
cursor
.
getColumnIndex
(
"permit_code_required_flg"
);
if
(
column
!=
-
1
)
{
dto
.
permitCodeRequiredFlg
=
cursor
.
getInt
(
column
);
}
return
dto
;
}
...
...
@@ -191,15 +201,17 @@ public class OperationDao extends AbstractDao {
+
"enable_report_history, "
+
"enable_report_edit,"
+
"enable_add_report,"
+
"quick_report) "
+
"quick_report,"
+
"permit_code,"
+
"permit_code_required_flg) "
+
"values "
+
"(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
,
+
"(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?
,?,?
)"
,
dto
.
getInsertValues
());
}
public
boolean
update
(
OperationDto
dto
)
{
long
count
=
update
(
"
update
t_operation "
+
"
set
"
long
count
=
update
(
"
UPDATE
t_operation "
+
"
SET
"
+
"operation_name=?, "
+
"operation_descriptions=?, "
+
"operation_start_date=?, "
...
...
@@ -215,8 +227,10 @@ public class OperationDao extends AbstractDao {
+
"enable_report_history=?, "
+
"enable_report_edit=?, "
+
"enable_add_report=?, "
+
"quick_report=? "
+
"where operation_id=?"
,
+
"quick_report=?, "
+
"permit_code=?, "
+
"permit_code_required_flg=? "
+
"WHERE operation_id=?"
,
dto
.
getUpdateValues
());
return
count
>
0
;
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TOperation.java
View file @
5764c078
...
...
@@ -40,6 +40,8 @@ public class TOperation extends SQLiteTableScript {
sql
.
append
(
" , enable_add_report SMALLINT NOT NULL DEFAULT 0 "
);
sql
.
append
(
" , operation_open_date DATETIME "
);
sql
.
append
(
" , quick_report SMALLINT NOT NULL DEFAULT 0 "
);
sql
.
append
(
" , permit_code TEXT "
);
sql
.
append
(
" , permit_code_required_flg "
);
sql
.
append
(
" , PRIMARY KEY (operation_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
...
...
@@ -58,6 +60,10 @@ public class TOperation extends SQLiteTableScript {
if
(
oldVersion
<
DatabaseVersions
.
Ver1_2_3
)
{
ddl
.
add
(
"ALTER TABLE t_operation ADD COLUMN quick_report SMALLINT NOT NULL DEFAULT 0 "
);
}
if
(
oldVersion
<
DatabaseVersions
.
Ver1_4_0
)
{
ddl
.
add
(
"ALTER TABLE t_operation ADD COLUMN permit_code TEXT "
);
ddl
.
add
(
"ALTER TABLE t_operation ADD COLUMN permit_code_required_flg SMALLINT "
);
}
return
ddl
;
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/OperationDto.java
View file @
5764c078
...
...
@@ -32,6 +32,8 @@ public class OperationDto extends AbstractDto {
public
int
enableReportEdit
;
// 作業編集可能区分
public
int
enableAddReport
;
// 作業追加区分
public
int
quickReport
;
// 簡易帳票区分
public
String
permitCode
;
// 許可スキャンコード
public
int
permitCodeRequiredFlg
;
// 許可スキャン必須フラグ
public
List
<
OperationGroupMasterRelationDto
>
operationGroupMasterRelationDtoList
;
// 作業種別に紐づく作業Dto
...
...
@@ -49,12 +51,12 @@ public class OperationDto extends AbstractDto {
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]
{
operationId
,
operationName
,
operationDescriptions
,
operationStartDate
,
operationEndDate
,
operationType
,
reportType
,
lastEditDate
,
contentCreatingFlg
,
editLockFlg
,
needSyncFlg
,
reportCycle
,
enableReportUpdate
,
enableReportHistory
,
enableReportEdit
,
enableAddReport
,
quickReport
};
return
new
Object
[]
{
operationId
,
operationName
,
operationDescriptions
,
operationStartDate
,
operationEndDate
,
operationType
,
reportType
,
lastEditDate
,
contentCreatingFlg
,
editLockFlg
,
needSyncFlg
,
reportCycle
,
enableReportUpdate
,
enableReportHistory
,
enableReportEdit
,
enableAddReport
,
quickReport
,
permitCode
,
permitCodeRequiredFlg
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]
{
operationName
,
operationDescriptions
,
operationStartDate
,
operationEndDate
,
operationType
,
reportType
,
lastEditDate
,
contentCreatingFlg
,
editLockFlg
,
needSyncFlg
,
reportCycle
,
enableReportUpdate
,
enableReportHistory
,
enableReportEdit
,
enableAddReport
,
quickReport
,
operationId
};
return
new
Object
[]
{
operationName
,
operationDescriptions
,
operationStartDate
,
operationEndDate
,
operationType
,
reportType
,
lastEditDate
,
contentCreatingFlg
,
editLockFlg
,
needSyncFlg
,
reportCycle
,
enableReportUpdate
,
enableReportHistory
,
enableReportEdit
,
enableAddReport
,
quickReport
,
permitCode
,
permitCodeRequiredFlg
,
operationId
};
}
@Override
...
...
check
@
c6486df4
Subproject commit
8f311eaa70017a25b07676c7a9131bc7cf8413c6
Subproject commit
c6486df4bde19d95a9723aa72a9bb13a558d6935
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