├── app ├── .gitignore ├── libs │ ├── httpcore-4.3.2.jar │ ├── httpmime-4.3.5.jar │ ├── armeabi │ │ └── libtencentloc.so │ ├── android-async-http-1.4.6.jar │ └── TencentLocationSDK_v4.0_r139747.jar ├── src │ ├── main │ │ ├── assets │ │ │ └── database.sqlite │ │ ├── res │ │ │ ├── drawable-nodpi │ │ │ │ ├── logo.png │ │ │ │ ├── nav_menu_but.png │ │ │ │ ├── login_password.png │ │ │ │ ├── login_username.png │ │ │ │ ├── bottom_bar_but.9.png │ │ │ │ ├── bottom_bar_camera.png │ │ │ │ ├── bottom_bar_edit.png │ │ │ │ ├── bottom_bar_save.png │ │ │ │ ├── login_background.png │ │ │ │ ├── login_login_but.9.png │ │ │ │ ├── login_text_back.9.png │ │ │ │ ├── nav_menu_back.9.png │ │ │ │ ├── bottom_bar_location.png │ │ │ │ ├── product_img_default.png │ │ │ │ ├── nav_menu_but_pressed.png │ │ │ │ ├── bottom_bar_but_pressed.9.png │ │ │ │ ├── bottom_bar_edit_pressed.png │ │ │ │ └── login_login_but_pressed.9.png │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable │ │ │ │ ├── transparent_bg.xml │ │ │ │ ├── detail_key_cell_bg.xml │ │ │ │ ├── but_bottom_bar_color.xml │ │ │ │ ├── detail_value_cell_bg.xml │ │ │ │ ├── but_nav_menu.xml │ │ │ │ ├── edit_text_color.xml │ │ │ │ ├── but_bottom_bar_bg.xml │ │ │ │ ├── but_login_bg.xml │ │ │ │ ├── list_item_color.xml │ │ │ │ ├── but_bottom_bar_edit.xml │ │ │ │ ├── but_menu_color.xml │ │ │ │ └── light_gray_bg.xml │ │ │ ├── layout │ │ │ │ ├── layout_horizontal_line.xml │ │ │ │ ├── layout_nav_menu_seperator.xml │ │ │ │ ├── layout_detail_attach_header.xml │ │ │ │ ├── layout_detail_other_info_item.xml │ │ │ │ ├── layout_detail_other_info_header.xml │ │ │ │ ├── layout_detail_photo_item.xml │ │ │ │ ├── layout_detail_result_item.xml │ │ │ │ ├── layout_dialog_button.xml │ │ │ │ ├── layout_detail_operation_item.xml │ │ │ │ ├── activity_sign.xml │ │ │ │ ├── layout_menu.xml │ │ │ │ ├── layout_navbar.xml │ │ │ │ ├── layout_detail_prod_info_item.xml │ │ │ │ ├── layout_detail_instrument_header.xml │ │ │ │ ├── layout_detail_instrument_item.xml │ │ │ │ ├── activity_dialog_other_info.xml │ │ │ │ ├── layout_task_item.xml │ │ │ │ ├── layout_report_item.xml │ │ │ │ ├── layout_detail_prod_info_header.xml │ │ │ │ ├── activity_dialog_photo.xml │ │ │ │ ├── layout_detail_export_carton_item.xml │ │ │ │ ├── layout_dialog_setparam.xml │ │ │ │ ├── layout_detail_sampling_header.xml │ │ │ │ ├── layout_detail_tech_data_header.xml │ │ │ │ ├── layout_detail_unit_pack_item.xml │ │ │ │ ├── layout_detail_sampling_item.xml │ │ │ │ ├── layout_detail_tech_data_item.xml │ │ │ │ ├── layout_detail_electric_comp_item.xml │ │ │ │ ├── layout_detail_export_carton_header.xml │ │ │ │ ├── layout_detail_unit_pack_header.xml │ │ │ │ ├── activity_operation.xml │ │ │ │ ├── layout_detail_electric_comp_header.xml │ │ │ │ ├── layout_detail_electric_spec_header.xml │ │ │ │ ├── layout_detail_electric_spec_item.xml │ │ │ │ └── activity_task.xml │ │ │ ├── anim │ │ │ │ ├── anim_out.xml │ │ │ │ ├── pop_in.xml │ │ │ │ ├── anim_in.xml │ │ │ │ └── pop_out.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ ├── jniLibs │ │ │ └── armeabi │ │ │ │ └── libtencentloc.so │ │ └── java │ │ │ └── com │ │ │ └── highjump │ │ │ └── cqccollect │ │ │ ├── model │ │ │ ├── AttachmentData.java │ │ │ ├── ProductData.java │ │ │ ├── LogData.java │ │ │ ├── TaskData.java │ │ │ ├── ReportData.java │ │ │ ├── OtherInfoData.java │ │ │ ├── InstrumentData.java │ │ │ ├── SamplingData.java │ │ │ ├── ExportCartonData.java │ │ │ ├── BaseData.java │ │ │ ├── DataMeasuredData.java │ │ │ ├── UnitPackData.java │ │ │ ├── ElectricCompData.java │ │ │ ├── CollectImgData.java │ │ │ ├── ElectricSpecData.java │ │ │ ├── UserData.java │ │ │ └── LocationData.java │ │ │ ├── provider │ │ │ ├── OtherInfoColumns.java │ │ │ ├── AttachmentColumns.java │ │ │ ├── UserColumns.java │ │ │ ├── ProcessLogColumns.java │ │ │ ├── ProductColumns.java │ │ │ ├── CollectImageColumns.java │ │ │ ├── InstrumentColumns.java │ │ │ ├── SamplingColumns.java │ │ │ ├── DataMeasuredColumns.java │ │ │ ├── ExportCartonColumns.java │ │ │ ├── ElectricCompColumns.java │ │ │ ├── UnitPackColumns.java │ │ │ ├── ElectricSpecColumns.java │ │ │ └── ReportColumns.java │ │ │ ├── utils │ │ │ ├── Config.java │ │ │ └── TencentGPSTracker.java │ │ │ ├── DetailDialogActivity.java │ │ │ ├── view │ │ │ ├── DetailAttachmentItemView.java │ │ │ ├── OtherInfoItemView.java │ │ │ ├── CollectImgItemView.java │ │ │ ├── InstrumentItemView.java │ │ │ ├── DetailProductItemView.java │ │ │ ├── ExportCartonItemView.java │ │ │ ├── SamplingItemView.java │ │ │ ├── UnitPackItemView.java │ │ │ ├── DataMeasuredItemView.java │ │ │ ├── ElectricCompItemView.java │ │ │ └── ElectricSpecItemView.java │ │ │ ├── adapter │ │ │ ├── OperationAdapter.java │ │ │ ├── ReportAdapter.java │ │ │ └── TaskAdapter.java │ │ │ ├── OperationActivity.java │ │ │ ├── DialogOtherInfoActivity.java │ │ │ ├── DialogExportCartonActivity.java │ │ │ ├── DialogInstrumentActivity.java │ │ │ ├── DialogUnitPackActivity.java │ │ │ ├── DialogElectricCompActivity.java │ │ │ └── DialogSamplingActivity.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── highjump │ │ └── cqccollect │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── Readme.md ├── gradle.properties └── gradlew.bat /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/libs/httpcore-4.3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/libs/httpcore-4.3.2.jar -------------------------------------------------------------------------------- /app/libs/httpmime-4.3.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/libs/httpmime-4.3.5.jar -------------------------------------------------------------------------------- /app/libs/armeabi/libtencentloc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/libs/armeabi/libtencentloc.so -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/assets/database.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/assets/database.sqlite -------------------------------------------------------------------------------- /app/libs/android-async-http-1.4.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/libs/android-async-http-1.4.6.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/logo.png -------------------------------------------------------------------------------- /app/libs/TencentLocationSDK_v4.0_r139747.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/libs/TencentLocationSDK_v4.0_r139747.jar -------------------------------------------------------------------------------- /app/src/main/jniLibs/armeabi/libtencentloc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/jniLibs/armeabi/libtencentloc.so -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/nav_menu_but.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/nav_menu_but.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_password.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_username.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_username.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_but.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_but.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_camera.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_save.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_background.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_login_but.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_login_but.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_text_back.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_text_back.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/nav_menu_back.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/nav_menu_back.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/product_img_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/product_img_default.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/nav_menu_but_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/nav_menu_but_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_but_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_but_pressed.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/bottom_bar_edit_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/bottom_bar_edit_pressed.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/login_login_but_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/highjump0615/CQCcheck/HEAD/app/src/main/res/drawable-nodpi/login_login_but_pressed.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/transparent_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # [CQC 现场核查数据采集系统](http://www.cqccms.com.cn/sasocheck) 2 | ## (安卓版) 3 | 4 | 中国质量认证中心的工作人员现场采集数据用的APP 5 | 6 | 主要功能: 用户登录、填充数据(文字、图片、包括签字)、上报、统计 等
7 | 8 | * 采用腾讯定位SDK实现定位功能 9 | * 跟后台通讯是用android-async-http 10 | * 采用sqlite3为内部数据库 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/AttachmentData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | /** 4 | * Created by highjump on 15-2-1. 5 | */ 6 | public class AttachmentData { 7 | 8 | public int mnNo; 9 | public String mStrFileName; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/detail_key_cell_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Jul 23 00:34:07 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_bottom_bar_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_horizontal_line.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/detail_value_cell_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_nav_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/edit_text_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_bottom_bar_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_login_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_item_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_bottom_bar_edit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/anim/pop_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/but_menu_color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/pop_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/ProductData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | /** 4 | * Created by highjump on 15-2-1. 5 | */ 6 | public class ProductData { 7 | 8 | public int mnNo; 9 | public int mnNoInternal; 10 | 11 | public String mStrName; 12 | public String mStrQuantity; 13 | public String mStrDescription; 14 | public String mStrPackManner; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/highjump/cqccollect/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/LogData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | /** 4 | * Created by highjump on 15-2-1. 5 | */ 6 | public class LogData { 7 | 8 | /** 9 | * 系统日志序号 10 | */ 11 | public int no; 12 | 13 | /** 14 | * 系统日志数据ID 15 | */ 16 | public String id; 17 | 18 | /** 19 | * 系统日志时间 20 | */ 21 | public String time; 22 | 23 | /** 24 | * 系统日志纪录描述 25 | */ 26 | public String operation; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/TaskData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | import java.util.Date; 4 | 5 | /** 6 | * Created by highjump on 15-2-1. 7 | */ 8 | public class TaskData { 9 | 10 | public String mStrTaskNo; 11 | public String mStrReportNo; 12 | public String mStrVerifyPlace; 13 | public String mStrApplicant; 14 | public String mStrDateSchedule; 15 | 16 | public Boolean mbDownloaded; 17 | 18 | public TaskData() { 19 | mbDownloaded = false; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | CQC 5 | 6 | Hello world! 7 | Settings 8 | 9 | 10 | 核查报告 11 | 核查任务 12 | 现场定位 13 | 操作记录 14 | 报告详情 15 | 参数设置 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_nav_menu_seperator.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/ReportData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | /** 4 | * Created by highjump on 15-2-1. 5 | */ 6 | public class ReportData { 7 | 8 | public String mStrId; 9 | public String mStrTime; 10 | public String mStrPlace; 11 | public String mStrStatus; 12 | 13 | public static final String REPORT_STATUS_PREPARE = "等待核查"; 14 | public static final String REPORT_STATUS_INSPECTING = "正在核查"; 15 | public static final String REPORT_STATUS_WAIT_SUBMIT = "等待上报"; 16 | public static final String REPORT_STATUS_SUBMITTED = "完成上报"; 17 | public static final String REPORT_STATUS_MODIFY = "修改补充"; 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/light_gray_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/highjump/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/OtherInfoColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class OtherInfoColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.OTHER_INFO_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.otherinfo"; 14 | 15 | public static final String OTHER_NO = "other_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String OTHER_INFO = "other_information"; 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/AttachmentColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class AttachmentColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.ATTACHMENT_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.attachment"; 14 | 15 | public static final String ATTACHMENT_NO = "attachment_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String FILE_NAME = "filename"; 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/UserColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class UserColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.USER_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.user"; 14 | 15 | public static final String MD = "md"; 16 | public static final String USERNAME = "username"; 17 | public static final String NAME = "name"; 18 | public static final String UNIT = "unit"; 19 | public static final String ROLE = "role"; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/utils/Config.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.utils; 2 | 3 | /** 4 | * Created by highjump on 15-1-30. 5 | */ 6 | public class Config { 7 | 8 | public static final boolean DEBUG = true; 9 | 10 | /** 11 | * directory name to store captured images and videos 12 | */ 13 | public static final String IMAGE_DIRECTORY_NAME = "photo"; 14 | public static final String DOWNLOAD_DIRECTORY_NAME = "download"; 15 | public static final String MSG_NETWORK_ERROR = "联网失败!"; 16 | public static String PASSWORD_SECURITY = "fukye"; 17 | 18 | public static final String PREF_NAME = "cqc_pref"; 19 | public static final String PREF_USERNAME = "cqc_username"; 20 | public static final String PREF_URL = "cqc_url"; 21 | public static final String PREF_SECCODE = "cqc_seccode"; 22 | } 23 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "24.0.0" 6 | 7 | defaultConfig { 8 | applicationId "com.highjump.cqccollect" 9 | minSdkVersion 15 10 | targetSdkVersion 24 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | 21 | packagingOptions { 22 | exclude 'META-INF/DEPENDENCIES' 23 | exclude 'META-INF/NOTICE' 24 | exclude 'META-INF/LICENSE' 25 | } 26 | 27 | } 28 | 29 | dependencies { 30 | compile fileTree(include: ['*.jar'], dir: 'libs') 31 | compile 'com.android.support:appcompat-v7:21.0.3' 32 | } -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/ProcessLogColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class ProcessLogColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.PROCESS_LOG_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.processlog"; 14 | 15 | public static final String NO = "process_no"; 16 | public static final String USERNAME = "username"; 17 | public static final String PROCESS = "process"; 18 | public static final String PROCESS_TIME = "process_time"; 19 | 20 | /** 21 | * Sort order 22 | */ 23 | public static final String SORT_ORDER_DEFAULT = PROCESS_TIME + " DESC"; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | #daedf7 6 | 7 | 8 | #e3f4fc 9 | 10 | 11 | #383e4a 12 | #0082cc 13 | #f7f7f7 14 | 15 | #7F000000 16 | 17 | #ddd 18 | 19 | 20 | #55b6ed 21 | 22 | 23 | #dddddd 24 | @android:color/white 25 | #FF909090 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/ProductColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class ProductColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.PRODUCT_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.product"; 14 | 15 | public static final String PRODUCT_NO = "product_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String PRODUCT_NAME = "product_name"; 18 | public static final String QUANTITY = "quantity"; 19 | public static final String PRODUCT_DESCRIPTION = "product_description"; 20 | public static final String PACKAGE_MANNER = "package_manner"; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/CollectImageColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class CollectImageColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.COLLECT_IMG_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.collectimg"; 14 | 15 | public static final String IMAGE_NO = "image_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String IMAGE_ADDRESS = "image_address"; 18 | public static final String IMAGE_DESCRIPTION = "image_description"; 19 | public static final String IMAGE_TYPE = "image_type"; 20 | public static final String UPLOADED = "uploaded"; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/InstrumentColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class InstrumentColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.INSTRUMENT_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.instrument"; 14 | 15 | public static final String INSTRUMENT_NO = "instruments_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String INSTRUMENT_NAME = "instruments_name"; 18 | public static final String MODEL = "model"; 19 | public static final String REF_NO = "ref_no"; 20 | public static final String VALIDITY_CALIBRATION = "validity_calibration"; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/model/OtherInfoData.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.model; 2 | 3 | import android.content.ContentUris; 4 | import android.content.ContentValues; 5 | import android.net.Uri; 6 | 7 | import com.highjump.cqccollect.provider.MyContentProvider; 8 | import com.highjump.cqccollect.provider.OtherInfoColumns; 9 | 10 | /** 11 | * Created by highjump on 15-2-1. 12 | */ 13 | public class OtherInfoData extends BaseData { 14 | 15 | public String mStrOtherInfo; 16 | 17 | public void save(String strReportId) { 18 | 19 | if (mStatus == DS_NONE) { 20 | return; 21 | } 22 | 23 | ContentValues contentValues = new ContentValues(); 24 | 25 | contentValues.put(OtherInfoColumns.REPORT_NO, strReportId); 26 | contentValues.put(OtherInfoColumns.OTHER_INFO, mStrOtherInfo); 27 | 28 | super.save(OtherInfoColumns.CONTENT_URI, OtherInfoColumns.OTHER_NO, contentValues); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/SamplingColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class SamplingColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.SAMPLING_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.sampling"; 14 | 15 | public static final String SAMPLING_NO = "sampling_no"; 16 | public static final String PRODUCT_NO = "product_no"; 17 | public static final String REPORT_NO = "report_no"; 18 | public static final String NUMBER_SAMPLING = "number_sampling"; 19 | public static final String AQL = "aql"; 20 | public static final String ACCEPT = "accept"; 21 | public static final String REJECT = "reject"; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/DataMeasuredColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class DataMeasuredColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.DATA_MEASURED_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.datameasured"; 14 | 15 | public static final String MEASURED_NO = "measured_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String PRODUCT_NO = "product_no"; 18 | public static final String NUMBER_SAMPLING = "number_sampling"; 19 | public static final String ELECTRIC_STRENGTH = "electric_strength"; 20 | public static final String EARTHING_RESISTANCE = "earthing_resistance"; 21 | public static final String LEAKAGE_CURRENT = "leakage_current"; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/ExportCartonColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class ExportCartonColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.EXPORT_CARTON_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.exportcarton"; 14 | 15 | public static final String EXPORT_NO = "export_no"; 16 | public static final String PRODUCT_NO = "product_no"; 17 | public static final String REPORT_NO = "report_no"; 18 | public static final String PCS_CARTON = "pcs_carton"; 19 | public static final String EXTERNAL_DIMENSION = "external_dimension"; 20 | public static final String THICKNESS = "thickness"; 21 | public static final String LAYERS = "layers"; 22 | public static final String SEALING_TYPE = "sealing_type"; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/ElectricCompColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class ElectricCompColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.ELECTRIC_COMP_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.electriccomp"; 14 | 15 | public static final String COMPONENT_NO = "component_no"; 16 | public static final String REPORT_NO = "report_no"; 17 | public static final String COMPONENT_NAME = "component_name"; 18 | public static final String TRADE_MARK = "trade_mark"; 19 | public static final String MODEL = "model"; 20 | public static final String SPECIFICATION = "specification"; 21 | public static final String CONFORMITY_MARK = "conformity_mark"; 22 | public static final String SAME_AS = "same_as"; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/com/highjump/cqccollect/provider/UnitPackColumns.java: -------------------------------------------------------------------------------- 1 | package com.highjump.cqccollect.provider; 2 | 3 | import android.net.Uri; 4 | import android.provider.BaseColumns; 5 | 6 | /** 7 | * Created by highjump on 15-1-30. 8 | */ 9 | public class UnitPackColumns implements BaseColumns { 10 | 11 | public static final Uri CONTENT_URI = Uri.parse("content://" + MyContentProvider.AUTHORITY + "/" + MyContentProvider.UNIT_PACK_TABLE_NAME); 12 | 13 | public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.cqccollect.unitpack"; 14 | 15 | public static final String PACKAGING_NO = "packaging_no"; 16 | public static final String PRODUCT_NO = "product_no"; 17 | public static final String REPORT_NO = "report_no"; 18 | public static final String PACKAGING_TYPE = "packaging_type"; 19 | public static final String DIMENSION = "dimension"; 20 | public static final String THICKNESS = "thickness"; 21 | public static final String LAYERS = "layers"; 22 | public static final String PRINTING_COLOR = "printing_color"; 23 | public static final String SEALING_TYPE = "sealing_type"; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_detail_attach_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_detail_other_info_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_detail_other_info_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_detail_photo_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | 20 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 16 | 17 | 18 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_detail_result_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 16 | 17 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_dialog_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |