Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
07f0dfe4
Commit
07f0dfe4
authored
Aug 05, 2022
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增患者报到报到消息类型
parent
065eb23a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
91 additions
and
10 deletions
+91
-10
config.gradle
config.gradle
+1
-1
AVChatAudioUI.java
m-im/src/main/java/com/yidianling/avchatkit/ui/AVChatAudioUI.java
+3
-3
AVChatVideoUI.java
m-im/src/main/java/com/yidianling/avchatkit/ui/AVChatVideoUI.java
+3
-3
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+3
-0
CustomAttachParser.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
+4
-3
CustomAttachmentPatientCheckIn.kt
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentPatientCheckIn.kt
+28
-0
CustomAttachmentType.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentType.java
+1
-0
MsgViewHolderPatientCheckIn.kt
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderPatientCheckIn.kt
+48
-0
No files found.
config.gradle
View file @
07f0dfe4
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user-medical"
:
"0.0.62.14"
,
"m-home"
:
"0.0.22.70"
,
"m-im-medical"
:
"0.0.21.4
3
"
,
"m-im-medical"
:
"0.0.21.4
4
"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.10"
,
...
...
m-im/src/main/java/com/yidianling/avchatkit/ui/AVChatAudioUI.java
View file @
07f0dfe4
...
...
@@ -8,6 +8,7 @@ import android.view.View;
import
android.widget.Button
;
import
android.widget.Chronometer
;
import
android.widget.TextView
;
import
com.netease.nimlib.sdk.avchat.AVChatCallback
;
import
com.netease.nimlib.sdk.avchat.AVChatManager
;
import
com.netease.nimlib.sdk.avchat.constant.AVChatControlCommand
;
...
...
@@ -16,7 +17,6 @@ import com.netease.nimlib.sdk.avchat.model.AVChatData;
import
com.tbruyelle.rxpermissions2.Permission
;
import
com.tbruyelle.rxpermissions2.RxPermissions
;
import
com.yidianling.avchatkit.AVChatKit
;
import
com.yidianling.im.R
;
import
com.yidianling.avchatkit.activity.AVChatActivity
;
import
com.yidianling.avchatkit.common.imageview.HeadImageView
;
import
com.yidianling.avchatkit.common.log.LogUtil
;
...
...
@@ -30,7 +30,7 @@ import com.yidianling.avchatkit.controll.AVChatController;
import
com.yidianling.avchatkit.module.AVChatControllerCallback
;
import
com.yidianling.avchatkit.module.AVSwitchListener
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.y
dl.ydlcommon.utils.DeviceTool
;
import
com.y
idianling.im.R
;
import
io.reactivex.functions.Consumer
;
...
...
@@ -391,7 +391,7 @@ public class AVChatAudioUI implements View.OnClickListener, ToggleListener {
requestPermission
();
}
else
{
ToastUtil
.
toastLong
(
context
,
"请开启相机和麦克风权限后重试"
);
DeviceTool
.
openPersisonSetting
((
Activity
)
AVChatAudioUI
.
this
.
context
);
//
DeviceTool.openPersisonSetting((Activity) AVChatAudioUI.this.context);
((
Activity
)
AVChatAudioUI
.
this
.
context
).
finish
();
}
}
...
...
m-im/src/main/java/com/yidianling/avchatkit/ui/AVChatVideoUI.java
View file @
07f0dfe4
...
...
@@ -16,6 +16,7 @@ import android.widget.FrameLayout;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.netease.nimlib.sdk.avchat.AVChatManager
;
import
com.netease.nimlib.sdk.avchat.constant.AVChatType
;
import
com.netease.nimlib.sdk.avchat.constant.AVChatVideoScalingType
;
...
...
@@ -26,7 +27,6 @@ import com.netease.nrtc.video.render.IVideoRender;
import
com.tbruyelle.rxpermissions2.Permission
;
import
com.tbruyelle.rxpermissions2.RxPermissions
;
import
com.yidianling.avchatkit.AVChatKit
;
import
com.yidianling.im.R
;
import
com.yidianling.avchatkit.common.imageview.HeadImageView
;
import
com.yidianling.avchatkit.common.permission.BaseMPermission
;
import
com.yidianling.avchatkit.common.util.ScreenUtil
;
...
...
@@ -38,7 +38,7 @@ import com.yidianling.avchatkit.controll.AVChatController;
import
com.yidianling.avchatkit.module.AVChatControllerCallback
;
import
com.yidianling.avchatkit.module.AVSwitchListener
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.y
dl.ydlcommon.utils.DeviceTool
;
import
com.y
idianling.im.R
;
import
java.util.List
;
...
...
@@ -671,7 +671,7 @@ public class AVChatVideoUI implements View.OnClickListener, ToggleListener {
requestPermission
();
}
else
{
ToastUtil
.
toastLong
(
context
,
"请开启相机和麦克风权限后重试"
);
DeviceTool
.
openPersisonSetting
((
Activity
)
AVChatVideoUI
.
this
.
context
);
//
DeviceTool.openPersisonSetting((Activity) AVChatVideoUI.this.context);
((
Activity
)
AVChatVideoUI
.
this
.
context
).
finish
();
}
}
...
...
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
07f0dfe4
...
...
@@ -53,6 +53,7 @@ import com.yidianling.im.session.extension.CustomAttachmentInquiryReceive;
import
com.yidianling.im.session.extension.CustomAttachmentInquiryStart
;
import
com.yidianling.im.session.extension.CustomAttachmentOrderAlreadyDone
;
import
com.yidianling.im.session.extension.CustomAttachmentOrderStatus
;
import
com.yidianling.im.session.extension.CustomAttachmentPatientCheckIn
;
import
com.yidianling.im.session.extension.CustomAttachmentPatientFullInfo
;
import
com.yidianling.im.session.extension.CustomAttachmentPhoneCallSystemNotice
;
import
com.yidianling.im.session.extension.CustomAttachmentRecipel
;
...
...
@@ -84,6 +85,7 @@ import com.yidianling.im.session.viewholder.MsgViewHolderLingxiWhichQuestion;
import
com.yidianling.im.session.viewholder.MsgViewHolderModifyTime
;
import
com.yidianling.im.session.viewholder.MsgViewHolderOrderAlreadyDone
;
import
com.yidianling.im.session.viewholder.MsgViewHolderOrderStatus
;
import
com.yidianling.im.session.viewholder.MsgViewHolderPatientCheckIn
;
import
com.yidianling.im.session.viewholder.MsgViewHolderPatientFullInfo
;
import
com.yidianling.im.session.viewholder.MsgViewHolderPerfectConsultData
;
import
com.yidianling.im.session.viewholder.MsgViewHolderPhoneCallSystemNotice
;
...
...
@@ -454,6 +456,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentInquiryStart
.
class
,
MsgViewHolderInquiryStart
.
class
);
//问诊订单接诊通知消息提醒类型
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentInquiryEnd
.
class
,
MsgViewHolderInquiryEnd
.
class
);
//问诊订单结束通知消息提醒类型
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentRecipel
.
class
,
MsgViewHolderRecipel
.
class
);
//处方单创建消息类型
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentPatientCheckIn
.
class
,
MsgViewHolderPatientCheckIn
.
class
);
//患者报到
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentPatientFullInfo
.
class
,
MsgViewHolderPatientFullInfo
.
class
);
//就诊者完善信息
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
View file @
07f0dfe4
...
...
@@ -39,14 +39,15 @@ public class CustomAttachParser implements MsgAttachmentParser {
case
CustomAttachmentType
.
TYPE_PATIENT_FULL_INFO
:
attachment
=
new
CustomAttachmentPatientFullInfo
();
break
;
case
CustomAttachmentType
.
TYPE_PATIENT_CHECK_IN
:
attachment
=
new
CustomAttachmentPatientCheckIn
();
break
;
default
:
// attachment = new CustomAttachmentFilter();
break
;
}
if
(
attachment
!=
null
)
{
attachment
.
fromJson
(
data
);
}
attachment
.
fromJson
(
data
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentPatientCheckIn.kt
0 → 100644
View file @
07f0dfe4
package
com.yidianling.im.session.extension
import
com.alibaba.fastjson.JSONObject
/**
* Created by Ykai on 2021/11/12.
*
* 患者报道消息解析器
*/
class
CustomAttachmentPatientCheckIn
:
CustomAttachment
(
CustomAttachmentType
.
TYPE_PATIENT_CHECK_IN
)
{
private
val
USER_CONTENT
=
"userContent"
var
userContent
:
String
?
=
null
override
fun
parseData
(
data
:
JSONObject
)
{
userContent
=
data
.
getString
(
USER_CONTENT
)
}
override
fun
packData
():
JSONObject
{
val
data
=
JSONObject
()
data
[
USER_CONTENT
]
=
userContent
return
data
}
}
\ No newline at end of file
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachmentType.java
View file @
07f0dfe4
...
...
@@ -62,4 +62,5 @@ public interface CustomAttachmentType {
int
TYPE_INQUIRY_END
=
83
;
//问诊订单结束通知消息提醒类型
int
TYPE_RECIPE
=
86
;
//处方单创建消息类型
int
TYPE_PATIENT_FULL_INFO
=
87
;
// 就诊患者完善信息
int
TYPE_PATIENT_CHECK_IN
=
88
;
// 患者报到
}
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderPatientCheckIn.kt
0 → 100644
View file @
07f0dfe4
package
com.yidianling.im.session.viewholder
import
android.widget.TextView
import
com.yidianling.im.R
import
com.yidianling.im.session.extension.CustomAttachmentPatientCheckIn
import
com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
import
com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
/**
* Created by Ykai on 2021/11/12.
*
* 患者报到ui
*/
class
MsgViewHolderPatientCheckIn
(
adapter
:
BaseMultiItemFetchLoadAdapter
<*,
*>)
:
MsgViewHolderBase
(
adapter
)
{
private
lateinit
var
tvContent
:
TextView
override
fun
getContentResId
():
Int
{
return
R
.
layout
.
im_nim_inquiry_end_layout
}
override
fun
inflateContentView
()
{
tvContent
=
findViewById
(
R
.
id
.
content
)
}
override
fun
bindContentView
()
{
val
patientCheckInAttachment
=
message
.
attachment
as
CustomAttachmentPatientCheckIn
tvContent
.
text
=
patientCheckInAttachment
.
userContent
}
override
fun
isShowHeadImage
():
Boolean
{
return
false
}
override
fun
isShowBubble
():
Boolean
{
return
false
}
override
fun
shouldDisplayReceipt
():
Boolean
{
return
false
}
override
fun
isMiddleItem
():
Boolean
{
return
true
}
}
\ No newline at end of file
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