| | |
| | | private static final String TAG = "InspectionUtils"; |
| | | //打点的最小两点最小距离 |
| | | private static final int MinMeters = 10; |
| | | //0没有开始,1开始,2暂停,3关闭 |
| | | public static final int NO_INSPECTION = 0; |
| | | public static final int STAT_INSPECTION = 1; |
| | | public static final int PAUSE_INSPECTION = 2; |
| | | public static final int STOP_INSPECTION = 3; |
| | | |
| | | |
| | | /** |
| | | * 获取当前巡检记录ID |
| | |
| | | public static InspectionBean startInspection(Context context) { |
| | | // 创建巡检记录 |
| | | InspectionBean inspectionBean = new InspectionBean(); |
| | | inspectionBean.setInspectId(UUID.randomUUID().toString()); |
| | | inspectionBean.setmInspectId(UUID.randomUUID().toString()); |
| | | inspectionBean.setStartTime(DateUtils.getNowDateStr()); |
| | | // 异步插入到数据库 |
| | | DaoSingleton.getAsynchInstance(context) |