|
@@ -14,6 +14,7 @@ import com.wdkl.ncs.android.lib.adapter.BaseDelegateAdapter
|
|
|
import com.wdkl.ncs.android.lib.utils.BaseRecyclerViewHolder
|
|
|
import com.wdkl.ncs.android.middleware.model.vo.InteractionVO
|
|
|
import com.wdkl.ncs.android.middleware.tcp.enums.DeviceTypeEnum
|
|
|
+import com.wdkl.ncs.android.middleware.tcp.enums.EventStatusEnum
|
|
|
import com.wdkl.ncs.android.middleware.tcp.enums.TcpType
|
|
|
import com.wdkl.ncs.android.middleware.utils.StringUtil
|
|
|
|
|
@@ -83,6 +84,48 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
|
binding.nameTv.text = "To: " + itemData.toFrameFullName
|
|
|
}
|
|
|
|
|
|
+ if (itemData.actionType == TcpType.EVENT.name) {
|
|
|
+ if (itemData.actionEndMemberId != null) {
|
|
|
+ //已响应
|
|
|
+ binding.treatmentStateImagev.setImageResource(R.drawable.checked_100)
|
|
|
+ binding.treatmentStateImagev.visibility = View.VISIBLE
|
|
|
+ binding.playTv.visibility = View.GONE
|
|
|
+ binding.projectTv.visibility = View.VISIBLE
|
|
|
+ binding.conductorNameTv.visibility = View.VISIBLE
|
|
|
+ binding.projectTv.text = itemData.data
|
|
|
+ binding.conductorNameTv.text = itemData.actionEndMemberName
|
|
|
+ binding.processingTimeTv.text = TimeTransition().stampToDate(itemData.actionEnd*1000)
|
|
|
+ binding.projectTv.setBackgroundResource(R.drawable.sp_event_do)
|
|
|
+ binding.callStatusImagev.setImageResource(R.drawable.event_do)
|
|
|
+ binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
+ } else {
|
|
|
+ if (itemData.actionStatus == EventStatusEnum.CANCELED.status) {
|
|
|
+ //已取消
|
|
|
+ binding.treatmentStateImagev.visibility = View.GONE
|
|
|
+ binding.playTv.visibility = View.GONE
|
|
|
+ binding.projectTv.visibility = View.VISIBLE
|
|
|
+ binding.projectTv.text = itemData.data
|
|
|
+ binding.projectTv.setBackgroundResource(R.drawable.sp_event_cancel)
|
|
|
+ binding.callStatusImagev.setImageResource(R.drawable.event_undo)
|
|
|
+ binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
+ binding.processingTimeTv.setText(R.string.event_cancel)
|
|
|
+ } else {
|
|
|
+ //未响应
|
|
|
+ binding.treatmentStateImagev.setImageResource(R.drawable.unchecked_100)
|
|
|
+ binding.treatmentStateImagev.visibility = View.VISIBLE
|
|
|
+ binding.playTv.visibility = View.GONE
|
|
|
+ binding.projectTv.visibility = View.VISIBLE
|
|
|
+ binding.projectTv.text = itemData.data
|
|
|
+ binding.projectTv.setBackgroundResource(R.drawable.sp_event_undo)
|
|
|
+ binding.callStatusImagev.setImageResource(R.drawable.event_undo)
|
|
|
+ binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
+ binding.processingTimeTv.setText(R.string.event_undo)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
//是否已播放 已响应
|
|
|
if (itemData.actionEnd != null) {
|
|
|
binding.treatmentStateImagev.setImageResource(R.drawable.checked_100)
|
|
@@ -99,16 +142,6 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
|
binding.projectTv.setBackgroundResource(R.drawable.sp_event_do)
|
|
|
binding.callStatusImagev.setImageResource(R.drawable.sos_96)
|
|
|
binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
- }else if(itemData.actionType == TcpType.EVENT.name){//事件已经响应 相应的数据
|
|
|
- binding.playTv.visibility = View.GONE
|
|
|
- binding.projectTv.visibility = View.VISIBLE
|
|
|
- binding.conductorNameTv.visibility = View.VISIBLE
|
|
|
- binding.projectTv.text = itemData.data
|
|
|
- binding.conductorNameTv.text = itemData.actionEndMemberName
|
|
|
- //binding.processingTimeTv.text = TimeTransition().stampToDate(itemData.actionEnd*1000)
|
|
|
- binding.projectTv.setBackgroundResource(R.drawable.sp_event_do)
|
|
|
- binding.callStatusImagev.setImageResource(R.drawable.event_do)
|
|
|
- binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
}else if (itemData.actionType == TcpType.IM.name){//语音已播放
|
|
|
|
|
|
binding.projectTv.visibility = View.GONE
|
|
@@ -147,14 +180,6 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
|
//binding.processingTimeTv.setText(R.string.event_undo)
|
|
|
binding.callStatusImagev.setImageResource(R.drawable.sos_96)
|
|
|
binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
- }else if(itemData.actionType == TcpType.EVENT.name){//事件未处理
|
|
|
- binding.playTv.visibility = View.GONE
|
|
|
- binding.projectTv.visibility = View.VISIBLE
|
|
|
- binding.projectTv.text = itemData.data
|
|
|
- binding.projectTv.setBackgroundResource(R.drawable.sp_event_undo)
|
|
|
- binding.callStatusImagev.setImageResource(R.drawable.event_undo)
|
|
|
- binding.callStatusImagev.visibility = View.VISIBLE
|
|
|
- //binding.processingTimeTv.setText(R.string.event_undo)
|
|
|
}else if (itemData.actionType == TcpType.IM.name){//语音未播放
|
|
|
binding.projectTv.visibility = View.GONE
|
|
|
binding.playTv.visibility = View.VISIBLE
|