会议预订 加载网络请求
parent
b71e3f15cd
commit
49509d7c6d
@ -0,0 +1,142 @@
|
||||
package com.rehome.meetingbook.contans;
|
||||
|
||||
|
||||
public class Contans {
|
||||
|
||||
|
||||
public static String LOGIN = "app/meeting_room/check_meeting_room_status";
|
||||
public static String CHECK_UPDATA_APK = "ApkUpdate/GetData.aspx";
|
||||
|
||||
|
||||
public static String IP = "http://192.168.2.191:8510/";
|
||||
// public static String network_type_Intranet = "http://192.168.254.1:8090/";
|
||||
// public static String network_type_extranet = "http://113.107.214.27:8090/";
|
||||
|
||||
// public static String IP = "http://113.107.214.27:8092/";
|
||||
// public static String network_type_Intranet = "http://192.168.254.1:8092/";
|
||||
// public static String network_type_extranet = "http://113.107.214.27:8092/";
|
||||
|
||||
// public static String IP = "http://192.168.2.6:8089/";
|
||||
// public static String network_type_Intranet = "http://192.168.2.6:8089/";
|
||||
// public static String network_type_extranet = "http://192.168.2.6:8089/";
|
||||
|
||||
|
||||
public static String MAXIMOIP = "http://10.46.0.152:7001/";
|
||||
//public static String Q4_MAGES_URL = "http://113.107.214.27:8090/Q4WorkOrder/D4GD_IMG_XS.ashx?Url=";
|
||||
public static String Q4_MAGES_URL = "http://192.168.254.1/Q4WorkOrder/D4GD_IMG_XS.ashx?Url=";
|
||||
|
||||
|
||||
// public static String IP = "http://192.168.2.116:3028/";
|
||||
|
||||
|
||||
// //获取到的蓝牙mac地址
|
||||
// /*-------------------------------*/
|
||||
// public final static String LOCALBLEADDRESS = "LOCALBLEADDRESS";
|
||||
// /*-------------------------------*/
|
||||
public static String YXCB_ZY_ID = "";//运行抄表专业ID
|
||||
public static String YXCB_ZY_NAME = "";//运行抄表专业名字
|
||||
|
||||
//-----------------------点检--------------------------//
|
||||
public static String DJJHLIST = "DJGL/DJGL_GWDJ.ashx";//prame BZMC = 测试班组
|
||||
public static String DJJHDLB = "DJGL/DJGL_GWDJ.ashx";// prame jhid=20161013141937;
|
||||
public static String DJJHXCJSSC = "DJGL/DJGL_XCJS.ashx";//ms:描述 fileps:文件 poinnum jhid
|
||||
public static String DJJHSC = "DJGL/DJGL_GWDJ.ashx";//json字符串
|
||||
public static String DJJHQXGD = "DJGL/DJGL_QXGD.ashx";//json字符串
|
||||
public static String QXGDZY = "QXGD/QXGD_ZYXX.ASHX";
|
||||
public static String YHPC = "AJH/AJH_YHPCSC.ashx";//隐患排查
|
||||
public static String YHPCTP = "AJH/AJH_YHWJSC.ashx";//guid
|
||||
//-----------------------安健环------------------------//
|
||||
public static String AJHJHLIST = "AJH/AJH_XZJH.ashx";
|
||||
public static String AJHXZRW = "AJH/AJH_XZRW.ashx";
|
||||
public static String AJHSC = "AJH/AJH_JLSC.ashx";
|
||||
public static String AJHXCJS = "AJH/AJH_JSXC.ashx";
|
||||
public static String XWAQGC = "ajh/gc_xzrw.ashx"; //gh =
|
||||
public static String QY = "djgl/DJGL_QYLIST.ashx";
|
||||
public static String XWAQGCSC = "ajh/gc_jlsc.ashx";//观察结果上传
|
||||
public static String XWAQGCJS = "ajh/GC_JSSC.ashx";//记事上传
|
||||
public static String GZQKSBLIST = "AJH/GZQKSB/GetDataByList.ashx";//工作上报列表查看
|
||||
public static String GZQKSBSAVE = "AJH/GZQKSB/SaveData.ashx";//工作情况上报保存
|
||||
public static String GZQKSBGB = "AJH/GZQKSB/SetRWState.ashx";//工作情况上报关闭
|
||||
public static String GZQKID = "AJH/GZQKSB/GetDataByID.ashx";
|
||||
public final static int IMAGE_RESULT = 10;
|
||||
public final static int SBXJZT_WWC = 0;
|
||||
public final static int SBXJZT_ZC = 1;
|
||||
public final static int SBXJZT_BZC = 2;
|
||||
public final static int RESULT_OK = 1;
|
||||
public final static int DLB = 1;
|
||||
public final static int ZKDLB = 2;
|
||||
//==============================巡视抄表=========================================//
|
||||
public final static String XSCB = "XSCB/YX_XJGL.ashx";//巡检管理/巡检任务列表
|
||||
public final static String XSCB_PLAN_DOWNLOAD = "XSCB/YX_XJGL.ashx";///巡检管理/巡检任务/巡检数据管理/计划下载
|
||||
public final static String BAXJ = "XSCB/BA_XJGL.ashx";//保安巡检任务列表
|
||||
public final static String XSCB_PLAN_BA_DOWNLOAD = "XSCB/BA_XJGL.ashx";///保安巡检计划下载
|
||||
public final static String XSCB_PLAN_BA_UPLOAD = "XSCB/BA_XJGL.ashx";///保安巡检计划上传
|
||||
public final static String DQGZ = "DQGZ/YF_DQGZ.ashx";//定期工作列表
|
||||
public final static String DQGZ_UPLOAD_TASK = "DQGZ/YF_DQGZ.ashx";//定期工作上传
|
||||
public final static String GET_MY_UPLOAD_CHECKED = "XSCB/MY_UPLOAD.ashx";//获取本人上传的巡检数据
|
||||
public final static String GET_STATISTICS_DATA = "XSCB/STATISTICS_CHECKED.ashx";//获取本人上传的巡检数据
|
||||
public final static String LAST_UPLOAD_POINT_CHECKED = "XSCB/LAST_UPLOAD_POINT_CHECKED.ashx";//nfc获取当前值当前点最后的已巡检人
|
||||
public final static String XJ_UPLOAD_LOCATION_CHECKED = "XSCB/CURRENT_CHECK_LOCALTION.ashx";//上传巡检人当前位置
|
||||
public final static String LAST_UPLOAD_POINT_CHECKED_TWOCODE = "XSCB/LAST_UPLOAD_POINT_CHECKED_TXM.ashx";//二维码扫描获取当前值当前点最后的已巡检人
|
||||
public final static String XJ_UPLOAD_LOCATION_CHECKED_TXM = "XSCB/CURRENT_CHECK_LOCALTION_TXM.ashx";//二维码扫描上传巡检人当前位置
|
||||
|
||||
|
||||
// ========================= intent KEY ========================//
|
||||
public final static String KEY_ITEMID = "itemid";
|
||||
public final static String KEY_SBINFO = "sbinfo";
|
||||
public final static String KEY_SBDJLIST = "sbdjlist";
|
||||
public final static String KEY_JCZT = "zczt";
|
||||
public final static String KEY_MS = "ms";
|
||||
public final static String KEY_FLAG = "flag";
|
||||
public final static String KEY_IS_EDIT = "edit";
|
||||
public final static String KEY_NOTIF = "notification";
|
||||
public final static String KEY_PDID = "pdid";
|
||||
public final static String KEY_DJJHLIST = "djjhlist";
|
||||
public final static String KEY_DJJHRWQY = "djjhrwqy";
|
||||
public final static String KEY_ITEM = "item";
|
||||
public final static String FILEPS = "fileps";
|
||||
public final static String KEY_XSCBJH = "xscbjh";
|
||||
public final static String KEY_QY = "qydlist";
|
||||
public final static String KEY_EWM_OR_NFC = "ewm_or_nfc";//二维码或NFC 0 NFC 1 一维码二维码
|
||||
public final static String KEY_IS_HIS = "history";//历史
|
||||
public final static String KEY_JHLX = "jhlx";
|
||||
public final static String KEY_BG = "DQGZBG";//定期工作变更
|
||||
public final static String KEY_ZXID = "zxid";
|
||||
public final static String KEY_XS_HISTORY = "xs_history";
|
||||
public final static String KEY_NAME = "keyName";
|
||||
public final static String KEY_POSITION = "keyPosition";
|
||||
public final static String KEY_BQBM = "bqbm";//二维码或条形码
|
||||
public final static String KEY_NFCBH = "nfcbh";//NFC编号
|
||||
public final static String NFCOREWM = "nfcorewm";
|
||||
public final static String PERMISSIONSRESULT = "PermissionsResult";
|
||||
public final static String USERID = "USERID";
|
||||
public final static String USERPWD = "USERPWD";
|
||||
public final static String NETWORK_CHECK_TYPE = "NETWORK_CHECK_TYPE";
|
||||
public final static String LOGIN_TOKEN = "LOGIN_TOKEN";
|
||||
public final static String NFCBM = "NFCBM";
|
||||
public final static String BZBH = "bzbh";
|
||||
public final static String BZMC = "bzmc";
|
||||
public final static String USERNAME = "USERNAME";
|
||||
public final static String SCID = "scid";
|
||||
public final static String RWID = "rwid";
|
||||
public final static String ZY = "ZY";
|
||||
public final static String LASTLOGINDATE = "LASTLOGINDATE";
|
||||
/********************广播字段(唯一性)********************************/
|
||||
public static final String ACTION_YULONE = "actionYulOne";
|
||||
public static final String ACTION_YULTWO = "actionYulTwo";
|
||||
public static final String ACTION_REFRESHPLANDOWNLOAD = "refreshPlanDownload";
|
||||
public static final String ACTION_REFRESHPLANUPLOAD = "refreshPlanUpload";
|
||||
public static final String ACTION_REFRESHDOWNLOADPLAN = "refreshDownloadPlan";
|
||||
public static final String ACTION_PROFESSIONCHANGE = "professionChange";
|
||||
public static final String ACTION__MEMBER_CALL_BACK = "ACTION__MEMBER_CALL_BACK";
|
||||
|
||||
public final static String QFGD = "Q4GD/Q4GD_CKGL.ashx";
|
||||
public final static String QFDDVICELIST = "Q4WorkOrder/Q4SBGL.ashx";
|
||||
public final static String QFDDVICESUBLISTTREE = "Q4WorkOrder/Q4SBGL.ashx";
|
||||
public final static String QFGETOPTION = "Q4WorkOrder/Q4GD_CKGL.ashx";
|
||||
public final static String TJQFGD = "Q4WorkOrder/Q4SUBMIT.ashx";
|
||||
public final static String GETQXLIST = "Q4WorkOrder/GETQXLIST.ashx";
|
||||
public final static String Q4GD_IMG = "Q4WorkOrder/Q4GD_IMG.ashx";
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.rehome.meetingbook.utils;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 一个ui的工具类
|
||||
*/
|
||||
public class UiUtlis {
|
||||
|
||||
public static String getText(EditText editText) {
|
||||
return editText.getText().toString().trim();
|
||||
}
|
||||
|
||||
public static String getString(Context context, int id) {
|
||||
return context.getResources().getString(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 隐藏键盘
|
||||
*
|
||||
* @param editText EditText
|
||||
* @param context Context
|
||||
*/
|
||||
public static void hideInput(EditText editText, Context context) {
|
||||
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* URL加密
|
||||
*
|
||||
* @param text 加密的文本
|
||||
* @return
|
||||
*/
|
||||
public static String encoder(String text) {
|
||||
|
||||
String name = "";
|
||||
try {
|
||||
name = URLEncoder.encode(text, "utf-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* String类型转double
|
||||
*
|
||||
* @param text 文本
|
||||
* @return
|
||||
*/
|
||||
public static double getNum(String text) {
|
||||
double num = 0;
|
||||
try {
|
||||
num = Double.parseDouble(text);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断计划
|
||||
*
|
||||
* @param time
|
||||
* @return
|
||||
*/
|
||||
public static boolean isdelete(String time) {
|
||||
|
||||
if (!time.isEmpty()) {
|
||||
|
||||
String str = "";
|
||||
if (time.indexOf("-") != -1) {
|
||||
str = "yyyy-MM-dd HH:mm:ss";
|
||||
}
|
||||
|
||||
if (time.indexOf("/") != -1) {
|
||||
str = "yyyy/MM/dd HH:mm:ss";
|
||||
}
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(str);
|
||||
//SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date date = null;
|
||||
try {
|
||||
date = sdf.parse(time);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
long l1 = date.getTime();//服务器返回时间
|
||||
long l2 = System.currentTimeMillis();//系统时间
|
||||
return l1 < l2;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isEmpty(EditText editText) {
|
||||
|
||||
return TextUtils.isEmpty(editText.getText().toString());
|
||||
}
|
||||
}
|
||||
@ -1,13 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">192.168.2.215</domain>
|
||||
<domain includeSubdomains="true">192.168.2.191</domain>
|
||||
<domain includeSubdomains="true">10.19.0.73</domain>
|
||||
<domain includeSubdomains="true">android.bugly.qq.com</domain>
|
||||
</domain-config>
|
||||
<!-- <base-config cleartextTrafficPermitted="true">-->
|
||||
<!-- <trust-anchors>-->
|
||||
<!-- <certificates src="system" />-->
|
||||
<!-- </trust-anchors>-->
|
||||
<!-- </base-config>-->
|
||||
</network-security-config>
|
||||
Loading…
Reference in New Issue