1. 调整了数控实体的存储位置;
2. 新增数据表“媒体文件类型别名表”;
3. 修改任意拍模块,将图片分类改为根据场景类型动态生成,同时新增修改分类别名功能;
4. 优化子任务选择界面的任务排序方式,按照“待开始”、“执行中”、“未执行”的顺序进行排序;
已修改137个文件
已删除2个文件
已添加14个文件
已重命名29个文件
1863 ■■■■ 文件已修改
app/build.gradle 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/BaseFragment.kt 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/CommonApplication.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/DebugTransSiteLatlngActivity.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/EvaluateActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/GitDetailActivity.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/GradeActivity.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/MOVMapActivity.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/NewMonthTaskActivity.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/PhotoViewerActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/ProblemDetailActivity.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/PromiseActivity.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/ScenseDetailActivity.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/ScenseMapActivity.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/SiteDetailActivity.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/SubTaskMapActivity.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskActivity.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskAdjustActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskDetailActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/activity/UploadMediaFilesActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/DomainItemListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/GitTypeListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/MOVListAdapter.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/MediaFileListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/PhotoListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/ProblemPromiseListAdapter.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/ProblemTypeListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/ScenseListAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/SelectedScenseAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/TaskListAdapter.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/adapter/TopClassTaskAdapter.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/ChangeAdvice.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/ChangeEffect.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/City.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/District.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Domaincatalog.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Domainitem.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluation.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluationrule.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluationsubrule.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Gitlist.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Gittype.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Inspection.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Itemevaluation.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/MediaTypeAlias.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Mediafile.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Monitorobjectversion.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Problemlist.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Problemtype.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Province.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Scense.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Site.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Subtask.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Task.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Taskvertion.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Town.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Userinfo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/ActivityBean.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/AllBoolean.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/EvaluationsubruleVo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/GitlistVo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/InspectionVo.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/LastSubtaskPack.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/MediafileVo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/ProblemlistVo.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/TaskPack.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/TaskVo.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype1/Inspection2Fragment.kt 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype2/HomeFragment_comptent.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype3/HomeFragment_scene.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/common/database/DbSource.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/common/database/GreenDaoDb.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnalysisOverViewFragment.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnysisProblemFragment.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnysisRankFragment.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/fragment/CardFragment.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/fragment/HomeFragment.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/fragment/SettingFragment.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/fragment/TaskFragment.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/EvaluationService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/InitDataService.java 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/InspectionService.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/MonitorObjectVersionService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/ScenseService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SettingsService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SiteDetailService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SubTaskService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/TaskService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/TaskVersionService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/httpservice/UserInfoService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/enumreation/MediaFileType.kt 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/enumreation/SceneType.kt 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/event/InspectionEvent.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/event/ProblemEvent.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/event/SceneEvent.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/model/event/TopTaskEvent.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/MainActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/BaseProblemListActivity.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/BaseProblemListViewModel.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionDetailActivity.kt 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionDetailViewModel.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionFragment.kt 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuCameraActivity.kt 84 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuCameraViewModel.kt 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuGradeActivity.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuGradeViewModel.kt 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuNewGitActivity.kt 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuNewGitViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuProblemUpdateActivity.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/InspectionInfoFragment.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/ProblemChangeDetailActivity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/ProblemChangeFragment.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/MonthTaskManagementActivity.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/MonthTaskManagementViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewMonthTaskMapActivity.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskActivity.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewTopTaskActivity.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewTopTaskViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/SceneDetailActivity.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/module/task/SceneDetailViewModel.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/CommonRepository.kt 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/EvaluationRepository.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/InspectionRepository.kt 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/ProblemRepository.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/SceneRepository.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/TaskRepository.kt 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/DomainDao.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/EvaluationDao.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/MediaFileDao.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/MediaTypeAliasDao.kt 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/ProblemTypeDao.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/SceneDao.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/task/CompressPhotoTask.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/task/DownloadAndSetImageTask.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/task/InitDataTask.java 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/util/CommonUtils.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/util/file/FileUtil.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/util/photo/PhotoUtil.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/view/BannerView.kt 174 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/view/MyViewPager.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/view/SearchView.kt 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/view/SlideSideBarView.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/cn/flightfeather/thirdapp/view/ViewPagerAdapter.kt 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ChangeAdviceDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ChangeEffectDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/CityDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/DaoMaster.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/DaoSession.java 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/DistrictDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/DomaincatalogDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/DomainitemDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/EvaluationDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/EvaluationruleDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/EvaluationsubruleDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/GitlistDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/GittypeDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/InspectionDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ItemevaluationDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/MediaTypeAliasDao.java 147 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/MediafileDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/MonitorobjectversionDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ProblemlistDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ProblemtypeDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ProvinceDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/ScenseDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/SiteDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/SubtaskDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/TaskDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/TaskvertionDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/TownDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/ping/greendao/gen/UserinfoDao.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/drawable/bg_btngroup_2.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/drawable/point_background.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/drawable/point_bg_enable.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/drawable/point_bg_normal.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/layout/dialog_camera_3.xml 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/layout/item_take_photo.xml 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/res/layout/layout_search.xml 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/build.gradle
@@ -13,8 +13,8 @@
        applicationId "cn.flightfeather.thirdapp"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 23
        versionName "1.1.14.06"
        versionCode 24
        versionName "1.1.14.07"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        renderscriptTargetApi 25
        renderscriptSupportModeEnabled true
@@ -45,7 +45,7 @@
}
greendao {
    schemaVersion 11
    schemaVersion 12
    daoPackage 'com.ping.greendao.gen'
    targetGenDir 'src/main/java'
}
app/src/main/java/cn/flightfeather/thirdapp/BaseFragment.kt
ÎļþÒÑɾ³ý
app/src/main/java/cn/flightfeather/thirdapp/CommonApplication.java
@@ -14,7 +14,7 @@
import java.io.File;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.common.net.RetrofitFactory;
import cn.flightfeather.thirdapp.util.crashreport.MyCrashHandler;
import retrofit2.Retrofit;
app/src/main/java/cn/flightfeather/thirdapp/activity/DebugTransSiteLatlngActivity.java
@@ -17,8 +17,8 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Site;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
app/src/main/java/cn/flightfeather/thirdapp/activity/EvaluateActivity.java
@@ -11,7 +11,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
import cn.flightfeather.thirdapp.util.UUIDGenerator;
import okhttp3.ResponseBody;
import retrofit2.Call;
app/src/main/java/cn/flightfeather/thirdapp/activity/GitDetailActivity.java
@@ -31,8 +31,8 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.GitlistVo;
import cn.flightfeather.thirdapp.task.DownloadAndSetImageTask;
import cn.flightfeather.thirdapp.task.SetImageTask;
app/src/main/java/cn/flightfeather/thirdapp/activity/GradeActivity.java
@@ -42,12 +42,12 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.Evaluationrule;
import cn.flightfeather.thirdapp.bean.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.EvaluationsubruleVo;
import cn.flightfeather.thirdapp.httpservice.EvaluationService;
import cn.flightfeather.thirdapp.util.Constant;
app/src/main/java/cn/flightfeather/thirdapp/activity/MOVMapActivity.java
@@ -55,11 +55,11 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.MOVListAdapter;
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
import cn.flightfeather.thirdapp.httpservice.MonitorObjectVersionService;
import cn.flightfeather.thirdapp.httpservice.SubTaskService;
app/src/main/java/cn/flightfeather/thirdapp/activity/NewMonthTaskActivity.java
@@ -34,14 +34,14 @@
import cn.carbswang.android.numberpickerview.library.NumberPickerView;
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domaincatalog;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domaincatalog;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.httpservice.TaskService;
import cn.flightfeather.thirdapp.httpservice.UserInfoService;
import cn.flightfeather.thirdapp.module.task.NewMonthTaskMapActivity;
app/src/main/java/cn/flightfeather/thirdapp/activity/PhotoViewerActivity.java
@@ -23,7 +23,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.CommonPagerAdapter;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
app/src/main/java/cn/flightfeather/thirdapp/activity/ProblemDetailActivity.java
@@ -51,8 +51,8 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.model.event.ProblemEvent;
import cn.flightfeather.thirdapp.module.base.BaseTakePicActivity;
app/src/main/java/cn/flightfeather/thirdapp/activity/PromiseActivity.java
@@ -38,10 +38,10 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.ProblemPromiseListAdapter;
import cn.flightfeather.thirdapp.bean.AllBoolean;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.AllBoolean;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.httpservice.InspectionService;
import cn.flightfeather.thirdapp.util.Constant;
app/src/main/java/cn/flightfeather/thirdapp/activity/ScenseDetailActivity.java
@@ -38,13 +38,13 @@
//
//import cn.flightfeather.thirdapp.R;
//import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
//import cn.flightfeather.thirdapp.bean.City;
//import cn.flightfeather.thirdapp.bean.District;
//import cn.flightfeather.thirdapp.bean.Domainitem;
//import cn.flightfeather.thirdapp.bean.Province;
//import cn.flightfeather.thirdapp.bean.Scense;
//import cn.flightfeather.thirdapp.bean.Site;
//import cn.flightfeather.thirdapp.bean.Town;
//import cn.flightfeather.thirdapp.bean.entity.City;
//import cn.flightfeather.thirdapp.bean.entity.District;
//import cn.flightfeather.thirdapp.bean.entity.Domainitem;
//import cn.flightfeather.thirdapp.bean.entity.Province;
//import cn.flightfeather.thirdapp.bean.entity.Scense;
//import cn.flightfeather.thirdapp.bean.entity.Site;
//import cn.flightfeather.thirdapp.bean.entity.Town;
//import cn.flightfeather.thirdapp.CommonApplication;
//import cn.flightfeather.thirdapp.httpservice.ScenseService;
//import cn.flightfeather.thirdapp.httpservice.SiteDetailService;
app/src/main/java/cn/flightfeather/thirdapp/activity/ScenseMapActivity.java
@@ -48,13 +48,13 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener;
import cn.flightfeather.thirdapp.adapter.ScenseListAdapter;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.module.MainActivity;
import cn.flightfeather.thirdapp.task.ObtainBoundaryRunnable;
import cn.flightfeather.thirdapp.util.Area;
app/src/main/java/cn/flightfeather/thirdapp/activity/SiteDetailActivity.java
@@ -15,11 +15,11 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Site;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.httpservice.SiteDetailService;
public class SiteDetailActivity extends AppCompatActivity
app/src/main/java/cn/flightfeather/thirdapp/activity/SubTaskMapActivity.java
@@ -29,8 +29,8 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.util.AmapNavi;
public class SubTaskMapActivity extends AppCompatActivity implements View.OnClickListener {
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskActivity.java
@@ -42,12 +42,12 @@
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener;
import cn.flightfeather.thirdapp.adapter.TaskListAdapter;
import cn.flightfeather.thirdapp.adapter.TopClassTaskAdapter;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.Taskvertion;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Taskvertion;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
import cn.flightfeather.thirdapp.httpservice.SubTaskService;
import cn.flightfeather.thirdapp.httpservice.TaskService;
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskAdjustActivity.java
@@ -10,7 +10,7 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.TaskListAdapter;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.util.Constant;
public class TaskAdjustActivity extends AppCompatActivity implements View.OnClickListener{
app/src/main/java/cn/flightfeather/thirdapp/activity/TaskDetailActivity.java
@@ -6,7 +6,7 @@
import android.widget.TextView;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.util.Constant;
import cn.flightfeather.thirdapp.util.DateFormatter;
app/src/main/java/cn/flightfeather/thirdapp/activity/UploadMediaFilesActivity.java
@@ -25,7 +25,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.MediaFileListAdapter;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.task.CompressPhotoTask;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
app/src/main/java/cn/flightfeather/thirdapp/adapter/DomainItemListAdapter.java
@@ -10,7 +10,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
/**
 * Created by note_ff_1602 on 2018/1/24.
app/src/main/java/cn/flightfeather/thirdapp/adapter/GitTypeListAdapter.java
@@ -10,7 +10,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Gittype;
import cn.flightfeather.thirdapp.bean.entity.Gittype;
/**
 * Created by note_ff_1602 on 2018/2/10.
app/src/main/java/cn/flightfeather/thirdapp/adapter/MOVListAdapter.java
@@ -11,7 +11,7 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.MOVMapActivity;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.entity.Scense;
/**
 * Created by linli on 2018/1/25.
@@ -39,7 +39,8 @@
    @Override
    public void onBindViewHolder(final ScenseListViewHolder holder, final int position) {
        final Scense info = mDataList.get(position);
        int pos = holder.getAdapterPosition();
        final Scense info = mDataList.get(pos);
        holder.tv_scenseName.setText(info.getName());
        holder.tv_no.setText(String.valueOf(info.getDisplayID()));
        if (context.getmCurrentMode() == MOVMapActivity.MODE_ADD_SUBTASK) {
@@ -61,8 +62,8 @@
                    public void onClick(View v) {
                        int monitorNum = info.getMonitorNum() - 1;
                        if (monitorNum == 0) {
                            context.setmCurrentPosition(position);
                            context.updateMarkers(context.getmMarkerList().get(position), info);
                            context.setmCurrentPosition(pos);
                            context.updateMarkers(context.getmMarkerList().get(pos), info);
                        } else {
                            info.setMonitorNum(monitorNum);
                            context.updateScenseDesc();
@@ -78,8 +79,8 @@
                public void onClick(View v) {
                    int num = info.getMonitorNum();
                    if (num == 0) {
                        context.setmCurrentPosition(position);
                        context.updateMarkers(context.getmMarkerList().get(position), info);
                        context.setmCurrentPosition(pos);
                        context.updateMarkers(context.getmMarkerList().get(pos), info);
                    } else {
                        info.setMonitorNum(num + 1);
                        context.updateScenseDesc();
app/src/main/java/cn/flightfeather/thirdapp/adapter/MediaFileListAdapter.java
@@ -10,7 +10,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
/**
 * Created by note_ff_1602 on 2018/1/27.
app/src/main/java/cn/flightfeather/thirdapp/adapter/PhotoListAdapter.java
@@ -15,7 +15,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.task.DownloadAndSetImageTask;
/**
app/src/main/java/cn/flightfeather/thirdapp/adapter/ProblemPromiseListAdapter.java
@@ -31,9 +31,9 @@
import cn.flightfeather.thirdapp.activity.PhotoViewerActivity;
import cn.flightfeather.thirdapp.activity.PromiseActivity;
import cn.flightfeather.thirdapp.activity.SignActivity;
import cn.flightfeather.thirdapp.bean.AllBoolean;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.AllBoolean;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.httpservice.InspectionService;
import cn.flightfeather.thirdapp.task.DownloadAndSetImageTask;
app/src/main/java/cn/flightfeather/thirdapp/adapter/ProblemTypeListAdapter.java
@@ -10,7 +10,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Problemtype;
import cn.flightfeather.thirdapp.bean.entity.Problemtype;
/**
 * Created by note_ff_1602 on 2018/1/24.
app/src/main/java/cn/flightfeather/thirdapp/adapter/ScenseListAdapter.java
@@ -10,7 +10,7 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.ScenseMapActivity;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.entity.Scense;
/**
 * Created by linli on 2018/1/25.
app/src/main/java/cn/flightfeather/thirdapp/adapter/SelectedScenseAdapter.java
@@ -11,7 +11,7 @@
//
//import cn.flightfeather.thirdapp.R;
//import cn.flightfeather.thirdapp.activity.MonitorObjectVersionMap;
//import cn.flightfeather.thirdapp.bean.Scense;
//import cn.flightfeather.thirdapp.bean.entity.Scense;
//
///**
// * Created by linli on 2018/3/8.
app/src/main/java/cn/flightfeather/thirdapp/adapter/TaskListAdapter.java
@@ -14,7 +14,7 @@
import java.util.Objects;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.util.Constant;
import cn.flightfeather.thirdapp.util.DialogUtil2;
import cn.flightfeather.thirdapp.util.Domain;
@@ -69,9 +69,10 @@
    @Override
    public void onBindViewHolder(TaskListHolder holder, final int position) {
        int pos = holder.getAdapterPosition();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm", Locale.getDefault());
        SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("MM月dd日", Locale.getDefault());
        Subtask subTask = subTaskList.get(position);
        Subtask subTask = subTaskList.get(pos);
        switch (holder.getItemViewType()) {
            case ITEM_VIEW_TYPE_HEAD:
                Date date1 = subTask.getPlanstarttime();
@@ -91,8 +92,8 @@
                    holder.mtv_time.setText(planStartTime);
                    //对是否显示日期的判断
                    if (position>0){
                        Subtask subTaskBefore = subTaskList.get(position-1);
                    if (pos>0){
                        Subtask subTaskBefore = subTaskList.get(pos-1);
                        Calendar calendarBefore = Calendar.getInstance();
                        calendarBefore.setTime(subTaskBefore.getPlanstarttime());
                        calendarBefore.set(Calendar.HOUR_OF_DAY,0);
@@ -136,7 +137,7 @@
                    @Override
                    public void onClick(View v) {
                        if (onSwipeItemClickListener != null) {
                            onSwipeItemClickListener.click(position);
                            onSwipeItemClickListener.click(pos);
                        }
                    }
                });
@@ -146,7 +147,7 @@
                        @Override
                        public boolean onLongClick(View v) {
                            DialogUtil2.INSTANCE.showAlertDialog(context, "确认是否删除任务?", dialog -> {
                                onDeleteListener.delete(position);
                                onDeleteListener.delete(pos);
                                dialog.dismiss();
                                return Unit.INSTANCE;
                            }, dialog -> {
app/src/main/java/cn/flightfeather/thirdapp/adapter/TopClassTaskAdapter.java
@@ -12,7 +12,7 @@
import java.util.Locale;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.util.Constant;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/ChangeAdvice.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/ChangeAdvice.java ÐÞ¸Ä
@@ -1,11 +1,11 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/ChangeEffect.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/ChangeEffect.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/City.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/City.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/District.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/District.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Domaincatalog.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Domaincatalog.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Domainitem.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Domainitem.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluation.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Evaluation.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluationrule.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Evaluationrule.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Evaluationsubrule.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Evaluationsubrule.java ÐÞ¸Ä
@@ -1,11 +1,11 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;
/**
 * Created by note_ff_1602 on 2017/12/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Gitlist.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Gitlist.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Gittype.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Gittype.java ÐÞ¸Ä
@@ -1,11 +1,11 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;
/**
 * Created by note_ff_1602 on 2017/12/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Inspection.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Inspection.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Itemevaluation.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Itemevaluation.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/MediaTypeAlias.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,67 @@
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
/**
 * @author riku
 * Date: 2020/12/21
 * åª’体文件类型别名
 */
@Entity
public class MediaTypeAlias {
    @Id(autoincrement = true)
    private long id;
    @Property
    private int sceneTypeId;
    @Property
    private int typeId;
    @Property
    private String typeName;
    @Property
    private String alias;
    @Generated(hash = 1531076614)
    public MediaTypeAlias(long id, int sceneTypeId, int typeId, String typeName,
            String alias) {
        this.id = id;
        this.sceneTypeId = sceneTypeId;
        this.typeId = typeId;
        this.typeName = typeName;
        this.alias = alias;
    }
    @Generated(hash = 849869520)
    public MediaTypeAlias() {
    }
    public long getId() {
        return this.id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public int getSceneTypeId() {
        return this.sceneTypeId;
    }
    public void setSceneTypeId(int sceneTypeId) {
        this.sceneTypeId = sceneTypeId;
    }
    public int getTypeId() {
        return this.typeId;
    }
    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }
    public String getTypeName() {
        return this.typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public String getAlias() {
        return this.alias;
    }
    public void setAlias(String alias) {
        this.alias = alias;
    }
}
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Mediafile.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Mediafile.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Monitorobjectversion.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Monitorobjectversion.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Problemlist.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Problemlist.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Problemtype.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Problemtype.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Province.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Province.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Scense.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Scense.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Site.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Site.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Subtask.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Subtask.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Task.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Task.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Taskvertion.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Taskvertion.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Town.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Town.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/entity/Userinfo.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/Userinfo.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/ActivityBean.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/ActivityBean.java ÐÞ¸Ä
@@ -1,6 +1,4 @@
package cn.flightfeather.thirdapp.bean;
import android.os.Parcelable;
package cn.flightfeather.thirdapp.bean.vo;
import java.io.Serializable;
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/AllBoolean.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/AllBoolean.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.vo;
/**
 * Created by note_ff_1602 on 2018/3/7.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/EvaluationsubruleVo.java
@@ -2,7 +2,7 @@
import java.util.Date;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
public class EvaluationsubruleVo {
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/GitlistVo.java
@@ -4,7 +4,7 @@
import java.util.Date;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
/**
 * Created by note_ff_1602 on 2017/12/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/InspectionVo.java
@@ -3,8 +3,8 @@
import java.util.Date;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
/**
 * Created by note_ff_1602 on 2017/12/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/LastSubtaskPack.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/LastSubtaskPack.java ÐÞ¸Ä
@@ -1,8 +1,8 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.vo;
import java.util.List;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
/**
 * Created by note_ff_1602 on 2018/1/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/MediafileVo.java
@@ -3,7 +3,7 @@
import java.io.File;
import java.util.Date;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.util.CommonUtils;
import cn.flightfeather.thirdapp.util.UUIDGenerator;
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/ProblemlistVo.java
@@ -4,8 +4,8 @@
import java.util.Date;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.Problemlist;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Problemlist;
/**
 * Created by note_ff_1602 on 2017/12/26.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/TaskPack.java
ÎļþÃû´Ó app/src/main/java/cn/flightfeather/thirdapp/bean/TaskPack.java ÐÞ¸Ä
@@ -1,8 +1,6 @@
package cn.flightfeather.thirdapp.bean;
package cn.flightfeather.thirdapp.bean.vo;
import java.util.List;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
/**
 * Created by note_ff_1602 on 2018/1/12.
app/src/main/java/cn/flightfeather/thirdapp/bean/vo/TaskVo.java
@@ -4,8 +4,8 @@
import java.util.Date;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Task;
/**
 * Created by note_ff_1602 on 2018/1/12.
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype1/Inspection2Fragment.kt
ÎļþÒÑɾ³ý
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype2/HomeFragment_comptent.java
@@ -48,9 +48,9 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.vo.AreaVo;
import cn.flightfeather.thirdapp.bean.vo.ChargeInfoVo;
import cn.flightfeather.thirdapp.bean.vo.InspectionVo;
app/src/main/java/cn/flightfeather/thirdapp/business/widgettype3/HomeFragment_scene.java
@@ -42,9 +42,9 @@
import butterknife.Unbinder;
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.InspectionInfoVo;
import cn.flightfeather.thirdapp.bean.vo.InspectionVo;
import cn.flightfeather.thirdapp.bean.vo.RankVo;
app/src/main/java/cn/flightfeather/thirdapp/common/database/DbSource.java
@@ -2,7 +2,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
import io.reactivex.Observable;
/**
app/src/main/java/cn/flightfeather/thirdapp/common/database/GreenDaoDb.java
@@ -14,7 +14,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
import io.reactivex.Observable;
import io.reactivex.ObservableEmitter;
import io.reactivex.ObservableOnSubscribe;
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnalysisOverViewFragment.java
@@ -35,7 +35,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.vo.RankVo;
import cn.flightfeather.thirdapp.bean.vo.StatisticsVo;
import cn.flightfeather.thirdapp.bean.vo.TaskFrequencyVo;
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnysisProblemFragment.java
@@ -59,11 +59,11 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.bean.vo.AreaVo;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.httpservice.ProblemListService;
app/src/main/java/cn/flightfeather/thirdapp/dataanalysis/AnysisRankFragment.java
@@ -29,8 +29,8 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter;
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
import cn.flightfeather.thirdapp.httpservice.EvaluationService;
import cn.flightfeather.thirdapp.httpservice.TaskService;
app/src/main/java/cn/flightfeather/thirdapp/fragment/CardFragment.java
@@ -27,7 +27,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.LoginActivity;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.module.MainActivity;
import retrofit2.Call;
import retrofit2.Callback;
app/src/main/java/cn/flightfeather/thirdapp/fragment/HomeFragment.java
@@ -39,10 +39,10 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.LastSubtaskPack;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
import cn.flightfeather.thirdapp.bean.vo.LastSubtaskPack;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.vo.InspectionVo;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
app/src/main/java/cn/flightfeather/thirdapp/fragment/SettingFragment.java
@@ -18,7 +18,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.LoginActivity;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.httpservice.SettingsService;
import cn.flightfeather.thirdapp.util.GlobalConfig;
import cn.flightfeather.thirdapp.view.SettingCommItemView;
app/src/main/java/cn/flightfeather/thirdapp/fragment/TaskFragment.java
@@ -33,10 +33,10 @@
import cn.flightfeather.thirdapp.activity.TaskActivity;
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener;
import cn.flightfeather.thirdapp.adapter.TaskListAdapter;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import cn.flightfeather.thirdapp.bean.vo.TaskVo;
import cn.flightfeather.thirdapp.httpservice.SubTaskService;
import cn.flightfeather.thirdapp.httpservice.TaskService;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/EvaluationService.java
@@ -2,8 +2,8 @@
import java.util.List;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/InitDataService.java
@@ -2,20 +2,20 @@
import java.util.List;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.ChangeEffect;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domaincatalog;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Evaluationrule;
import cn.flightfeather.thirdapp.bean.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.Gittype;
import cn.flightfeather.thirdapp.bean.Problemtype;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeEffect;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domaincatalog;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.entity.Gittype;
import cn.flightfeather.thirdapp.bean.entity.Problemtype;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Site;
import cn.flightfeather.thirdapp.bean.entity.Town;
import retrofit2.Call;
import retrofit2.http.GET;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/InspectionService.java
@@ -2,15 +2,15 @@
import java.util.List;
import cn.flightfeather.thirdapp.bean.Gitlist;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.LastSubtaskPack;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.Problemlist;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Gitlist;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
import cn.flightfeather.thirdapp.bean.vo.LastSubtaskPack;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Problemlist;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Site;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.vo.GitlistVo;
import cn.flightfeather.thirdapp.bean.vo.InspectionInfoVo;
import cn.flightfeather.thirdapp.bean.vo.InspectionVo;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/MonitorObjectVersionService.java
@@ -2,7 +2,7 @@
import java.util.ArrayList;
import cn.flightfeather.thirdapp.bean.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/ScenseService.java
@@ -2,8 +2,8 @@
import java.util.ArrayList;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Task;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SettingsService.java
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.httpservice;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SiteDetailService.java
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.httpservice;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.entity.Site;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/SubTaskService.java
@@ -3,7 +3,7 @@
import java.util.ArrayList;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/TaskService.java
@@ -3,8 +3,8 @@
import java.util.ArrayList;
import java.util.List;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.TaskPack;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.bean.vo.TaskPack;
import cn.flightfeather.thirdapp.bean.vo.DayTaskProgressVo;
import cn.flightfeather.thirdapp.bean.vo.RankVo;
import cn.flightfeather.thirdapp.bean.vo.TaskFrequencyVo;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/TaskVersionService.java
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.httpservice;
import cn.flightfeather.thirdapp.bean.Taskvertion;
import cn.flightfeather.thirdapp.bean.entity.Taskvertion;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
app/src/main/java/cn/flightfeather/thirdapp/httpservice/UserInfoService.java
@@ -2,7 +2,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
app/src/main/java/cn/flightfeather/thirdapp/model/enumreation/MediaFileType.kt
@@ -13,7 +13,26 @@
    RoutineRecord(5, "常规记录"),
    Signature(6, "签字"),
    Nameplate(7, "铭牌"),
    Others(99,"其他")
    TYPE_1(51, "扩展类一"),
    TYPE_2(52, "扩展类二"),
    TYPE_3(53, "扩展类三"),
    TYPE_4(54, "扩展类四"),
    TYPE_5(55, "扩展类五"),
    TYPE_6(56, "扩展类六"),
    TYPE_7(57, "扩展类七"),
    TYPE_8(58, "扩展类八"),
    TYPE_9(59, "扩展类九"),
    TYPE_10(60, "扩展类十"),
    Others(99,"其他");
    companion object {
        fun getList(sceneTypeId: Int) = when (sceneTypeId) {
            // FIXME: 2020/12/21 æ­¤å¤„5代表餐饮企业类型,后续应该添加枚举类等规范代码
            5 -> listOf(RoutineRecord, TYPE_1, TYPE_2, TYPE_3, TYPE_4, TYPE_5, TYPE_6, TYPE_7, TYPE_8, TYPE_9, TYPE_10)
            else -> listOf(RoutineRecord, MonitorDevice, Nameplate)
        }
    }
}
app/src/main/java/cn/flightfeather/thirdapp/model/enumreation/SceneType.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,22 @@
package cn.flightfeather.thirdapp.model.enumreation
/**
 * @author riku
 * Date: 2020/12/22
 */
enum class SceneType(val value: Int, val des: String) {
    Construction(1, "工地"),
    Wharf(2, "码头"),
    MixingPlant(3, "搅拌站"),
    Industrial(4, "工业企业"),
    Restaurant(5, "餐饮企业"),
    VehicleRepair(6, "汽修"),
    SCENE_TYPE7(7, "降尘点"),
    SCENE_TYPE8(8, "空气质量监测点"),
    SCENE_TYPE9(9, "道路扬尘监测点"),
    SCENE_TYPE10(10, "道路"),
    SCENE_TYPE11(11, "河流断面"),
    SCENE_TYPE12(12, "工业园区"),
    SCENE_TYPE13(13, "无固定场景"),
    StorageYard(14, "堆场");
}
app/src/main/java/cn/flightfeather/thirdapp/model/event/InspectionEvent.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.model.event
import cn.flightfeather.thirdapp.bean.Inspection
import cn.flightfeather.thirdapp.bean.entity.Inspection
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/model/event/ProblemEvent.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.model.event
import cn.flightfeather.thirdapp.bean.Problemlist
import cn.flightfeather.thirdapp.bean.entity.Problemlist
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/model/event/SceneEvent.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.model.event
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/model/event/TopTaskEvent.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.model.event
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Task
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/module/MainActivity.java
@@ -20,7 +20,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.business.widgettype2.HomeFragment_comptent;
import cn.flightfeather.thirdapp.business.widgettype3.HomeFragment_scene;
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/BaseProblemListActivity.kt
@@ -9,9 +9,9 @@
import cn.flightfeather.thirdapp.activity.ProblemDetailActivity
import cn.flightfeather.thirdapp.adapter.ProblemListAdapter
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener
import cn.flightfeather.thirdapp.bean.Inspection
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Inspection
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.model.event.ProblemEvent
import cn.flightfeather.thirdapp.module.base.BaseActivity
import kotlinx.android.synthetic.main.dialog_problem_list.*
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/BaseProblemListViewModel.kt
@@ -1,8 +1,8 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.LastSubtaskPack
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.vo.LastSubtaskPack
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.common.net.ResultCallBack2
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionDetailActivity.kt
@@ -3,7 +3,6 @@
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.os.Bundle
@@ -20,9 +19,9 @@
import cn.flightfeather.thirdapp.activity.ProblemDetailActivity
import cn.flightfeather.thirdapp.activity.PromiseActivity
import cn.flightfeather.thirdapp.adapter.IconsPageAdapter
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.model.event.InspectionEvent
import cn.flightfeather.thirdapp.model.event.ProblemEvent
@@ -625,7 +624,7 @@
                        val l1 = LatLng(lat, lng)
                        val l2 = LatLng(last[1], last[0])
                        val distance = AMapUtils.calculateLineDistance(l1, l2)
                        if (distance >= 1) {
                        if (distance >= 1 && distance < 1000 && lat != 0.0 && lng != 0.0) {
                            extension1 = "${extension1};${lng},${lat}"
                            //道路监测点和道路类型的场景,直接展示轨迹;其余场景只有管理员和政府部门可以查看
                            if (
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionDetailViewModel.kt
@@ -1,9 +1,9 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.Inspection
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Inspection
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.InspectionVo
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionFragment.kt
@@ -15,13 +15,12 @@
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.activity.UploadMediaFilesActivity
import cn.flightfeather.thirdapp.adapter.TaskListAdapter
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.DayTaskProgressVo
import cn.flightfeather.thirdapp.module.base.BaseFragment
import cn.flightfeather.thirdapp.util.DateFormatter
import cn.flightfeather.thirdapp.util.DialogUtil
import cn.flightfeather.thirdapp.util.slideswaphelper.PlusItemSlideCallback
import cn.flightfeather.thirdapp.util.slideswaphelper.WItemTouchHelperPlus
import cn.flightfeather.thirdapp.util.Domain
import com.haibin.calendarview.Calendar
import com.haibin.calendarview.CalendarView
import kotlinx.android.synthetic.main.fragment_inspection2.*
@@ -47,7 +46,7 @@
    //当前选中的日期
    private var curDate = Date()
    lateinit var subTaskListAdapter: TaskListAdapter
    private lateinit var subTaskListAdapter: TaskListAdapter
    private var loadingDialog: Dialog? = null
@@ -84,10 +83,10 @@
        viewModel.dayTaskList.observe(this, Observer {
            // 2019/7/29 åœ¨æ—¥åŽ†ä¸Šæ·»åŠ æ ‡è®°ç‚¹
            it?.let {
                closeLoading()
                curDayTaskList = it
                addScheme(it)
                refreshText(it)
//                closeLoading()
            }
        })
@@ -126,7 +125,6 @@
    }
    private fun refreshSubTaskList(newSubTaskList: ArrayList<Subtask> = arrayListOf(), taskDate:Date) {
        closeLoading()
        curSubTaskList.clear()
        with(curDayTaskList) breaking@{
            forEach {
@@ -153,8 +151,16 @@
                extension3 = "0"
            })
        }
        curSubTaskList.addAll(newSubTaskList)
        curSubTaskList.addAll(newSubTaskList.sortedBy {
            when (it.status) {
                Domain.TASK_STATUS_WAITING -> 1
                Domain.TASK_STATUS_RUNNING -> 2
                Domain.TASK_STATUS_FINISHED -> 3
                else -> -1
            }
        })
        subTaskListAdapter.notifyDataSetChanged()
        closeLoading()
    }
    /**
     * åˆå§‹åŒ–日历控件
@@ -316,9 +322,9 @@
            }
        }
        Handler().postDelayed({
            closeLoading()
        }, 5000)
//        Handler().postDelayed({
//            closeLoading()
//        }, 10000)
    }
    private fun closeLoading() {
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/InspectionViewModel.kt
@@ -2,7 +2,7 @@
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.CommonApplication
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.DayTaskProgressVo
import cn.flightfeather.thirdapp.bean.vo.TaskVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuCameraActivity.kt
@@ -1,5 +1,6 @@
package cn.flightfeather.thirdapp.module.inspection
import android.annotation.SuppressLint
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
@@ -8,15 +9,18 @@
import android.os.Environment
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.activity.PhotoViewerActivity
import cn.flightfeather.thirdapp.adapter.PhotoListAdapter
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener
import cn.flightfeather.thirdapp.bean.Inspection
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Inspection
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.model.enumreation.MediaFileType
import cn.flightfeather.thirdapp.module.base.BaseActivity
import cn.flightfeather.thirdapp.module.base.BaseTakePicActivity
@@ -26,7 +30,10 @@
import cn.flightfeather.thirdapp.util.UUIDGenerator
import cn.flightfeather.thirdapp.util.file.FileUtil
import cn.flightfeather.thirdapp.util.photo.PhotoUtil
import cn.flightfeather.thirdapp.view.SearchView
import kotlinx.android.synthetic.main.dialog_camera.*
import kotlinx.android.synthetic.main.dialog_camera.fab_problem_list_close
import kotlinx.android.synthetic.main.dialog_camera_3.*
import org.jetbrains.anko.toast
import java.io.File
import java.io.IOException
@@ -37,7 +44,7 @@
const val BUSINESS_TYPE_CAMERA = 5
class MenuCameraActivity : BaseActivity() {
    override fun getLayoutId(): Int = R.layout.dialog_camera
    override fun getLayoutId(): Int = R.layout.dialog_camera_3
    //页面支持的拍摄图片类型
    private val typeList = listOf(MediaFileType.RoutineRecord, MediaFileType.Nameplate, MediaFileType.MonitorDevice)
@@ -46,6 +53,8 @@
    private var currentType = MediaFileType.RoutineRecord
    lateinit var viewModel: MenuCameraViewModel
    private val viewList = mutableListOf<View>()
    var subTask: Subtask? = null
    var inspection: Inspection? = null
@@ -66,7 +75,11 @@
        initUI()
        initObserver()
        inspection?.guid?.let { viewModel.getMediaFile(it) }
        inspection?.guid?.let {guid ->
            scene?.typeid?.let { typeId ->
                viewModel.getMediaFile(guid, typeId.toInt())
            }
        }
    }
    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
@@ -106,19 +119,34 @@
    }
    private fun initUI() {
        typeList.forEach {
            getDataSet(it).run {
                initRecyclerView(first.value, second, it)
            }
        }
//        typeList.forEach {
//            getDataSet(it).run {
//                initRecyclerView(first.value, second, it)
//            }
//        }
        fab_problem_list_close.setOnClickListener {
            finish()
        }
    }
    private fun initRecyclerView(dataList: MutableList<Mediafile>?, recyclerView: RecyclerView, type: MediaFileType) {
        if (dataList==null) return
        recyclerView.run {
    @SuppressLint("SetTextI18n")
    private fun initRecyclerView(dataList: List<Mediafile>?, type: MediaFileType, alias: String?) {
        if (dataList == null) return
        val view = LayoutInflater.from(this).inflate(R.layout.item_take_photo, null)
        val searchView = view.findViewById<SearchView>(R.id.search_view)
        val title = view.findViewById<TextView>(R.id.txt_title)
        searchView.onConfirm = { str ->
            scene?.typeid?.let {
                viewModel.updateAlias(it.toInt(), type, str) { alias ->
                    title.text = if (alias.isBlank())  type.des else "${alias}(${type.des})"
                }
            }
        }
        title.text = if (alias.isNullOrBlank())  type.des else "${alias}(${type.des})"
        view.findViewById<ImageView>(R.id.img_edit).setOnClickListener {
            searchView.show(type.des, alias ?: "")
        }
        view.findViewById<RecyclerView>(R.id.rv_photo_list).run {
            layoutManager = GridLayoutManager(this@MenuCameraActivity, 4)
            adapter = PhotoListAdapter(dataList, this@MenuCameraActivity)
            addOnItemTouchListener(RecyclerItemClickListener(this@MenuCameraActivity, this, object : RecyclerItemClickListener.OnItemClickListener {
@@ -154,21 +182,31 @@
            }))
        }
        viewList.add(view)
    }
    private fun initObserver() {
        typeList.forEach {
            getDataSet(it).run {
                first.observe(this@MenuCameraActivity, Observer {list->
                    list?.let {
                        second.adapter?.notifyDataSetChanged()
                    }
                })
        viewModel.fileList.observe(this, Observer {
            it?.forEach { m ->
                initRecyclerView(m.dataList, m.type ?: MediaFileType.Others, m.alias)
            }
        }
            if (viewList.isNotEmpty()) {
                banner.dataList = viewList
            }
        })
//        typeList.forEach {
//            getDataSet(it).run {
//                first.observe(this@MenuCameraActivity, Observer {list->
//                    list?.let {
//                        second.adapter?.notifyDataSetChanged()
//                    }
//                })
//            }
//        }
    }
    private fun putMediaFile(path: String, fileName: String, calendar: Calendar):Mediafile {
    private fun putMediaFile(path: String, fileName: String, calendar: Calendar): Mediafile {
        val mediaFile = Mediafile()
        mediaFile.guid = UUIDGenerator.generate16ShortUUID()
        mediaFile.iguid = inspection?.guid
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuCameraViewModel.kt
@@ -1,12 +1,17 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.model.enumreation.MediaFileType
import cn.flightfeather.thirdapp.model.enumreation.SceneType
import cn.flightfeather.thirdapp.module.base.BaseViewModel
import cn.flightfeather.thirdapp.repository.CommonRepository
import cn.flightfeather.thirdapp.repository.InspectionRepository
import cn.flightfeather.thirdapp.repository.ProblemRepository
import org.jetbrains.anko.collections.forEachByIndex
import org.jetbrains.anko.collections.forEachWithIndex
import org.jetbrains.anko.toast
/**
 * @author riku
@@ -14,8 +19,15 @@
 */
class MenuCameraViewModel : BaseViewModel() {
    class MediaData {
        var type: MediaFileType? = null
        var alias: String? = null
        var dataList = ArrayList<Mediafile>()
    }
    private val inspectionRepository = InspectionRepository()
    private val problemRepository = ProblemRepository()
    private val commonRepository = CommonRepository()
    //常规记录图片
    val routineRecordList = MutableLiveData<ArrayList<Mediafile>>().apply { value = ArrayList() }
@@ -23,6 +35,9 @@
    val nameplateList = MutableLiveData<ArrayList<Mediafile>>().apply { value = ArrayList() }
    //监测设备图片
    val monitorDeviceList = MutableLiveData<ArrayList<Mediafile>>().apply { value = ArrayList() }
    val fileList = MutableLiveData<MutableList<MediaData>>().apply { value = mutableListOf() }
    private var loadedCount = 0
    private val dataSet = listOf(
            Pair(MediaFileType.RoutineRecord, routineRecordList),
@@ -33,25 +48,48 @@
    /**
     * èŽ·å–ä»»æ„æ‹ç…§å›¾ç‰‡
     */
    fun getMediaFile(inspectionId: String) {
        dataSet.forEach {p ->
            inspectionRepository.getMediaFile(inspectionId, p.first.value, object : ResultCallBack<ArrayList<Mediafile>> {
                override fun onSuccess(result: ArrayList<Mediafile>?) {
                    result?.let {
                        p.second.value?.run {
                            clear()
                            add(0, Mediafile())//在列表头添加图片拍摄按钮
                            addAll(it)
    fun getMediaFile(inspectionId: String, sceneTypeId: Int) {
        commonRepository.getMediaFileTypes(sceneTypeId, object : ResultCallBack<List<MediaFileType>> {
            override fun onSuccess(types: List<MediaFileType>?) {
                fileList.value?.clear()
                loadedCount = 0
                types?.forEachWithIndex { i, type ->
                    inspectionRepository.getMediaFile(inspectionId, type.value, object : ResultCallBack<ArrayList<Mediafile>> {
                        override fun onSuccess(result: ArrayList<Mediafile>?) {
                            commonRepository.getAlias(sceneTypeId, type, object : ResultCallBack<String> {
                                override fun onSuccess(alias: String?) {
                                    result?.let {
                                        fileList.value?.add(MediaData().apply {
                                            this.type = type
                                            this.alias = if (alias.isNullOrBlank()) null else alias
                                            dataList = it
                                            dataList.add(0, Mediafile())
                                        })
                                        onMediaFileGet(types.size, sceneTypeId)
                                    }
                                }
                                override fun onFailure() {
                                }
                            })
                        }
                        p.second.value = p.second.value
                    }
                        override fun onFailure() {
                        }
                    })
                }
            }
                override fun onFailure() {
            override fun onFailure() {
                }
            }
        })
            })
        dataSet.forEach { p ->
        }
    }
@@ -70,4 +108,58 @@
        })
    }
    fun updateAlias(sceneTypeId: Int, mediaFileType: MediaFileType, alias: String, s: (s: String) -> Unit) {
        commonRepository.updateAlias(sceneTypeId, mediaFileType, alias, object : ResultCallBack<Boolean> {
            override fun onSuccess(result: Boolean?) {
                application.toast("修改成功")
                s(alias)
            }
            override fun onFailure() {
                application.toast("修改失败")
            }
        })
    }
    private fun onMediaFileGet(total: Int, sceneTypeId: Int) {
        loadedCount++
        if (loadedCount == total) {
            val list = fileList.value?.sortedBy {
                it.type?.value
            }?.toMutableList() ?: mutableListOf()
            if (sceneTypeId == SceneType.Construction.value
                    || sceneTypeId == SceneType.Wharf.value
                    || sceneTypeId == SceneType.MixingPlant.value
                    || sceneTypeId == SceneType.StorageYard.value) {
                fileList.value?.clear()
                for (i in list.indices) {
                    if (list[i].type == MediaFileType.RoutineRecord) {
                        fileList.value?.add(list[i])
                        list.removeAt(i)
                        break
                    }
                }
                for (i in list.indices) {
                    if (list[i].type == MediaFileType.MonitorDevice) {
                        fileList.value?.add(list[i])
                        list.removeAt(i)
                        break
                    }
                }
                for (i in list.indices) {
                    if (list[i].type == MediaFileType.Nameplate) {
                        fileList.value?.add(list[i])
                        list.removeAt(i)
                        break
                    }
                }
                fileList.value?.addAll(list)
                fileList.value = fileList.value
            } else {
                fileList.value = list
            }
        }
    }
}
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt
@@ -12,7 +12,7 @@
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.DomainItemListAdapter
import cn.flightfeather.thirdapp.adapter.ProblemTypeListAdapter
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.model.event.ProblemEvent
import cn.flightfeather.thirdapp.module.base.BaseTakePicActivity
import cn.flightfeather.thirdapp.util.DateFormatter
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceViewModel.kt
@@ -1,7 +1,7 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.model.event.ProblemEvent
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuGradeActivity.kt
@@ -14,8 +14,8 @@
import android.widget.TextView
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.EvaluationsubruleVo
import cn.flightfeather.thirdapp.module.base.BaseActivity
import cn.flightfeather.thirdapp.util.Constant
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuGradeViewModel.kt
@@ -1,16 +1,14 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import android.util.Log
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.bean.vo.EvaluationsubruleVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.module.base.BaseViewModel
import cn.flightfeather.thirdapp.repository.EvaluationRepository
import cn.flightfeather.thirdapp.util.UUIDGenerator
import okhttp3.ResponseBody
import org.greenrobot.eventbus.EventBus
import java.util.*
import kotlin.collections.ArrayList
import kotlin.math.abs
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuNewGitActivity.kt
@@ -16,7 +16,7 @@
import cn.flightfeather.thirdapp.adapter.GitListAdapter
import cn.flightfeather.thirdapp.adapter.GitTypeListAdapter
import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.common.database.DbFactory
import cn.flightfeather.thirdapp.common.net.RetrofitFactory
import cn.flightfeather.thirdapp.httpservice.InspectionService
@@ -26,7 +26,6 @@
import cn.flightfeather.thirdapp.util.UUIDGenerator
import cn.flightfeather.thirdapp.util.file.FileUtil
import com.ping.greendao.gen.GittypeDao
import kotlinx.android.synthetic.main.dialog_camera.*
import kotlinx.android.synthetic.main.dialog_camera.fab_problem_list_close
import kotlinx.android.synthetic.main.dialog_camera.iv_new_photo
import kotlinx.android.synthetic.main.dialog_camera.tv_title
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuNewGitViewModel.kt
@@ -1,7 +1,7 @@
package cn.flightfeather.thirdapp.module.inspection
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.bean.vo.GitlistVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.module.base.BaseViewModel
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuProblemUpdateActivity.kt
@@ -6,9 +6,9 @@
import android.os.Environment
import android.view.View
import android.widget.AdapterView
import cn.flightfeather.thirdapp.bean.Domainitem
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.Problemtype
import cn.flightfeather.thirdapp.bean.entity.Domainitem
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Problemtype
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.module.base.VIEW_PHOTO
import kotlinx.android.synthetic.main.dialog_take_evidence.*
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/InspectionInfoFragment.java
@@ -31,8 +31,8 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.vo.ProblemCategoryVo;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.httpservice.ProblemListService;
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/ProblemChangeDetailActivity.java
@@ -45,7 +45,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.PhotoViewerActivity;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.MediafileVo;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.httpservice.ProblemListService;
app/src/main/java/cn/flightfeather/thirdapp/module/inspectioninfo/ProblemChangeFragment.java
@@ -33,7 +33,7 @@
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.activity.PhotoViewerActivity;
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo;
import cn.flightfeather.thirdapp.util.Constant;
import cn.flightfeather.thirdapp.util.DateFormatter;
app/src/main/java/cn/flightfeather/thirdapp/module/task/MonthTaskManagementActivity.kt
@@ -7,7 +7,7 @@
import android.widget.AdapterView
import android.widget.ArrayAdapter
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
import kotlinx.android.synthetic.main.layout_search_bar.*
import java.util.*
import kotlin.collections.ArrayList
app/src/main/java/cn/flightfeather/thirdapp/module/task/MonthTaskManagementViewModel.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.module.task
import cn.flightfeather.thirdapp.bean.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import okhttp3.ResponseBody
import org.jetbrains.anko.toast
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewMonthTaskMapActivity.kt
@@ -9,9 +9,9 @@
import android.widget.ArrayAdapter
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter
import cn.flightfeather.thirdapp.bean.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Task
import cn.flightfeather.thirdapp.bean.vo.TaskVo
import cn.flightfeather.thirdapp.model.event.TopTaskEvent
import cn.flightfeather.thirdapp.util.Constant
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskActivity.kt
@@ -11,7 +11,7 @@
import android.widget.*
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.module.base.BaseMapActivity
import cn.flightfeather.thirdapp.module.base.GROUP_POINT
import cn.flightfeather.thirdapp.util.Constant
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt
@@ -5,10 +5,10 @@
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import cn.flightfeather.thirdapp.CommonApplication
import cn.flightfeather.thirdapp.bean.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.entity.Task
import cn.flightfeather.thirdapp.bean.vo.TaskVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.model.event.TopTaskEvent
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewTopTaskActivity.kt
@@ -3,7 +3,7 @@
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Task
import cn.flightfeather.thirdapp.module.base.BaseMapActivity
import cn.flightfeather.thirdapp.util.Constant
import cn.flightfeather.thirdapp.util.Domain
app/src/main/java/cn/flightfeather/thirdapp/module/task/NewTopTaskViewModel.kt
@@ -2,7 +2,7 @@
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
/**
 * @author riku
app/src/main/java/cn/flightfeather/thirdapp/module/task/SceneDetailActivity.kt
@@ -11,7 +11,7 @@
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.activity.MapActivity
import cn.flightfeather.thirdapp.adapter.AllListViewAdapter
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.model.event.SceneEvent
import cn.flightfeather.thirdapp.module.base.BaseActivity
import cn.flightfeather.thirdapp.util.Domain
app/src/main/java/cn/flightfeather/thirdapp/module/task/SceneDetailViewModel.kt
@@ -1,7 +1,7 @@
package cn.flightfeather.thirdapp.module.task
import android.arch.lifecycle.MutableLiveData
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.model.event.SceneEvent
import cn.flightfeather.thirdapp.module.base.BaseViewModel
app/src/main/java/cn/flightfeather/thirdapp/repository/CommonRepository.kt
@@ -1,12 +1,16 @@
package cn.flightfeather.thirdapp.repository
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.common.net.ResultObserver
import cn.flightfeather.thirdapp.common.net.RetrofitFactory
import cn.flightfeather.thirdapp.httpservice.CommonService
import cn.flightfeather.thirdapp.model.enumreation.MediaFileType
import cn.flightfeather.thirdapp.repository.dao.MediaTypeAliasDao
import io.reactivex.schedulers.Schedulers
import okhttp3.MediaType
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Response
import java.io.File
/**
@@ -14,6 +18,7 @@
 * Date: 2020/4/23
 */
class CommonRepository {
    private val mediaTypeAliasDao = MediaTypeAliasDao()
    fun upLoadCrashInfo(accountName: String, file: File, resultCallBack: ResultCallBack<Boolean>) {
        val builder = MultipartBody.Builder()
@@ -34,4 +39,53 @@
                resultCallBack.onFailure()
            })
    }
    /**
     * èŽ·å–â€œä»»æ„æ‹â€æ¨¡å—å±•ç¤ºçš„å›¾ç‰‡ç±»åž‹
     */
    fun getMediaFileTypes(sceneTypeId: Int, resultCallBack: ResultCallBack<List<MediaFileType>>) {
        resultCallBack.onSuccess(MediaFileType.getList(sceneTypeId))
    }
    /**
     * èŽ·å–åª’ä½“æ–‡ä»¶ç±»åž‹çš„åˆ«å
     * @param sceneTypeId åœºæ™¯id
     * @param mediaFileType åª’体文件类型id
     */
    fun getAlias(sceneTypeId: Int, mediaFileType: MediaFileType, resultCallBack: ResultCallBack<String>) {
        val dbService = mediaTypeAliasDao.getAlias(sceneTypeId, mediaFileType)
                .map { Response.success(it) }
        RetrofitFactory.executeResult(dbService, object : ResultObserver<String>() {
            override fun onSuccess(result: String?) {
                resultCallBack.onSuccess(result)
            }
            override fun onFailure(e: Throwable, isNetWorkError: Boolean) {
                resultCallBack.onFailure()
            }
        })
    }
    /**
     * æ›´æ–°åª’体文件类型的别名
     * @param sceneTypeId åœºæ™¯id
     * @param mediaFileType åª’体文件类型id
     * @param alias åˆ«å
     */
    fun updateAlias(sceneTypeId: Int, mediaFileType: MediaFileType, alias: String, resultCallBack: ResultCallBack<Boolean>) {
        val dbService = mediaTypeAliasDao.updateAlias(sceneTypeId, mediaFileType, alias)
                .map { Response.success(it) }
        RetrofitFactory.executeResult(dbService, object : ResultObserver<Boolean>() {
            override fun onSuccess(result: Boolean?) {
                resultCallBack.onSuccess(result)
            }
            override fun onFailure(e: Throwable, isNetWorkError: Boolean) {
                resultCallBack.onFailure()
            }
        })
    }
}
app/src/main/java/cn/flightfeather/thirdapp/repository/EvaluationRepository.kt
@@ -1,8 +1,8 @@
package cn.flightfeather.thirdapp.repository
import cn.flightfeather.thirdapp.bean.Evaluation
import cn.flightfeather.thirdapp.bean.Evaluationrule
import cn.flightfeather.thirdapp.bean.Itemevaluation
import cn.flightfeather.thirdapp.bean.entity.Evaluation
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation
import cn.flightfeather.thirdapp.bean.vo.EvaluationsubruleVo
import cn.flightfeather.thirdapp.common.net.ResponseBodyCallBack
import cn.flightfeather.thirdapp.common.net.ResultCallBack
app/src/main/java/cn/flightfeather/thirdapp/repository/InspectionRepository.kt
@@ -1,6 +1,9 @@
package cn.flightfeather.thirdapp.repository
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.Inspection
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.vo.*
import cn.flightfeather.thirdapp.common.net.ResponseBodyCallBack
import cn.flightfeather.thirdapp.common.net.ResultCallBack
app/src/main/java/cn/flightfeather/thirdapp/repository/ProblemRepository.kt
@@ -2,7 +2,7 @@
import android.annotation.SuppressLint
import android.os.Environment
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo
import cn.flightfeather.thirdapp.common.net.*
import cn.flightfeather.thirdapp.httpservice.InspectionService
@@ -153,7 +153,7 @@
    /**
     * ä¸‹è½½é—®é¢˜å›¾ç‰‡
     */
    fun downloadMediaFile(mediaFile:Mediafile, resultCallBack: ResultCallBack<File>) {
    fun downloadMediaFile(mediaFile: Mediafile, resultCallBack: ResultCallBack<File>) {
        val url: String = mediaFile.extension1 + mediaFile.guid + ".jpg"
        retrofitImage.create(MediaFileService::class.java).downloadImage(url)
                .enqueue(object : Callback<ResponseBody> {
app/src/main/java/cn/flightfeather/thirdapp/repository/SceneRepository.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.repository
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.common.net.ResponseBodyCallBack
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.common.net.ResultObserver
app/src/main/java/cn/flightfeather/thirdapp/repository/TaskRepository.kt
@@ -1,9 +1,9 @@
package cn.flightfeather.thirdapp.repository
import cn.flightfeather.thirdapp.bean.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.entity.Task
import cn.flightfeather.thirdapp.bean.vo.TaskVo
import cn.flightfeather.thirdapp.common.net.ResponseBodyCallBack
import cn.flightfeather.thirdapp.common.net.ResultCallBack
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/DomainDao.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.*
import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.common.database.DbFactory
import cn.flightfeather.thirdapp.util.Domain
import com.ping.greendao.gen.DomainitemDao
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/EvaluationDao.kt
@@ -1,7 +1,7 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.Evaluationrule
import cn.flightfeather.thirdapp.bean.Evaluationsubrule
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule
import cn.flightfeather.thirdapp.common.database.DbFactory
import com.ping.greendao.gen.EvaluationruleDao
import com.ping.greendao.gen.EvaluationsubruleDao
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/MediaFileDao.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.Mediafile
import cn.flightfeather.thirdapp.bean.entity.Mediafile
import cn.flightfeather.thirdapp.common.database.DbFactory
import com.ping.greendao.gen.MediafileDao
import io.reactivex.Observable
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/MediaTypeAliasDao.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,64 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.entity.MediaTypeAlias
import cn.flightfeather.thirdapp.common.database.DbFactory
import cn.flightfeather.thirdapp.model.enumreation.MediaFileType
import com.ping.greendao.gen.MediaTypeAliasDao
import io.reactivex.Observable
/**
 * @author riku
 * Date: 2020/12/21
 */
class MediaTypeAliasDao {
    /**
     * èŽ·å–åª’ä½“æ–‡ä»¶ç±»åž‹çš„æœ¬åœ°åˆ«å
     * @param sceneTypeId åœºæ™¯id
     * @param mediaFileType åª’体文件类型id
     */
    fun getAlias(sceneTypeId: Int, mediaFileType: MediaFileType): Observable<String> {
        return DbFactory.getGreenDaoObservable().map {
            it.mediaTypeAliasDao.queryBuilder().where(
                    MediaTypeAliasDao.Properties.SceneTypeId.eq(sceneTypeId),
                    MediaTypeAliasDao.Properties.TypeId.eq(mediaFileType.value)
            ).list()
        }.map {
            if (it.isEmpty()) {
                ""
            } else {
                it[0].alias
            }
        }
    }
    /**
     * æ›´æ–°åª’体文件类型的本地别名
     * @param sceneTypeId åœºæ™¯id
     * @param mediaFileType åª’体文件类型id
     * @param alias åˆ«å
     */
    fun updateAlias(sceneTypeId: Int, mediaFileType: MediaFileType, alias: String): Observable<Boolean> {
        return DbFactory.getGreenDaoObservable().map {
            val result = it.mediaTypeAliasDao.queryBuilder().where(
                    MediaTypeAliasDao.Properties.SceneTypeId.eq(sceneTypeId),
                    MediaTypeAliasDao.Properties.TypeId.eq(mediaFileType.value)
            ).list()
            if (result.isEmpty()) {
                it.mediaTypeAliasDao.insert(MediaTypeAlias().apply {
                    this.sceneTypeId = sceneTypeId
                    this.typeId = mediaFileType.value
                    this.typeName = mediaFileType.des
                    this.alias = alias
                })
                true
            } else {
                result[0].alias = alias
                it.mediaTypeAliasDao.update(result[0])
                true
            }
        }
    }
}
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/ProblemTypeDao.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.ChangeAdvice
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice
import cn.flightfeather.thirdapp.common.database.DbFactory
import com.ping.greendao.gen.ChangeAdviceDao
import io.reactivex.Observable
app/src/main/java/cn/flightfeather/thirdapp/repository/dao/SceneDao.kt
@@ -1,6 +1,6 @@
package cn.flightfeather.thirdapp.repository.dao
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.common.database.DbFactory
import com.ping.greendao.gen.ScenseDao
import io.reactivex.Observable
app/src/main/java/cn/flightfeather/thirdapp/task/CompressPhotoTask.java
@@ -13,7 +13,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.activity.UploadMediaFilesActivity;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.util.photo.OnCompressListener;
/**
app/src/main/java/cn/flightfeather/thirdapp/task/DownloadAndSetImageTask.java
@@ -14,7 +14,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
app/src/main/java/cn/flightfeather/thirdapp/task/InitDataTask.java
@@ -24,20 +24,20 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.activity.SplashActivity;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.ChangeEffect;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domaincatalog;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Evaluationrule;
import cn.flightfeather.thirdapp.bean.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.Gittype;
import cn.flightfeather.thirdapp.bean.Problemtype;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeEffect;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domaincatalog;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.entity.Gittype;
import cn.flightfeather.thirdapp.bean.entity.Problemtype;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Site;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.httpservice.InitDataService;
import retrofit2.Call;
import retrofit2.Callback;
app/src/main/java/cn/flightfeather/thirdapp/util/CommonUtils.java
@@ -11,7 +11,7 @@
import java.util.List;
import cn.flightfeather.thirdapp.R;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
/**
 * Created by linli on 2018/1/25.
app/src/main/java/cn/flightfeather/thirdapp/util/file/FileUtil.java
@@ -15,7 +15,7 @@
import java.io.IOException;
import java.io.InputStream;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
public class FileUtil {
app/src/main/java/cn/flightfeather/thirdapp/util/photo/PhotoUtil.java
@@ -26,7 +26,7 @@
import cn.flightfeather.thirdapp.CommonApplication;
import cn.flightfeather.thirdapp.activity.PhotoViewerActivity;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.httpservice.UploadService;
import cn.flightfeather.thirdapp.module.common.CameraActivity;
import cn.flightfeather.thirdapp.task.CompressPhotoTask;
app/src/main/java/cn/flightfeather/thirdapp/view/BannerView.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,174 @@
package cn.flightfeather.thirdapp.view
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.support.v4.content.ContextCompat
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.util.dp
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import org.jetbrains.anko.alignParentBottom
import org.jetbrains.anko.alignParentEnd
import org.jetbrains.anko.backgroundResource
/**
 * @author riku
 * Date: 2019/5/20
 * è½®æ’­ViewPager
 */
class BannerView : RelativeLayout {
    constructor(context: Context) : super(context){
        mContext = context
    }
    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs){
        mContext = context
    }
    constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr){
        mContext = context
    }
    private var mContext: Context? = null
    private val viewPager = MyViewPager(context)
    private val dots = LinearLayout(context)
    private val index = LinearLayout(context)
    private var currentIndex: TextView? = null
    private var curPos = 0
    private var lastPos = 0
    var isAlive = true
        set(value) {
            field = value
            if (value) initObservable()
        }
    var dataList = listOf<View>()
        set(value) {
            field = value
            initViewPager()
            initDots()
            initIndex()
//            initObservable()
        }
    fun refresh() {
        viewPager.adapter?.notifyDataSetChanged()
    }
    private fun initObservable() {
        Observable.create<Boolean> {
            while (isAlive) {
                Thread.sleep(3000)
                it.onNext(true)
            }
            it.onComplete()
        }.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).doOnNext {
            if (curPos == dataList.size - 1) {
                curPos = 0
                viewPager.setCurrentItem(0, false)
            } else {
                curPos++
                viewPager.setCurrentItem(curPos, true)
            }
        }.subscribe()
    }
    private fun initViewPager(){
        val viewPagerParams = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
        viewPager.adapter = ViewPagerAdapter(dataList)
        viewPager.currentItem = 0
        viewPager.addOnPageChangeListener(object : ViewPager.OnPageChangeListener {
            override fun onPageScrollStateChanged(p0: Int) {
            }
            override fun onPageScrolled(p0: Int, p1: Float, p2: Int) {
            }
            @SuppressLint("SetTextI18n")
            override fun onPageSelected(p0: Int) {
                val newPos = p0 % dataList.size
                dots.getChildAt(lastPos).isEnabled = false
                dots.getChildAt(newPos).isEnabled = true
                lastPos = newPos
                (index.getChildAt(0) as TextView).text = "${p0 + 1}"
            }
        })
        addView(viewPager, viewPagerParams)
    }
    private fun initDots() {
        val dotsParams = LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
        dotsParams.alignParentBottom()
        dots.apply {
            setPadding(4.dp, 4.dp, 4.dp, 4.dp)
            orientation = LinearLayout.HORIZONTAL
            gravity = Gravity.CENTER
        }.layoutParams = dotsParams
        repeat(dataList.size) {
            val dot = View(context)
            dot.backgroundResource = R.drawable.point_background
            val params = LinearLayout.LayoutParams(8.dp, 8.dp)
            params.leftMargin = 4.dp
            dot.layoutParams = params
            dot.isEnabled = false
            dots.addView(dot)
        }
        if (dataList.isNotEmpty()) {
            dots.getChildAt(0).isEnabled = true
        }
        addView(dots)
    }
    private fun initIndex() {
        val indexParams = LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)
        indexParams.alignParentBottom()
        indexParams.alignParentEnd()
        index.apply {
            setPadding(4.dp, 4.dp, 4.dp, 4.dp)
            setBackgroundColor(ContextCompat.getColor(context, R.color.gray))
            orientation = LinearLayout.HORIZONTAL
            gravity = Gravity.CENTER
        }.layoutParams = indexParams
        val textParams = LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)
        currentIndex = TextView(context).apply {
            text = "1"
            setTextColor(Color.WHITE)
        }
        val divider = TextView(context).apply {
            text = "/"
            setTextColor(Color.WHITE)
        }
        val totalIndex = TextView(context).apply {
            text = dataList.size.toString()
            setTextColor(Color.WHITE)
        }
        index.addView(currentIndex, textParams)
        index.addView(divider, textParams)
        index.addView(totalIndex, textParams)
        addView(index)
    }
}
app/src/main/java/cn/flightfeather/thirdapp/view/MyViewPager.kt
@@ -12,7 +12,7 @@
 * java.lang.IllegalArgumentException: pointerIndex out of range pointerIndex=-1 pointerCount=1
 * ç»§æ‰¿ViewPager è§£å†³
 */
class MyViewPager(context: Context, attrs: AttributeSet?) : ViewPager(context, attrs) {
class MyViewPager(context: Context, attrs: AttributeSet? = null) : ViewPager(context, attrs) {
    override fun onTouchEvent(ev: MotionEvent?): Boolean {
        try {
app/src/main/java/cn/flightfeather/thirdapp/view/SearchView.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,82 @@
package cn.flightfeather.thirdapp.view
import android.content.Context
import android.inputmethodservice.InputMethodService
import android.support.v4.content.ContextCompat
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.TextView
import cn.flightfeather.thirdapp.R
/**
 * @author riku
 * Date: 2020/12/22
 */
class SearchView(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : FrameLayout(context, attrs, defStyleAttr) {
    constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)
    constructor(context: Context) : this(context, null, 0)
    private lateinit var e: EditText
    private val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
    var onConfirm: (str: String) -> Unit = { _ -> }
    init {
        initView()
    }
    private fun initView() {
        val view = LayoutInflater.from(context).inflate(R.layout.layout_search, this)
        e = view.findViewById(R.id.edt_content)
        val c = view.findViewById<ImageView>(R.id.img_clear)
        val y = view.findViewById<TextView>(R.id.txt_confirm)
        val n = view.findViewById<TextView>(R.id.txt_cancel)
        e.addTextChangedListener(object : TextWatcher {
            override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) = Unit
            override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) = Unit
            override fun afterTextChanged(s: Editable?) {
                if (s.isNullOrBlank()) {
                    c.visibility = View.GONE
//                    y.visibility = View.GONE
//                    n.visibility = View.VISIBLE
                } else {
                    c.visibility = View.VISIBLE
//                    y.visibility = View.VISIBLE
//                    n.visibility = View.GONE
                }
            }
        })
        c.setOnClickListener {
            e.setText("")
        }
        y.setOnClickListener {
            this.visibility = View.GONE
            imm.hideSoftInputFromWindow(windowToken, 0)
            onConfirm(e.text.toString())
        }
        n.setOnClickListener {
            e.setText("")
            imm.hideSoftInputFromWindow(windowToken, 0)
            this.visibility = View.GONE
        }
    }
    fun show(hint: String = "", default: String = "") {
        this.visibility = View.VISIBLE
        e.hint = hint
        e.setText(default)
        e.requestFocus()
        imm.showSoftInput(e, InputMethodManager.SHOW_IMPLICIT);
    }
}
app/src/main/java/cn/flightfeather/thirdapp/view/SlideSideBarView.kt
@@ -18,7 +18,7 @@
import android.widget.TextView
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.AllRecyclerViewAdapter
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.util.DialogUtil
/**
app/src/main/java/cn/flightfeather/thirdapp/view/ViewPagerAdapter.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,36 @@
package cn.flightfeather.thirdapp.view
import android.support.v4.view.PagerAdapter
import android.view.View
import android.view.ViewGroup
/**
 * @author riku
 * Date: 2020/6/22
 */
class ViewPagerAdapter(private val dataList: List<View>, private val titleList: List<String> = emptyList()) : PagerAdapter() {
    override fun isViewFromObject(p0: View, p1: Any): Boolean {
        return p0 == p1
    }
    override fun getCount(): Int {
        return dataList.size
    }
    override fun instantiateItem(container: ViewGroup, position: Int): Any {
        container.addView(dataList[position % dataList.size])
        return dataList[position % dataList.size]
    }
    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
        container.removeView(dataList[position % dataList.size])
    }
    override fun getPageTitle(position: Int): CharSequence? {
        if (position < titleList.size) {
            return titleList[position]
        } else {
            return super.getPageTitle(position)
        }
    }
}
app/src/main/java/com/ping/greendao/gen/ChangeAdviceDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ChangeEffectDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.ChangeEffect;
import cn.flightfeather.thirdapp.bean.entity.ChangeEffect;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/CityDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.entity.City;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/DaoMaster.java
@@ -14,10 +14,10 @@
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
 * Master of DAO (schema version 11): knows all DAOs.
 * Master of DAO (schema version 12): knows all DAOs.
 */
public class DaoMaster extends AbstractDaoMaster {
    public static final int SCHEMA_VERSION = 11;
    public static final int SCHEMA_VERSION = 12;
    /** Creates underlying database table using DAOs. */
    public static void createAllTables(Database db, boolean ifNotExists) {
@@ -35,6 +35,7 @@
        InspectionDao.createTable(db, ifNotExists);
        ItemevaluationDao.createTable(db, ifNotExists);
        MediafileDao.createTable(db, ifNotExists);
        MediaTypeAliasDao.createTable(db, ifNotExists);
        MonitorobjectversionDao.createTable(db, ifNotExists);
        ProblemlistDao.createTable(db, ifNotExists);
        ProblemtypeDao.createTable(db, ifNotExists);
@@ -64,6 +65,7 @@
        InspectionDao.dropTable(db, ifExists);
        ItemevaluationDao.dropTable(db, ifExists);
        MediafileDao.dropTable(db, ifExists);
        MediaTypeAliasDao.dropTable(db, ifExists);
        MonitorobjectversionDao.dropTable(db, ifExists);
        ProblemlistDao.dropTable(db, ifExists);
        ProblemtypeDao.dropTable(db, ifExists);
@@ -107,6 +109,7 @@
        registerDaoClass(InspectionDao.class);
        registerDaoClass(ItemevaluationDao.class);
        registerDaoClass(MediafileDao.class);
        registerDaoClass(MediaTypeAliasDao.class);
        registerDaoClass(MonitorobjectversionDao.class);
        registerDaoClass(ProblemlistDao.class);
        registerDaoClass(ProblemtypeDao.class);
app/src/main/java/com/ping/greendao/gen/DaoSession.java
@@ -8,31 +8,32 @@
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;
import cn.flightfeather.thirdapp.bean.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.ChangeEffect;
import cn.flightfeather.thirdapp.bean.City;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.Domaincatalog;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.Evaluationrule;
import cn.flightfeather.thirdapp.bean.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.Gitlist;
import cn.flightfeather.thirdapp.bean.Gittype;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.Problemlist;
import cn.flightfeather.thirdapp.bean.Problemtype;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.Taskvertion;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice;
import cn.flightfeather.thirdapp.bean.entity.ChangeEffect;
import cn.flightfeather.thirdapp.bean.entity.City;
import cn.flightfeather.thirdapp.bean.entity.District;
import cn.flightfeather.thirdapp.bean.entity.Domaincatalog;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.entity.Gitlist;
import cn.flightfeather.thirdapp.bean.entity.Gittype;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.MediaTypeAlias;
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.entity.Problemlist;
import cn.flightfeather.thirdapp.bean.entity.Problemtype;
import cn.flightfeather.thirdapp.bean.entity.Province;
import cn.flightfeather.thirdapp.bean.entity.Scense;
import cn.flightfeather.thirdapp.bean.entity.Site;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Task;
import cn.flightfeather.thirdapp.bean.entity.Taskvertion;
import cn.flightfeather.thirdapp.bean.entity.Town;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
import com.ping.greendao.gen.ChangeAdviceDao;
import com.ping.greendao.gen.ChangeEffectDao;
@@ -48,6 +49,7 @@
import com.ping.greendao.gen.InspectionDao;
import com.ping.greendao.gen.ItemevaluationDao;
import com.ping.greendao.gen.MediafileDao;
import com.ping.greendao.gen.MediaTypeAliasDao;
import com.ping.greendao.gen.MonitorobjectversionDao;
import com.ping.greendao.gen.ProblemlistDao;
import com.ping.greendao.gen.ProblemtypeDao;
@@ -83,6 +85,7 @@
    private final DaoConfig inspectionDaoConfig;
    private final DaoConfig itemevaluationDaoConfig;
    private final DaoConfig mediafileDaoConfig;
    private final DaoConfig mediaTypeAliasDaoConfig;
    private final DaoConfig monitorobjectversionDaoConfig;
    private final DaoConfig problemlistDaoConfig;
    private final DaoConfig problemtypeDaoConfig;
@@ -109,6 +112,7 @@
    private final InspectionDao inspectionDao;
    private final ItemevaluationDao itemevaluationDao;
    private final MediafileDao mediafileDao;
    private final MediaTypeAliasDao mediaTypeAliasDao;
    private final MonitorobjectversionDao monitorobjectversionDao;
    private final ProblemlistDao problemlistDao;
    private final ProblemtypeDao problemtypeDao;
@@ -167,6 +171,9 @@
        mediafileDaoConfig = daoConfigMap.get(MediafileDao.class).clone();
        mediafileDaoConfig.initIdentityScope(type);
        mediaTypeAliasDaoConfig = daoConfigMap.get(MediaTypeAliasDao.class).clone();
        mediaTypeAliasDaoConfig.initIdentityScope(type);
        monitorobjectversionDaoConfig = daoConfigMap.get(MonitorobjectversionDao.class).clone();
        monitorobjectversionDaoConfig.initIdentityScope(type);
@@ -214,6 +221,7 @@
        inspectionDao = new InspectionDao(inspectionDaoConfig, this);
        itemevaluationDao = new ItemevaluationDao(itemevaluationDaoConfig, this);
        mediafileDao = new MediafileDao(mediafileDaoConfig, this);
        mediaTypeAliasDao = new MediaTypeAliasDao(mediaTypeAliasDaoConfig, this);
        monitorobjectversionDao = new MonitorobjectversionDao(monitorobjectversionDaoConfig, this);
        problemlistDao = new ProblemlistDao(problemlistDaoConfig, this);
        problemtypeDao = new ProblemtypeDao(problemtypeDaoConfig, this);
@@ -240,6 +248,7 @@
        registerDao(Inspection.class, inspectionDao);
        registerDao(Itemevaluation.class, itemevaluationDao);
        registerDao(Mediafile.class, mediafileDao);
        registerDao(MediaTypeAlias.class, mediaTypeAliasDao);
        registerDao(Monitorobjectversion.class, monitorobjectversionDao);
        registerDao(Problemlist.class, problemlistDao);
        registerDao(Problemtype.class, problemtypeDao);
@@ -268,6 +277,7 @@
        inspectionDaoConfig.clearIdentityScope();
        itemevaluationDaoConfig.clearIdentityScope();
        mediafileDaoConfig.clearIdentityScope();
        mediaTypeAliasDaoConfig.clearIdentityScope();
        monitorobjectversionDaoConfig.clearIdentityScope();
        problemlistDaoConfig.clearIdentityScope();
        problemtypeDaoConfig.clearIdentityScope();
@@ -337,6 +347,10 @@
        return mediafileDao;
    }
    public MediaTypeAliasDao getMediaTypeAliasDao() {
        return mediaTypeAliasDao;
    }
    public MonitorobjectversionDao getMonitorobjectversionDao() {
        return monitorobjectversionDao;
    }
app/src/main/java/com/ping/greendao/gen/DistrictDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.District;
import cn.flightfeather.thirdapp.bean.entity.District;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/DomaincatalogDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Domaincatalog;
import cn.flightfeather.thirdapp.bean.entity.Domaincatalog;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/DomainitemDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Domainitem;
import cn.flightfeather.thirdapp.bean.entity.Domainitem;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/EvaluationDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Evaluation;
import cn.flightfeather.thirdapp.bean.entity.Evaluation;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/EvaluationruleDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Evaluationrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationrule;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/EvaluationsubruleDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Evaluationsubrule;
import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/GitlistDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Gitlist;
import cn.flightfeather.thirdapp.bean.entity.Gitlist;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/GittypeDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Gittype;
import cn.flightfeather.thirdapp.bean.entity.Gittype;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/InspectionDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Inspection;
import cn.flightfeather.thirdapp.bean.entity.Inspection;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ItemevaluationDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Itemevaluation;
import cn.flightfeather.thirdapp.bean.entity.Itemevaluation;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/MediaTypeAliasDao.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,147 @@
package com.ping.greendao.gen;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.entity.MediaTypeAlias;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
 * DAO for table "MEDIA_TYPE_ALIAS".
*/
public class MediaTypeAliasDao extends AbstractDao<MediaTypeAlias, Long> {
    public static final String TABLENAME = "MEDIA_TYPE_ALIAS";
    /**
     * Properties of entity MediaTypeAlias.<br/>
     * Can be used for QueryBuilder and for referencing column names.
     */
    public static class Properties {
        public final static Property Id = new Property(0, long.class, "id", true, "_id");
        public final static Property SceneTypeId = new Property(1, int.class, "sceneTypeId", false, "SCENE_TYPE_ID");
        public final static Property TypeId = new Property(2, int.class, "typeId", false, "TYPE_ID");
        public final static Property TypeName = new Property(3, String.class, "typeName", false, "TYPE_NAME");
        public final static Property Alias = new Property(4, String.class, "alias", false, "ALIAS");
    }
    public MediaTypeAliasDao(DaoConfig config) {
        super(config);
    }
    public MediaTypeAliasDao(DaoConfig config, DaoSession daoSession) {
        super(config, daoSession);
    }
    /** Creates the underlying database table. */
    public static void createTable(Database db, boolean ifNotExists) {
        String constraint = ifNotExists? "IF NOT EXISTS ": "";
        db.execSQL("CREATE TABLE " + constraint + "\"MEDIA_TYPE_ALIAS\" (" + //
                "\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ," + // 0: id
                "\"SCENE_TYPE_ID\" INTEGER NOT NULL ," + // 1: sceneTypeId
                "\"TYPE_ID\" INTEGER NOT NULL ," + // 2: typeId
                "\"TYPE_NAME\" TEXT," + // 3: typeName
                "\"ALIAS\" TEXT);"); // 4: alias
    }
    /** Drops the underlying database table. */
    public static void dropTable(Database db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"MEDIA_TYPE_ALIAS\"";
        db.execSQL(sql);
    }
    @Override
    protected final void bindValues(DatabaseStatement stmt, MediaTypeAlias entity) {
        stmt.clearBindings();
        stmt.bindLong(1, entity.getId());
        stmt.bindLong(2, entity.getSceneTypeId());
        stmt.bindLong(3, entity.getTypeId());
        String typeName = entity.getTypeName();
        if (typeName != null) {
            stmt.bindString(4, typeName);
        }
        String alias = entity.getAlias();
        if (alias != null) {
            stmt.bindString(5, alias);
        }
    }
    @Override
    protected final void bindValues(SQLiteStatement stmt, MediaTypeAlias entity) {
        stmt.clearBindings();
        stmt.bindLong(1, entity.getId());
        stmt.bindLong(2, entity.getSceneTypeId());
        stmt.bindLong(3, entity.getTypeId());
        String typeName = entity.getTypeName();
        if (typeName != null) {
            stmt.bindString(4, typeName);
        }
        String alias = entity.getAlias();
        if (alias != null) {
            stmt.bindString(5, alias);
        }
    }
    @Override
    public Long readKey(Cursor cursor, int offset) {
        return cursor.getLong(offset + 0);
    }
    @Override
    public MediaTypeAlias readEntity(Cursor cursor, int offset) {
        MediaTypeAlias entity = new MediaTypeAlias( //
            cursor.getLong(offset + 0), // id
            cursor.getInt(offset + 1), // sceneTypeId
            cursor.getInt(offset + 2), // typeId
            cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // typeName
            cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4) // alias
        );
        return entity;
    }
    @Override
    public void readEntity(Cursor cursor, MediaTypeAlias entity, int offset) {
        entity.setId(cursor.getLong(offset + 0));
        entity.setSceneTypeId(cursor.getInt(offset + 1));
        entity.setTypeId(cursor.getInt(offset + 2));
        entity.setTypeName(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
        entity.setAlias(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
     }
    @Override
    protected final Long updateKeyAfterInsert(MediaTypeAlias entity, long rowId) {
        entity.setId(rowId);
        return rowId;
    }
    @Override
    public Long getKey(MediaTypeAlias entity) {
        if(entity != null) {
            return entity.getId();
        } else {
            return null;
        }
    }
    @Override
    public boolean hasKey(MediaTypeAlias entity) {
        throw new UnsupportedOperationException("Unsupported for entities with a non-null key");
    }
    @Override
    protected final boolean isEntityUpdateable() {
        return true;
    }
}
app/src/main/java/com/ping/greendao/gen/MediafileDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Mediafile;
import cn.flightfeather.thirdapp.bean.entity.Mediafile;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/MonitorobjectversionDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Monitorobjectversion;
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ProblemlistDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Problemlist;
import cn.flightfeather.thirdapp.bean.entity.Problemlist;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ProblemtypeDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Problemtype;
import cn.flightfeather.thirdapp.bean.entity.Problemtype;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ProvinceDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Province;
import cn.flightfeather.thirdapp.bean.entity.Province;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/ScenseDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Scense;
import cn.flightfeather.thirdapp.bean.entity.Scense;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/SiteDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Site;
import cn.flightfeather.thirdapp.bean.entity.Site;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/SubtaskDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Subtask;
import cn.flightfeather.thirdapp.bean.entity.Subtask;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/TaskDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Task;
import cn.flightfeather.thirdapp.bean.entity.Task;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/TaskvertionDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Taskvertion;
import cn.flightfeather.thirdapp.bean.entity.Taskvertion;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/TownDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Town;
import cn.flightfeather.thirdapp.bean.entity.Town;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/java/com/ping/greendao/gen/UserinfoDao.java
@@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;
import cn.flightfeather.thirdapp.bean.Userinfo;
import cn.flightfeather.thirdapp.bean.entity.Userinfo;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
app/src/main/res/drawable/bg_btngroup_2.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
            <!-- å¡«å……颜色 -->
    <solid android:color="@color/white"/>
   <corners android:radius="@dimen/dimen2"/>
    <stroke android:width="1px" android:color="#22000000"/>
</shape>
app/src/main/res/drawable/point_background.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/point_bg_enable" android:state_enabled="true"/>
    <item android:drawable="@drawable/point_bg_normal" android:state_enabled="false"/>
</selector>
app/src/main/res/drawable/point_bg_enable.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="oval">
    <corners android:radius="3dp"/>
    <solid android:color="@color/colorPrimary"/>
</shape>
app/src/main/res/drawable/point_bg_normal.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="oval">
    <corners android:radius="3dp"/>
    <solid android:color="#55000000"/>
</shape>
app/src/main/res/layout/dialog_camera_3.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <android.support.v7.widget.CardView
        android:id="@+id/cv_dialog_problem_list_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="30dp"
        android:layout_marginLeft="12dp"
        android:layout_marginRight="12dp"
        android:layout_marginBottom="40dp"
        app:cardCornerRadius="6dp"
        app:cardElevation="7dp">
        <LinearLayout
            android:id="@+id/ll_dialog_problem_list_main"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingTop="12dp"
            android:paddingBottom="16dp"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:orientation="vertical">
            <TextView
                android:id="@+id/tv_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="18dp"
                android:textColor="@color/primary_text"
                android:text="照片列表"/>
            <cn.flightfeather.thirdapp.view.BannerView
                android:id="@+id/banner"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginBottom="@dimen/fab_margin"/>
        </LinearLayout>
    </android.support.v7.widget.CardView>
    <android.support.design.widget.FloatingActionButton
        android:src="@drawable/icon_close_white"
        android:id="@+id/fab_problem_list_close"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:fabSize="normal"
        app:elevation="8dp"
        app:layout_anchor="@id/cv_dialog_problem_list_main"
        app:layout_anchorGravity="bottom|center"
        />
</android.support.design.widget.CoordinatorLayout>
app/src/main/res/layout/item_take_photo.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <TextView
        android:id="@+id/txt_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/img_edit"
        app:layout_constraintBottom_toBottomOf="@id/img_edit"
        android:enabled="true"
        android:textSize="@dimen/textSize_14"
        android:textColor="@color/black"
        tools:text="常规"/>
    <ImageView
        android:id="@+id/img_edit"
        android:layout_width="@dimen/title_icon_size_2"
        android:layout_height="@dimen/title_icon_size_2"
        android:paddingStart="@dimen/dimen6"
        android:paddingTop="@dimen/dimen6"
        android:paddingBottom="@dimen/dimen6"
        android:src="@drawable/icon_patrol_edit"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toEndOf="@id/txt_title"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="1"/>
    <cn.flightfeather.thirdapp.view.SearchView
        android:id="@+id/search_view"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="@id/img_edit"
        app:layout_constraintBottom_toBottomOf="@id/img_edit"
        android:elevation="@dimen/dimen2"
        android:visibility="gone"
        tools:ignore="UnusedAttribute" />
    <android.support.constraint.Barrier
        android:id="@+id/barrier_1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:barrierDirection="bottom"
        app:constraint_referenced_ids="txt_title, img_edit"/>
    <android.support.v7.widget.RecyclerView
        android:id="@+id/rv_photo_list"
        android:layout_marginTop="@dimen/dimen2"
        android:paddingBottom="8dp"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toBottomOf="@id/barrier_1"
        app:layout_constraintBottom_toBottomOf="parent">
    </android.support.v7.widget.RecyclerView>
</android.support.constraint.ConstraintLayout>
app/src/main/res/layout/layout_search.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:adnroid="http://schemas.android.com/tools"
    android:background="@drawable/bg_btngroup_2">
    <EditText
        android:id="@+id/edt_content"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:background="@color/transparent"
        android:textSize="@dimen/textSize_14"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toStartOf="@id/img_clear"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>
    <ImageView
        android:id="@+id/img_clear"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:src="@drawable/ic_close_white_24dp"
        android:background="@drawable/point_bg_normal"
        android:layout_margin="@dimen/dimen6"
        android:padding="@dimen/dimen2"
        android:visibility="gone"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/barrier_1"/>
    <android.support.constraint.Barrier
        android:id="@+id/barrier_1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:constraint_referenced_ids="txt_confirm, txt_cancel"
        app:barrierDirection="start"/>
    <TextView
        android:id="@+id/txt_confirm"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:text="@string/confirm"
        android:textColor="@color/colorPrimary"
        android:textSize="@dimen/textSize_14"
        android:gravity="center"
        android:visibility="visible"
        android:paddingStart="@dimen/dimen8"
        android:paddingEnd="@dimen/dimen8"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>
    <TextView
        android:id="@+id/txt_cancel"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:text="@string/cancel"
        android:textColor="@color/gray"
        android:textSize="@dimen/textSize_14"
        android:gravity="center"
        android:paddingStart="@dimen/dimen8"
        android:paddingEnd="@dimen/dimen8"
        app:layout_constraintEnd_toStartOf="@id/txt_confirm"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>
</android.support.constraint.ConstraintLayout>