123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- package com.wdkl.callingmainnursemanager.common;
- import com.wdkl.callingmainnursemanager.ui.activity.InitActivity;
- /**
- * Created by xuhuan on 2017/9/13.
- */
- public class Constants {
- public static final String MSG_SP = "msg_sp";
- public static final String INITENTITY = "initEntity";
- /**
- * SIP注册状态<br></>
- * 0 :SIP注册失败;1:SIP注册中;2:SIP注册成功;
- */
- public static int SIP_REGIST_STATUS = 1;
- /**
- * 托管状态
- */
- public static final String INITTRUST = "initTrust";
- /**
- * 以太网是否ping成功,sip UI同步刷新
- */
- public static final String ETHERNETSTATUS = "ethernetStatus";
- public static final String DELIMITER = Character.toString((char) 3);
- //sip账号
- public static String SIP_ID = "";
- //sip密码
- public static String SIP_PASS_WORD = "";
- //sip地址
- public static String SIP_IP = "";
- /**
- * sip端口号
- */
- public static final String SIP_IP_END = ":5060";
- //mac地址
- public static String MAC_ADDRESS = "";
- //护理等级标题
- public static String NURSE_TITLE;
- //饮食等级标题
- public static String DIET_TITLE;
- //计量等级标题
- public static String METERING;
- //隔离等级标题
- public static String deviceNurse_Level3;
- //过敏等级标题
- public static String deviceNurse_Level4;
- //网关地址
- public static String URL = "";
- //端口号
- public static final String URL_END = ":81";
- //初始化数据
- public static final String CALLINGMAINNURSE_INIT = "/WDHS-I/callingMainNurse_init.aspx";
- //病房数据
- public static final String CALLINGMAINNURSE_ROOM = "/WDHS-I/callingMainNurse_room.aspx";
- //医院信息数据
- public static final String CALLINGMAINNURSE_HOSPITAL = "/WDHS-I/callingMainNurse_hospitalInfo.aspx";
- //病人个人数据
- public static final String CALLINGMAINNURSE_PATIENT = "/WDHS-I/callingMainNurse_patientinfo.aspx";
- //广播数据
- public static final String CALLINGMAINNURSE_BROADCAST = "/WDHS-I/callingMainNurse_BroadcastInfo.aspx";
- //广播音量大小
- public static final String CALLINGMAINNURSE_BROADCAST_VOL = "/WDHS-I/callingMainNurse_BroadcastVol.aspx";
- //主机请求托管
- public static final String CALLINGMAINNURSE_TRUSTQUEST = "/WDHS-I/callingMainNurse_trust.aspx";
- //医护主机列表
- public static final String CALLINGMAINNURSE_NURSELIST = "/WDHS-I/callingMainNurse_NurseHostList.aspx";
- //医生主机列表
- public static final String CALLINGMAINNURSE_DOCTORLIST = "/WDHS-I/callingMainNurse_DoctorHostList.aspx";
- //系统设置数据
- public static final String SYSTEM_INFO = "/WDHS-I/callingMainNurse_systemInfo.aspx";
- //所有科室信息
- public static final String CALLINGMAINNURSE_PART_INFO = "/Mgr/GetWD_PartInfoArray.aspx";
- //所有设备信息
- public static final String CALLINGMAINNURSE_DEVICE_INFO = "/Mgr/GetWD_DeviceInfoArray.aspx";
- /**
- * 检查APP更新版本
- */
- public static final String APP_CHECK_UPDATE = "/WDHS-I/callingMainNurseManager_APP_CheckUpdate.aspx";
- //public static final String APP_CHECK_UPDATE = "";
- //呼叫状态
- public static String CALL_STATE = "-1";
- //待机状态
- public static final String STANDBY = "0";
- //呼叫中
- public static final String IN_CALL = "1";
- //通话中
- public static final String IN_CALLING = "2";
- //挂断状态 21
- public static int CALLING_ENDING = 21;
- //呼叫护士主机id
- public static String CALLING_HOST_ID = "";
- //EventBus 所需判断类型
- public static final int EVENT_UDP = 0x01;
- public static final int EVENT_SIP = 0x02;
- public static final int EVENT_FRAGMENT = 0x03;
- /**
- * 托管反馈
- */
- public static final int EVENT_FRAGMENT_TRUST = 0x11;
- public static final int EVENT_MGR_UPDATE = 0x04;
- /**
- * APP更新
- */
- public static final int EVENT_MGR_APP_UPDATE = 0x09;
- public static final int EVENT_UDP2 = 0x20;
- public static final int EVENT_CALL = 0x21;
- /**
- * APP更新flag值<br></>
- * false为无更新指令。
- */
- public static boolean UPDATE_APP_FLAG = false;
- public static boolean MGR_UPDATE = false;
- /**
- * 循环检测SIP
- */
- public static final int EVENT_SIP_INTERNETPING_ = 0x05;
- /**
- * 检测网络状态
- */
- public static final int EVENT_INTERNET_STATUS = 0x06;
- public static final int EVENT_SETSYS = 0x07;
- public static final int EVENT_UPLOAD = 0x08;
- /**
- * 检测SIP,以太网ping状态
- */
- public static final int EVENT_SIP_INTERNETPING = 0x10;
- //重启
- public static final int EVENT_MGR_RESET = 0x88;
- //语音留言列表
- public static final int EVENT_VOICE_MESSAGE = 0x12;
- //语音留言列表详情
- public static final int EVENT_VOICE_MESSAGE_DETAIL = 0x13;
- //语音留言录音
- public static final int EVENT_VOICE_MESSAGE_RECORD = 0x14;
- /**
- * FTP——广播文件夹路径
- */
- public static String FTP_BROADCAST = "Broadcast";
- /**
- * FTP——语音留言文件夹路径
- */
- public static String FTP_VOICE = "WDMsg/UpLoad";
- /**
- * 语音留言文件夹下载播放路径
- */
- public static String VOICE_PLAY = "/WDMsg/DownLoad";
- //语音文件下载
- public static final String CALLINGMAINNURSE_VOICE_MESSAGE = "/WDmsg/DownLoad.aspx";
- //语音留言详情分页
- public static final String CALLINGMAINNURSE_VOICE_MESSAGE_LIST = "/WDHS-I/callingMainNurse_Mgr_VoiceMessage_History_List.aspx";
- //语音留言护士参数udp去重
- public static String VOICE_MESSAGE_HOSMANINFO_NURSE = "";
- public static String VOICE_MESSAGE_DEVICETYPE_NURSE = "";
- public static String VOICE_MESSAGE_DEVICEID_NURSE = "";
- public static String VOICE_MESSAGE_PATIENTID_NURSE = "";
- public static String VOICE_MESSAGE_PATIENTNAME_NURSE = "";
- public static String VOICE_MESSAGE_FILEORIGINALNAME_NURSE = "";
- public static String VOICE_MESSAGE_FILESTORENAME_NURSE = "";
- public static String VOICE_MESSAGE_MESSAGETIME_NURSE = "";
- public static String VOICE_MESSAGE_CONTENT_NURSE = "";
- public static String VOICE_MESSAGE_ID_NURSE = "";
- //语音留言患者参数udp去重
- public static String[] voiceTimes = new String[15];
- private static int count = 0;
- public static boolean setVoiceTimes(String times) {
- synchronized (times) {
- boolean isSame = false;
- String aLong = times;
- if (count >= 15) {
- count = 0;
- }
- for (int i = 0; i < voiceTimes.length; i++) {
- //初始化
- if (voiceTimes[i] == null) {
- voiceTimes[i] = "";
- }
- if (voiceTimes[i].equals(aLong)) {
- isSame = true;
- break;
- }
- }
- voiceTimes[count] = aLong;
- count++;
- return isSame;
- }
- }
- /**
- * 各种呼叫的机型
- * type : 1门口机 2主机 3 子机 4请求增援 5卫生间 6总控机 优先等级依次升高 12传统机
- */
- public static final String DOOR_CALL = "1";
- public static final String MAIN_CALL = "2";
- public static final String SON_CALL = "3";
- public static final String ROOMHELP_CALL = "4";
- public static final String WSHROOM_CALL = "5";
- public static final String MANAGER_CALL = "6";
- public static final String TRADITION_CALL = "12";
- public static String CallType = "";
- public static String DEVICE_ID = "";
- public static String MYSELF_ID = "";//自己的机器ID
- public static String CALLMAIN_ID = "";//所属主机机器ID
- public static String DOOR_ID = "";//门口机机器ID
- public static String TRUST_OLD_MAIN_ID = "";//托管主机的Id
- public static int TRUST_FLAG_VALUE = 88;//托管是否取消成功的值:66成功;88失败
- //设备类型
- public static String DEVICE_HOST = "1"; //护士主机
- public static String DEVICE_DOOR = "3"; //门口机
- public static String DEVICE_SLAVE = "4"; //分机
- /**
- * PartID:科室 ID 号
- */
- public static String PartID = "";
- public static String PartName = "";
- public static String SelectedPartId = "";
- public static String SelectedPartName = "";
- public static int currentFragment = 0;
- /**
- * 白天还是晚上<br>
- * type :0 白天 1 晚上
- */
- public static String MORNING_NIGTH = "0";
- /**
- * 白天轮播循环次数<br>
- */
- public static String DAY_RING_TIMES = "1";
- /**
- * 晚上轮播循环次数<br>
- */
- public static String NIGHT_RING_TIMES = "1";
- /**
- * 屏幕亮度百分比<br>
- */
- public static String SCREENLIGHT = "100";
- /**
- * 子机系统音量百分比<br>
- */
- public static String BEDSYSVOICE = "100";
- /**
- * 铃声音量百分比<br>
- */
- public static String RINGLVOICE = "100";
- /**
- * 轮播循环次数UDP用<br>
- */
- public static String RINGLVOICELOOP = "1";
- /**
- * 护理灯亮度<br>
- */
- public static String NURSINGLIGHT = "100";
- /**
- * 语音呼叫超时时间<br>
- */
- public static String CALLINGTIMEOUT = "60";
- /**
- * 熄屏时间<br>
- */
- public static String SCREENEXTINGUISHTIME = "";
- /**
- * 门口机通话音量<br>
- */
- public static String DOORCALLVOICE = "100";
- /**
- * 子机通话音量<br>
- */
- public static String BEDCALLVOICE = "100";
- /**
- * 是否已经开了音频PA
- */
- public static boolean volumePAStatus = true;
- /**
- * 语音播报类型值<br>
- */
- public static String VOICE_BROADCAST_TYPE = "1";
- /**
- * 语音播报SP保存的TAG值<br>
- */
- public static final String VOICE_BROADCAST_TAG = "voiceBroadcastType";
- /**
- * 是否处于托管状态,用于处理已经显示托管中的主机还想再托管别的设备情况
- */
- public static boolean trustStatused = false;
- /**
- * 是否截断其他托管指令
- */
- public static boolean isInterruptOtherTrustCommand = false;
- /**
- * ANR FC ANR 奔溃 异常处理
- */
- public static Class ANR_FC = InitActivity.class;
- /**
- * 网络信息初始化错误连续出现5次,不再重启系统,需更换机子.
- */
- public static String NET_ERROR_FIVE_AFTER_TOAST = "fifthReboot";
- /**
- * 单片机版本号 add by waderson 20190708
- */
- public static String MCU_VERSION_NUMBER = "";
- /**
- * 是否是免提状态 add by waderson 20190802
- */
- public static boolean HANDS_FREE = true;
- }
|