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
e6cfd997
Commit
e6cfd997
authored
Jan 04, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify for offline
parent
aa1489f6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
746 additions
and
25 deletions
+746
-25
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataOpenHelper.java
+23
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
+40
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RChatRoomShopMember.java
+42
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RChatUnreadMessage.java
+42
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RCollaborationMember.java
+42
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RShopMemberGroup.java
+42
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TArchive.java
+45
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatMessage.java
+44
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatRoom.java
+40
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TCollaboration.java
+39
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TCollaborationDetail.java
+43
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ArchiveDto.java
+28
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatMessageDto.java
+27
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatRoomDto.java
+27
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CollaborationDetailDto.java
+24
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CollaborationDto.java
+22
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
+26
-0
ABVJE_Launcher_Android/assets/chat/public/css/chat.css
+58
-8
ABVJE_Launcher_Android/assets/chat/public/images/group-image.png
+0
-0
ABVJE_Launcher_Android/assets/chat/public/index.html
+0
-0
ABVJE_Launcher_Android/assets/chat/public/js/chat-ui.js
+0
-0
ABVJE_Launcher_Android/assets/chat/public/js/chat-websocket.js
+0
-0
ABVJE_Launcher_Android/assets/chat/public/js/chat.js
+10
-10
ABVJE_Launcher_Android/assets/chat/public/js/language_en.js
+8
-2
ABVJE_Launcher_Android/assets/chat/public/js/language_ja.js
+8
-2
ABVJE_Launcher_Android/assets/chat/public/js/language_ko.js
+8
-2
ABVJE_Launcher_Android/assets/chat/public/networkError.html
+57
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataOpenHelper.java
View file @
e6cfd997
...
...
@@ -16,13 +16,23 @@ import jp.agentec.abook.abv.bl.data.tables.MMemberInfo;
import
jp.agentec.abook.abv.bl.data.tables.MOperationGroupMaster
;
import
jp.agentec.abook.abv.bl.data.tables.MPasswordLockInfo
;
import
jp.agentec.abook.abv.bl.data.tables.MServiceOption
;
import
jp.agentec.abook.abv.bl.data.tables.MShopMember
;
import
jp.agentec.abook.abv.bl.data.tables.MWorkerGroup
;
import
jp.agentec.abook.abv.bl.data.tables.RChatRoomShopMember
;
import
jp.agentec.abook.abv.bl.data.tables.RChatUnreadMessage
;
import
jp.agentec.abook.abv.bl.data.tables.RCollaborationMember
;
import
jp.agentec.abook.abv.bl.data.tables.ROperationContent
;
import
jp.agentec.abook.abv.bl.data.tables.RContentCategory
;
import
jp.agentec.abook.abv.bl.data.tables.RContentGroup
;
import
jp.agentec.abook.abv.bl.data.tables.ROperationGroupMasterOperation
;
import
jp.agentec.abook.abv.bl.data.tables.RShopMemberGroup
;
import
jp.agentec.abook.abv.bl.data.tables.RTaskWorkerGroup
;
import
jp.agentec.abook.abv.bl.data.tables.SQLiteTableScript
;
import
jp.agentec.abook.abv.bl.data.tables.TArchive
;
import
jp.agentec.abook.abv.bl.data.tables.TChatMessage
;
import
jp.agentec.abook.abv.bl.data.tables.TChatRoom
;
import
jp.agentec.abook.abv.bl.data.tables.TCollaboration
;
import
jp.agentec.abook.abv.bl.data.tables.TCollaborationDetail
;
import
jp.agentec.abook.abv.bl.data.tables.TContent
;
import
jp.agentec.abook.abv.bl.data.tables.TContentBookmark
;
import
jp.agentec.abook.abv.bl.data.tables.TContentDownloadQueue
;
...
...
@@ -100,6 +110,19 @@ public class ABVDataOpenHelper {
iTableScripts
.
add
(
new
MOperationGroupMaster
());
iTableScripts
.
add
(
new
ROperationGroupMasterOperation
());
iTableScripts
.
add
(
new
TTaskReportApproval
());
//ABCOMM関連テーブル
iTableScripts
.
add
(
new
MShopMember
());
iTableScripts
.
add
(
new
TChatRoom
());
iTableScripts
.
add
(
new
TChatMessage
());
iTableScripts
.
add
(
new
TCollaboration
());
iTableScripts
.
add
(
new
TCollaborationDetail
());
iTableScripts
.
add
(
new
TArchive
());
iTableScripts
.
add
(
new
RShopMemberGroup
());
iTableScripts
.
add
(
new
RChatRoomShopMember
());
iTableScripts
.
add
(
new
RChatUnreadMessage
());
iTableScripts
.
add
(
new
RCollaborationMember
());
return
iTableScripts
;
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
MShopMember
extends
SQLiteTableScript
{
public
MShopMember
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table m_shop_member ( "
);
sql
.
append
(
" shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_name VARCHAR(64) "
);
sql
.
append
(
" , profile_url VARCHAR(64) "
);
sql
.
append
(
" , favorite_register_date DATETIME "
);
sql
.
append
(
" , PRIMARY KEY (shop_member_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RChatRoomShopMember.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
RChatRoomShopMember
extends
SQLiteTableScript
{
public
RChatRoomShopMember
()
{
super
();
}
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table r_chat_room_shop_member ( "
);
sql
.
append
(
" room_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (room_id, shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (room_id) REFERENCES t_chat_room (room_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RChatUnreadMessage.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
RChatUnreadMessage
extends
SQLiteTableScript
{
public
RChatUnreadMessage
()
{
super
();
}
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table r_chat_unread_message ( "
);
sql
.
append
(
" chat_message_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (chat_message_id, shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (chat_message_id) REFERENCES t_chat_message (chat_message_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RCollaborationMember.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
RCollaborationMember
extends
SQLiteTableScript
{
public
RCollaborationMember
()
{
super
();
}
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table r_collaboration_member ( "
);
sql
.
append
(
" collaboration_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (collaboration_id, shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (collaboration_id) REFERENCES t_collaboration (collaboration_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/RShopMemberGroup.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
RShopMemberGroup
extends
SQLiteTableScript
{
public
RShopMemberGroup
()
{
super
();
}
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table r_shop_member_group ( "
);
sql
.
append
(
" shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , group_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (shop_member_id, group_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" , FOREIGN KEY (group_id) REFERENCES m_group (group_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TArchive.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
TArchive
extends
SQLiteTableScript
{
public
TArchive
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table t_archive ( "
);
sql
.
append
(
" archive_id INTEGER NOT NULL "
);
sql
.
append
(
" , archive_name VARCHAR2(64) "
);
sql
.
append
(
" , archive_type INTEGER NOT NULL "
);
sql
.
append
(
" , archive_url VARCHAR2 "
);
sql
.
append
(
" , collaboration_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , archive_save_path VARCHAR2 "
);
sql
.
append
(
" , PRIMARY KEY (archive_id)"
);
sql
.
append
(
" , FOREIGN KEY (collaboration_id) REFERENCES t_collaboration (collaboration_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatMessage.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
TChatMessage
extends
SQLiteTableScript
{
public
TChatMessage
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table t_chat_message ( "
);
sql
.
append
(
" chat_message_id INTEGER NOT NULL "
);
sql
.
append
(
" , chat_room_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , message VARCHAR2 "
);
sql
.
append
(
" , message_type INTEGER "
);
sql
.
append
(
" , link_url VARCHAR2 "
);
sql
.
append
(
" , PRIMARY KEY (chat_message_id) "
);
sql
.
append
(
" , FOREIGN KEY (chat_room_id) REFERENCES t_chat_room (chat_room_id) "
);
sql
.
append
(
" , FOREIGN KEY (shop_member_id) REFERENCES m_shop_member (shop_member_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatRoom.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
TChatRoom
extends
SQLiteTableScript
{
public
TChatRoom
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table t_chat_room ( "
);
sql
.
append
(
" chat_room_id INTEGER NOT NULL "
);
sql
.
append
(
" , chat_room_name VARCHAR2 "
);
sql
.
append
(
" , type INTEGER NOT NULL "
);
sql
.
append
(
" , favorite_register_date DATETIME "
);
sql
.
append
(
" , PRIMARY KEY (chat_room_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TCollaboration.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
TCollaboration
extends
SQLiteTableScript
{
public
TCollaboration
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table t_collaboration ( "
);
sql
.
append
(
" collaboration_id INTEGER NOT NULL "
);
sql
.
append
(
" , chat_message_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (collaboration_id)"
);
sql
.
append
(
" , FOREIGN KEY (chat_message_id) REFERENCES t_chat_message (chat_message_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TCollaborationDetail.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
tables
;
import
java.util.ArrayList
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.db.SQLiteDatabase
;
public
class
TCollaborationDetail
extends
SQLiteTableScript
{
public
TCollaborationDetail
(){
};
@Override
public
List
<
String
>
getCreateScript
(
int
version
)
{
List
<
String
>
ddl
=
new
ArrayList
<
String
>();
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" create table t_collaboration_detail ( "
);
sql
.
append
(
" collaboration_detial_id INTEGER NOT NULL "
);
sql
.
append
(
" , collaboration_id INTEGER NOT NULL "
);
sql
.
append
(
" , collaboration_type INTEGER "
);
sql
.
append
(
" , collaboration_duration VARCHAR2(64) "
);
sql
.
append
(
" , chat_room_id INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (collaboration_detial_id)"
);
sql
.
append
(
" , FOREIGN KEY (collaboration_id) REFERENCES t_collaboration (collaboration_id) "
);
sql
.
append
(
" , FOREIGN KEY (chat_room_id) REFERENCES t_chat_room (chat_room_id) "
);
sql
.
append
(
" ) "
);
ddl
.
add
(
sql
.
toString
());
return
ddl
;
}
@Override
public
List
<
String
>
getUpgradeScript
(
int
oldVersion
,
int
newVersion
)
{
return
null
;
}
@Override
public
List
<
String
>
getMigrationScript
(
SQLiteDatabase
databaseConnection
,
int
oldVersion
,
int
newVersion
,
Object
...
params
)
{
return
null
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ArchiveDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
public
class
ArchiveDto
extends
AbstractDto
{
public
Integer
archiveId
;
public
String
archiveName
;
public
Integer
archiveType
;
public
String
archiveUrl
;
public
Integer
collaborationId
;
public
Integer
shop_memberId
;
public
String
archiveSavePath
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
archiveId
,
archiveName
,
archiveType
,
archiveUrl
,
collaborationId
,
shop_memberId
,
archiveSavePath
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
archiveSavePath
,
archiveName
,
archiveType
,
archiveUrl
,
collaborationId
,
shop_memberId
,
archiveId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
archiveId
};
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatMessageDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
public
class
ChatMessageDto
extends
AbstractDto
{
public
Integer
chatMessageId
;
public
Integer
chatRoomId
;
public
Integer
shopMemberId
;
public
String
message
;
public
Integer
messageType
;
public
String
linkUrl
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
chatMessageId
,
chatRoomId
,
shopMemberId
,
shopMemberId
,
message
,
messageType
,
linkUrl
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
chatRoomId
,
shopMemberId
,
shopMemberId
,
message
,
messageType
,
linkUrl
,
chatMessageId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
chatMessageId
};
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatRoomDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
import
java.util.Date
;
public
class
ChatRoomDto
extends
AbstractDto
{
public
Integer
chatRoomId
;
public
String
chatRoomName
;
public
Integer
type
;
public
Date
favoriteRegisterDate
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
chatRoomId
,
chatRoomName
,
type
,
favoriteRegisterDate
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
favoriteRegisterDate
,
chatRoomName
,
type
,
chatRoomId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
chatRoomId
};
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CollaborationDetailDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
public
class
CollaborationDetailDto
extends
AbstractDto
{
public
Integer
collaborationDetialId
;
public
Integer
collaborationId
;
public
Integer
collaborationType
;
public
String
collaborationDuration
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
collaborationDetialId
,
collaborationId
,
collaborationType
,
collaborationDuration
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
collaborationDuration
,
collaborationId
,
collaborationType
,
collaborationDetialId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
collaborationDetialId
};
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CollaborationDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
public
class
CollaborationDto
extends
AbstractDto
{
public
Integer
collaborationId
;
public
Integer
chatMessageId
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
collaborationId
,
chatMessageId
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
chatMessageId
,
collaborationId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
collaborationId
};
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
0 → 100644
View file @
e6cfd997
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
import
java.util.Date
;
public
class
ShopMemberDto
extends
AbstractDto
{
public
Integer
shopMemberId
;
public
String
shopMemberName
;
public
String
profileUrl
;
public
Date
favoriteRegisterDate
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]{
shopMemberId
,
shopMemberName
,
profileUrl
,
favoriteRegisterDate
};
}
@Override
public
Object
[]
getUpdateValues
()
{
return
new
Object
[]{
shopMemberName
,
profileUrl
,
favoriteRegisterDate
,
shopMemberId
};
}
@Override
public
String
[]
getKeyValues
()
{
return
new
String
[]{
""
+
shopMemberId
};
}
}
ABVJE_Launcher_Android/assets/chat/public/css/chat.css
View file @
e6cfd997
...
...
@@ -62,20 +62,32 @@ img {
.top_spac
{
margin
:
20px
0
0
;}
.recent_heading
{
float
:
left
;
width
:
4
0%
;}
.recent_heading
{
float
:
left
;
width
:
9
0%
;}
.srch_bar
{
display
:
inline-block
;
text-align
:
right
;
width
:
6
0%
;
text-align
:
center
;
width
:
10
0%
;
/*padding:*/
}
.heading_srch
{
padding
:
10px
20px
10px
2
0px
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#c4c4c4
;}
.heading_srch
{
padding
:
5px
10px
5px
1
0px
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#c4c4c4
;}
.recent_heading
h4
{
color
:
#095395
;
font-size
:
21px
;
margin
:
auto
;
}
.data_srch
h3
,
.recent_heading
h3
{
color
:
#095395
;
font-size
:
20px
;
margin
:
auto
;
margin-left
:
10px
;
}
.inbox_people
.data_srch
{
padding
:
5px
10px
5px
10px
;
}
.chat_list
,
.group_list
,
.user_list
,
.select_user_list
{
border-bottom
:
1px
solid
#c4c4c4
;
margin
:
0
;
...
...
@@ -92,11 +104,25 @@ img {
margin-left
:
0
;
}
.room-list-title
{
display
:
inline-flex
;
max-width
:
100%
;
}
.room-name-font
{
font-size
:
1rem
!important
;
margin-right
:
5px
;
}
.room-member-count
{
line-height
:
1.5
;
}
.chat_img
,
.group_img
,
.user_img
{
float
:
left
;
width
:
11%
;
}
.srch_bar
input
{
border
:
1px
solid
#cdcdcd
;
border-width
:
0
0
1px
0
;
width
:
80%
;
padding
:
2
px
0
4px
6px
;
background
:
none
;
}
.srch_bar
input
{
border
:
1px
solid
#cdcdcd
;
border-width
:
0
0
1px
0
;
width
:
90%
;
padding
:
4
px
0
4px
6px
;
background
:
none
;
}
.srch_bar
.input-group-addon
button
{
background
:
rgba
(
0
,
0
,
0
,
0
)
none
repeat
scroll
0
0
;
border
:
medium
none
;
...
...
@@ -172,9 +198,18 @@ img {
}
.received_withd_msg
{
width
:
57%
;}
.mesgs
{
margin-top
:
40px
;
padding
:
0px
15px
48px
15px
;
}
.search-bar-fixed
{
position
:
fixed
;
}
.search-group
{
margin-bottom
:
38px
;
}
.landscape_mesgs
{
padding
:
0px
10%
48px
10%
;
}
...
...
@@ -215,7 +250,10 @@ img {
}
.messaging
{
padding
:
0
0
50px
0
;}
.msg_history
{
height
:
calc
(
100vh
-
88px
);
/* チャット画面スクロール範囲
* 画面の高さ - (画面上部タイトルの高さ(58px) + ルーム名検索欄の高さ(38px) + メッセージ入力欄の高さ(48px)) */
height
:
calc
(
100vh
-
144px
);
overflow-y
:
auto
;
-webkit-overflow-scrolling
:
touch
;
}
...
...
@@ -351,7 +389,7 @@ a.article:hover {
position
:
fixed
;
width
:
60px
;
height
:
60px
;
bottom
:
18
px
;
bottom
:
20
px
;
right
:
18px
;
background-color
:
#095395
;
color
:
#FFF
;
...
...
@@ -496,7 +534,6 @@ a.article:hover {
#newRoomName
{
display
:
none
;
width
:
auto
;
}
.bg-primary
,
.btn-primary
{
...
...
@@ -584,6 +621,19 @@ a.article:hover {
z-index
:
10050
;
}
#errorMsg
{
margin-top
:
60px
;
text-align
:
center
;
}
.bg-footer
{
background-color
:
#F2F2F2
;
}
.talign-center
{
text-align
:
center
;
}
/* --------------------------------------------------- */
/* ERROR PAGE STYLE */
/* --------------------------------------------------- */
...
...
ABVJE_Launcher_Android/assets/chat/public/images/group-image.png
0 → 100644
View file @
e6cfd997
26.8 KB
ABVJE_Launcher_Android/assets/chat/public/index.html
View file @
e6cfd997
This diff is collapsed.
Click to expand it.
ABVJE_Launcher_Android/assets/chat/public/js/chat-ui.js
View file @
e6cfd997
This diff is collapsed.
Click to expand it.
ABVJE_Launcher_Android/assets/chat/public/js/chat-websocket.js
View file @
e6cfd997
This diff is collapsed.
Click to expand it.
ABVJE_Launcher_Android/assets/chat/public/js/chat.js
View file @
e6cfd997
...
...
@@ -112,9 +112,9 @@ CHAT.uploadImage = function(formData) {
let
downloadPath
=
CMS_SERVER_URL
+
'/file/download?fileName='
+
imageName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
// アップロードが終了した後ローディング画面から離れてメッセージをメッセージを転送する
const
lightbox
=
jQuery
(
'<a/>'
,{
href
:
imgPath
,
'data-lightbox'
:
'attachedImages'
,
'data-title'
:
imageName
});
const
image
=
jQuery
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
});
const
downloadIcon
=
jQuery
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
const
lightbox
=
$
(
'<a/>'
,{
href
:
imgPath
,
'data-lightbox'
:
'attachedImages'
,
'data-title'
:
imageName
});
const
image
=
$
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
});
const
downloadIcon
=
$
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
lightbox
.
append
(
image
);
lightbox
.
append
(
downloadIcon
);
...
...
@@ -136,9 +136,9 @@ CHAT.uploadImage = function(formData) {
}
let
downloadPath
=
CMS_SERVER_URL
+
'/file/download?fileName='
+
imageName
+
'&roomId='
+
CHAT
.
globalLoginParameter
.
roomId
;
const
aTag
=
jQuery
(
'<a/>'
,
{
id
:
"attachedImages"
})
const
image
=
jQuery
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
});
const
downloadIcon
=
jQuery
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
const
aTag
=
$
(
'<a/>'
,
{
id
:
"attachedImages"
})
const
image
=
$
(
'<img/>'
,{
src
:
imgPath
,
width
:
'auto'
,
style
:
'max-width:100%'
});
const
downloadIcon
=
$
(
'<a/>'
,{
href
:
downloadPath
,
class
:
'fa fa-download'
,
download
:
res
.
fileName
});
aTag
.
append
(
image
);
aTag
.
append
(
downloadIcon
);
...
...
@@ -156,8 +156,8 @@ CHAT.uploadImage = function(formData) {
},
1
);
}
jQuery
(
'.overlay'
).
removeClass
(
'active undismissable'
);
jQuery
(
'.loader'
).
removeClass
(
'active'
);
$
(
'.overlay'
).
removeClass
(
'active undismissable'
);
$
(
'.loader'
).
removeClass
(
'active'
);
CHAT_UI
.
dismissLoadingIndicator
();
})
}
...
...
@@ -246,11 +246,11 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam
}
else
{
console
.
log
(
'No error'
);
if
(
loginParam
.
roomName
!=
undefined
&&
loginParam
.
roomName
!=
"null"
)
{
jQuery
(
'.titleRoomName'
).
text
(
loginParam
.
roomName
).
data
(
'roomName'
,
loginParam
.
roomName
);
$
(
'.titleRoomName'
).
text
(
loginParam
.
roomName
).
data
(
'roomName'
,
loginParam
.
roomName
);
}
else
{
// 設定されていたroomNameがない場合
let
roomListTitle
=
getLocalizedString
(
"roomListTitle"
)
jQuery
(
'.titleRoomName'
).
text
(
roomListTitle
).
data
(
'roomName'
,
roomListTitle
);
$
(
'.titleRoomName'
).
text
(
roomListTitle
).
data
(
'roomName'
,
roomListTitle
);
}
}
// loadingIndicatorを表示しない
...
...
ABVJE_Launcher_Android/assets/chat/public/js/language_en.js
View file @
e6cfd997
$
.
lang
.
en
=
{
"chat_placeholder"
:
"Type message"
,
"chat_search_placeholder"
:
" Search Message"
,
"room_search_placeholder"
:
" Search Room"
,
"participants"
:
"Member List"
,
"exitRoom"
:
"Exit "
,
"roomListTitle"
:
"Room List"
,
"deleteRoomTitle"
:
"Delete Room"
,
"inviteUsersButton"
:
"invite"
,
"inviteUsersTitle"
:
"Invite Member"
,
"createRoomSubtitle"
:
"Create Room"
,
"createRoomTitle"
:
"Create Room"
,
"createRoomSubtitle"
:
"Room Name"
,
"inviteUsersSubtitle"
:
"Invite User"
,
"roomListEmptyString"
:
"There is no room available."
,
"invitedUser"
:
"Invited Users"
,
"left"
:
"%@ has left"
,
"join"
:
"%@ has joined"
,
"added"
:
"%@ has been invited"
,
...
...
@@ -22,12 +26,14 @@ $.lang.en = {
"thankLabel"
:
"Thank you"
,
"startToWorkLabel"
:
"Start to work"
,
"groupListKeyword"
:
"Search"
,
"userSearch"
:
"User Search"
,
"groupSearch"
:
"Group Search"
,
"groupPageSubtitle"
:
"Groups"
,
"noMessages"
:
"No Messages"
,
"image"
:
"Image"
,
"chatKeyword"
:
"Search"
,
"userListKeyword"
:
"Search"
,
"newRoomName"
:
"
Enter Roomn
ame"
,
"newRoomName"
:
"
Please input Room N
ame"
,
"everyoneIsHere"
:
"Everyone is in the chat."
,
"people"
:
"people"
,
"searchResult"
:
"Results"
,
...
...
ABVJE_Launcher_Android/assets/chat/public/js/language_ja.js
View file @
e6cfd997
$
.
lang
.
ja
=
{
"chat_placeholder"
:
"メッセージを入力"
,
"chat_search_placeholder"
:
" メッセージ検索"
,
"room_search_placeholder"
:
" ルーム検索"
,
"participants"
:
"メンバーリスト"
,
"exitRoom"
:
"退出 "
,
"roomListTitle"
:
"ルーム一覧"
,
"deleteRoomTitle"
:
"ルーム削除"
,
"inviteUsersButton"
:
"招待"
,
"inviteUsersTitle"
:
"メンバー追加"
,
"createRoomSubtitle"
:
"ルーム生成"
,
"createRoomTitle"
:
"ルーム開設"
,
"createRoomSubtitle"
:
"ルーム名"
,
"inviteUsersSubtitle"
:
"ユーザ招待"
,
"roomListEmptyString"
:
"入場できるルームがありません。"
,
"left"
:
"%@ 様が退場しました。"
,
...
...
@@ -21,13 +24,16 @@ $.lang.ja = {
"completeLabel"
:
"完了しました。"
,
"thankLabel"
:
"ありがとうございます。"
,
"startToWorkLabel"
:
"作業開始します。"
,
"userSearch"
:
"ユーザー検索"
,
"groupSearch"
:
"グループ検索"
,
"groupListKeyword"
:
"検索"
,
"groupPageSubtitle"
:
"グループ"
,
"noMessages"
:
"メッセージがありません。"
,
"image"
:
"画像"
,
"chatKeyword"
:
"検索"
,
"userListKeyword"
:
"検索"
,
"newRoomName"
:
"ルーム名を入力"
,
"invitedUser"
:
"参加者"
,
"newRoomName"
:
"ルーム名を入力してください"
,
"everyoneIsHere"
:
"招待可能なメンバーがいません。"
,
"people"
:
"人"
,
"searchResult"
:
"件のトーク"
,
...
...
ABVJE_Launcher_Android/assets/chat/public/js/language_ko.js
View file @
e6cfd997
$
.
lang
.
ko
=
{
"chat_placeholder"
:
"메시지를 입력하세요."
,
"chat_search_placeholder"
:
" 메세지검색"
,
"room_search_placeholder"
:
" 채팅방 검색"
,
"participants"
:
"멤버 리스트"
,
"exitRoom"
:
"나가기 "
,
"roomListTitle"
:
"채팅 리스트"
,
"deleteRoomTitle"
:
"채팅방 삭제"
,
"inviteUsersButton"
:
"유저 초대"
,
"inviteUsersTitle"
:
"대화상대 추가"
,
"createRoomSubtitle"
:
"방 생성"
,
"createRoomTitle"
:
"방 개설"
,
"createRoomSubtitle"
:
"방 이름"
,
"inviteUsersSubtitle"
:
"유저 초대"
,
"roomListEmptyString"
:
"입장 가능한 방이 없습니다."
,
"invitedUser"
:
"참가자"
,
"left"
:
"%@ 님이 방을 떠났습니다."
,
"join"
:
"%@ 님이 참가했습니다."
,
"added"
:
"%@ 님을 초대했습니다."
,
...
...
@@ -22,12 +26,14 @@ $.lang.ko = {
"thankLabel"
:
"감사합니다."
,
"startToWorkLabel"
:
"작업을 시작합니다."
,
"groupListKeyword"
:
"검색"
,
"userSearch"
:
"유저 검색"
,
"groupSearch"
:
"그룹 검색"
,
"groupPageSubtitle"
:
"그룹"
,
"noMessages"
:
"메시지가 없습니다."
,
"image"
:
"이미지"
,
"chatKeyword"
:
"검색"
,
"userListKeyword"
:
"검색"
,
"newRoomName"
:
"방
제목 입력
"
,
"newRoomName"
:
"방
이름을 입력해주세요.
"
,
"everyoneIsHere"
:
"초대가능한 유저가 없습니다."
,
"people"
:
"명"
,
"searchResult"
:
"건의 결과"
,
...
...
ABVJE_Launcher_Android/assets/chat/public/networkError.html
0 → 100644
View file @
e6cfd997
<!doctype html>
<html
lang=
"en"
style=
"background: #DBDBDB;"
>
<head>
<!-- Required meta tags -->
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0"
>
<title>
Prototype
</title>
<link
href=
"./fontawesome/css/all.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"./css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"./css/lightbox.min.css"
>
<link
rel=
"stylesheet"
href=
"./css/chat.css"
>
<script>
const
PLATFORM
=
'android'
;
const
IS_MOBILE
=
true
;
</script>
</script>
</head>
<body>
<nav
class=
"navbar navbar-expand navbar-dark bg-primary fixed-top flex-md-nowrap p-2 shadow"
>
<ul
class=
"navbar-nav col-3"
id=
"navbarLeft"
>
<button
class=
"btn btn-primary"
type=
"button"
id=
"homeButton"
>
<i
class=
"fa fa-home"
style=
"font-size: 1.6rem;"
></i>
</button>
</ul>
<a
class=
"navbar-brand col-6 mr-0 text-truncate titleRoomName text-center"
href=
"#"
>
Error
</a>
</nav>
<div
class=
"error-aria"
>
<img
id=
"errorImg"
src=
"./icon/error_top_icon.svg"
>
<div
id=
"errorTitle"
>
<a>
ネットワークエラー
</a>
</div>
<div
id=
"errorMsg"
>
ネットワークに接続できませんでした。電波が良いところでもう一度接続してください。
</div>
<button
class=
"bg-primary reload-button"
id=
"reloadButton"
>
更新
</button>
<img
id=
"errorEnd"
src=
"./icon/error_footer_img.svg"
>
</div>
</div>
<script
src=
"./js/libs/jquery-3.3.1.min.js"
></script>
<script
src=
"./js/libs/popper.min.js"
></script>
<script
src=
"./js/libs/moment.js"
></script>
<script
src=
"./js/libs/locale/ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/libs/locale/ja.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/libs/mustache.min.js"
></script>
<script
src=
"./js/libs/deparam.js"
></script>
<script
src=
"./js/libs/bootstrap.min.js"
></script>
<script
src=
"./js/libs/jquery.mark.min.js"
></script>
<script
src=
"./js/libs/lightbox.js"
></script>
<script
src=
"./js/language.js"
></script>
<script
src=
"./js/language_ko.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_ja.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/language_en.js"
charset=
"UTF-8"
></script>
<script
src=
"./js/chat-util.js"
></script>
<script
src=
"./js/chat-error.js"
></script>
</body>
</html>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
e6cfd997
...
...
@@ -62,7 +62,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
private
final
String
TAG
=
"ChatWebviewActivity"
;
private
final
String
NETWORK_ERROR_PLACE_HOLDER
=
"file:///android_asset/chat/public/
index
.html"
;
private
final
String
NETWORK_ERROR_PLACE_HOLDER
=
"file:///android_asset/chat/public/
networkError
.html"
;
//AISDevelop
private
JsInf
jsInf
=
new
JsInf
();
...
...
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