1. 调整了数控实体的存储位置;
2. 新增数据表“媒体文件类型别名表”;
3. 修改任意拍模块,将图片分类改为根据场景类型动态生成,同时新增修改分类别名功能;
4. 优化子任务选择界面的任务排序方式,按照“待开始”、“执行中”、“未执行”的顺序进行排序;
已修改137个文件
已删除2个文件
已添加14个文件
已重命名29个文件
| | |
| | | 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 |
| | |
| | | } |
| | | |
| | | greendao { |
| | | schemaVersion 11 |
| | | schemaVersion 12 |
| | | daoPackage 'com.ping.greendao.gen' |
| | | targetGenDir 'src/main/java' |
| | | } |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | // |
| | | //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; |
| | |
| | | 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; |
| | |
| | | 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 |
| | |
| | | |
| | | 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 { |
| | |
| | | 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; |
| | |
| | | |
| | | 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{ |
| | |
| | | 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; |
| | | |
| | |
| | | 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; |
| | |
| | | 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. |
| | |
| | | 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. |
| | |
| | | |
| | | 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. |
| | |
| | | |
| | | @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) { |
| | |
| | | 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(); |
| | |
| | | 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(); |
| | |
| | | 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. |
| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | 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; |
| | |
| | | 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. |
| | |
| | | |
| | | 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. |
| | |
| | | // |
| | | //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. |
| | |
| | | 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; |
| | |
| | | |
| | | @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(); |
| | |
| | | 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); |
| | |
| | | @Override |
| | | public void onClick(View v) { |
| | | if (onSwipeItemClickListener != null) { |
| | | onSwipeItemClickListener.click(position); |
| | | onSwipeItemClickListener.click(pos); |
| | | } |
| | | } |
| | | }); |
| | |
| | | @Override |
| | | public boolean onLongClick(View v) { |
| | | DialogUtil2.INSTANCE.showAlertDialog(context, "确认æ¯å¦å é¤ä»»å¡?", dialog -> { |
| | | onDeleteListener.delete(position); |
| | | onDeleteListener.delete(pos); |
| | | dialog.dismiss(); |
| | | return Unit.INSTANCE; |
| | | }, dialog -> { |
| | |
| | | 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/ChangeAdvice.java ÐÞ¸Ä |
| | |
| | | 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/ChangeEffect.java ÐÞ¸Ä |
| | |
| | | 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/City.java ÐÞ¸Ä |
| | |
| | | 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/District.java ÐÞ¸Ä |
| | |
| | | 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/Domaincatalog.java ÐÞ¸Ä |
| | |
| | | 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/Domainitem.java ÐÞ¸Ä |
| | |
| | | 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/Evaluation.java ÐÞ¸Ä |
| | |
| | | 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/Evaluationrule.java ÐÞ¸Ä |
| | |
| | | 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/Evaluationsubrule.java ÐÞ¸Ä |
| | |
| | | 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/Gitlist.java ÐÞ¸Ä |
| | |
| | | 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/Gittype.java ÐÞ¸Ä |
| | |
| | | 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/Inspection.java ÐÞ¸Ä |
| | |
| | | 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/Itemevaluation.java ÐÞ¸Ä |
| | |
| | | package cn.flightfeather.thirdapp.bean; |
| | | package cn.flightfeather.thirdapp.bean.entity; |
| | | |
| | | import org.greenrobot.greendao.annotation.Entity; |
| | | import org.greenrobot.greendao.annotation.Id; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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/Mediafile.java ÐÞ¸Ä |
| | |
| | | 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/Monitorobjectversion.java ÐÞ¸Ä |
| | |
| | | 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/Problemlist.java ÐÞ¸Ä |
| | |
| | | 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/Problemtype.java ÐÞ¸Ä |
| | |
| | | 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/Province.java ÐÞ¸Ä |
| | |
| | | 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/Scense.java ÐÞ¸Ä |
| | |
| | | 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/Site.java ÐÞ¸Ä |
| | |
| | | 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/Subtask.java ÐÞ¸Ä |
| | |
| | | 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/Task.java ÐÞ¸Ä |
| | |
| | | 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/Taskvertion.java ÐÞ¸Ä |
| | |
| | | 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/Town.java ÐÞ¸Ä |
| | |
| | | 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/Userinfo.java ÐÞ¸Ä |
| | |
| | | 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/ActivityBean.java ÐÞ¸Ä |
| | |
| | | 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/AllBoolean.java ÐÞ¸Ä |
| | |
| | | package cn.flightfeather.thirdapp.bean; |
| | | package cn.flightfeather.thirdapp.bean.vo; |
| | | |
| | | /** |
| | | * Created by note_ff_1602 on 2018/3/7. |
| | |
| | | |
| | | import java.util.Date; |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Itemevaluation; |
| | | import cn.flightfeather.thirdapp.bean.entity.Itemevaluation; |
| | | |
| | | public class EvaluationsubruleVo { |
| | | |
| | |
| | | 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. |
| | |
| | | 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/LastSubtaskPack.java ÐÞ¸Ä |
| | |
| | | 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. |
| | |
| | | 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; |
| | | |
| | |
| | | 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/TaskPack.java ÐÞ¸Ä |
| | |
| | | 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. |
| | |
| | | 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. |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import cn.flightfeather.thirdapp.bean.ChangeAdvice; |
| | | import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice; |
| | | import io.reactivex.Observable; |
| | | |
| | | /** |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | | |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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) |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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, "å åº"); |
| | | } |
| | |
| | | package cn.flightfeather.thirdapp.model.event |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Inspection |
| | | import cn.flightfeather.thirdapp.bean.entity.Inspection |
| | | |
| | | /** |
| | | * @author riku |
| | |
| | | package cn.flightfeather.thirdapp.model.event |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Problemlist |
| | | import cn.flightfeather.thirdapp.bean.entity.Problemlist |
| | | |
| | | /** |
| | | * @author riku |
| | |
| | | package cn.flightfeather.thirdapp.model.event |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Scense |
| | | import cn.flightfeather.thirdapp.bean.entity.Scense |
| | | |
| | | /** |
| | | * @author riku |
| | |
| | | package cn.flightfeather.thirdapp.model.event |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Task |
| | | import cn.flightfeather.thirdapp.bean.entity.Task |
| | | |
| | | /** |
| | | * @author riku |
| | |
| | | |
| | | 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; |
| | |
| | | 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.* |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 ( |
| | |
| | | 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 |
| | |
| | | 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.* |
| | |
| | | //å½åéä¸çæ¥æ |
| | | private var curDate = Date() |
| | | |
| | | lateinit var subTaskListAdapter: TaskListAdapter |
| | | private lateinit var subTaskListAdapter: TaskListAdapter |
| | | |
| | | private var loadingDialog: Dialog? = null |
| | | |
| | |
| | | viewModel.dayTaskList.observe(this, Observer { |
| | | // 2019/7/29 卿¥å䏿·»å æ è®°ç¹ |
| | | it?.let { |
| | | closeLoading() |
| | | curDayTaskList = it |
| | | addScheme(it) |
| | | refreshText(it) |
| | | // closeLoading() |
| | | } |
| | | }) |
| | | |
| | |
| | | } |
| | | |
| | | private fun refreshSubTaskList(newSubTaskList: ArrayList<Subtask> = arrayListOf(), taskDate:Date) { |
| | | closeLoading() |
| | | curSubTaskList.clear() |
| | | with(curDayTaskList) breaking@{ |
| | | forEach { |
| | |
| | | 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() |
| | | } |
| | | /** |
| | | * åå§åæ¥åæ§ä»¶ |
| | |
| | | } |
| | | } |
| | | |
| | | Handler().postDelayed({ |
| | | closeLoading() |
| | | }, 5000) |
| | | // Handler().postDelayed({ |
| | | // closeLoading() |
| | | // }, 10000) |
| | | } |
| | | |
| | | private fun closeLoading() { |
| | |
| | | |
| | | 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 |
| | |
| | | package cn.flightfeather.thirdapp.module.inspection |
| | | |
| | | import android.annotation.SuppressLint |
| | | import android.app.Activity |
| | | import android.arch.lifecycle.Observer |
| | | import android.arch.lifecycle.ViewModelProviders |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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) |
| | |
| | | private var currentType = MediaFileType.RoutineRecord |
| | | |
| | | lateinit var viewModel: MenuCameraViewModel |
| | | |
| | | private val viewList = mutableListOf<View>() |
| | | |
| | | var subTask: Subtask? = null |
| | | var inspection: Inspection? = null |
| | |
| | | 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?) { |
| | |
| | | } |
| | | |
| | | 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 { |
| | |
| | | |
| | | })) |
| | | } |
| | | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | */ |
| | | 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() } |
| | |
| | | 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), |
| | |
| | | /** |
| | | * è·åä»»ææç
§å¾ç |
| | | */ |
| | | 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 -> |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | }) |
| | | } |
| | | |
| | | 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 |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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.* |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | | |
| | | /** |
| | |
| | | * Date: 2020/4/23 |
| | | */ |
| | | class CommonRepository { |
| | | private val mediaTypeAliasDao = MediaTypeAliasDao() |
| | | |
| | | fun upLoadCrashInfo(accountName: String, file: File, resultCallBack: ResultCallBack<Boolean>) { |
| | | val builder = MultipartBody.Builder() |
| | |
| | | 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() |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | |
| | | 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 |
| | |
| | | /** |
| | | * ä¸è½½é®é¢å¾ç |
| | | */ |
| | | 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> { |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | |
| | | 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; |
| | |
| | | |
| | | 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; |
| | |
| | | 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. |
| | |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | |
| | | import cn.flightfeather.thirdapp.bean.Mediafile; |
| | | import cn.flightfeather.thirdapp.bean.entity.Mediafile; |
| | | |
| | | public class FileUtil { |
| | | |
| | |
| | | |
| | | 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; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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) |
| | | } |
| | | |
| | | } |
| | |
| | | * 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 { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
| | |
| | | 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 |
| | | |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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) |
| | | } |
| | | } |
| | | } |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | |
| | | // 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) { |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | registerDaoClass(InspectionDao.class); |
| | | registerDaoClass(ItemevaluationDao.class); |
| | | registerDaoClass(MediafileDao.class); |
| | | registerDaoClass(MediaTypeAliasDao.class); |
| | | registerDaoClass(MonitorobjectversionDao.class); |
| | | registerDaoClass(ProblemlistDao.class); |
| | | registerDaoClass(ProblemtypeDao.class); |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | | |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | inspectionDaoConfig.clearIdentityScope(); |
| | | itemevaluationDaoConfig.clearIdentityScope(); |
| | | mediafileDaoConfig.clearIdentityScope(); |
| | | mediaTypeAliasDaoConfig.clearIdentityScope(); |
| | | monitorobjectversionDaoConfig.clearIdentityScope(); |
| | | problemlistDaoConfig.clearIdentityScope(); |
| | | problemtypeDaoConfig.clearIdentityScope(); |
| | |
| | | return mediafileDao; |
| | | } |
| | | |
| | | public MediaTypeAliasDao getMediaTypeAliasDao() { |
| | | return mediaTypeAliasDao; |
| | | } |
| | | |
| | | public MonitorobjectversionDao getMonitorobjectversionDao() { |
| | | return monitorobjectversionDao; |
| | | } |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | } |
| | | |
| | | } |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| | |
| | | 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. |
| | | /** |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |