first commit
parent
cb4f273928
commit
83194fe6a3
@ -1,35 +1,8 @@
|
||||
# ---> Android
|
||||
# Gradle files
|
||||
.gradle/
|
||||
build/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
||||
# Log/OS Files
|
||||
*.log
|
||||
|
||||
# Android Studio generated files and folders
|
||||
captures/
|
||||
.externalNativeBuild/
|
||||
.cxx/
|
||||
*.apk
|
||||
output.json
|
||||
|
||||
# IntelliJ
|
||||
*.iml
|
||||
.idea/
|
||||
misc.xml
|
||||
deploymentTargetDropDown.xml
|
||||
render.experimental.xml
|
||||
|
||||
# Keystore files
|
||||
*.jks
|
||||
*.keystore
|
||||
|
||||
# Google Services (e.g. APIs or Firebase)
|
||||
google-services.json
|
||||
|
||||
# Android Profiling
|
||||
*.hprof
|
||||
|
||||
.gradle
|
||||
/local.properties
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.idea
|
||||
|
||||
@ -0,0 +1 @@
|
||||
/build
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,264 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
|
||||
-keep class org.xmlpull.v1.** { *;}
|
||||
-dontwarn org.xmlpull.v1.**
|
||||
|
||||
-keep class com.rehome.zhdcoa.App
|
||||
#-keep class com.rehome.zhdcoa.Contans
|
||||
|
||||
-keep class com.rehome.zhdcoa.bean.** { *; }
|
||||
-keep class com.rehome.zhdcoa.DBModel.** { *; }
|
||||
-keep class com.rehome.zhdcoa.entity.** { *; }
|
||||
-keep class com.rehome.zhdcoa.zxing.camera.** { *; }
|
||||
-keep class com.rehome.zhdcoa.zxing.decoding.** { *; }
|
||||
-keep class com.rehome.zhdcoa.zxing.view.** { *; }
|
||||
#-keep class com.rehome.zhdcoa.utils.** { *; }
|
||||
|
||||
|
||||
-keep class org.litepal.model.** { *; }
|
||||
|
||||
##-keep class com.rehome.zhdcoa.** {
|
||||
# # *;
|
||||
##}
|
||||
#-keep class com.rehome.zhdcoa.service.** {
|
||||
# *;
|
||||
#}
|
||||
#-keep class com.rehome.zhdcoa.receiver.** {
|
||||
# *;
|
||||
#}
|
||||
#-keep class com.rehome.zhdcoa.DBModel.** {
|
||||
# *;
|
||||
#}
|
||||
#
|
||||
#-keep class org.litepal.** {
|
||||
# *;
|
||||
#}
|
||||
#
|
||||
#-keep class android.database.sqlite.** {
|
||||
# *;
|
||||
#}
|
||||
|
||||
|
||||
#<基本指令>
|
||||
-optimizationpasses 5
|
||||
-dontskipnonpubliclibraryclassmembers
|
||||
-optimizations !code/simplification/cast,!field/*,!class/merging/*
|
||||
-keepattributes *Annotation*,InnerClasses
|
||||
-keepattributes Signature
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
#记录生成的日志数据,gradle build时在本项目根目录输出apk 包内所有 class 的内部结构
|
||||
-dump class_files.txt
|
||||
#未混淆的类和成员
|
||||
-printseeds seeds.txt
|
||||
#列出从 apk 中删除的代码
|
||||
-printusage unused.txt
|
||||
#混淆前后的映射
|
||||
-printmapping mapping.txt
|
||||
#</基本指令>
|
||||
|
||||
#<基础>
|
||||
-keep public class * extends android.app.Activity
|
||||
-keep public class * extends android.app.Application
|
||||
-keep public class * extends android.support.multidex.MultiDexApplication
|
||||
-keep public class * extends android.app.Service
|
||||
-keep public class * extends android.content.BroadcastReceiver
|
||||
-keep public class * extends android.content.ContentProvider
|
||||
-keep public class * extends android.app.backup.BackupAgentHelper
|
||||
-keep public class * extends android.preference.Preference
|
||||
-keep public class * extends android.view.View
|
||||
-keep public class com.android.vending.licensing.ILicensingService
|
||||
-keep class android.support.** {*;}
|
||||
#</基础>
|
||||
|
||||
#<view相关>
|
||||
-keep public class * extends android.view.View{
|
||||
*** get*();
|
||||
void set*(***);
|
||||
public <init>(android.content.Context);
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
}
|
||||
-keepclasseswithmembers class * {
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
}
|
||||
-keepclassmembers class * {
|
||||
public void *(android.view.View);
|
||||
}
|
||||
#</view相关>
|
||||
|
||||
#<Serializable、Parcelable>
|
||||
-keepclassmembers class * implements java.io.Serializable {
|
||||
static final long serialVersionUID;
|
||||
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
||||
private void writeObject(java.io.ObjectOutputStream);
|
||||
private void readObject(java.io.ObjectInputStream);
|
||||
java.lang.Object writeReplace();
|
||||
java.lang.Object readResolve();
|
||||
}
|
||||
-keep public class * implements java.io.Serializable {*;}
|
||||
|
||||
-keep class * implements android.os.Parcelable {
|
||||
public static final android.os.Parcelable$Creator *;
|
||||
}
|
||||
#</Serializable、Parcelable>
|
||||
|
||||
#<R文件>
|
||||
-keep class **.R$* {
|
||||
*;
|
||||
}
|
||||
#</R文件>
|
||||
|
||||
#<enum>
|
||||
-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
#</enum>
|
||||
|
||||
#<natvie>
|
||||
-keepclasseswithmembernames class * {
|
||||
native <methods>;
|
||||
}
|
||||
#</natvie>
|
||||
|
||||
#---------------------------------第三方包--开始-------------------------------
|
||||
|
||||
#<okhttp3.x>
|
||||
-dontwarn com.squareup.okhttp3.**
|
||||
-keep class com.squareup.okhttp3.** { *;}
|
||||
-dontwarn okio.**
|
||||
#</okhttp3.x>
|
||||
|
||||
#<retrofit2.x>
|
||||
-dontnote retrofit2.Platform
|
||||
-dontwarn retrofit2.Platform$Java8
|
||||
-keepattributes Signature
|
||||
-keepattributes Exceptions
|
||||
-dontwarn okio.**
|
||||
#</retrofit2.x>
|
||||
|
||||
#</okhttp3.x>
|
||||
|
||||
#<ButterKnife 7.0 以上>
|
||||
-keep class butterknife.** { *; }
|
||||
-dontwarn butterknife.internal.**
|
||||
-keep class **$$ViewBinder { *; }
|
||||
-keepclasseswithmembernames class * {
|
||||
@butterknife.* <fields>;
|
||||
}
|
||||
-keepclasseswithmembernames class * {
|
||||
@butterknife.* <methods>;
|
||||
}
|
||||
#</ButterKnife 7.0 以上>
|
||||
|
||||
#<eventbus 3.0>
|
||||
-keepattributes *Annotation*
|
||||
-keepclassmembers class ** {
|
||||
@org.greenrobot.eventbus.Subscribe <methods>;
|
||||
}
|
||||
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
|
||||
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
|
||||
<init>(java.lang.Throwable);
|
||||
}
|
||||
#</eventbus 3.0>
|
||||
|
||||
#<Gson>
|
||||
-keep class com.google.gson.** {*;}
|
||||
-keep class com.google.**{*;}
|
||||
-keep class sun.misc.Unsafe { *; }
|
||||
-keep class com.google.gson.stream.** { *; }
|
||||
-keep class com.google.gson.examples.android.model.** { *; }
|
||||
#</Gson>
|
||||
|
||||
#<glide>
|
||||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||||
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
||||
**[] $VALUES;
|
||||
public *;
|
||||
}
|
||||
#</glide>
|
||||
|
||||
#<Rxjava RxAndroid>
|
||||
-dontwarn rx.*
|
||||
-dontwarn sun.misc.**
|
||||
|
||||
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
||||
long producerIndex;
|
||||
long consumerIndex;
|
||||
}
|
||||
|
||||
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
||||
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
||||
}
|
||||
|
||||
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
||||
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
||||
}
|
||||
#</Rxjava RxAndroid>
|
||||
|
||||
#----------------------------------第三方包--结束--------------------------
|
||||
|
||||
#---------------------------------一些不要混淆的代码--开始-------------------
|
||||
|
||||
-keep class net.arvin.afbaselibrary.nets.** { *; }
|
||||
-keep class net.arvin.afbaselibrary.data.** { *; }
|
||||
|
||||
#<反射>
|
||||
-keep class net.arvin.afbaselibrary.nets.BaseNet{*;}
|
||||
#</反射>
|
||||
|
||||
#<js>
|
||||
|
||||
#</js>
|
||||
|
||||
#<自定义View的类>
|
||||
-keep class com.rehome.zhdcoa.weiget.** {*;}
|
||||
#</自定义View的类>
|
||||
|
||||
|
||||
#TBS腾讯浏览服务
|
||||
-dontwarn com.tencent.tbs.reader.**
|
||||
-keep class com.tencent.tbs.reader.** {
|
||||
*;
|
||||
}
|
||||
|
||||
#图片压缩
|
||||
-dontwarn com.vincent.videocompressor.**
|
||||
-keep class com.vincent.videocompressor.** {
|
||||
*;
|
||||
}
|
||||
|
||||
#JZVideo视频播放
|
||||
-keep class cn.jzvd.** {
|
||||
*;
|
||||
}
|
||||
|
||||
#PictureSelector照片库选择器
|
||||
-keep class com.luck.picture.lib.** { *; }
|
||||
-keep class com.luck.lib.camerax.** { *; }
|
||||
-dontwarn com.yalantis.ucrop**
|
||||
-keep class com.yalantis.ucrop** { *; }
|
||||
-keep interface com.yalantis.ucrop** { *; }
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,26 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||
|
||||
assertEquals("com.rehome.zhdcoa", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 479 KiB |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,172 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Process;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.multidex.BuildConfig;
|
||||
import androidx.multidex.MultiDex;
|
||||
|
||||
//import com.blankj.utilcode.util.Utils;
|
||||
import com.github.mikephil.charting.utils.Utils;
|
||||
import com.hjq.http.EasyConfig;
|
||||
import com.hjq.http.config.IRequestInterceptor;
|
||||
import com.hjq.http.config.IRequestServer;
|
||||
import com.hjq.http.model.HttpHeaders;
|
||||
import com.hjq.http.model.HttpParams;
|
||||
import com.rehome.zhdcoa.bean.UserInfoBean;
|
||||
import com.rehome.zhdcoa.utils.SPUtils;
|
||||
//import com.squareup.leakcanary.LeakCanary;
|
||||
//import com.squareup.leakcanary.RefWatcher;
|
||||
import com.tencent.bugly.crashreport.CrashReport;
|
||||
import com.xiaomi.channel.commonutils.logger.LoggerInterface;
|
||||
import com.xiaomi.mipush.sdk.Logger;
|
||||
import com.xiaomi.mipush.sdk.MiPushClient;
|
||||
import com.xuexiang.xui.XUI;
|
||||
import com.yolanda.nohttp.NoHttp;
|
||||
import com.zhy.autolayout.config.AutoLayoutConifg;
|
||||
|
||||
import org.litepal.LitePalApplication;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import okhttp3.OkHttpClient;
|
||||
|
||||
public class App extends LitePalApplication {
|
||||
|
||||
private UserInfoBean.UserInfo userInfo;
|
||||
|
||||
private String DateSave;
|
||||
|
||||
public String getDateSave() {
|
||||
return DateSave;
|
||||
}
|
||||
|
||||
public void setDateSave(String dateSave) {
|
||||
DateSave = dateSave;
|
||||
}
|
||||
|
||||
private static App mInstance;
|
||||
//public static boolean mIsInitTBSSuccess = false;
|
||||
public static boolean mqttIsInit = false;
|
||||
private int activityAount = 0;
|
||||
private boolean isForeground = false;
|
||||
|
||||
|
||||
public static App getInstance() {
|
||||
return mInstance;
|
||||
}
|
||||
|
||||
//private RefWatcher refWatcher;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
mInstance = this;
|
||||
|
||||
// if (LeakCanary.isInAnalyzerProcess(this)) { //1
|
||||
// // This process is dedicated to LeakCanary for heap analysis.
|
||||
// // You should not init your app in this process.
|
||||
// return;
|
||||
// }
|
||||
|
||||
//refWatcher = LeakCanary.install(this);
|
||||
|
||||
NoHttp.initialize(this);
|
||||
MultiDex.install(this);
|
||||
NoHttp.setDefaultConnectTimeout(6 * 1000);
|
||||
NoHttp.setDefaultReadTimeout(60 * 1000);
|
||||
initUser();
|
||||
AutoLayoutConifg.getInstance().useDeviceSize();
|
||||
Utils.init(this);
|
||||
XUI.init(this); //初始化UI框架
|
||||
CrashReport.initCrashReport(getApplicationContext(), "13d735012a", true);
|
||||
LoggerInterface newLogger = new LoggerInterface() {
|
||||
@Override
|
||||
public void setTag(String tag) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(String content, Throwable t) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(String content) {
|
||||
}
|
||||
};
|
||||
Logger.setLogger(this, newLogger);
|
||||
|
||||
|
||||
// 网络请求框架初始化
|
||||
IRequestServer server;
|
||||
if (BuildConfig.DEBUG) {
|
||||
server = new TestServer();
|
||||
} else {
|
||||
server = new ReleaseServer();
|
||||
}
|
||||
|
||||
OkHttpClient okHttpClient = new OkHttpClient.Builder()
|
||||
.build();
|
||||
|
||||
EasyConfig.with(okHttpClient)
|
||||
// 是否打印日志
|
||||
//.setLogEnabled(BuildConfig.DEBUG)
|
||||
// 设置服务器配置
|
||||
.setServer(server)
|
||||
// 设置请求处理策略
|
||||
.setHandler(new RequestHandler(this))
|
||||
// 设置请求参数拦截器
|
||||
.setInterceptor(new IRequestInterceptor() {
|
||||
@Override
|
||||
public void intercept(String url, String tag, HttpParams params, HttpHeaders headers) {
|
||||
headers.put("timestamp", String.valueOf(System.currentTimeMillis()));
|
||||
}
|
||||
})
|
||||
// 设置请求重试次数
|
||||
.setRetryCount(1)
|
||||
// 设置请求重试时间
|
||||
.setRetryTime(1000)
|
||||
// 添加全局请求参数
|
||||
.addParam("token", "6666666")
|
||||
// 添加全局请求头
|
||||
//.addHeader("time", "20191030")
|
||||
.into();
|
||||
}
|
||||
|
||||
private void initUser() {
|
||||
this.userInfo = SPUtils.getUser(this);
|
||||
}
|
||||
|
||||
public UserInfoBean.UserInfo getUserInfo() {
|
||||
return userInfo;
|
||||
}
|
||||
|
||||
public void setUserInfo(UserInfoBean.UserInfo userInfo) {
|
||||
this.userInfo = userInfo;
|
||||
SPUtils.putUser(this, userInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
MultiDex.install(this);
|
||||
}
|
||||
|
||||
public void clearUser() {
|
||||
this.userInfo = null;
|
||||
SPUtils.clearUser(this);
|
||||
}
|
||||
|
||||
// public static RefWatcher getRefWatcher(Context context) {
|
||||
// App application = (App) context.getApplicationContext();
|
||||
// return application.refWatcher;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
/**
|
||||
* 安建环上传信息
|
||||
*/
|
||||
|
||||
public class AjhScInfo {
|
||||
|
||||
private String SCNR;//检查结果 是,否
|
||||
private String JCSJ;//时间
|
||||
private String BZID;//班组ID
|
||||
private String JCR;//检查人
|
||||
private String JHID;//计划ID
|
||||
private String YSID;//
|
||||
private String MS;//描述
|
||||
private boolean CHECKED;//是否已检
|
||||
private String SMFX;//扫码方式
|
||||
|
||||
public boolean isCHECKED() {
|
||||
return CHECKED;
|
||||
}
|
||||
|
||||
public String getSMFX() {
|
||||
return SMFX;
|
||||
}
|
||||
|
||||
public void setSMFX(String SMFX) {
|
||||
this.SMFX = SMFX;
|
||||
}
|
||||
|
||||
public String getSCNR() {
|
||||
return SCNR;
|
||||
}
|
||||
|
||||
public void setSCNR(String SCNR) {
|
||||
this.SCNR = SCNR;
|
||||
}
|
||||
|
||||
public String getJCSJ() {
|
||||
return JCSJ;
|
||||
}
|
||||
|
||||
public void setJCSJ(String JCSJ) {
|
||||
this.JCSJ = JCSJ;
|
||||
}
|
||||
|
||||
public String getBZID() {
|
||||
return BZID;
|
||||
}
|
||||
|
||||
public void setBZID(String BZID) {
|
||||
this.BZID = BZID;
|
||||
}
|
||||
|
||||
public String getJCR() {
|
||||
return JCR;
|
||||
}
|
||||
|
||||
public void setJCR(String JCR) {
|
||||
this.JCR = JCR;
|
||||
}
|
||||
|
||||
public String getJHID() {
|
||||
return JHID;
|
||||
}
|
||||
|
||||
public void setJHID(String JHID) {
|
||||
this.JHID = JHID;
|
||||
}
|
||||
|
||||
public String getYSID() {
|
||||
return YSID;
|
||||
}
|
||||
|
||||
public void setYSID(String YSID) {
|
||||
this.YSID = YSID;
|
||||
}
|
||||
|
||||
public String getMS() {
|
||||
return MS;
|
||||
}
|
||||
|
||||
public void setMS(String MS) {
|
||||
this.MS = MS;
|
||||
}
|
||||
|
||||
public boolean getCHECKED() {
|
||||
return CHECKED;
|
||||
}
|
||||
|
||||
public void setCHECKED(boolean CHECKED) {
|
||||
this.CHECKED = CHECKED;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/7.
|
||||
*/
|
||||
|
||||
public class Ajhjh extends DataSupport {
|
||||
|
||||
private boolean checked;
|
||||
private boolean download;
|
||||
private String JHID;
|
||||
private String JHMC;
|
||||
private String DQSJ;
|
||||
private String DJJHID;
|
||||
|
||||
public String getDJJHID() {
|
||||
return DJJHID;
|
||||
}
|
||||
|
||||
public void setDJJHID(String DJJHID) {
|
||||
this.DJJHID = DJJHID;
|
||||
}
|
||||
|
||||
public boolean isChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
public boolean isDownload() {
|
||||
return download;
|
||||
}
|
||||
|
||||
public void setDownload(boolean download) {
|
||||
this.download = download;
|
||||
}
|
||||
|
||||
public String getJHID() {
|
||||
return JHID;
|
||||
}
|
||||
|
||||
public void setJHID(String JHID) {
|
||||
this.JHID = JHID;
|
||||
}
|
||||
|
||||
public String getJHMC() {
|
||||
return JHMC;
|
||||
}
|
||||
|
||||
public void setJHMC(String JHMC) {
|
||||
this.JHMC = JHMC;
|
||||
}
|
||||
|
||||
public String getDQSJ() {
|
||||
return DQSJ;
|
||||
}
|
||||
|
||||
public void setDQSJ(String DQSJ) {
|
||||
this.DQSJ = DQSJ;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 安健环计划
|
||||
*/
|
||||
|
||||
public class AjhjhList extends DataSupport {
|
||||
|
||||
/**
|
||||
* Rows : [{"JHID":"AJH00000000001","JHMC":"XCJ228","DQSJ":"2016-11-09"}]
|
||||
* Total : 1
|
||||
*/
|
||||
|
||||
private int id;
|
||||
|
||||
private int Total;
|
||||
/**
|
||||
* JHID : AJH00000000001
|
||||
* JHMC : XCJ228
|
||||
* DQSJ : 2016-11-09
|
||||
*/
|
||||
|
||||
private List<Ajhjh> Rows;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<Ajhjh> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<Ajhjh> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/7.
|
||||
*/
|
||||
|
||||
public class AjhjhxzrwList implements Parcelable {
|
||||
|
||||
private int Total;
|
||||
private List<Ajhxzrwqylist> Rows;
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<Ajhxzrwqylist> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<Ajhxzrwqylist> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(this.Total);
|
||||
dest.writeList(this.Rows);
|
||||
}
|
||||
|
||||
public AjhjhxzrwList() {
|
||||
}
|
||||
|
||||
protected AjhjhxzrwList(Parcel in) {
|
||||
this.Total = in.readInt();
|
||||
this.Rows = new ArrayList<Ajhxzrwqylist>();
|
||||
in.readList(this.Rows, Ajhxzrwqylist.class.getClassLoader());
|
||||
}
|
||||
|
||||
public static final Creator<AjhjhxzrwList> CREATOR = new Creator<AjhjhxzrwList>() {
|
||||
@Override
|
||||
public AjhjhxzrwList createFromParcel(Parcel source) {
|
||||
return new AjhjhxzrwList(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjhjhxzrwList[] newArray(int size) {
|
||||
return new AjhjhxzrwList[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/9.
|
||||
*/
|
||||
|
||||
public class Ajhxcjs extends DataSupport {
|
||||
|
||||
private String jhid;
|
||||
private String areacode;
|
||||
private String jsr;
|
||||
private String file;
|
||||
private String bz;
|
||||
|
||||
public String getBz() {
|
||||
return bz;
|
||||
}
|
||||
|
||||
public void setBz(String bz) {
|
||||
this.bz = bz;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getAreacode() {
|
||||
return areacode;
|
||||
}
|
||||
|
||||
public void setAreacode(String areacode) {
|
||||
this.areacode = areacode;
|
||||
}
|
||||
|
||||
public String getJsr() {
|
||||
return jsr;
|
||||
}
|
||||
|
||||
public void setJsr(String jsr) {
|
||||
this.jsr = jsr;
|
||||
}
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/7.
|
||||
*/
|
||||
|
||||
public class Ajhxzrwqylist {
|
||||
|
||||
public AjhjhxzrwList getListl() {
|
||||
return listl;
|
||||
}
|
||||
|
||||
public void setListl(AjhjhxzrwList listl) {
|
||||
this.listl = listl;
|
||||
}
|
||||
|
||||
private AjhjhxzrwList listl;
|
||||
|
||||
@SerializedName("区域分组")
|
||||
private List<Ajhxzrwqy> Ajhxzrwqys;
|
||||
|
||||
public List<Ajhxzrwqy> getAjhxzrwqys() {
|
||||
return Ajhxzrwqys;
|
||||
}
|
||||
|
||||
public void setAjhxzrwqys(List<Ajhxzrwqy> Ajhxzrwqys) {
|
||||
this.Ajhxzrwqys = Ajhxzrwqys;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
|
||||
public class DataBaseHelper extends SQLiteOpenHelper {
|
||||
|
||||
public DataBaseHelper(Context context, String name, int version) {
|
||||
super(context, name, null, version);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
String sql = "create table trade(_id integer primary key autoincrement,serialNo,money,cardNum,date,status)";
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase db) {
|
||||
// TODO Auto-generated method stub
|
||||
db.execSQL(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* 点检计划
|
||||
*/
|
||||
|
||||
public class Djjh extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String JHID;
|
||||
private String JHMC;
|
||||
private String JHLX;
|
||||
private String DQSJ;
|
||||
private boolean checked;//0:未选中,1:已选中
|
||||
private int download;//0:未下载,1:已经下载
|
||||
private DjjhList djjhList;
|
||||
|
||||
public int getDownload() {
|
||||
return download;
|
||||
}
|
||||
|
||||
public void setDownload(int download) {
|
||||
this.download = download;
|
||||
}
|
||||
|
||||
public boolean isChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
public DjjhList getDjjhList() {
|
||||
return djjhList;
|
||||
}
|
||||
|
||||
public void setDjjhList(DjjhList djjhList) {
|
||||
this.djjhList = djjhList;
|
||||
}
|
||||
|
||||
public String getJHID() {
|
||||
return JHID;
|
||||
}
|
||||
|
||||
public void setJHID(String JHID) {
|
||||
this.JHID = JHID;
|
||||
}
|
||||
|
||||
public String getJHMC() {
|
||||
return JHMC;
|
||||
}
|
||||
|
||||
public void setJHMC(String JHMC) {
|
||||
this.JHMC = JHMC;
|
||||
}
|
||||
|
||||
public String getJHLX() {
|
||||
return JHLX;
|
||||
}
|
||||
|
||||
public void setJHLX(String JHLX) {
|
||||
this.JHLX = JHLX;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDQSJ() {
|
||||
return DQSJ;
|
||||
}
|
||||
|
||||
public void setDQSJ(String DQSJ) {
|
||||
this.DQSJ = DQSJ;
|
||||
}
|
||||
|
||||
public DjjhList getList() {
|
||||
return djjhList;
|
||||
}
|
||||
|
||||
public void setList(DjjhList list) {
|
||||
this.djjhList = list;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 点检计划列表
|
||||
*/
|
||||
|
||||
public class DjjhList extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private int Total;
|
||||
|
||||
private List<Djjh> Rows = new ArrayList<Djjh>();
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<Djjh> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<Djjh> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 点检计划任务列表
|
||||
*/
|
||||
|
||||
public class DjjhRwList extends DataSupport implements Parcelable {
|
||||
|
||||
private String jhid;
|
||||
|
||||
private boolean deleted;
|
||||
|
||||
public boolean isDeleted() {
|
||||
return deleted;
|
||||
}
|
||||
|
||||
public void setDeleted(boolean deleted) {
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
private int Total;
|
||||
private List<DjjhRwQyList> Rows;
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<DjjhRwQyList> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<DjjhRwQyList> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeString(this.jhid);
|
||||
dest.writeInt(this.Total);
|
||||
dest.writeTypedList(this.Rows);
|
||||
}
|
||||
|
||||
public DjjhRwList() {
|
||||
}
|
||||
|
||||
protected DjjhRwList(Parcel in) {
|
||||
this.jhid = in.readString();
|
||||
this.Total = in.readInt();
|
||||
this.Rows = in.createTypedArrayList(DjjhRwQyList.CREATOR);
|
||||
}
|
||||
|
||||
public static final Creator<DjjhRwList> CREATOR = new Creator<DjjhRwList>() {
|
||||
@Override
|
||||
public DjjhRwList createFromParcel(Parcel source) {
|
||||
return new DjjhRwList(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DjjhRwList[] newArray(int size) {
|
||||
return new DjjhRwList[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 点检计划任务区域列表
|
||||
*/
|
||||
|
||||
|
||||
public class DjjhRwQyList extends DataSupport implements Parcelable {
|
||||
|
||||
private String qymc;//区域名称
|
||||
|
||||
private String jhid;//计划id
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
private DjjhRwList djjhRwList;
|
||||
|
||||
@SerializedName("区域分组")
|
||||
private List<DjjhRwQy> DjjhRqqys;
|
||||
|
||||
public String getQymc() {
|
||||
return qymc;
|
||||
}
|
||||
|
||||
public void setQymc(String qymc) {
|
||||
this.qymc = qymc;
|
||||
}
|
||||
|
||||
public DjjhRwList getDjjhRwList() {
|
||||
return djjhRwList;
|
||||
}
|
||||
|
||||
public void setDjjhRwList(DjjhRwList djjhRwList) {
|
||||
this.djjhRwList = djjhRwList;
|
||||
}
|
||||
|
||||
public List<DjjhRwQy> getDjjhRqqys() {
|
||||
return DjjhRqqys;
|
||||
}
|
||||
|
||||
public void setDjjhRqqys(List<DjjhRwQy> DjjhRqqys) {
|
||||
this.DjjhRqqys = DjjhRqqys;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeString(this.qymc);
|
||||
dest.writeParcelable(this.djjhRwList, flags);
|
||||
dest.writeTypedList(this.DjjhRqqys);
|
||||
}
|
||||
|
||||
public DjjhRwQyList() {
|
||||
}
|
||||
|
||||
protected DjjhRwQyList(Parcel in) {
|
||||
this.qymc = in.readString();
|
||||
this.djjhRwList = in.readParcelable(DjjhRwList.class.getClassLoader());
|
||||
this.DjjhRqqys = in.createTypedArrayList(DjjhRwQy.CREATOR);
|
||||
}
|
||||
|
||||
public static final Creator<DjjhRwQyList> CREATOR = new Creator<DjjhRwQyList>() {
|
||||
@Override
|
||||
public DjjhRwQyList createFromParcel(Parcel source) {
|
||||
return new DjjhRwQyList(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DjjhRwQyList[] newArray(int size) {
|
||||
return new DjjhRwQyList[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/22.
|
||||
*/
|
||||
|
||||
public class LyXcjsInfo extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String ms;
|
||||
private String jhid;
|
||||
private String xfid;
|
||||
private String djr;
|
||||
private String path;
|
||||
private String filename;
|
||||
private boolean uploaded;
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getXfid() {
|
||||
return xfid;
|
||||
}
|
||||
|
||||
public void setXfid(String xfid) {
|
||||
this.xfid = xfid;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMs() {
|
||||
return ms;
|
||||
}
|
||||
|
||||
public void setMs(String ms) {
|
||||
this.ms = ms;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getDjr() {
|
||||
return djr;
|
||||
}
|
||||
|
||||
public void setDjr(String djr) {
|
||||
this.djr = djr;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public boolean isUploaded() {
|
||||
return uploaded;
|
||||
}
|
||||
|
||||
public void setUploaded(boolean uploaded) {
|
||||
this.uploaded = uploaded;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/1.
|
||||
*/
|
||||
|
||||
public class LyYhpcInfo extends DataSupport {
|
||||
|
||||
private String NR;//内容
|
||||
private String WT;//问题
|
||||
private String AREACODE;//区域编号
|
||||
private String FXR;//发现人
|
||||
private String FXSJ;//发现时间
|
||||
|
||||
public String getNR() {
|
||||
return NR;
|
||||
}
|
||||
|
||||
public void setNR(String NR) {
|
||||
this.NR = NR;
|
||||
}
|
||||
|
||||
public String getWT() {
|
||||
return WT;
|
||||
}
|
||||
|
||||
public void setWT(String WT) {
|
||||
this.WT = WT;
|
||||
}
|
||||
|
||||
public String getAREACODE() {
|
||||
return AREACODE;
|
||||
}
|
||||
|
||||
public void setAREACODE(String AREACODE) {
|
||||
this.AREACODE = AREACODE;
|
||||
}
|
||||
|
||||
public String getFXR() {
|
||||
return FXR;
|
||||
}
|
||||
|
||||
public void setFXR(String FXR) {
|
||||
this.FXR = FXR;
|
||||
}
|
||||
|
||||
public String getFXSJ() {
|
||||
return FXSJ;
|
||||
}
|
||||
|
||||
public void setFXSJ(String FXSJ) {
|
||||
this.FXSJ = FXSJ;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class LyxcXm extends DataSupport {
|
||||
|
||||
|
||||
|
||||
private String xmid;
|
||||
private String ssid;
|
||||
private String jhid;
|
||||
private String typename;
|
||||
private String type1;
|
||||
private String type2;
|
||||
|
||||
public String getXmid() {
|
||||
return xmid;
|
||||
}
|
||||
|
||||
public void setXmid(String xmid) {
|
||||
this.xmid = xmid;
|
||||
}
|
||||
|
||||
public String getSsid() {
|
||||
return ssid;
|
||||
}
|
||||
|
||||
public void setSsid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
|
||||
public String getType1() {
|
||||
return type1;
|
||||
}
|
||||
|
||||
public void setType1(String type1) {
|
||||
this.type1 = type1;
|
||||
}
|
||||
|
||||
public String getType2() {
|
||||
return type2;
|
||||
}
|
||||
|
||||
public void setType2(String type2) {
|
||||
this.type2 = type2;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,85 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class LyxcXmJg extends DataSupport {
|
||||
|
||||
|
||||
|
||||
private String xmid;
|
||||
private String ssid;
|
||||
private String jhid;
|
||||
private String typename;
|
||||
private String type1;
|
||||
private String type2;
|
||||
private String qyid;
|
||||
private boolean jg;
|
||||
|
||||
public String getQyid() {
|
||||
return qyid;
|
||||
}
|
||||
|
||||
public void setQyid(String qyid) {
|
||||
this.qyid = qyid;
|
||||
}
|
||||
|
||||
public boolean isJg() {
|
||||
return jg;
|
||||
}
|
||||
|
||||
public void setJg(boolean jg) {
|
||||
this.jg = jg;
|
||||
}
|
||||
|
||||
public String getXmid() {
|
||||
return xmid;
|
||||
}
|
||||
|
||||
public void setXmid(String xmid) {
|
||||
this.xmid = xmid;
|
||||
}
|
||||
|
||||
public String getSsid() {
|
||||
return ssid;
|
||||
}
|
||||
|
||||
public void setSsid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
|
||||
public String getType1() {
|
||||
return type1;
|
||||
}
|
||||
|
||||
public void setType1(String type1) {
|
||||
this.type1 = type1;
|
||||
}
|
||||
|
||||
public String getType2() {
|
||||
return type2;
|
||||
}
|
||||
|
||||
public void setType2(String type2) {
|
||||
this.type2 = type2;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class LyxcXmList {
|
||||
|
||||
private String Total;
|
||||
private List<LyxcXm> Rows;
|
||||
|
||||
public String getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(String Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<LyxcXm> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<LyxcXm> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class LyxcqyList {
|
||||
|
||||
|
||||
|
||||
private int Total;
|
||||
private List<RowsBean> Rows;
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<RowsBean> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<RowsBean> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
public static class RowsBean {
|
||||
@SerializedName("区域分组")
|
||||
private List<Lyxcrwqy> lyxcrwqys;
|
||||
|
||||
public List<Lyxcrwqy> getLyxcrwqys() {
|
||||
return lyxcrwqys;
|
||||
}
|
||||
|
||||
public void setLyxcrwqys(List<Lyxcrwqy> lyxcrwqys) {
|
||||
this.lyxcrwqys = lyxcrwqys;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,148 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class Lyxcrwqy extends DataSupport {
|
||||
|
||||
|
||||
private String BH;
|
||||
private String XMNAME;
|
||||
private String QYNAME;
|
||||
private String TXMBH;
|
||||
private String QYNFC;
|
||||
private String XMID;
|
||||
private String QYID;
|
||||
private String JHID;
|
||||
private String NEXTTIME;
|
||||
private String ISZC;// 1表示正常 0表示不正常, 不正常就生成缺陷工单
|
||||
private String CJJG;//备注
|
||||
private String CJSJ;//日期
|
||||
private boolean checked;
|
||||
private String CJR;//采集人
|
||||
private String SMFX;//扫描方式
|
||||
|
||||
public String getSMFX() {
|
||||
return SMFX;
|
||||
}
|
||||
|
||||
public void setSMFX(String SMFX) {
|
||||
this.SMFX = SMFX;
|
||||
}
|
||||
|
||||
public String getCJJG() {
|
||||
return CJJG;
|
||||
}
|
||||
|
||||
public void setCJJG(String CJJG) {
|
||||
this.CJJG = CJJG;
|
||||
}
|
||||
|
||||
public String getCJR() {
|
||||
return CJR;
|
||||
}
|
||||
|
||||
public void setCJR(String CJR) {
|
||||
this.CJR = CJR;
|
||||
}
|
||||
|
||||
public boolean isChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
public String getCJSJ() {
|
||||
return CJSJ;
|
||||
}
|
||||
|
||||
public void setCJSJ(String CJSJ) {
|
||||
this.CJSJ = CJSJ;
|
||||
}
|
||||
|
||||
public String getISZC() {
|
||||
return ISZC;
|
||||
}
|
||||
|
||||
public void setISZC(String ISZC) {
|
||||
this.ISZC = ISZC;
|
||||
}
|
||||
|
||||
|
||||
public String getBH() {
|
||||
return BH;
|
||||
}
|
||||
|
||||
public void setBH(String BH) {
|
||||
this.BH = BH;
|
||||
}
|
||||
|
||||
public String getXMNAME() {
|
||||
return XMNAME;
|
||||
}
|
||||
|
||||
public void setXMNAME(String XMNAME) {
|
||||
this.XMNAME = XMNAME;
|
||||
}
|
||||
|
||||
public String getQYNAME() {
|
||||
return QYNAME;
|
||||
}
|
||||
|
||||
public void setQYNAME(String QYNAME) {
|
||||
this.QYNAME = QYNAME;
|
||||
}
|
||||
|
||||
public String getTXMBH() {
|
||||
return TXMBH;
|
||||
}
|
||||
|
||||
public void setTXMBH(String TXMBH) {
|
||||
this.TXMBH = TXMBH;
|
||||
}
|
||||
|
||||
public String getQYNFC() {
|
||||
return QYNFC;
|
||||
}
|
||||
|
||||
public void setQYNFC(String QYNFC) {
|
||||
this.QYNFC = QYNFC;
|
||||
}
|
||||
|
||||
public String getXMID() {
|
||||
return XMID;
|
||||
}
|
||||
|
||||
public void setXMID(String XMID) {
|
||||
this.XMID = XMID;
|
||||
}
|
||||
|
||||
public String getQYID() {
|
||||
return QYID;
|
||||
}
|
||||
|
||||
public void setQYID(String QYID) {
|
||||
this.QYID = QYID;
|
||||
}
|
||||
|
||||
public String getJHID() {
|
||||
return JHID;
|
||||
}
|
||||
|
||||
public void setJHID(String JHID) {
|
||||
this.JHID = JHID;
|
||||
}
|
||||
|
||||
public String getNEXTTIME() {
|
||||
return NEXTTIME;
|
||||
}
|
||||
|
||||
public void setNEXTTIME(String NEXTTIME) {
|
||||
this.NEXTTIME = NEXTTIME;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/22.
|
||||
*/
|
||||
|
||||
public class QxgdInfo extends DataSupport {
|
||||
|
||||
private String qxms;
|
||||
private String zyid;
|
||||
private String bgr;
|
||||
private String date;
|
||||
|
||||
public String getQxms() {
|
||||
return qxms;
|
||||
}
|
||||
|
||||
public void setQxms(String qxms) {
|
||||
this.qxms = qxms;
|
||||
}
|
||||
|
||||
public String getZyid() {
|
||||
return zyid;
|
||||
}
|
||||
|
||||
public void setZyid(String zyid) {
|
||||
this.zyid = zyid;
|
||||
}
|
||||
|
||||
public String getBgr() {
|
||||
return bgr;
|
||||
}
|
||||
|
||||
public void setBgr(String bgr) {
|
||||
this.bgr = bgr;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/11.
|
||||
*/
|
||||
|
||||
public class Qy extends DataSupport {
|
||||
|
||||
private String AREACODE;
|
||||
private String AREANAME;
|
||||
private String BQBM;
|
||||
private String TXM;
|
||||
|
||||
public String getAREACODE() {
|
||||
return AREACODE;
|
||||
}
|
||||
|
||||
public void setAREACODE(String AREACODE) {
|
||||
this.AREACODE = AREACODE;
|
||||
}
|
||||
|
||||
public String getAREANAME() {
|
||||
return AREANAME;
|
||||
}
|
||||
|
||||
public void setAREANAME(String AREANAME) {
|
||||
this.AREANAME = AREANAME;
|
||||
}
|
||||
|
||||
public String getBQBM() {
|
||||
return BQBM;
|
||||
}
|
||||
|
||||
public void setBQBM(String BQBM) {
|
||||
this.BQBM = BQBM;
|
||||
}
|
||||
|
||||
public String getTXM() {
|
||||
return TXM;
|
||||
}
|
||||
|
||||
public void setTXM(String TXM) {
|
||||
this.TXM = TXM;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,74 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/22.
|
||||
*/
|
||||
|
||||
public class XcjsInfo extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String ms;
|
||||
private String jhid;
|
||||
private String pointnum;
|
||||
private String djr;
|
||||
private String filename;
|
||||
private boolean uploaded;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMs() {
|
||||
return ms;
|
||||
}
|
||||
|
||||
public void setMs(String ms) {
|
||||
this.ms = ms;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getPointnum() {
|
||||
return pointnum;
|
||||
}
|
||||
|
||||
public void setPointnum(String pointnum) {
|
||||
this.pointnum = pointnum;
|
||||
}
|
||||
|
||||
public String getDjr() {
|
||||
return djr;
|
||||
}
|
||||
|
||||
public void setDjr(String djr) {
|
||||
this.djr = djr;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public boolean isUploaded() {
|
||||
return uploaded;
|
||||
}
|
||||
|
||||
public void setUploaded(boolean uploaded) {
|
||||
this.uploaded = uploaded;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/11/5.
|
||||
*/
|
||||
|
||||
public class XfBaxcRwqy extends DataSupport implements Parcelable {
|
||||
|
||||
private int id;
|
||||
private String jhid;
|
||||
private String xgid;
|
||||
private String xgtype;
|
||||
private String bh;
|
||||
private String qyname;
|
||||
private String qynfc;
|
||||
private String qywz;
|
||||
private XfBaxcRwqyList xfBaxcRwqyList;
|
||||
private boolean checked;
|
||||
private String txmbh;
|
||||
private String smfx = "";//检查方式
|
||||
private String cjsj;//采集时间
|
||||
private String cjr;//采集人
|
||||
|
||||
public String getCjsj() {
|
||||
return cjsj;
|
||||
}
|
||||
|
||||
public void setCjsj(String cjsj) {
|
||||
this.cjsj = cjsj;
|
||||
}
|
||||
|
||||
public String getCjr() {
|
||||
return cjr;
|
||||
}
|
||||
|
||||
public void setCjr(String cjr) {
|
||||
this.cjr = cjr;
|
||||
}
|
||||
|
||||
public String getSmfx() {
|
||||
return smfx;
|
||||
}
|
||||
|
||||
public void setSmfx(String smfx) {
|
||||
this.smfx = smfx;
|
||||
}
|
||||
|
||||
public String getTxmbh() {
|
||||
return txmbh;
|
||||
}
|
||||
|
||||
public void setTxmbh(String txmbh) {
|
||||
this.txmbh = txmbh;
|
||||
}
|
||||
|
||||
public boolean isChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public XfBaxcRwqyList getXfBaxcRwqyList() {
|
||||
return xfBaxcRwqyList;
|
||||
}
|
||||
|
||||
public void setXfBaxcRwqyList(XfBaxcRwqyList xfBaxcRwqyList) {
|
||||
this.xfBaxcRwqyList = xfBaxcRwqyList;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getXgid() {
|
||||
return xgid;
|
||||
}
|
||||
|
||||
public void setXgid(String xgid) {
|
||||
this.xgid = xgid;
|
||||
}
|
||||
|
||||
public String getXgtype() {
|
||||
return xgtype;
|
||||
}
|
||||
|
||||
public void setXgtype(String xgtype) {
|
||||
this.xgtype = xgtype;
|
||||
}
|
||||
|
||||
public String getBh() {
|
||||
return bh;
|
||||
}
|
||||
|
||||
public void setBh(String bh) {
|
||||
this.bh = bh;
|
||||
}
|
||||
|
||||
public String getQyname() {
|
||||
return qyname;
|
||||
}
|
||||
|
||||
public void setQyname(String qyname) {
|
||||
this.qyname = qyname;
|
||||
}
|
||||
|
||||
public String getQynfc() {
|
||||
return qynfc;
|
||||
}
|
||||
|
||||
public void setQynfc(String qynfc) {
|
||||
this.qynfc = qynfc;
|
||||
}
|
||||
|
||||
public String getQywz() {
|
||||
return qywz;
|
||||
}
|
||||
|
||||
public void setQywz(String qywz) {
|
||||
this.qywz = qywz;
|
||||
}
|
||||
|
||||
public XfBaxcRwqy() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(this.id);
|
||||
dest.writeString(this.jhid);
|
||||
dest.writeString(this.xgid);
|
||||
dest.writeString(this.xgtype);
|
||||
dest.writeString(this.bh);
|
||||
dest.writeString(this.qyname);
|
||||
dest.writeString(this.qynfc);
|
||||
dest.writeString(this.qywz);
|
||||
dest.writeParcelable(this.xfBaxcRwqyList, flags);
|
||||
dest.writeByte(this.checked ? (byte) 1 : (byte) 0);
|
||||
dest.writeString(this.txmbh);
|
||||
dest.writeString(this.smfx);
|
||||
}
|
||||
|
||||
protected XfBaxcRwqy(Parcel in) {
|
||||
this.id = in.readInt();
|
||||
this.jhid = in.readString();
|
||||
this.xgid = in.readString();
|
||||
this.xgtype = in.readString();
|
||||
this.bh = in.readString();
|
||||
this.qyname = in.readString();
|
||||
this.qynfc = in.readString();
|
||||
this.qywz = in.readString();
|
||||
this.xfBaxcRwqyList = in.readParcelable(XfBaxcRwqyList.class.getClassLoader());
|
||||
this.checked = in.readByte() != 0;
|
||||
this.txmbh = in.readString();
|
||||
this.smfx = in.readString();
|
||||
}
|
||||
|
||||
public static final Creator<XfBaxcRwqy> CREATOR = new Creator<XfBaxcRwqy>() {
|
||||
@Override
|
||||
public XfBaxcRwqy createFromParcel(Parcel source) {
|
||||
return new XfBaxcRwqy(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public XfBaxcRwqy[] newArray(int size) {
|
||||
return new XfBaxcRwqy[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,105 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保安巡查任务区域
|
||||
*/
|
||||
|
||||
public class XfBaxcRwqyList extends DataSupport implements Parcelable {
|
||||
|
||||
|
||||
/**
|
||||
* Rows : [{"jhid":"20161013090900","xgid":"f90f5fd3dedc4b4aa7a60c5b00295157","xgtype":"2","bh":"BH1","qyname":"1号点","qynfc":"3344NFC","qywz":"1号门岗"},{"jhid":"20161013090900","xgid":"7dcca569747d42e3883df3787cc4fb24","xgtype":"1","bh":"BHA001","qyname":"1号点","qynfc":"BHA001NFC","qywz":"行政楼1楼"},{"jhid":"20161013090900","xgid":"703b5509fca54beb9be2343d80b91918","xgtype":"1","bh":"A002","qyname":"2号点","qynfc":"A002DF","qywz":"TT4东侧治安监控点"}]
|
||||
* Total : 3
|
||||
*/
|
||||
|
||||
private int id;
|
||||
|
||||
private String jhid;
|
||||
|
||||
private String Total;
|
||||
/**
|
||||
* jhid : 20161013090900
|
||||
* xgid : f90f5fd3dedc4b4aa7a60c5b00295157
|
||||
* xgtype : 2
|
||||
* bh : BH1
|
||||
* qyname : 1号点
|
||||
* qynfc : 3344NFC
|
||||
* qywz : 1号门岗
|
||||
*/
|
||||
|
||||
private List<XfBaxcRwqy> Rows;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(String Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<XfBaxcRwqy> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<XfBaxcRwqy> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeInt(this.id);
|
||||
dest.writeString(this.jhid);
|
||||
dest.writeString(this.Total);
|
||||
dest.writeTypedList(this.Rows);
|
||||
}
|
||||
|
||||
public XfBaxcRwqyList() {
|
||||
}
|
||||
|
||||
protected XfBaxcRwqyList(Parcel in) {
|
||||
this.id = in.readInt();
|
||||
this.jhid = in.readString();
|
||||
this.Total = in.readString();
|
||||
this.Rows = in.createTypedArrayList(XfBaxcRwqy.CREATOR);
|
||||
}
|
||||
|
||||
public static final Creator<XfBaxcRwqyList> CREATOR = new Creator<XfBaxcRwqyList>() {
|
||||
@Override
|
||||
public XfBaxcRwqyList createFromParcel(Parcel source) {
|
||||
return new XfBaxcRwqyList(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public XfBaxcRwqyList[] newArray(int size) {
|
||||
return new XfBaxcRwqyList[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 消防点检计划列表
|
||||
*/
|
||||
|
||||
public class XfDjjhList extends DataSupport {
|
||||
|
||||
private int id;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rows : [{"id":"20161019184614","jhmc":"消防计划2","xdjzq":"10","khzq":"7","nexttime":"2016/10/19 0:00:00"},{"id":"20161014165348","jhmc":"消防巡查计划10月15号开始","xdjzq":"10","khzq":"7","nexttime":"2016/10/15 0:00:00"}]
|
||||
* Total : 2
|
||||
*/
|
||||
|
||||
private String Total;
|
||||
/**
|
||||
* id : 20161019184614
|
||||
* jhmc : 消防计划2
|
||||
* xdjzq : 10
|
||||
* khzq : 7
|
||||
* nexttime : 2016/10/19 0:00:00
|
||||
*/
|
||||
|
||||
private List<XfDjjh> Rows;
|
||||
|
||||
public String getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(String Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<XfDjjh> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<XfDjjh> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,81 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/21.
|
||||
*/
|
||||
|
||||
public class XfDjjhRwqyList extends DataSupport implements Parcelable {
|
||||
|
||||
private String qyname;
|
||||
|
||||
private XfDjjhRwList xfDjjhRwList;
|
||||
|
||||
public XfDjjhRwList getXfDjjhRwList() {
|
||||
return xfDjjhRwList;
|
||||
}
|
||||
|
||||
public void setXfDjjhRwList(XfDjjhRwList xfDjjhRwList) {
|
||||
this.xfDjjhRwList = xfDjjhRwList;
|
||||
}
|
||||
|
||||
public String getQyname() {
|
||||
return qyname;
|
||||
}
|
||||
|
||||
public void setQyname(String qyname) {
|
||||
this.qyname = qyname;
|
||||
}
|
||||
|
||||
@SerializedName("区域分组")
|
||||
private List<XfDjjhRwqy> xfdjjhrwqy;
|
||||
|
||||
public List<XfDjjhRwqy> getXfdjjhrwqy() {
|
||||
return xfdjjhrwqy;
|
||||
}
|
||||
|
||||
public void setXfdjjhrwqy(List<XfDjjhRwqy> xfdjjhrwqy) {
|
||||
this.xfdjjhrwqy = xfdjjhrwqy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
dest.writeString(this.qyname);
|
||||
dest.writeParcelable(this.xfDjjhRwList, flags);
|
||||
dest.writeTypedList(this.xfdjjhrwqy);
|
||||
}
|
||||
|
||||
public XfDjjhRwqyList() {
|
||||
}
|
||||
|
||||
protected XfDjjhRwqyList(Parcel in) {
|
||||
this.qyname = in.readString();
|
||||
this.xfDjjhRwList = in.readParcelable(XfDjjhRwList.class.getClassLoader());
|
||||
this.xfdjjhrwqy = in.createTypedArrayList(XfDjjhRwqy.CREATOR);
|
||||
}
|
||||
|
||||
public static final Creator<XfDjjhRwqyList> CREATOR = new Creator<XfDjjhRwqyList>() {
|
||||
@Override
|
||||
public XfDjjhRwqyList createFromParcel(Parcel source) {
|
||||
return new XfDjjhRwqyList(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
public XfDjjhRwqyList[] newArray(int size) {
|
||||
return new XfDjjhRwqyList[size];
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/22.
|
||||
*/
|
||||
|
||||
public class XfXcjsInfo extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String ms;
|
||||
private String jhid;
|
||||
private String xfid;
|
||||
private String djr;
|
||||
private String path;
|
||||
private String filename;
|
||||
private boolean uploaded;
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getXfid() {
|
||||
return xfid;
|
||||
}
|
||||
|
||||
public void setXfid(String xfid) {
|
||||
this.xfid = xfid;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMs() {
|
||||
return ms;
|
||||
}
|
||||
|
||||
public void setMs(String ms) {
|
||||
this.ms = ms;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getDjr() {
|
||||
return djr;
|
||||
}
|
||||
|
||||
public void setDjr(String djr) {
|
||||
this.djr = djr;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public boolean isUploaded() {
|
||||
return uploaded;
|
||||
}
|
||||
|
||||
public void setUploaded(boolean uploaded) {
|
||||
this.uploaded = uploaded;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/21.
|
||||
*/
|
||||
|
||||
public class XfXcmhqc extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String bh;
|
||||
private String xftype;
|
||||
private String xhnum;
|
||||
private String xmid;
|
||||
private String xfid;
|
||||
private String qyid;
|
||||
private String jhid;
|
||||
private String nexttime;
|
||||
private String scrq;
|
||||
private String yxrq;
|
||||
|
||||
public String getScrq() {
|
||||
return scrq;
|
||||
}
|
||||
|
||||
public void setScrq(String scrq) {
|
||||
this.scrq = scrq;
|
||||
}
|
||||
|
||||
public String getYxrq() {
|
||||
return yxrq;
|
||||
}
|
||||
|
||||
public void setYxrq(String yxrq) {
|
||||
this.yxrq = yxrq;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getBh() {
|
||||
return bh;
|
||||
}
|
||||
|
||||
public void setBh(String bh) {
|
||||
this.bh = bh;
|
||||
}
|
||||
|
||||
public String getXftype() {
|
||||
return xftype;
|
||||
}
|
||||
|
||||
public void setXftype(String xftype) {
|
||||
this.xftype = xftype;
|
||||
}
|
||||
|
||||
public String getXhnum() {
|
||||
return xhnum;
|
||||
}
|
||||
|
||||
public void setXhnum(String xhnum) {
|
||||
this.xhnum = xhnum;
|
||||
}
|
||||
|
||||
public String getXmid() {
|
||||
return xmid;
|
||||
}
|
||||
|
||||
public void setXmid(String xmid) {
|
||||
this.xmid = xmid;
|
||||
}
|
||||
|
||||
public String getXfid() {
|
||||
return xfid;
|
||||
}
|
||||
|
||||
public void setXfid(String xfid) {
|
||||
this.xfid = xfid;
|
||||
}
|
||||
|
||||
public String getQyid() {
|
||||
return qyid;
|
||||
}
|
||||
|
||||
public void setQyid(String qyid) {
|
||||
this.qyid = qyid;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getNexttime() {
|
||||
return nexttime;
|
||||
}
|
||||
|
||||
public void setNexttime(String nexttime) {
|
||||
this.nexttime = nexttime;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,83 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/21.
|
||||
*/
|
||||
|
||||
public class XfXcxm extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String xmid;
|
||||
private String ssid;
|
||||
private String xftype;
|
||||
private String typename;
|
||||
private String type1;
|
||||
private String type2;
|
||||
private String jhid;
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getXmid() {
|
||||
return xmid;
|
||||
}
|
||||
|
||||
public void setXmid(String xmid) {
|
||||
this.xmid = xmid;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSsid() {
|
||||
return ssid;
|
||||
}
|
||||
|
||||
public void setSsid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
}
|
||||
|
||||
public String getXftype() {
|
||||
return xftype;
|
||||
}
|
||||
|
||||
public void setXftype(String xftype) {
|
||||
this.xftype = xftype;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
|
||||
public String getType1() {
|
||||
return type1;
|
||||
}
|
||||
|
||||
public void setType1(String type1) {
|
||||
this.type1 = type1;
|
||||
}
|
||||
|
||||
public String getType2() {
|
||||
return type2;
|
||||
}
|
||||
|
||||
public void setType2(String type2) {
|
||||
this.type2 = type2;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/21.
|
||||
*/
|
||||
|
||||
public class XfXcxmList extends DataSupport {
|
||||
|
||||
|
||||
/**
|
||||
* Rows : [{"xmid":"e202262940b147a3997abd76473a7646","id":"dbfcee97c583464cb28d9f1d1e19b393","xftype":"1","typename":"结果","type1":"正常","type2":"不正常"},{"xmid":"a0349df3eca44c7d8eafe39469bdddae","id":"f111c59a845342bdbce9f9dc0909d696","xftype":"2","typename":"结果","type1":"正常","type2":"不正常"},{"xmid":"1b179cac1cff41b4a4e9aa26f934660c","id":"ae4e5bb311c2498293593482e2aaf0eb","xftype":"3","typename":"门","type1":"正常","type2":"不正常"},{"xmid":"a0349df3eca44c7d8eafe39469bdddae","id":"8f8073765dfd466187a0ddc625e0172f","xftype":"2","typename":"结果2","type1":"正常2","type2":"不正常2"},{"xmid":"1b179cac1cff41b4a4e9aa26f934660c","id":"70fc834605994822bde12b34d7c97d58","xftype":"3","typename":"灯","type1":"正常","type2":"不正常"}]
|
||||
* Total : 5
|
||||
*/
|
||||
|
||||
private String Total;
|
||||
/**
|
||||
* xmid : e202262940b147a3997abd76473a7646
|
||||
* id : dbfcee97c583464cb28d9f1d1e19b393
|
||||
* xftype : 1
|
||||
* typename : 结果
|
||||
* type1 : 正常
|
||||
* type2 : 不正常
|
||||
*/
|
||||
|
||||
private List<XfXcxm> Rows;
|
||||
|
||||
public String getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(String Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<XfXcxm> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<XfXcxm> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/21.
|
||||
*/
|
||||
|
||||
public class XfXcxmjg extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String xfid;
|
||||
private String xmid;
|
||||
private String ssid;
|
||||
private String xftype;
|
||||
private String typename;
|
||||
private String type1;
|
||||
private String type2;
|
||||
private String jhid;
|
||||
private boolean jg;
|
||||
|
||||
public String getXfid() {
|
||||
return xfid;
|
||||
}
|
||||
|
||||
public void setXfid(String xfid) {
|
||||
this.xfid = xfid;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public boolean isJg() {
|
||||
return jg;
|
||||
}
|
||||
|
||||
public void setJg(boolean jg) {
|
||||
this.jg = jg;
|
||||
}
|
||||
|
||||
public String getXmid() {
|
||||
return xmid;
|
||||
}
|
||||
|
||||
public void setXmid(String xmid) {
|
||||
this.xmid = xmid;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSsid() {
|
||||
return ssid;
|
||||
}
|
||||
|
||||
public void setSsid(String ssid) {
|
||||
this.ssid = ssid;
|
||||
}
|
||||
|
||||
public String getXftype() {
|
||||
return xftype;
|
||||
}
|
||||
|
||||
public void setXftype(String xftype) {
|
||||
this.xftype = xftype;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
|
||||
public String getType1() {
|
||||
return type1;
|
||||
}
|
||||
|
||||
public void setType1(String type1) {
|
||||
this.type1 = type1;
|
||||
}
|
||||
|
||||
public String getType2() {
|
||||
return type2;
|
||||
}
|
||||
|
||||
public void setType2(String type2) {
|
||||
this.type2 = type2;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/11.
|
||||
*/
|
||||
|
||||
public class XwaqgcJh extends DataSupport {
|
||||
|
||||
/**
|
||||
* JHID : GCJH00000000001
|
||||
* GCRY : 210041
|
||||
* AREANAME : 油码头区域
|
||||
* AREACODE : MT03
|
||||
* WCZT :
|
||||
* ST : 2016-11-08 19:41:49
|
||||
* DQSJ : 2016-11-15 19:11:49
|
||||
*/
|
||||
|
||||
private String JHID;
|
||||
private String GCRY;
|
||||
private String AREANAME;
|
||||
private String AREACODE;
|
||||
private String WCZT;
|
||||
private String ST;
|
||||
private String DQSJ;
|
||||
private String JHMC;
|
||||
private boolean checked;
|
||||
|
||||
public boolean isChecked() {
|
||||
return checked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
this.checked = checked;
|
||||
}
|
||||
|
||||
public String getJHMC() {
|
||||
return JHMC;
|
||||
}
|
||||
|
||||
public void setJHMC(String JHMC) {
|
||||
this.JHMC = JHMC;
|
||||
}
|
||||
|
||||
public String getJHID() {
|
||||
return JHID;
|
||||
}
|
||||
|
||||
public void setJHID(String JHID) {
|
||||
this.JHID = JHID;
|
||||
}
|
||||
|
||||
public String getGCRY() {
|
||||
return GCRY;
|
||||
}
|
||||
|
||||
public void setGCRY(String GCRY) {
|
||||
this.GCRY = GCRY;
|
||||
}
|
||||
|
||||
public String getAREANAME() {
|
||||
return AREANAME;
|
||||
}
|
||||
|
||||
public void setAREANAME(String AREANAME) {
|
||||
this.AREANAME = AREANAME;
|
||||
}
|
||||
|
||||
public String getAREACODE() {
|
||||
return AREACODE;
|
||||
}
|
||||
|
||||
public void setAREACODE(String AREACODE) {
|
||||
this.AREACODE = AREACODE;
|
||||
}
|
||||
|
||||
public String getWCZT() {
|
||||
return WCZT;
|
||||
}
|
||||
|
||||
public void setWCZT(String WCZT) {
|
||||
this.WCZT = WCZT;
|
||||
}
|
||||
|
||||
public String getST() {
|
||||
return ST;
|
||||
}
|
||||
|
||||
public void setST(String ST) {
|
||||
this.ST = ST;
|
||||
}
|
||||
|
||||
public String getDQSJ() {
|
||||
return DQSJ;
|
||||
}
|
||||
|
||||
public void setDQSJ(String DQSJ) {
|
||||
this.DQSJ = DQSJ;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/12.
|
||||
*/
|
||||
|
||||
public class XwaqgcJhList {
|
||||
|
||||
|
||||
/**
|
||||
* Rows : [{"区域分组":[{"JHID":"GCJH00000000001","GCRY":"210041","AREANAME":"油码头区域","AREACODE":"MT03","WCZT":"","ST":"2016-11-08 19:41:49","DQSJ":"2016-11-15 19:11:49"}]}]
|
||||
* Total : 1
|
||||
*/
|
||||
|
||||
private int Total;
|
||||
private List<XwaqgcJh> Rows;
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<XwaqgcJh> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<XwaqgcJh> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/10.
|
||||
*/
|
||||
|
||||
public class XwaqgcJs extends DataSupport {
|
||||
|
||||
private String jhid;
|
||||
private String jsr;
|
||||
private String areacode;
|
||||
private String xwzt;
|
||||
private String kndz;
|
||||
private String jzcs;
|
||||
private String itemid;
|
||||
private String path;
|
||||
private String xwjljsid;
|
||||
|
||||
public String getXwjljsid() {
|
||||
return xwjljsid;
|
||||
}
|
||||
|
||||
public void setXwjljsid(String xwjljsid) {
|
||||
this.xwjljsid = xwjljsid;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getItemid() {
|
||||
return itemid;
|
||||
}
|
||||
|
||||
public void setItemid(String itemid) {
|
||||
this.itemid = itemid;
|
||||
}
|
||||
|
||||
public String getJhid() {
|
||||
return jhid;
|
||||
}
|
||||
|
||||
public void setJhid(String jhid) {
|
||||
this.jhid = jhid;
|
||||
}
|
||||
|
||||
public String getJsr() {
|
||||
return jsr;
|
||||
}
|
||||
|
||||
public void setJsr(String jsr) {
|
||||
this.jsr = jsr;
|
||||
}
|
||||
|
||||
public String getAreacode() {
|
||||
return areacode;
|
||||
}
|
||||
|
||||
public void setAreacode(String areacode) {
|
||||
this.areacode = areacode;
|
||||
}
|
||||
|
||||
public String getXwzt() {
|
||||
return xwzt;
|
||||
}
|
||||
|
||||
public void setXwzt(String xwzt) {
|
||||
this.xwzt = xwzt;
|
||||
}
|
||||
|
||||
public String getKndz() {
|
||||
return kndz;
|
||||
}
|
||||
|
||||
public void setKndz(String kndz) {
|
||||
this.kndz = kndz;
|
||||
}
|
||||
|
||||
public String getJzcs() {
|
||||
return jzcs;
|
||||
}
|
||||
|
||||
public void setJzcs(String jzcs) {
|
||||
this.jzcs = jzcs;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by gzw on 2016/11/1.
|
||||
*/
|
||||
|
||||
public class YhpcInfo extends DataSupport {
|
||||
|
||||
private String NR;//内容
|
||||
private String WT;//问题
|
||||
private String AREACODE;//区域编号
|
||||
private String FXR;//发现人
|
||||
private String FXSJ;//发现时间
|
||||
private String GUID;
|
||||
|
||||
public String getGUID() {
|
||||
return GUID;
|
||||
}
|
||||
|
||||
public void setGUID(String GUID) {
|
||||
this.GUID = GUID;
|
||||
}
|
||||
|
||||
public String getNR() {
|
||||
return NR;
|
||||
}
|
||||
|
||||
public void setNR(String NR) {
|
||||
this.NR = NR;
|
||||
}
|
||||
|
||||
public String getWT() {
|
||||
return WT;
|
||||
}
|
||||
|
||||
public void setWT(String WT) {
|
||||
this.WT = WT;
|
||||
}
|
||||
|
||||
public String getAREACODE() {
|
||||
return AREACODE;
|
||||
}
|
||||
|
||||
public void setAREACODE(String AREACODE) {
|
||||
this.AREACODE = AREACODE;
|
||||
}
|
||||
|
||||
public String getFXR() {
|
||||
return FXR;
|
||||
}
|
||||
|
||||
public void setFXR(String FXR) {
|
||||
this.FXR = FXR;
|
||||
}
|
||||
|
||||
public String getFXSJ() {
|
||||
return FXSJ;
|
||||
}
|
||||
|
||||
public void setFXSJ(String FXSJ) {
|
||||
this.FXSJ = FXSJ;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by JACKYGUO on 2016/12/22.
|
||||
*/
|
||||
|
||||
public class Yhpctp extends DataSupport {
|
||||
|
||||
private String guid;
|
||||
private String path;
|
||||
|
||||
public String getGuid() {
|
||||
return guid;
|
||||
}
|
||||
|
||||
public void setGuid(String guid) {
|
||||
this.guid = guid;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import org.litepal.crud.DataSupport;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/29.
|
||||
*/
|
||||
|
||||
public class Zy extends DataSupport {
|
||||
|
||||
private int id;
|
||||
private String ZYID;
|
||||
private String VALUE;
|
||||
private String XXMS;
|
||||
|
||||
public String getZYID() {
|
||||
return ZYID;
|
||||
}
|
||||
|
||||
public void setZYID(String ZYID) {
|
||||
this.ZYID = ZYID;
|
||||
}
|
||||
|
||||
public String getVALUE() {
|
||||
return VALUE;
|
||||
}
|
||||
|
||||
public void setVALUE(String VALUE) {
|
||||
this.VALUE = VALUE;
|
||||
}
|
||||
|
||||
public String getXXMS() {
|
||||
return XXMS;
|
||||
}
|
||||
|
||||
public void setXXMS(String XXMS) {
|
||||
this.XXMS = XXMS;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.rehome.zhdcoa.DBModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Administrator on 2016/10/29.
|
||||
*/
|
||||
|
||||
public class ZyInfo {
|
||||
|
||||
|
||||
/**
|
||||
* Rows : [{"ID":"2086","VALUE":"MIS","XXMS":"信息中心"},{"ID":"2083","VALUE":"电气","XXMS":"电气分部"},{"ID":"2079","VALUE":"辅助维护","XXMS":"设备部管理室"},{"ID":"2070","VALUE":"工程机械","XXMS":"燃料推扒班"},{"ID":"2080","VALUE":"环化","XXMS":"环化分部"},{"ID":"2084","VALUE":"机械","XXMS":"机械分部"},{"ID":"2076","VALUE":"码头","XXMS":"码头分部"},{"ID":"2075","VALUE":"其他","XXMS":"其他"},{"ID":"2085","VALUE":"燃料","XXMS":"燃料点检班"},{"ID":"2082","VALUE":"热控","XXMS":"热控分部"},{"ID":"2088","VALUE":"生技","XXMS":"生技分部"},{"ID":"2081","VALUE":"输煤","XXMS":"输煤分部"},{"ID":"2074","VALUE":"土建","XXMS":"土建专业"},{"ID":"2087","VALUE":"运行","XXMS":"运行部"},{"ID":"2071","VALUE":"运行A值","XXMS":"运行A值"},{"ID":"2072","VALUE":"运行B值","XXMS":"运行B值"},{"ID":"2073","VALUE":"运行C值","XXMS":"运行C值"},{"ID":"2078","VALUE":"运行D值","XXMS":"运行D值"},{"ID":"2077","VALUE":"运行E值","XXMS":"运行E值"}]
|
||||
* Total : 19
|
||||
*/
|
||||
|
||||
private int Total;
|
||||
/**
|
||||
* ID : 2086
|
||||
* VALUE : MIS
|
||||
* XXMS : 信息中心
|
||||
*/
|
||||
|
||||
private List<Zy> Rows;
|
||||
|
||||
public int getTotal() {
|
||||
return Total;
|
||||
}
|
||||
|
||||
public void setTotal(int Total) {
|
||||
this.Total = Total;
|
||||
}
|
||||
|
||||
public List<Zy> getRows() {
|
||||
return Rows;
|
||||
}
|
||||
|
||||
public void setRows(List<Zy> Rows) {
|
||||
this.Rows = Rows;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
/**
|
||||
* author : Android 轮子哥
|
||||
* github : https://github.com/getActivity/EasyHttp
|
||||
* time : 2019/05/19
|
||||
* desc : 统一接口数据结构
|
||||
*/
|
||||
public class HttpData<T> {
|
||||
|
||||
/** 返回码 */
|
||||
private int errorCode;
|
||||
/** 提示语 */
|
||||
private String errorMsg;
|
||||
/** 数据 */
|
||||
private T data;
|
||||
|
||||
public int getCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
import com.hjq.http.config.IRequestServer;
|
||||
|
||||
/**
|
||||
* author : Android 轮子哥
|
||||
* github : https://github.com/getActivity/EasyHttp
|
||||
* time : 2019/05/19
|
||||
* desc : 正式环境
|
||||
*/
|
||||
public class ReleaseServer implements IRequestServer {
|
||||
|
||||
@Override
|
||||
public String getHost() {
|
||||
return "https://www.wanandroid.com/";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
import com.hjq.http.config.IRequestApi;
|
||||
|
||||
/**
|
||||
* author : Android 轮子哥
|
||||
* github : https://github.com/getActivity/EasyHttp
|
||||
* time : 2019/11/18
|
||||
* desc : 按照作者昵称搜索文章
|
||||
*/
|
||||
public final class SearchAuthorApi implements IRequestApi {
|
||||
|
||||
@Override
|
||||
public String getApi() {
|
||||
return "article/list/0/json";
|
||||
}
|
||||
|
||||
/** 作者昵称,不支持模糊匹配 */
|
||||
private String author;
|
||||
|
||||
public SearchAuthorApi setAuthor(String author) {
|
||||
this.author = author;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@
|
||||
package com.rehome.zhdcoa;
|
||||
|
||||
/**
|
||||
* author : Android 轮子哥
|
||||
* github : https://github.com/getActivity/EasyHttp
|
||||
* time : 2019/05/19
|
||||
* desc : 测试环境
|
||||
*/
|
||||
public class TestServer extends ReleaseServer {
|
||||
|
||||
@Override
|
||||
public String getHost() {
|
||||
return "https://www.wanandroid.com/";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.AbbjBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class AbbjAdapter extends CommonAdapter<AbbjBean.DataBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public AbbjAdapter(Context context, List<AbbjBean.DataBean> datas) {
|
||||
super(context, R.layout.abbj_item, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, AbbjBean.DataBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setText(R.id.tv_jhmc, item.getJHMC());
|
||||
viewHolder.setText(R.id.tv_tsrm, item.getTSR_NAME());
|
||||
viewHolder.setText(R.id.tv_tsdh, item.getTS_DH());
|
||||
viewHolder.setText(R.id.tv_bjnr, item.getTS_SJ());
|
||||
viewHolder.setText(R.id.tv_tsnr, item.getTS_NR());
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,271 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ClcrzcxBean;
|
||||
import com.rehome.zhdcoa.weiget.AuditDialog;
|
||||
import com.rehome.zhdcoa.weiget.ListDialog;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AddClcrzAdapter extends CommonAdapter<ClcrzcxBean.RowsBean.OrderlistBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
private final List<ClcrzcxBean.RowsBean.OrderlistBean> datas;
|
||||
|
||||
private final boolean isAudit;
|
||||
|
||||
public AddClcrzAdapter(Context context, List<ClcrzcxBean.RowsBean.OrderlistBean> datas, boolean isAudit) {
|
||||
super(context, R.layout.item_addcp, datas);
|
||||
this.context = context;
|
||||
this.datas = datas;
|
||||
this.isAudit = isAudit;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, final ClcrzcxBean.RowsBean.OrderlistBean item, final int position) {
|
||||
|
||||
viewHolder.setOnClickListener(R.id.btn_delcpinfo, new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
AuditDialog dialog = new AuditDialog(context, "你确定删除吗?", new AuditDialog.AuditDialogListener() {
|
||||
@Override
|
||||
public void confirm() {
|
||||
datas.remove(position);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancel() {
|
||||
|
||||
}
|
||||
});
|
||||
dialog.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
EditText et_cphm = viewHolder.getView(R.id.et_cphm);
|
||||
EditText et_xszh = viewHolder.getView(R.id.et_xszh);
|
||||
EditText et_sjxm = viewHolder.getView(R.id.et_sjxm);
|
||||
EditText et_jszh = viewHolder.getView(R.id.et_jszh);
|
||||
|
||||
final TextView tx_cllx = viewHolder.getView(R.id.tx_cllx);
|
||||
EditText et_cllxqt = viewHolder.getView(R.id.et_cllxqt);
|
||||
final LinearLayout ll_cllxqt = viewHolder.getView(R.id.ll_cllxqt);
|
||||
|
||||
if (isAudit) {
|
||||
et_cphm.setEnabled(false);
|
||||
et_xszh.setEnabled(false);
|
||||
et_sjxm.setEnabled(false);
|
||||
et_jszh.setEnabled(false);
|
||||
et_cllxqt.setEnabled(false);
|
||||
tx_cllx.setEnabled(false);
|
||||
viewHolder.setVisible(R.id.btn_delcpinfo, false);
|
||||
viewHolder.setVisible(R.id.ll_cllxqt, false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
tx_cllx.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
List<String> listdatas = new ArrayList<String>();
|
||||
listdatas.add("小汽车/皮卡");
|
||||
listdatas.add("货车(四轮)");
|
||||
listdatas.add("货车(四轮以上)");
|
||||
listdatas.add("工程车");
|
||||
listdatas.add("其他");
|
||||
ListDialog dialog = new ListDialog(context, listdatas, new ListDialog.ListDialogListener() {
|
||||
@Override
|
||||
public void selectTime(String time, int index) {
|
||||
tx_cllx.setText(time);
|
||||
if (time.equals("其他")) {
|
||||
ll_cllxqt.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
ll_cllxqt.setVisibility(View.GONE);
|
||||
}
|
||||
datas.get(position).setCllx_name(time);
|
||||
switch (index) {
|
||||
case 0:
|
||||
datas.get(position).setCllx("yzgj2");
|
||||
break;
|
||||
case 1:
|
||||
datas.get(position).setCllx("yzgj3");
|
||||
break;
|
||||
case 2:
|
||||
datas.get(position).setCllx("yzgj4");
|
||||
break;
|
||||
case 3:
|
||||
datas.get(position).setCllx("yzgj5");
|
||||
break;
|
||||
case 4:
|
||||
datas.get(position).setCllx("yzgj6");
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
dialog.setTvTitle("请选择车辆类型");
|
||||
dialog.show();
|
||||
}
|
||||
});
|
||||
|
||||
et_cphm.clearFocus();
|
||||
et_xszh.clearFocus();
|
||||
et_sjxm.clearFocus();
|
||||
et_jszh.clearFocus();
|
||||
et_cllxqt.clearFocus();
|
||||
|
||||
if (et_cphm.getTag() instanceof TextWatcher) {
|
||||
et_cphm.removeTextChangedListener((TextWatcher) et_cphm.getTag());
|
||||
}
|
||||
if (et_xszh.getTag() instanceof TextWatcher) {
|
||||
et_xszh.removeTextChangedListener((TextWatcher) et_xszh.getTag());
|
||||
}
|
||||
if (et_sjxm.getTag() instanceof TextWatcher) {
|
||||
et_sjxm.removeTextChangedListener((TextWatcher) et_sjxm.getTag());
|
||||
}
|
||||
if (et_jszh.getTag() instanceof TextWatcher) {
|
||||
et_jszh.removeTextChangedListener((TextWatcher) et_jszh.getTag());
|
||||
}
|
||||
if (et_cllxqt.getTag() instanceof TextWatcher) {
|
||||
et_cllxqt.removeTextChangedListener((TextWatcher) et_cllxqt.getTag());
|
||||
}
|
||||
|
||||
|
||||
if (!TextUtils.isEmpty(datas.get(position).getCphm())) {
|
||||
et_cphm.setText(datas.get(position).getCphm());
|
||||
} else {
|
||||
et_cphm.setText("");
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(datas.get(position).getClxsz())) {
|
||||
et_xszh.setText(datas.get(position).getClxsz());
|
||||
} else {
|
||||
et_xszh.setText("");
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(datas.get(position).getSjxm())) {
|
||||
et_sjxm.setText(datas.get(position).getSjxm());
|
||||
} else {
|
||||
et_sjxm.setText("");
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(datas.get(position).getJszh())) {
|
||||
et_jszh.setText(datas.get(position).getJszh());
|
||||
} else {
|
||||
et_jszh.setText("");
|
||||
}
|
||||
if (!TextUtils.isEmpty(datas.get(position).getQt())) {
|
||||
et_cllxqt.setText(datas.get(position).getQt());
|
||||
} else {
|
||||
et_cllxqt.setText("");
|
||||
}
|
||||
if (!TextUtils.isEmpty(datas.get(position).getCllx_name())) {
|
||||
tx_cllx.setText(datas.get(position).getCllx_name());
|
||||
} else {
|
||||
tx_cllx.setText("");
|
||||
}
|
||||
|
||||
final TextWatcher cphmwatcher = new MyTextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChange(String s) {
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
item.setCphm(null);
|
||||
} else {
|
||||
item.setCphm(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
final TextWatcher xszwatcher = new MyTextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChange(String s) {
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
item.setClxsz(null);
|
||||
} else {
|
||||
item.setClxsz(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
final TextWatcher sjxmwatcher = new MyTextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChange(String s) {
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
item.setSjxm(null);
|
||||
} else {
|
||||
item.setSjxm(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
final TextWatcher jszhwatcher = new MyTextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChange(String s) {
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
item.setJszh(null);
|
||||
} else {
|
||||
item.setJszh(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
final TextWatcher cllxqtwatcher = new MyTextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChange(String s) {
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
item.setQt(null);
|
||||
} else {
|
||||
item.setQt(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
et_cphm.addTextChangedListener(cphmwatcher);
|
||||
et_cphm.setTag(cphmwatcher);
|
||||
|
||||
et_xszh.addTextChangedListener(xszwatcher);
|
||||
et_xszh.setTag(xszwatcher);
|
||||
|
||||
et_sjxm.addTextChangedListener(sjxmwatcher);
|
||||
et_sjxm.setTag(sjxmwatcher);
|
||||
|
||||
et_jszh.addTextChangedListener(jszhwatcher);
|
||||
et_jszh.setTag(jszhwatcher);
|
||||
|
||||
et_cllxqt.addTextChangedListener(cllxqtwatcher);
|
||||
et_cllxqt.setTag(cllxqtwatcher);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public abstract class MyTextWatcher implements TextWatcher {
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
beforeTextChange(s.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
}
|
||||
|
||||
public abstract void beforeTextChange(String s);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.DBModel.Ajhjh;
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.zhy.autolayout.utils.AutoUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 下载计划适配器
|
||||
*/
|
||||
public class AjhXzjhAdapter extends BaseAdapter {
|
||||
|
||||
private final Context context;
|
||||
private final List<Ajhjh> list;
|
||||
private final CallBack mCallBack;
|
||||
|
||||
public AjhXzjhAdapter(Context context, List<Ajhjh> list, CallBack mCallBack) {
|
||||
this.context = context;
|
||||
this.list = list;
|
||||
this.mCallBack = mCallBack;
|
||||
}
|
||||
|
||||
public interface CallBack {
|
||||
void Click(View view);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCount() {
|
||||
return list.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getItem(int i) {
|
||||
return list.get(i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getItemId(int i) {
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getView(int i, View view, ViewGroup viewGroup) {
|
||||
|
||||
ViewHolder holder;
|
||||
if (view == null) {
|
||||
holder = new ViewHolder();
|
||||
view = LayoutInflater.from(context).inflate(R.layout.xzjh_item, viewGroup, false);
|
||||
holder.cb = view.findViewById(R.id.cb);
|
||||
holder.tv_jhlx = view.findViewById(R.id.tv_jhlx);
|
||||
holder.tv_jhmc = view.findViewById(R.id.tv_jhmc);
|
||||
holder.tv_xh = view.findViewById(R.id.tv_xh);
|
||||
view.setTag(holder);
|
||||
AutoUtils.autoSize(view);
|
||||
} else {
|
||||
holder = (ViewHolder) view.getTag();
|
||||
}
|
||||
holder.cb.setChecked(list.get(i).isChecked());
|
||||
holder.tv_jhlx.setText(list.get(i).getDQSJ());
|
||||
holder.tv_jhmc.setText(list.get(i).getJHMC());
|
||||
holder.tv_xh.setText(i + 1 + "");
|
||||
holder.cb.setTag(i);
|
||||
holder.cb.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
mCallBack.Click(view);
|
||||
}
|
||||
});
|
||||
return view;
|
||||
}
|
||||
|
||||
static class ViewHolder {
|
||||
CheckBox cb;
|
||||
TextView tv_xh;
|
||||
TextView tv_jhmc;
|
||||
TextView tv_jhlx;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListConferenceBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/5/17.
|
||||
* 会议申请列表的adapter
|
||||
*/
|
||||
|
||||
public class ApplyConferenceAdapter extends CommonAdapter<ApplyListConferenceBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyConferenceAdapter(Context context, List<ApplyListConferenceBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_apply_conference, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListConferenceBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getProposertime());
|
||||
viewHolder.setText(R.id.tv_start_time, item.getConferencehykssj());
|
||||
viewHolder.setText(R.id.tv_conferencehysmc, item.getConferencehysmc());
|
||||
viewHolder.setText(R.id.tv_conferencehynr,item.getConferencehynr());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.Contans;
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/5/17.
|
||||
* <p>
|
||||
* 申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyDinnerListAdapter extends CommonAdapter<ApplyListBean.ApplyList> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyDinnerListAdapter(Context context, List<ApplyListBean.ApplyList> datas) {
|
||||
super(context, R.layout.item_dinner_apply, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListBean.ApplyList item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
|
||||
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
|
||||
|
||||
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getProposertime());
|
||||
viewHolder.setText(R.id.tv_sy, item.getDescription());
|
||||
viewHolder.setText(R.id.tv_ycdw, item.getDinnerunit());
|
||||
|
||||
|
||||
TextView textView = viewHolder.getView(R.id.tv_applyType);
|
||||
|
||||
switch (item.getListcode()) {
|
||||
case Contans.LISTCODE.APPLYDINNER:
|
||||
textView.setText("用餐申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYVEHICLE:
|
||||
textView.setText("用车申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYCONFERENCE:
|
||||
textView.setText("会议室申请");
|
||||
break;
|
||||
case Contans.LISTCODE.RECEIVEVISIT:
|
||||
textView.setText("接待来访申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYORDER:
|
||||
textView.setText("外卖申请");
|
||||
break;
|
||||
case Contans.LISTCODE.ORDINARYVISIT:
|
||||
textView.setText("普通来访申请");
|
||||
break;
|
||||
case Contans.LISTCODE.MYTASK:
|
||||
|
||||
textView.setText("本人任务");
|
||||
|
||||
// viewHolder.setVisible(R.id.tv_status, false);
|
||||
|
||||
if (item.getMytaskwc().equals("0")){
|
||||
|
||||
viewHolder.setText(R.id.tv_status,"未完成");
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.red));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus2);
|
||||
|
||||
|
||||
}else {
|
||||
|
||||
viewHolder.setText(R.id.tv_status,"已完成");
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.green));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYSUPPLIES:
|
||||
textView.setText("办公用品申请");
|
||||
break;
|
||||
case Contans.LISTCODE.OTHERTASK:
|
||||
textView.setText("他人任务");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListVehicleBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/7/6.
|
||||
* 司机接单列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyDriverAdapter extends CommonAdapter<ApplyListVehicleBean.RowsBean> {
|
||||
|
||||
public static final int TAG_JD = 1;
|
||||
public static final int TAG_CF = 2;
|
||||
public static final int TAG_DD = 3;
|
||||
|
||||
public TextView tvJd;
|
||||
|
||||
public TextView tvDd;
|
||||
|
||||
public TextView tvCf;
|
||||
|
||||
private final Context context;
|
||||
|
||||
private final ApplyDriverAdapterListener listener;
|
||||
|
||||
|
||||
public ApplyDriverAdapter(Context context, List<ApplyListVehicleBean.RowsBean> datas, ApplyDriverAdapterListener listener) {
|
||||
super(context, R.layout.item_driver, datas);
|
||||
this.context = context;
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, final ApplyListVehicleBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
tvDd = viewHolder.getView(R.id.tv_dd);
|
||||
tvCf = viewHolder.getView(R.id.tv_cf);
|
||||
tvJd = viewHolder.getView(R.id.tv_jd);
|
||||
|
||||
|
||||
tvJd.setText(item.getTitle1());
|
||||
tvDd.setText(item.getTitle3());
|
||||
tvCf.setText(item.getTitle2());
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// if(item.getTitle1().equals("已接单"))
|
||||
// {
|
||||
// tvJd.setText("已接单");
|
||||
// tvJd.setTextColor(Color.GRAY);
|
||||
// tvJd.setEnabled(false);
|
||||
//
|
||||
// }
|
||||
//
|
||||
// else
|
||||
// {
|
||||
// tvJd.setText("确认接单");
|
||||
// tvJd.setTextColor(Color.parseColor("#4fa5d5"));
|
||||
// tvJd.setEnabled(true);
|
||||
// }
|
||||
//
|
||||
|
||||
|
||||
tvDd.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener != null) {
|
||||
listener.onClick(TAG_DD, item.getListid(), "到达乘车地点");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tvCf.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener != null) {
|
||||
listener.onClick(TAG_CF, item.getListid(), "出发");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tvJd.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener != null) {
|
||||
listener.onClick(TAG_JD, item.getListid(), "接单");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
viewHolder.setText(R.id.tv_time, item.getVehiclecfsj());
|
||||
viewHolder.setText(R.id.tv_person_num, item.getVehicleccrs());
|
||||
viewHolder.setText(R.id.tv_ccdd, item.getVehicleqwdd());
|
||||
viewHolder.setText(R.id.tv_mdd, item.getVehiclemdd());
|
||||
}
|
||||
|
||||
public interface ApplyDriverAdapterListener {
|
||||
void onClick(int tag, String listid, String tagName);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.Contans;
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/5/17.
|
||||
* <p>
|
||||
* 申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyListAdapter extends CommonAdapter<ApplyListBean.ApplyList> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyListAdapter(Context context, List<ApplyListBean.ApplyList> datas) {
|
||||
super(context, R.layout.item_apply, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListBean.ApplyList item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
|
||||
// String itemname = item.getItemname();
|
||||
// if (itemname.equals("已录入")) {
|
||||
//
|
||||
// if (item.getIstj().equals("1")) {
|
||||
// itemname = "已提交";
|
||||
// }
|
||||
// }
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
|
||||
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getProposertime());
|
||||
viewHolder.setText(R.id.tv_sy, item.getDescription());
|
||||
TextView textView = viewHolder.getView(R.id.tv_applyType);
|
||||
|
||||
switch (item.getListcode()) {
|
||||
case Contans.LISTCODE.APPLYDINNER:
|
||||
textView.setText("用餐申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYVEHICLE:
|
||||
textView.setText("用车申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYCONFERENCE:
|
||||
textView.setText("会议室申请");
|
||||
break;
|
||||
case Contans.LISTCODE.RECEIVEVISIT:
|
||||
textView.setText("接待来访申请");
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYORDER:
|
||||
textView.setText("外卖申请");
|
||||
break;
|
||||
case Contans.LISTCODE.ORDINARYVISIT:
|
||||
textView.setText("普通来访申请");
|
||||
break;
|
||||
case Contans.LISTCODE.MYTASK:
|
||||
|
||||
textView.setText("本人任务");
|
||||
|
||||
// viewHolder.setVisible(R.id.tv_status, false);
|
||||
|
||||
if (item.getMytaskwc().equals("0")) {
|
||||
|
||||
viewHolder.setText(R.id.tv_status, "未完成");
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.red));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus2);
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
viewHolder.setText(R.id.tv_status, "已完成");
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.Sgreen));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus4);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
case Contans.LISTCODE.APPLYSUPPLIES:
|
||||
textView.setText("办公用品申请");
|
||||
break;
|
||||
case Contans.LISTCODE.OTHERTASK:
|
||||
textView.setText("他人任务");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyOrdinaryVisitBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/5/17.
|
||||
* 普通来访申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyOrdinaryVisitAdapter extends CommonAdapter<ApplyOrdinaryVisitBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyOrdinaryVisitAdapter(Context context, List<ApplyOrdinaryVisitBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_apply_ordinary_visit, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyOrdinaryVisitBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
//
|
||||
// String itemname = item.getItemname();
|
||||
// if (itemname.equals("已录入")) {
|
||||
//
|
||||
// if (item.getIstj().equals("1")) {
|
||||
// itemname = "已提交";
|
||||
// }
|
||||
// }
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
viewHolder.setText(R.id.tv_visitordate, item.getVisitordate());
|
||||
viewHolder.setText(R.id.tv_visitorunit, item.getVisitorunit());
|
||||
viewHolder.setText(R.id.tv_proposername, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_receiverdepartment, item.getReceiverdepartment());
|
||||
viewHolder.setText(R.id.tv_visitorfollowname, item.getVisitorfollowname());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListOtherTaskBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/7/6.
|
||||
* 他人任务申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyOtherTaskAdapter extends CommonAdapter<ApplyListOtherTaskBean.RowsBean> {
|
||||
|
||||
public ApplyOtherTaskAdapter(Context context, List<ApplyListOtherTaskBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_other_task, datas);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListOtherTaskBean.RowsBean item, int position) {
|
||||
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_task, item.getOthertasknr());
|
||||
viewHolder.setText(R.id.tv_start_time, item.getOthertaskstime());
|
||||
viewHolder.setText(R.id.tv_end_time, item.getOthertasketime());
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListReceiveBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/5/17.
|
||||
* 接待来访申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyReceiveAdapter extends CommonAdapter<ApplyListReceiveBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyReceiveAdapter(Context context, List<ApplyListReceiveBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_apply_receive, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListReceiveBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getProposertime());
|
||||
viewHolder.setText(R.id.tv_lfunit, item.getLfunit());
|
||||
viewHolder.setText(R.id.tv_visitingdate, item.getVisitingdate());
|
||||
viewHolder.setText(R.id.tv_visitingzyry, item.getVisitingzyry());
|
||||
viewHolder.setText(R.id.tv_visitingsy, item.getVisitingsy());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.SuppliesBean;
|
||||
import com.rehome.zhdcoa.weiget.AuditDialog;
|
||||
import com.rehome.zhdcoa.weiget.NumAddSubView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/3.
|
||||
* 办公领用新增adapter
|
||||
*/
|
||||
|
||||
public class ApplySuppliesAdapter extends CommonAdapter<SuppliesBean.DataRowsBean.OrderlistBean> {
|
||||
|
||||
private final List<SuppliesBean.DataRowsBean.OrderlistBean> datas;
|
||||
|
||||
private final Context context;
|
||||
|
||||
private final ApplySuppliesAdapterListener listener;
|
||||
|
||||
public ApplySuppliesAdapter(Context context, List<SuppliesBean.DataRowsBean.OrderlistBean> datas, ApplySuppliesAdapterListener listener) {
|
||||
super(context, R.layout.item_apply_supplies, datas);
|
||||
this.datas = datas;
|
||||
this.context = context;
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, final SuppliesBean.DataRowsBean.OrderlistBean item, final int position) {
|
||||
|
||||
NumAddSubView numAddSubView = viewHolder.getView(R.id.numAddSubView);
|
||||
|
||||
final TextView tvName = viewHolder.getView(R.id.tv_name);
|
||||
|
||||
if (!TextUtils.isEmpty(item.getRelatedid())) {
|
||||
item.setSavetype("2");
|
||||
}
|
||||
|
||||
tvName.setText(item.getApplySuppliesMc());
|
||||
|
||||
tvName.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener != null) {
|
||||
listener.selectSupplies(position);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (TextUtils.isEmpty(item.getApplySuppliesSL())) {
|
||||
numAddSubView.setNum("0");
|
||||
} else {
|
||||
numAddSubView.setNum(item.getApplySuppliesSL());
|
||||
}
|
||||
|
||||
numAddSubView.setListener(new NumAddSubView.NumChangeListener() {
|
||||
@Override
|
||||
public void numChange(String num) {
|
||||
item.setApplySuppliesSL(num);
|
||||
tvName.setText(item.getApplySuppliesMc() + " X " + num);
|
||||
}
|
||||
});
|
||||
|
||||
viewHolder.setOnClickListener(R.id.ib_del, new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
AuditDialog dialog = new AuditDialog(context, "你确定删除吗?", new AuditDialog.AuditDialogListener() {
|
||||
@Override
|
||||
public void confirm() {
|
||||
datas.remove(position);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancel() {
|
||||
|
||||
}
|
||||
});
|
||||
dialog.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public interface ApplySuppliesAdapterListener {
|
||||
void selectSupplies(int position);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.SuppliesBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/3.
|
||||
* 办公领用新增adapter
|
||||
*/
|
||||
|
||||
public class ApplySuppliesAdapter1 extends CommonAdapter<SuppliesBean.DataRowsBean.OrderlistBean> {
|
||||
|
||||
private final List<SuppliesBean.DataRowsBean.OrderlistBean> datas;
|
||||
|
||||
private final Context context;
|
||||
|
||||
private final ApplySuppliesAdapterListener listener;
|
||||
|
||||
public ApplySuppliesAdapter1(Context context, List<SuppliesBean.DataRowsBean.OrderlistBean> datas, ApplySuppliesAdapterListener listener) {
|
||||
super(context, R.layout.item_apply_supplies1, datas);
|
||||
this.datas = datas;
|
||||
this.context = context;
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, final SuppliesBean.DataRowsBean.OrderlistBean item, final int position) {
|
||||
|
||||
|
||||
TextView tv = viewHolder.getView(R.id.tv_name);
|
||||
|
||||
tv.setText(item.getApplySuppliesMc() + " X " + item.getApplySuppliesSL());
|
||||
|
||||
}
|
||||
|
||||
public interface ApplySuppliesAdapterListener {
|
||||
void selectSupplies(int position);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListTakeOutBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/7/6.
|
||||
* 送餐申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyTakeOutAdapter extends CommonAdapter<ApplyListTakeOutBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyTakeOutAdapter(Context context, List<ApplyListTakeOutBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_take_out_list, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListTakeOutBean.RowsBean item, int position) {
|
||||
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status, context.getResources().getColor(R.color.textstatus1));
|
||||
viewHolder.setBackgroundRes(R.id.tv_status, R.drawable.textstatus1);
|
||||
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getApplyordersj());
|
||||
viewHolder.setText(R.id.tv_address, item.getApplyorderadress());
|
||||
viewHolder.setText(R.id.tv_reason, item.getApplyorderscyy());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListTakeOutBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/7/6.
|
||||
* 送餐申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyTakeOutAdapter1 extends CommonAdapter<ApplyListTakeOutBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
private final ApplyTakeOutAdapter1Listener listener;
|
||||
|
||||
public TextView text_jd;
|
||||
|
||||
public ApplyTakeOutAdapter1(Context context, List<ApplyListTakeOutBean.RowsBean> datas, ApplyTakeOutAdapter1Listener listener) {
|
||||
super(context, R.layout.item_take_out_list1, datas);
|
||||
this.context = context;
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, final ApplyListTakeOutBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getApplyordersj());
|
||||
viewHolder.setText(R.id.tv_address, item.getApplyorderadress());
|
||||
viewHolder.setText(R.id.tv_reason, item.getApplyorderscyy());
|
||||
viewHolder.setText(R.id.tv_tclx, item.getApplyordertcxz());
|
||||
|
||||
|
||||
text_jd = viewHolder.getView(R.id.tv_jd);
|
||||
|
||||
text_jd.setText(item.getItemname());
|
||||
|
||||
if (item.getItemname().equals("已接单")) {
|
||||
|
||||
text_jd.setTextColor(Color.parseColor("#C7C7C7"));
|
||||
|
||||
} else if (item.getItemname().equals("待接单")) {
|
||||
|
||||
text_jd.setTextColor(Color.parseColor("#1C86EE"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
viewHolder.setOnClickListener(R.id.tv_jd, new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
if (item.getItemname().equals("待接单")) {
|
||||
|
||||
if (listener != null) {
|
||||
listener.onClick(item.getListid());
|
||||
}
|
||||
} else {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
public interface ApplyTakeOutAdapter1Listener {
|
||||
void onClick(String listid);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyTravelListBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/6.
|
||||
* 出差申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyTravelAdapter extends CommonAdapter<ApplyTravelListBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyTravelAdapter(Context context, List<ApplyTravelListBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_travel, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyTravelListBean.RowsBean item, int position) {
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_leave_type, item.getTraveladdress());
|
||||
viewHolder.setText(R.id.tv_leave_day, item.getTraveldays());
|
||||
viewHolder.setText(R.id.tv_leave_sy, item.getDescription());
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.ApplyListVehicleBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/7/6.
|
||||
* 用车申请列表adapter
|
||||
*/
|
||||
|
||||
public class ApplyVehicleAdapter extends CommonAdapter<ApplyListVehicleBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public ApplyVehicleAdapter(Context context, List<ApplyListVehicleBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_vehicle, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, ApplyListVehicleBean.RowsBean item, int position) {
|
||||
|
||||
|
||||
if ((position + 1) % 2 == 0) {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.itemColor));
|
||||
} else {
|
||||
viewHolder.setBackgroundColor(R.id.ll, context.getResources().getColor(R.color.white));
|
||||
}
|
||||
|
||||
viewHolder.setText(R.id.tv_status, item.getItemname());
|
||||
viewHolder.setText(R.id.tv_name, item.getProposername());
|
||||
viewHolder.setText(R.id.tv_time, item.getVehiclecfsj());
|
||||
viewHolder.setText(R.id.tv_person_num, item.getVehicleccrs());
|
||||
viewHolder.setText(R.id.tv_mdd, item.getVehiclemdd());
|
||||
|
||||
|
||||
if (item.getItemname().equals("审批中")){
|
||||
viewHolder.setText(R.id.tv_yczt, "待审批");
|
||||
}else {
|
||||
if (item.getIsjs().equals("1")){
|
||||
viewHolder.setText(R.id.tv_yczt, "结束用车");
|
||||
}else {
|
||||
viewHolder.setText(R.id.tv_yczt, "用车中");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.AttendanceCheckBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/30.
|
||||
* 考勤自助查询列表adapter
|
||||
*/
|
||||
|
||||
public class AttendanceAdapter extends CommonAdapter<AttendanceCheckBean.RowsBean> {
|
||||
|
||||
private final Context context;
|
||||
|
||||
public AttendanceAdapter(Context context, List<AttendanceCheckBean.RowsBean> datas) {
|
||||
super(context, R.layout.item_attendance2, datas);
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, AttendanceCheckBean.RowsBean item, int position) {
|
||||
|
||||
viewHolder.setText(R.id.tv_rq, item.getRq());
|
||||
viewHolder.setText(R.id.tv_begin, item.getBegin());
|
||||
viewHolder.setText(R.id.tv_cyc_begin, item.getCyc_begin());
|
||||
viewHolder.setText(R.id.tv_end, item.getEnd());
|
||||
viewHolder.setText(R.id.tv_cyc_end, item.getCyc_end());
|
||||
viewHolder.setText(R.id.tv_workstate, item.getWorkstate());
|
||||
viewHolder.setText(R.id.tv_bz, item.getBz());
|
||||
|
||||
|
||||
if (item.getKind_name().equals("")) {
|
||||
|
||||
viewHolder.setText(R.id.tv_KIND_NAME, "无");
|
||||
|
||||
} else {
|
||||
viewHolder.setText(R.id.tv_KIND_NAME, item.getKind_name());
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.GetAuditBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/1.
|
||||
* 审核流程adapter
|
||||
*/
|
||||
|
||||
public class AuditFlowAdapter extends CommonAdapter<GetAuditBean.RowsBean.StepSHListBean> {
|
||||
|
||||
boolean isFirst = true;
|
||||
|
||||
public AuditFlowAdapter(Context context, List<GetAuditBean.RowsBean.StepSHListBean> datas) {
|
||||
super(context, R.layout.item_audit_flow, datas);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, GetAuditBean.RowsBean.StepSHListBean item, int position) {
|
||||
|
||||
viewHolder.setText(R.id.tv_stepnum, item.getStepNum());
|
||||
viewHolder.setText(R.id.tv_steptext, item.getStepText());
|
||||
viewHolder.setText(R.id.tv_stepUser, item.getStepUser());
|
||||
viewHolder.setText(R.id.tv_status, item.getIsSH().equals("0") ? "未审" : "已审");
|
||||
|
||||
if("0".equals(item.getIsSH())&& isFirst) //判断是未审核 还有第一次出现
|
||||
{
|
||||
isFirst=false;
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepnum,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_steptext,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepUser,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
}else {
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepnum,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_steptext,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepUser,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
}
|
||||
|
||||
//最后结束的时候 还原状态
|
||||
if(position == getCount()-1)
|
||||
{
|
||||
isFirst=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package com.rehome.zhdcoa.adapter;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.rehome.zhdcoa.R;
|
||||
import com.rehome.zhdcoa.bean.GetAuditBean;
|
||||
import com.rehome.zhdcoa.bean.StepFollowBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Rehome-rjb1 on 2017/6/1.
|
||||
* 审核流程adapter
|
||||
*/
|
||||
|
||||
public class AuditFlowJcAdapter extends CommonAdapter<StepFollowBean> {
|
||||
|
||||
boolean isFirst = true;
|
||||
|
||||
public AuditFlowJcAdapter(Context context, List<StepFollowBean> datas) {
|
||||
super(context, R.layout.item_audit_flow, datas);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(ViewHolder viewHolder, StepFollowBean item, int position) {
|
||||
|
||||
viewHolder.setText(R.id.tv_stepnum, String.valueOf(position+1));
|
||||
if(item.getITEMNAME()!=null){
|
||||
viewHolder.setText(R.id.tv_steptext, item.getITEMNAME());
|
||||
}else{
|
||||
viewHolder.setText(R.id.tv_steptext, "");
|
||||
}
|
||||
if(item.getNAME()!=null){
|
||||
viewHolder.setText(R.id.tv_stepUser, item.getNAME());
|
||||
}else{
|
||||
viewHolder.setText(R.id.tv_stepUser, "");
|
||||
}
|
||||
if(item.getIsSH()!=null){
|
||||
if(item.getIsSH().equals("1")){
|
||||
viewHolder.setText(R.id.tv_status,"同意");
|
||||
}else{
|
||||
viewHolder.setText(R.id.tv_status,"未审核");
|
||||
}
|
||||
}else{
|
||||
if(item.getSTATES()!=null){
|
||||
viewHolder.setText(R.id.tv_status, item.getSTATES());
|
||||
}else{
|
||||
viewHolder.setText(R.id.tv_status, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(item.getIsSH()!=null&&item.getIsSH().equals("0")&&isFirst) //判断是未审核 还有第一次出现
|
||||
{
|
||||
isFirst=false;
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepnum,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_steptext,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepUser,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status,mContext.getResources().getColor(R.color.bule));
|
||||
|
||||
}else {
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepnum,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_steptext,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_stepUser,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
viewHolder.setTextColor(R.id.tv_status,mContext.getResources().getColor(R.color.gray));
|
||||
|
||||
}
|
||||
|
||||
//最后结束的时候 还原状态
|
||||
if(position == getCount()-1)
|
||||
{
|
||||
isFirst=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue