双箭输送带
@ -0,0 +1,14 @@
|
||||
*.iml
|
||||
.gradle
|
||||
/local.properties
|
||||
/.idea/caches
|
||||
/.idea/libraries
|
||||
/.idea/modules.xml
|
||||
/.idea/workspace.xml
|
||||
/.idea/navEditor.xml
|
||||
/.idea/assetWizardSettings.xml
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@ -0,0 +1,116 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<code_scheme name="Project" version="173">
|
||||
<codeStyleSettings language="XML">
|
||||
<indentOptions>
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
||||
</indentOptions>
|
||||
<arrangement>
|
||||
<rules>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>xmlns:android</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>xmlns:.*</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
<order>BY_NAME</order>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>.*:id</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>.*:name</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>name</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>style</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>.*</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>^$</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
<order>BY_NAME</order>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>.*</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
<order>ANDROID_ATTRIBUTE_ORDER</order>
|
||||
</rule>
|
||||
</section>
|
||||
<section>
|
||||
<rule>
|
||||
<match>
|
||||
<AND>
|
||||
<NAME>.*</NAME>
|
||||
<XML_ATTRIBUTE />
|
||||
<XML_NAMESPACE>.*</XML_NAMESPACE>
|
||||
</AND>
|
||||
</match>
|
||||
<order>BY_NAME</order>
|
||||
</rule>
|
||||
</section>
|
||||
</rules>
|
||||
</arrangement>
|
||||
</codeStyleSettings>
|
||||
</code_scheme>
|
||||
</component>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="1.8" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,3 @@
|
||||
<component name="ProjectDictionaryState">
|
||||
<dictionary name="gougo" />
|
||||
</component>
|
||||
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="delegatedBuild" value="false" />
|
||||
<option name="testRunner" value="PLATFORM" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="BintrayJCenter" />
|
||||
<option name="name" value="BintrayJCenter" />
|
||||
<option name="url" value="https://jcenter.bintray.com/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="Google" />
|
||||
<option name="name" value="Google" />
|
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven" />
|
||||
<option name="name" value="maven" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectInspectionProfilesVisibleTreeState">
|
||||
<entry key="Project Default">
|
||||
<profile-state>
|
||||
<expanded-state>
|
||||
<State />
|
||||
</expanded-state>
|
||||
<selected-state>
|
||||
<State>
|
||||
<id>Android</id>
|
||||
</State>
|
||||
</selected-state>
|
||||
</profile-state>
|
||||
</entry>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1 @@
|
||||
/build
|
||||
@ -0,0 +1,48 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
buildToolsVersion "30.0.2"
|
||||
defaultConfig {
|
||||
applicationId "com.example.hightschool"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 2
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
ndk {
|
||||
// 设置支持的SO库架构
|
||||
abiFilters 'armeabi' ,'arm64-v8a','armeabi-v7a'
|
||||
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation 'androidx.appcompat:appcompat:1.0.2'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||
implementation 'com.jakewharton:butterknife:10.2.0'
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
|
||||
// implementation files('libs\\uhf_r_v1.0.jar')
|
||||
implementation files('libs\\uhfr_v1.8.jar')
|
||||
implementation files('libs\\ModuleAPI_J.jar')
|
||||
implementation files('libs\\jxl.jar')
|
||||
implementation 'org.litepal.guolindev:core:3.2.3'
|
||||
implementation 'com.google.android.material:material:1.2.1'
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug"},"path":"app-debug.apk","properties":{}}]
|
||||
@ -0,0 +1,21 @@
|
||||
# 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
|
||||
@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": 2,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.example.hightschool",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"versionCode": 2,
|
||||
"versionName": "1.0",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
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.getInstrumentation().getTargetContext();
|
||||
|
||||
assertEquals("com.example.hightschool", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.hightschool">
|
||||
|
||||
<application
|
||||
android:name=".MyApp"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/logo"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/logo"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<!-- <activity android:name=".zifuchuanchuliActivity">-->
|
||||
|
||||
<!-- </activity>-->
|
||||
|
||||
<activity android:name=".InfoActivity"/>
|
||||
<activity android:name=".ReedActivity" />
|
||||
<activity android:name=".WriteActivity" />
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<litepal>
|
||||
<dbname value="ahzyrfidcon" />
|
||||
<version value="2" />
|
||||
<list>
|
||||
<mapping class="com.example.hightschool.entity.Info"></mapping>
|
||||
</list>
|
||||
</litepal>
|
||||
@ -0,0 +1,75 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.media.MediaPlayer;
|
||||
import android.os.Bundle;
|
||||
import android.view.Window;
|
||||
|
||||
import com.handheld.uhfr.UHFRManager;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import cn.pda.serialport.Tools;
|
||||
|
||||
//import cn.pda.serialport.Tools;
|
||||
|
||||
public class BaseActivity extends AppCompatActivity {
|
||||
public UHFRManager uhfrManager;
|
||||
public byte[] accessBytes = Tools.HexString2Bytes("00000000");
|
||||
public MediaPlayer mediaPlayer;
|
||||
//2
|
||||
List<String> months;
|
||||
//3
|
||||
List<String> jts;
|
||||
//4
|
||||
public List<String> dqs;
|
||||
//5
|
||||
public List<String> dks;
|
||||
//6 7
|
||||
public List<String> hds;
|
||||
//8
|
||||
public List<String> jbs;
|
||||
//9 10
|
||||
public List<String> sxs;
|
||||
//11 12
|
||||
public List<String> jgs;
|
||||
public MyDialog dialog;
|
||||
public MyDialog1 dialog1;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
if (uhfrManager==null){
|
||||
uhfrManager=MyApp.getUhfrManager();
|
||||
}
|
||||
mediaPlayer= MediaPlayer.create(this, R.raw.msg);
|
||||
months= Arrays.asList(getResources().getStringArray(R.array.month));
|
||||
jts= Arrays.asList(getResources().getStringArray(R.array.jitai));
|
||||
dqs= Arrays.asList(getResources().getStringArray(R.array.daiqiang));
|
||||
dks= Arrays.asList(getResources().getStringArray(R.array.daikuan));
|
||||
hds= Arrays.asList(getResources().getStringArray(R.array.houdu));
|
||||
jbs= Arrays.asList(getResources().getStringArray(R.array.gaijiao));
|
||||
sxs= Arrays.asList(getResources().getStringArray(R.array.xuhao));
|
||||
jgs= Arrays.asList(getResources().getStringArray(R.array.jiange));
|
||||
dialog=new MyDialog(this);
|
||||
dialog1=new MyDialog1(this);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
// if (uhfrManager!=null){
|
||||
// uhfrManager.close();
|
||||
// uhfrManager=null;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.example.hightschool.adapter.InfoAdape;
|
||||
import com.example.hightschool.dialog.EditTextDialog;
|
||||
import com.example.hightschool.entity.Info;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
import org.litepal.LitePal;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
|
||||
public class InfoActivity extends BaseActivity implements TabLayout.OnTabSelectedListener, InfoAdape.ItemClickInterface, EditTextDialog.DialogCall {
|
||||
|
||||
@BindView(R.id.info_tabLayout)
|
||||
TabLayout infoTabLayout;
|
||||
@BindView(R.id.info_recyclerView)
|
||||
RecyclerView infoRecyclerView;
|
||||
private List<Info> infoList;
|
||||
private String infoType;
|
||||
private InfoAdape adape;
|
||||
private EditTextDialog textDialog;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_info);
|
||||
ButterKnife.bind(this);
|
||||
infoType = "生产厂家";
|
||||
infoTabLayout.addOnTabSelectedListener(this);
|
||||
infoList = LitePal.where("type = ?", infoType).find(Info.class);
|
||||
// Log.e("TAG", "onCreate:" + infoList.toString());
|
||||
infoRecyclerView.setLayoutManager(new LinearLayoutManager(this));
|
||||
adape = new InfoAdape(this, this);
|
||||
textDialog = new EditTextDialog(this);
|
||||
textDialog.setCall(this);
|
||||
adape.setList(infoList);
|
||||
infoRecyclerView.setAdapter(adape);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onTabSelected(TabLayout.Tab tab) {
|
||||
infoType = tab.getText().toString();
|
||||
Log.e("TAG", "切换到:" + infoType);
|
||||
infoList.clear();
|
||||
infoList.addAll(LitePal.where("type = ?", infoType).find(Info.class));
|
||||
Log.e("TAG", "onTabSelected:" + infoList);
|
||||
adape.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTabUnselected(TabLayout.Tab tab) {
|
||||
// Log.e("TAG", "onTabUnselected:" + tab.getText());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTabReselected(TabLayout.Tab tab) {
|
||||
// Log.e("TAG", "onTabReselected:" + tab.getText());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemClick(int index) {
|
||||
Info info = infoList.get(index);
|
||||
infoList.remove(index);
|
||||
adape.notifyDataSetChanged();
|
||||
LitePal.delete(Info.class, info.getId());
|
||||
}
|
||||
|
||||
//弹出框返回值,储存和刷新界面
|
||||
@Override
|
||||
public void inputTextCall(String text) {
|
||||
Info info = new Info();
|
||||
info.setType(infoType);
|
||||
info.setName(text);
|
||||
info.save();
|
||||
infoList.add(info);
|
||||
adape.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@OnClick(R.id.info_add)
|
||||
public void onClick() {
|
||||
|
||||
textDialog.show();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
ButterKnife.bind(this);
|
||||
}
|
||||
|
||||
@OnClick({R.id.radioButton1, R.id.radioButton2,R.id.radioButton3})
|
||||
public void onViewClicked(View view) {
|
||||
Intent intent=null;
|
||||
switch (view.getId()) {
|
||||
case R.id.radioButton1:
|
||||
intent=new Intent(this, WriteActivity.class);
|
||||
break;
|
||||
case R.id.radioButton2:
|
||||
intent=new Intent(this, ReedActivity.class);
|
||||
break;
|
||||
case R.id.radioButton3:
|
||||
intent=new Intent(this, InfoActivity.class);
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
if (intent!=null)
|
||||
this.startActivity(intent);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import com.handheld.uhfr.UHFRManager;
|
||||
|
||||
import org.litepal.LitePal;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/2/1-10:14。
|
||||
*/
|
||||
public class MyApp extends Application {
|
||||
public static UHFRManager uhfrManager;
|
||||
|
||||
public static UHFRManager getUhfrManager() {
|
||||
if (uhfrManager == null) {
|
||||
uhfrManager = UHFRManager.getInstance();
|
||||
uhfrManager.setPower(30, 30);
|
||||
}
|
||||
return uhfrManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
LitePal.initialize(this);
|
||||
uhfrManager = UHFRManager.getInstance();
|
||||
uhfrManager.setPower(30, 30);
|
||||
SharedPreferencesUtils.init(getApplicationContext(), "myapp");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/3/1-17:29。
|
||||
*/
|
||||
public class MyDialog extends Dialog implements View.OnClickListener {
|
||||
TextView dialogButton;
|
||||
TextView info;
|
||||
String infoText;
|
||||
public DialogCilck dialogCilck;
|
||||
public interface DialogCilck{
|
||||
void OnClickListener();
|
||||
}
|
||||
|
||||
public void setDialogCilck(DialogCilck dialogCilck) {
|
||||
this.dialogCilck = dialogCilck;
|
||||
}
|
||||
|
||||
public void setInfoText(String infoText) {
|
||||
this.infoText = infoText;
|
||||
}
|
||||
|
||||
public MyDialog(@NonNull Context context) {
|
||||
super(context,R.style.CustomDialog);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_layout);
|
||||
dialogButton=findViewById(R.id.dialog_button);
|
||||
info=findViewById(R.id.dialog_info);
|
||||
dialogButton.setOnClickListener(this);
|
||||
setCancelable(false);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dismiss();
|
||||
if (dialogCilck!=null){
|
||||
dialogCilck.OnClickListener();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
super.show();
|
||||
info.setText(infoText);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/3/1-17:29。
|
||||
*/
|
||||
public class MyDialog1 extends Dialog implements View.OnClickListener {
|
||||
TextView dialogButton;
|
||||
TextView info;
|
||||
String infoText;
|
||||
public DialogCilck1 dialogCilck;
|
||||
public MyDialog1(@NonNull Context context) {
|
||||
super(context,R.style.CustomDialog);
|
||||
|
||||
}
|
||||
|
||||
public void setDialogCilck(DialogCilck1 dialogCilck) {
|
||||
this.dialogCilck = dialogCilck;
|
||||
}
|
||||
|
||||
public interface DialogCilck1{
|
||||
void OnClickListener();
|
||||
}
|
||||
public void setInfoText(String infoText) {
|
||||
this.infoText = infoText;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_layout1);
|
||||
dialogButton=findViewById(R.id.dialog_button);
|
||||
dialogButton.setOnClickListener(this);
|
||||
info=findViewById(R.id.dialog_info);
|
||||
setCancelable(false);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dismiss();
|
||||
if(dialogCilck!=null){
|
||||
dialogCilck.OnClickListener();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
super.show();
|
||||
info.setText(infoText);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,184 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.example.hightschool.entity.Info;
|
||||
import com.uhf.api.cls.Reader;
|
||||
|
||||
import org.litepal.LitePal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
import cn.pda.serialport.Tools;
|
||||
|
||||
public class ReedActivity extends BaseActivity {
|
||||
|
||||
@BindView(R.id.reed_epc)
|
||||
TextView reedEpc;
|
||||
@BindView(R.id.reed_year)
|
||||
TextView reedYear;
|
||||
@BindView(R.id.reed_month)
|
||||
TextView reedMonth;
|
||||
@BindView(R.id.reed_jitai)
|
||||
TextView reedJitai;
|
||||
@BindView(R.id.reed_daiqiang)
|
||||
TextView reedDaiqiang;
|
||||
@BindView(R.id.reed_daikuan)
|
||||
TextView reedDaikuan;
|
||||
@BindView(R.id.reed_shangjiaohoudu)
|
||||
TextView reedShangjiaohoudu;
|
||||
@BindView(R.id.reed_xiajiaohoudu)
|
||||
TextView reedXiajiaohoudu;
|
||||
@BindView(R.id.reed_gaijiaojibie)
|
||||
TextView reedGaijiaojibie;
|
||||
@BindView(R.id.reed_juanhao)
|
||||
TextView reedJuanhao;
|
||||
@BindView(R.id.reed_rfidshunxu)
|
||||
TextView reedRfidshunxu;
|
||||
@BindView(R.id.reed_jiange1)
|
||||
TextView reedJiange1;
|
||||
@BindView(R.id.reed_jiange2)
|
||||
TextView reedJiange2;
|
||||
|
||||
@BindView(R.id.reed_shengchanchangjia)
|
||||
TextView reedSccj;
|
||||
@BindView(R.id.reed_anzhuangdidian)
|
||||
TextView reedAzdd;
|
||||
private List<String> stringList1;
|
||||
private List<String> stringList2;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_reed);
|
||||
ButterKnife.bind(this);
|
||||
//
|
||||
// int[] i=uhfrManager.getPower();
|
||||
// Log.e("TAG", "onCreate:" + i[0]+"\n"+i[1]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
Log.e("TAG", "onKeyDown:" + keyCode);
|
||||
if (keyCode == 135) {
|
||||
reedepc();
|
||||
} else if (keyCode == 4) {
|
||||
finish();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void reedepc() {
|
||||
byte[] readBytes = new byte[14];
|
||||
if (uhfrManager == null) {
|
||||
uhfrManager = MyApp.getUhfrManager();
|
||||
}
|
||||
Reader.READER_ERR reader_err = uhfrManager.getTagData(1, 2, 7, readBytes, accessBytes, (short) 1000);
|
||||
Log.e("TAG", "san_epc:" + reader_err);
|
||||
if (reader_err.toString().equals("MT_OK_ERR")) {
|
||||
mediaPlayer.start();
|
||||
String epc = Tools.Bytes2HexString(readBytes, readBytes.length);
|
||||
rerd_view(epc);
|
||||
} else {
|
||||
dialog1.setInfoText("读取失败");
|
||||
dialog1.show();
|
||||
reedEpc.setText(null);
|
||||
clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@OnClick({R.id.reed_button, R.id.reed_cler})
|
||||
public void onViewClicked(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.reed_button:
|
||||
reedepc();
|
||||
break;
|
||||
case R.id.reed_cler:
|
||||
clear();
|
||||
reedEpc.setText(null);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void clear() {
|
||||
reedYear.setText(null);
|
||||
reedMonth.setText(null);
|
||||
reedJitai.setText(null);
|
||||
reedDaiqiang.setText(null);
|
||||
reedDaikuan.setText(null);
|
||||
reedShangjiaohoudu.setText(null);
|
||||
reedXiajiaohoudu.setText(null);
|
||||
reedGaijiaojibie.setText(null);
|
||||
reedJuanhao.setText(null);
|
||||
reedRfidshunxu.setText(null);
|
||||
reedJiange1.setText(null);
|
||||
reedJiange2.setText(null);
|
||||
reedSccj.setText(null);
|
||||
reedAzdd.setText(null);
|
||||
}
|
||||
|
||||
private void rerd_view(String epc) {
|
||||
reedEpc.setText(epc);
|
||||
try {
|
||||
reedYear.setText("20" + epc.substring(0, 2));
|
||||
reedMonth.setText(Integer.parseInt(epc.substring(2, 3), 16) + "");
|
||||
reedJitai.setText(epc.substring(3, 5));
|
||||
reedDaiqiang.setText(dqs.get(Integer.parseInt(epc.substring(5, 7)) - 1));
|
||||
reedDaikuan.setText(dks.get(Integer.parseInt(epc.substring(7, 9))-1));
|
||||
reedShangjiaohoudu.setText(hds.get(Integer.parseInt(epc.substring(9, 11)) - 1));
|
||||
reedXiajiaohoudu.setText(hds.get(Integer.parseInt(epc.substring(12, 14)) - 1));
|
||||
reedGaijiaojibie.setText(jbs.get(Integer.parseInt(epc.substring(14, 16)) - 1));
|
||||
reedJuanhao.setText(epc.substring(16, 18));
|
||||
reedRfidshunxu.setText(epc.substring(18, 20));
|
||||
reedJiange1.setText(epc.substring(20, 22));
|
||||
reedJiange2.setText(epc.substring(22, 24));
|
||||
int data2426 = Integer.parseInt(epc.substring(24, 26))-1;
|
||||
reedSccj.setText(stringList1.get(data2426));
|
||||
int data2628 = Integer.parseInt(epc.substring(26, 28))-1;
|
||||
reedAzdd.setText(stringList2.get(data2628));
|
||||
|
||||
} catch (Exception e) {
|
||||
dialog1.setInfoText("不是按标准写入的标签");
|
||||
dialog1.show();
|
||||
clear();
|
||||
|
||||
e.printStackTrace();
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
List<Info> infoList = LitePal.findAll(Info.class);
|
||||
if (infoList.isEmpty()) {
|
||||
startActivity(new Intent(this, InfoActivity.class));
|
||||
Toast.makeText(this, "先维护数据", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
stringList1 = new ArrayList<>();
|
||||
stringList2 = new ArrayList<>();
|
||||
for (Info info : infoList) {
|
||||
if (info.getType().equals("生产厂家")) {
|
||||
stringList1.add(info.getName());
|
||||
} else {
|
||||
stringList2.add(info.getName());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
/**
|
||||
* Created by wang 18/7/5
|
||||
*/
|
||||
|
||||
public class SharedPreferencesUtils {
|
||||
private static SharedPreferences sharedPreferences;
|
||||
private static SharedPreferences.Editor edit;
|
||||
|
||||
public static void init(Context context, String name) {
|
||||
sharedPreferences = context.getSharedPreferences(name, context.MODE_PRIVATE);
|
||||
edit = sharedPreferences.edit();
|
||||
edit.commit();
|
||||
}
|
||||
|
||||
public static void putstring(String key, String value) {
|
||||
if (edit != null) {
|
||||
edit.putString(key, value);
|
||||
edit.commit();
|
||||
}
|
||||
}
|
||||
public static void putInt(String key, int value) {
|
||||
if (edit != null) {
|
||||
edit.putInt(key, value);
|
||||
edit.commit();
|
||||
}
|
||||
}
|
||||
|
||||
public static int getInt(String key, int value) {
|
||||
if (sharedPreferences != null) {
|
||||
return sharedPreferences.getInt(key,value);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
public static void putboolean(String key, boolean value) {
|
||||
if (edit != null) {
|
||||
edit.putBoolean(key, value);
|
||||
edit.commit();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 取得方法
|
||||
*/
|
||||
|
||||
public static String getstring(String key, String deaflut) {
|
||||
if (sharedPreferences != null) {
|
||||
return sharedPreferences.getString(key, deaflut);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static boolean getboolean(String key, boolean aaa) {
|
||||
if (sharedPreferences != null) {
|
||||
boolean aBoolean = sharedPreferences.getBoolean(key, aaa);
|
||||
return aBoolean;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* remo
|
||||
*/
|
||||
public static void removeKey(String key) {
|
||||
if (edit != null) {
|
||||
edit.remove(key);
|
||||
edit.commit();
|
||||
}
|
||||
}
|
||||
public static void Clean() {
|
||||
//清空数据
|
||||
try {
|
||||
edit.clear();
|
||||
edit.commit();
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,222 @@
|
||||
package com.example.hightschool;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.example.hightschool.entity.Info;
|
||||
import com.uhf.api.cls.Reader;
|
||||
|
||||
import org.litepal.LitePal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
import cn.pda.serialport.Tools;
|
||||
|
||||
public class WriteActivity extends BaseActivity implements MyDialog.DialogCilck, MyDialog1.DialogCilck1 {
|
||||
|
||||
@BindView(R.id.write_year)
|
||||
EditText writeYear;
|
||||
@BindView(R.id.write_month)
|
||||
Spinner writeMonth;
|
||||
@BindView(R.id.write_jitai)
|
||||
Spinner writeJitai;
|
||||
@BindView(R.id.write_daiqiang)
|
||||
Spinner writeDaiqiang;
|
||||
@BindView(R.id.write_daikuan)
|
||||
Spinner writeDaikuan;
|
||||
@BindView(R.id.write_shangjiaohoudu)
|
||||
Spinner writeShangjiaohoudu;
|
||||
@BindView(R.id.write_xiajiaohoudu)
|
||||
Spinner writeXiajiaohoudu;
|
||||
@BindView(R.id.write_gaijiaojibie)
|
||||
Spinner writeGaijiaojibie;
|
||||
@BindView(R.id.write_juanhao)
|
||||
Spinner writeJuanhao;
|
||||
@BindView(R.id.write_rfidshunxu)
|
||||
Spinner writeRfidshunxu;
|
||||
@BindView(R.id.write_jiange1)
|
||||
EditText writeJiange1;
|
||||
@BindView(R.id.write_jiange2)
|
||||
EditText writeJiange2;
|
||||
@BindView(R.id.write_button)
|
||||
Button writeButton;
|
||||
@BindView(R.id.write_shengchanchangja)
|
||||
Spinner writeShengchanchangja;
|
||||
@BindView(R.id.write_anzhuangdidian)
|
||||
Spinner writeAnzhuangdidian;
|
||||
private List<String> stringList1;
|
||||
private List<String> stringList2;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_write);
|
||||
ButterKnife.bind(this);
|
||||
dialog.setInfoText("写入成功");
|
||||
dialog.setDialogCilck(this);
|
||||
dialog1.setInfoText("写入失败");
|
||||
dialog1.setDialogCilck(this);
|
||||
//记忆
|
||||
writeYear.setText(SharedPreferencesUtils.getstring("1", "2021"));
|
||||
writeMonth.setSelection(SharedPreferencesUtils.getInt("2", 0), true);
|
||||
writeJitai.setSelection(SharedPreferencesUtils.getInt("3", 0), true);
|
||||
writeDaiqiang.setSelection(SharedPreferencesUtils.getInt("4", 0), true);
|
||||
writeDaikuan.setSelection(SharedPreferencesUtils.getInt("5", 0), true);
|
||||
writeShangjiaohoudu.setSelection(SharedPreferencesUtils.getInt("6", 0), true);
|
||||
writeXiajiaohoudu.setSelection(SharedPreferencesUtils.getInt("7", 0), true);
|
||||
writeGaijiaojibie.setSelection(SharedPreferencesUtils.getInt("8", 0), true);
|
||||
writeJuanhao.setSelection(SharedPreferencesUtils.getInt("9", 0), true);
|
||||
writeRfidshunxu.setSelection(SharedPreferencesUtils.getInt("10", 0), true);
|
||||
writeJiange1.setText(SharedPreferencesUtils.getstring("11-1", "0"));
|
||||
writeJiange2.setText(SharedPreferencesUtils.getstring("12-1", "0"));
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
List<Info> infoList = LitePal.findAll(Info.class);
|
||||
if (infoList.isEmpty()) {
|
||||
startActivity(new Intent(this, InfoActivity.class));
|
||||
Toast.makeText(this, "先维护数据", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
stringList1 = new ArrayList<>();
|
||||
stringList2 = new ArrayList<>();
|
||||
for (Info info : infoList) {
|
||||
if (info.getType().equals("生产厂家")) {
|
||||
stringList1.add(info.getName());
|
||||
} else {
|
||||
stringList2.add(info.getName());
|
||||
}
|
||||
}
|
||||
writeShengchanchangja.setAdapter(new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, stringList1));
|
||||
writeAnzhuangdidian.setAdapter(new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, stringList2));
|
||||
writeShengchanchangja.setSelection(SharedPreferencesUtils.getInt("13", 0), true);
|
||||
writeAnzhuangdidian.setSelection(SharedPreferencesUtils.getInt("14", 0), true);
|
||||
}
|
||||
|
||||
@SuppressLint("DefaultLocale")
|
||||
@OnClick(R.id.write_button)
|
||||
public void onViewClicked() {
|
||||
|
||||
String writeYear_text = writeYear.getText().toString().trim();
|
||||
if (writeYear_text.length() != 4) return;
|
||||
writeButton.setEnabled(false);
|
||||
String epc2122 = writeJiange1.getText().toString();
|
||||
String epc2324 = writeJiange2.getText().toString();
|
||||
if (epc2122.length() > 2 || epc2324.length() > 2) {
|
||||
Toast.makeText(this, "", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
//年1、2
|
||||
String epc1a2 = writeYear_text.substring(2, 4); //1 2
|
||||
Log.e("TAG", "生产年份:" + epc1a2);
|
||||
//月 3
|
||||
String month = (String) writeMonth.getSelectedItem();
|
||||
String epc3 = Integer.toHexString(Integer.parseInt(month));
|
||||
Log.e("TAG", "生产月份:" + epc3); //3
|
||||
//生产机台 4、5
|
||||
String epc4a5 = (String) writeJitai.getSelectedItem(); //4 5
|
||||
Log.e("TAG", "生产机台:" + epc4a5);
|
||||
//带强 6、7
|
||||
String daiqiang = writeDaiqiang.getSelectedItem().toString();
|
||||
int data4 = dqs.indexOf(daiqiang);
|
||||
String epc6a7 = String.format("%02d", data4 + 1); //6 7---4
|
||||
Log.e("TAG", "带强:" + epc6a7);
|
||||
//带宽8
|
||||
String daikuan = writeDaikuan.getSelectedItem().toString();
|
||||
int data5 = dks.indexOf(daikuan);
|
||||
String epc8 = String.format("%02d", data5 + 1); //8---5
|
||||
Log.e("TAG", "带宽:" + daikuan + ",代码:" + epc8);
|
||||
//厚度 上 9 10
|
||||
String houdu = writeShangjiaohoudu.getSelectedItem().toString();
|
||||
int data6 = hds.indexOf(houdu);
|
||||
String epc9a10 = String.format("%02d", data6 + 1);
|
||||
Log.e("TAG", "厚度上:" + houdu + ",代码:" + epc9a10);
|
||||
String epc1112 = "A"; //11 12 //连接符 +
|
||||
//厚度 上 13 14
|
||||
String houdu_xia = writeXiajiaohoudu.getSelectedItem().toString();
|
||||
int data7 = hds.indexOf(houdu_xia);
|
||||
String epc13a14 = String.format("%02d", data7 + 1);
|
||||
Log.e("TAG", "厚度下 :" + houdu_xia + ",代码" + epc13a14);
|
||||
//盖胶级别 15 16
|
||||
String gaijiao = writeGaijiaojibie.getSelectedItem().toString();
|
||||
int data8 = jbs.indexOf(gaijiao);
|
||||
String epc1516 = String.format("%02d", data8 + 1);
|
||||
Log.e("TAG", "盖胶级别 :" + gaijiao + ",代码" + epc1516);
|
||||
//
|
||||
String epc1718 = writeJuanhao.getSelectedItem().toString();
|
||||
Log.e("TAG", "卷号:" + epc1718);
|
||||
String epc1920 = writeRfidshunxu.getSelectedItem().toString();
|
||||
Log.e("TAG", "顺序:" + epc1920);
|
||||
if (epc2122.length() == 1) {
|
||||
epc2122 = "0" + epc2122;
|
||||
}
|
||||
Log.e("TAG", "前米数:" + epc2122);
|
||||
if (epc2324.length()==1) {
|
||||
epc2324="0"+epc2324;
|
||||
}
|
||||
Log.e("TAG", "后米数:" + epc2324);
|
||||
//生产厂家
|
||||
int selectedItemPosition = writeShengchanchangja.getSelectedItemPosition();
|
||||
String epc2526 = String.format("%02d", selectedItemPosition + 1);
|
||||
//安装地点
|
||||
int selectedItemPosition1 = writeAnzhuangdidian.getSelectedItemPosition();
|
||||
String epc2728 = String.format("%02d", selectedItemPosition1 + 1);
|
||||
|
||||
String write = epc1a2 + epc3 + epc4a5 + epc6a7 + epc8 + epc9a10 +
|
||||
epc1112 + epc13a14 + epc1516 + epc1718 + epc1920 +
|
||||
epc2122 + epc2324 + epc2526 + epc2728;
|
||||
Log.e("TAG", "写入标签:" + write);
|
||||
char i = 1;
|
||||
byte[] writeepc = Tools.HexString2Bytes(write);
|
||||
Reader.READER_ERR reader_err = uhfrManager.writeTagData(i, 2, writeepc, writeepc.length, accessBytes, (short) 1000);
|
||||
Log.e("TAG", "write:" + reader_err);
|
||||
if (reader_err.toString().equals("MT_OK_ERR")) {
|
||||
mediaPlayer.start();
|
||||
dialog.show();
|
||||
//写入成功后记录
|
||||
|
||||
} else {
|
||||
dialog1.show();
|
||||
}
|
||||
SharedPreferencesUtils.putstring("1", writeYear_text);
|
||||
SharedPreferencesUtils.putInt("2", months.indexOf(month));
|
||||
SharedPreferencesUtils.putInt("3", jts.indexOf(epc4a5));
|
||||
SharedPreferencesUtils.putInt("4", data4);
|
||||
SharedPreferencesUtils.putInt("5", data5);
|
||||
SharedPreferencesUtils.putInt("6", data6);
|
||||
SharedPreferencesUtils.putInt("7", data7);
|
||||
SharedPreferencesUtils.putInt("8", data8);
|
||||
SharedPreferencesUtils.putInt("9", sxs.indexOf(epc1718));
|
||||
SharedPreferencesUtils.putInt("10", sxs.indexOf(epc1920));
|
||||
SharedPreferencesUtils.putstring("11-1", epc2122);
|
||||
SharedPreferencesUtils.putstring("12-1", epc2324);
|
||||
SharedPreferencesUtils.putInt("13", selectedItemPosition);
|
||||
SharedPreferencesUtils.putInt("14", selectedItemPosition1);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void OnClickListener() {
|
||||
writeButton.setEnabled(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPointerCaptureChanged(boolean hasCapture) {
|
||||
writeButton.setEnabled(true);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package com.example.hightschool.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.example.hightschool.R;
|
||||
import com.example.hightschool.entity.Info;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2022/10/28 16:16
|
||||
*/
|
||||
public class InfoAdape extends RecyclerView.Adapter<InfoAdape.MyViewHolder> {
|
||||
private Context context;
|
||||
private List<Info> list;
|
||||
private LayoutInflater inflater;
|
||||
private ItemClickInterface itemClickInterface;
|
||||
|
||||
|
||||
public InfoAdape(Context context, ItemClickInterface itemClickInterface) {
|
||||
this.context = context;
|
||||
|
||||
this.inflater = LayoutInflater.from(context);
|
||||
this.itemClickInterface = itemClickInterface;
|
||||
|
||||
}
|
||||
|
||||
public void setList(List<Info> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
View view = inflater.inflate(R.layout.item_layout, parent,false);
|
||||
return new MyViewHolder(view);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
|
||||
Info info=list.get(position);
|
||||
holder.order.setText(String.valueOf(position+1));
|
||||
holder.name.setText(info.getName());
|
||||
holder.button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
itemClickInterface.onItemClick(position);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
if (list!=null) return list.size();
|
||||
return 0;
|
||||
}
|
||||
|
||||
public class MyViewHolder extends RecyclerView.ViewHolder {
|
||||
private TextView order,name,button;
|
||||
public MyViewHolder(@NonNull View itemView) {
|
||||
super(itemView);
|
||||
order=itemView.findViewById(R.id.item_index);
|
||||
name=itemView.findViewById(R.id.item_info);
|
||||
button=itemView.findViewById(R.id.item_buttom);
|
||||
}
|
||||
}
|
||||
|
||||
public interface ItemClickInterface {
|
||||
void onItemClick(int index);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package com.example.hightschool.dialog;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.example.hightschool.R;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
import butterknife.OnClick;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2022/11/7 16:24
|
||||
*/
|
||||
public class EditTextDialog extends Dialog {
|
||||
@BindView(R.id.dialog3_info)
|
||||
EditText dialog3Info;
|
||||
|
||||
|
||||
private DialogCall call;
|
||||
|
||||
public void setCall(DialogCall call) {
|
||||
this.call = call;
|
||||
}
|
||||
|
||||
public EditTextDialog(@NonNull Context context) {
|
||||
super(context, R.style.CustomDialog);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_edit);
|
||||
ButterKnife.bind(this);
|
||||
setCanceledOnTouchOutside(false);
|
||||
}
|
||||
|
||||
@OnClick({R.id.dialog3_button2, R.id.dialog3_button1})
|
||||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.dialog3_button2:
|
||||
|
||||
break;
|
||||
case R.id.dialog3_button1:
|
||||
String s = dialog3Info.getText().toString();
|
||||
if (s.isEmpty()) return;
|
||||
call.inputTextCall(s);
|
||||
break;
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
super.show();
|
||||
dialog3Info.setText(null);
|
||||
}
|
||||
|
||||
public interface DialogCall {
|
||||
void inputTextCall(String text);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.example.hightschool.entity;
|
||||
|
||||
import org.litepal.crud.LitePalSupport;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2022/10/27 16:54
|
||||
*/
|
||||
public class Info extends LitePalSupport {
|
||||
private int id;
|
||||
private String name;
|
||||
private String type;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Info{" +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", type='" + type + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
//package com.example.hightschool;
|
||||
//
|
||||
//import android.os.Bundle;
|
||||
//import android.util.Log;
|
||||
//import android.view.KeyEvent;
|
||||
//import android.widget.TextView;
|
||||
//import android.widget.Toast;
|
||||
//
|
||||
//
|
||||
//import com.uhf.api.cls.Reader;
|
||||
//
|
||||
//import butterknife.BindView;
|
||||
//import butterknife.ButterKnife;
|
||||
//import butterknife.OnClick;
|
||||
//import cn.pda.serialport.Tools;
|
||||
//
|
||||
//public class zifuchuanchuliActivity extends BaseActivity {
|
||||
//
|
||||
// @BindView(R.id.chuli_epc)
|
||||
// TextView chuliEpc;
|
||||
// char i = 1;
|
||||
// @BindView(R.id.chuli_epc1)
|
||||
// TextView chuliEpc1;
|
||||
//
|
||||
// @Override
|
||||
// protected void onCreate(Bundle savedInstanceState) {
|
||||
// super.onCreate(savedInstanceState);
|
||||
// setContentView(R.layout.activity_zifuchuanchuli);
|
||||
// ButterKnife.bind(this);
|
||||
//
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @OnClick(R.id.chuli_button)
|
||||
// public void onViewClicked() {
|
||||
// reedepc();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
// Log.e("TAG", "onKeyDown:" + keyCode);
|
||||
// if (keyCode == 135) {
|
||||
// reedepc();
|
||||
// } else if (keyCode == 4) {
|
||||
// finish();
|
||||
// }
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
//
|
||||
// private void reedepc() {
|
||||
// byte[] readBytes = new byte[12];
|
||||
// if (uhfrManager == null) {
|
||||
// uhfrManager = MyApp.getUhfrManager();
|
||||
// }
|
||||
// Reader.READER_ERR reader_err = uhfrManager.getTagData(1, 2, 6, readBytes, accessBytes, (short) 1000);
|
||||
// Log.e("TAG", "san_epc:" + reader_err);
|
||||
// if (reader_err.toString().equals("MT_OK_ERR")) {
|
||||
// mediaPlayer.start();
|
||||
// String epc= Tools.Bytes2HexString(readBytes,readBytes.length);
|
||||
//// String epc = "343230393900000000000000";
|
||||
//
|
||||
// rerd_view(epc);
|
||||
// } else {
|
||||
// Toast.makeText(this, "读取失败", Toast.LENGTH_SHORT).show();
|
||||
// chuliEpc.setText(null);
|
||||
// chuliEpc1.setText(null);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// private void rerd_view(String epc) {
|
||||
// chuliEpc.setText(epc);
|
||||
// try {
|
||||
// String epcH10 = epc.substring(10, epc.length());
|
||||
// Log.e("TAG", "epcH10:" + epcH10);
|
||||
// int test = Integer.parseInt(epcH10);
|
||||
// if (test == 0) {
|
||||
// String epc10 = epc.substring(0, 10);
|
||||
// Log.e("TAG", "rerd_view:" + epc10);
|
||||
// //拼接成新的规则
|
||||
// String epcNew = "5151474A50" + epc10 + "0000";
|
||||
// byte[] writeepc = Tools.HexString2Bytes(epcNew);
|
||||
// Reader.READER_ERR reader_err = uhfrManager.writeTagData(i, 2, writeepc, writeepc.length, accessBytes, (short) 1000);
|
||||
// Log.e("TAG", "write:" + reader_err);
|
||||
// //写入判断
|
||||
// if (reader_err.toString().equals("MT_OK_ERR")) {
|
||||
// mediaPlayer.start();
|
||||
// dialog1.setInfoText("写入成功");
|
||||
// dialog1.show();
|
||||
// chuliEpc1.setText(epcNew);
|
||||
// } else {
|
||||
// Toast.makeText(this, "写入失败", Toast.LENGTH_SHORT).show();
|
||||
// chuliEpc1.setText(null);
|
||||
// }
|
||||
// } else {
|
||||
// dialog1.setInfoText("读取到EPC不符合规范");
|
||||
// dialog1.show();
|
||||
// chuliEpc1.setText(null);
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// dialog1.setInfoText("读取到EPC长度不够");
|
||||
// dialog1.show();
|
||||
// chuliEpc1.setText(null);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// }
|
||||
//}
|
||||
@ -0,0 +1,34 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="8dp"/>
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFF"
|
||||
/>
|
||||
|
||||
<corners android:radius="20dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#008577"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="6dp"/>
|
||||
<stroke android:width="1dp"/>
|
||||
<solid android:color="#ffffff" />
|
||||
</shape>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="4dp"/>
|
||||
<stroke android:width="2dp"
|
||||
android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".Activity1">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/blue2"
|
||||
android:orientation="vertical"
|
||||
tools:context=".InfoActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/barstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:text="信息维护" />
|
||||
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/info_tabLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@drawable/tablayout_bg"
|
||||
android:padding="1dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/frameLayout"
|
||||
app:tabGravity="fill"
|
||||
app:tabTextAppearance="@style/TabTextAppearance"
|
||||
|
||||
app:tabIndicatorColor="@color/colorPrimary"
|
||||
app:tabIndicatorHeight="53dp"
|
||||
app:tabSelectedTextColor="@color/white"
|
||||
app:tabTextColor="@color/colorPrimary">
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产厂家" />
|
||||
|
||||
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="安装地点" />
|
||||
|
||||
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/info_recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintTop_toBottomOf="@+id/info_tabLayout" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/info_add"
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="62dp"
|
||||
android:layout_margin="60dp"
|
||||
android:src="@mipmap/info_add"
|
||||
android:layout_gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/barstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="主页" />
|
||||
|
||||
<RadioGroup
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginTop="26dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioButton1"
|
||||
style="@style/redo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:drawableTop="@mipmap/xieru"
|
||||
android:text="写入" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioButton2"
|
||||
style="@style/redo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:drawableTop="@mipmap/duqu"
|
||||
android:text="读取" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<RadioGroup
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginTop="26dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/radioButton3"
|
||||
style="@style/redo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:drawableTop="@mipmap/peizhi"
|
||||
android:text="配置" />
|
||||
|
||||
<RadioButton
|
||||
style="@style/redo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,346 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/blue2"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ReedActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/barstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="读取" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="读取EPC:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_epc"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产年:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_year"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产月:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_month"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产机台:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_jitai"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="号机台" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="带强:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_daiqiang"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="带宽:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_daikuan"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="上胶厚度:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_shangjiaohoudu"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/houdu" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="下胶厚度:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_xiajiaohoudu"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/houdu" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="盖胶级别:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_gaijiaojibie"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/gaijiao" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="69dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="卷号:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_juanhao"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/xuhao" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="卷" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="RFID卡顺序号:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_rfidshunxu"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/xuhao" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="个" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="前间隔:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_jiange1"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/jiange" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="米" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="后间隔:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_jiange2"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/jiange" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="米" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产厂家:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_shengchanchangjia"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/gaijiao" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="安装地点:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reed_anzhuangdidian"
|
||||
style="@style/textstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/infobg"
|
||||
android:entries="@array/gaijiao" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/reed_button"
|
||||
style="@style/buttonstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="读 取" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/reed_cler"
|
||||
style="@style/buttonstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="清 空" />
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,333 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/blue2"
|
||||
android:orientation="vertical"
|
||||
tools:context=".WriteActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/barstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="写入" />
|
||||
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产年:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/write_year"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:inputType="number"
|
||||
android:text="2021"
|
||||
android:textSize="22sp" />
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
android:text="生产月:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_month"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/month"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产机台:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_jitai"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/jitai"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="带强:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_daiqiang"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/daiqiang"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="带宽:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_daikuan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/daikuan"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="上胶厚度:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_shangjiaohoudu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/houdu"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="center" />
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="下胶厚度:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_xiajiaohoudu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/houdu"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="盖胶级别:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_gaijiaojibie"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/gaijiao"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="卷号:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_juanhao"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:entries="@array/xuhao"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="卷" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="RFID卡顺序号:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_rfidshunxu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:entries="@array/xuhao"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="个" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="当前RFID前间隔:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/write_jiange1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:inputType="number"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="米" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="当前RFID后间隔:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/write_jiange2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:inputType="number"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="米" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="生产厂家:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_shengchanchangja"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/gaijiao"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="安装地点:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/write_anzhuangdidian"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/gaijiao"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/write_button"
|
||||
style="@style/buttonstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="写入" />
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".zifuchuanchuliActivity">
|
||||
<TextView
|
||||
style="@style/barstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="读取" />
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_height="45dp"
|
||||
android:text="读取EPC:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chuli_epc"
|
||||
style="@style/textstyle"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/infobg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="\n"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/chuli_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="20dp"
|
||||
style="@style/buttonstyle"
|
||||
android:text="读 取"/>
|
||||
|
||||
<LinearLayout
|
||||
style="@style/linearLayoutstyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp">
|
||||
<TextView
|
||||
style="@style/textstyle"
|
||||
android:layout_width="90dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_height="45dp"
|
||||
android:text="成功数据:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chuli_epc1"
|
||||
style="@style/textstyle"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/infobg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="400dp"
|
||||
android:layout_height="246dp"
|
||||
android:background="@drawable/dialog_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="23dp"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold"
|
||||
android:drawableLeft="@mipmap/dialog_jingg"
|
||||
android:text="输入信息" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="为保持读写性能和节省芯片存储空间,请尽可能简写"
|
||||
android:gravity="center"
|
||||
android:textColor="#F44336"/>
|
||||
<EditText
|
||||
android:id="@+id/dialog3_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:textSize="22sp"
|
||||
android:background="@color/white"
|
||||
android:hint="输入信息"
|
||||
android:textColor="#070707"
|
||||
android:gravity="center"/>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#e1e1e1"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog3_button2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
|
||||
android:text="取 消"
|
||||
android:textColor="#858585"
|
||||
android:textSize="25sp" />
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#e1e1e1"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/dialog3_button1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:text="确 定"
|
||||
android:textColor="#02CC02"
|
||||
android:textSize="25sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="450dp"
|
||||
android:layout_height="246dp"
|
||||
android:background="@drawable/dialog_bg">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginTop="23dp"
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/suess" />
|
||||
<TextView
|
||||
android:id="@+id/dialog_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:text="成功"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textSize="22sp"
|
||||
android:textColor="#232323"
|
||||
android:gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="确 定"
|
||||
android:textColor="#02CC02"
|
||||
android:textSize="25sp"
|
||||
android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="450dp"
|
||||
android:layout_height="246dp"
|
||||
android:background="@drawable/dialog_bg">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginTop="23dp"
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/shibai" />
|
||||
<TextView
|
||||
android:id="@+id/dialog_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:text="失败"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textSize="22sp"
|
||||
android:textColor="#232323"
|
||||
android:gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="确 定"
|
||||
android:textColor="#02CC02"
|
||||
android:textSize="25sp"
|
||||
android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="44dp"
|
||||
android:background="#DEE3E6">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_index"
|
||||
android:layout_width="71dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="01"
|
||||
style="@style/item_text_style" />
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="01"
|
||||
style="@style/item_text_style" />
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_buttom"
|
||||
android:layout_width="76dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="删除"
|
||||
android:textColor="#E71717"
|
||||
style="@style/item_text_style" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 449 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 549 B |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,400 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="month">
|
||||
<item>01</item>
|
||||
<item>02</item>
|
||||
<item>03</item>
|
||||
<item>04</item>
|
||||
<item>05</item>
|
||||
<item>06</item>
|
||||
<item>07</item>
|
||||
<item>08</item>
|
||||
<item>09</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
</string-array>
|
||||
<string-array name="jitai">
|
||||
<item>01</item>
|
||||
<item>02</item>
|
||||
<item>03</item>
|
||||
<item>04</item>
|
||||
<item>05</item>
|
||||
<item>06</item>
|
||||
<item>07</item>
|
||||
<item>08</item>
|
||||
<item>09</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>13</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
<item>16</item>
|
||||
<item>17</item>
|
||||
<item>18</item>
|
||||
<item>19</item>
|
||||
<item>20</item>
|
||||
<item>21</item>
|
||||
<item>22</item>
|
||||
<item>23</item>
|
||||
<item>24</item>
|
||||
<item>25</item>
|
||||
<item>26</item>
|
||||
<item>27</item>
|
||||
<item>28</item>
|
||||
<item>29</item>
|
||||
<item>30</item>
|
||||
<item>31</item>
|
||||
<item>32</item>
|
||||
<item>33</item>
|
||||
<item>34</item>
|
||||
<item>35</item>
|
||||
<item>36</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<string-array name="daiqiang">
|
||||
<item>DPP500</item>
|
||||
<item>DPP630</item>
|
||||
<item>DPP800</item>
|
||||
<item>DPP1000</item>
|
||||
<item>DPP1250</item>
|
||||
<item>DPP1400</item>
|
||||
<item>DPP1600</item>
|
||||
<item>DPP1800</item>
|
||||
<item>DPP2000</item>
|
||||
<item>DPP2500</item>
|
||||
<item>DPP3150</item>
|
||||
<item>ST630</item>
|
||||
<item>ST800</item>
|
||||
<item>ST1000</item>
|
||||
<item>ST1250</item>
|
||||
<item>ST1400</item>
|
||||
<item>ST1600</item>
|
||||
<item>ST1800</item>
|
||||
<item>ST2000</item>
|
||||
<item>ST2250</item>
|
||||
<item>ST2500</item>
|
||||
<item>ST2800</item>
|
||||
<item>ST3150</item>
|
||||
<item>ST3500</item>
|
||||
<item>ST4000</item>
|
||||
<item>ST4500</item>
|
||||
<item>ST5000</item>
|
||||
<item>ST5400</item>
|
||||
<item>ST6300</item>
|
||||
<item>ST7000</item>
|
||||
<item>ST7500</item>
|
||||
<item>EP100*2</item>
|
||||
<item>EP125*2</item>
|
||||
<item>EP150*2</item>
|
||||
<item>EP200*2</item>
|
||||
<item>EP100*3</item>
|
||||
<item>EP125*3</item>
|
||||
<item>EP150*3</item>
|
||||
<item>EP200*3</item>
|
||||
<item>EP250*3</item>
|
||||
<item>EP300*3</item>
|
||||
<item>EP350*3</item>
|
||||
<item>EP400*3</item>
|
||||
<item>EP100*4</item>
|
||||
<item>EP125*4</item>
|
||||
<item>EP150*4</item>
|
||||
<item>EP200*4</item>
|
||||
<item>EP250*4</item>
|
||||
<item>EP300*4</item>
|
||||
<item>EP350*4</item>
|
||||
<item>EP400*4</item>
|
||||
<item>EP500*4</item>
|
||||
<item>EP100*5</item>
|
||||
<item>EP125*5</item>
|
||||
<item>EP150*5</item>
|
||||
<item>EP200*5</item>
|
||||
<item>EP250*5</item>
|
||||
<item>EP300*5</item>
|
||||
<item>EP350*5</item>
|
||||
<item>EP400*5</item>
|
||||
<item>EP450*5</item>
|
||||
<item>EP500*5</item>
|
||||
<item>EP550*5</item>
|
||||
<item>EP200*6</item>
|
||||
<item>EP250*6</item>
|
||||
<item>EP300*6</item>
|
||||
<item>EP350*6</item>
|
||||
<item>EP400*6</item>
|
||||
<item>EP450*6</item>
|
||||
<item>EP500*6</item>
|
||||
<item>EP300*7</item>
|
||||
<item>SW300</item>
|
||||
<item>SW315</item>
|
||||
<item>SW400</item>
|
||||
<item>SW500</item>
|
||||
<item>SW630</item>
|
||||
<item>SW700</item>
|
||||
<item>SW800</item>
|
||||
<item>SW1000</item>
|
||||
<item>SW1250</item>
|
||||
<item>SW1500</item>
|
||||
<item>NN100*2</item>
|
||||
<item>NN125*2</item>
|
||||
<item>NN150*2</item>
|
||||
<item>NN200*2</item>
|
||||
<item>NN100*3</item>
|
||||
<item>NN125*3</item>
|
||||
<item>NN150*3</item>
|
||||
<item>NN200*3</item>
|
||||
<item>NN250*3</item>
|
||||
<item>NN300*3</item>
|
||||
<item>NN350*3</item>
|
||||
<item>NN400*3</item>
|
||||
<item>NN100*4</item>
|
||||
<item>NN125*4</item>
|
||||
<item>NN150*4</item>
|
||||
<item>NN200*4</item>
|
||||
<item>NN250*4</item>
|
||||
<item>NN300*4</item>
|
||||
<item>NN350*4</item>
|
||||
<item>NN400*4</item>
|
||||
<item>NN500*4</item>
|
||||
<item>NN100*5</item>
|
||||
<item>NN125*5</item>
|
||||
<item>NN150*5</item>
|
||||
<item>NN200*5</item>
|
||||
<item>NN250*5</item>
|
||||
<item>NN300*5</item>
|
||||
<item>NN350*5</item>
|
||||
<item>NN400*5</item>
|
||||
<item>NN450*5</item>
|
||||
<item>NN500*5</item>
|
||||
<item>NN550*5</item>
|
||||
<item>NN200*6</item>
|
||||
<item>NN250*6</item>
|
||||
<item>NN300*6</item>
|
||||
<item>NN350*6</item>
|
||||
<item>NN400*6</item>
|
||||
<item>NN450*6</item>
|
||||
<item>NN500*6</item>
|
||||
<item>NN250*7</item>
|
||||
<item>IW350</item>
|
||||
<item>IW500</item>
|
||||
<item>IW630</item>
|
||||
</string-array>
|
||||
<string-array name="daikuan">
|
||||
<item>500mm</item>
|
||||
<item>650mm</item>
|
||||
<item>800mm</item>
|
||||
<item>1000mm</item>
|
||||
<item>1200mm</item>
|
||||
<item>1300mm</item>
|
||||
<item>1400mm</item>
|
||||
<item>1530mm</item>
|
||||
<item>1600mm</item>
|
||||
<item>1800mm</item>
|
||||
<item>2000mm</item>
|
||||
<item>2200mm</item>
|
||||
<item>2400mm</item>
|
||||
<item>2600mm</item>
|
||||
<item>2800mm</item>
|
||||
<item>3000mm</item>
|
||||
<item>3200mm</item>
|
||||
</string-array>
|
||||
<string-array name="houdu">
|
||||
<item>1.5mm</item>
|
||||
<item>2mm</item>
|
||||
<item>2.5mm</item>
|
||||
<item>3mm</item>
|
||||
<item>3.5mm</item>
|
||||
<item>4mm</item>
|
||||
<item>4.5mm</item>
|
||||
<item>5mm</item>
|
||||
<item>5.5mm</item>
|
||||
<item>6mm</item>
|
||||
<item>6.5mm</item>
|
||||
<item>7mm</item>
|
||||
<item>7.5mm</item>
|
||||
<item>8mm</item>
|
||||
<item>8.5mm</item>
|
||||
<item>9mm</item>
|
||||
<item>9.5mm</item>
|
||||
<item>10mm</item>
|
||||
<item>10.5mm</item>
|
||||
<item>11mm</item>
|
||||
<item>11.5mm</item>
|
||||
<item>12mm</item>
|
||||
<item>12.5mm</item>
|
||||
<item>13mm</item>
|
||||
<item>13.5mm</item>
|
||||
<item>14mm</item>
|
||||
<item>14.5mm</item>
|
||||
<item>15mm</item>
|
||||
<item>15.5mm</item>
|
||||
<item>16mm</item>
|
||||
<item>16.5mm</item>
|
||||
<item>17mm</item>
|
||||
<item>17.5mm</item>
|
||||
<item>18mm</item>
|
||||
<item>18.5mm</item>
|
||||
<item>19mm</item>
|
||||
<item>19.5mm</item>
|
||||
<item>20mm</item>
|
||||
<item>20.5mm</item>
|
||||
<item>21mm</item>
|
||||
<item>21.5mm</item>
|
||||
<item>22mm</item>
|
||||
<item>22.5mm</item>
|
||||
<item>23mm</item>
|
||||
<item>23.5mm</item>
|
||||
<item>24mm</item>
|
||||
<item>24.5mm</item>
|
||||
<item>25mm</item>
|
||||
<item>25.5mm</item>
|
||||
<item>26mm</item>
|
||||
<item>26.5mm</item>
|
||||
<item>27mm</item>
|
||||
<item>27.5mm</item>
|
||||
<item>28mm</item>
|
||||
<item>28.5mm</item>
|
||||
<item>29mm</item>
|
||||
<item>29.5mm</item>
|
||||
<item>30mm</item>
|
||||
<item>30.5mm</item>
|
||||
<item>31mm</item>
|
||||
<item>31.5mm</item>
|
||||
<item>32mm</item>
|
||||
<item>32.5mm</item>
|
||||
<item>33mm</item>
|
||||
<item>33.5mm</item>
|
||||
<item>34mm</item>
|
||||
<item>34.5mm</item>
|
||||
<item>35mm</item>
|
||||
<item>35.5mm</item>
|
||||
<item>36mm</item>
|
||||
<item>36.5mm</item>
|
||||
<item>37mm</item>
|
||||
<item>37.5mm</item>
|
||||
<item>38mm</item>
|
||||
<item>38.5mm</item>
|
||||
<item>39mm</item>
|
||||
<item>39.5mm</item>
|
||||
<item>40mm</item>
|
||||
|
||||
</string-array>
|
||||
<string-array name="gaijiao">
|
||||
<item>L</item>
|
||||
<item>D</item>
|
||||
<item>H</item>
|
||||
<item>T1</item>
|
||||
<item>T2</item>
|
||||
<item>T3</item>
|
||||
<item>T4</item>
|
||||
<item>K2</item>
|
||||
<item>K3</item>
|
||||
<item>MT668</item>
|
||||
<item>LO</item>
|
||||
<item>C1</item>
|
||||
<item>A1/A2/A3</item>
|
||||
<item>DIN-W</item>
|
||||
<item>DIN-Y</item>
|
||||
<item>DIN-X</item>
|
||||
<item>SANS-N</item>
|
||||
<item>SANS-M</item>
|
||||
<item>SABS-N</item>
|
||||
<item>SABS-M</item>
|
||||
<item>AS-A</item>
|
||||
<item>AS-M</item>
|
||||
<item>AS-S</item>
|
||||
<item>RMA-1</item>
|
||||
<item>RMA-2</item>
|
||||
<item>MT914</item>
|
||||
|
||||
</string-array>
|
||||
<string-array name="xuhao">
|
||||
<item>01</item>
|
||||
<item>02</item>
|
||||
<item>03</item>
|
||||
<item>04</item>
|
||||
<item>05</item>
|
||||
<item>06</item>
|
||||
<item>07</item>
|
||||
<item>08</item>
|
||||
<item>09</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>13</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
<item>16</item>
|
||||
<item>17</item>
|
||||
<item>18</item>
|
||||
<item>19</item>
|
||||
<item>20</item>
|
||||
<item>21</item>
|
||||
<item>22</item>
|
||||
<item>23</item>
|
||||
<item>24</item>
|
||||
<item>25</item>
|
||||
<item>26</item>
|
||||
<item>27</item>
|
||||
<item>28</item>
|
||||
<item>29</item>
|
||||
<item>30</item>
|
||||
<item>31</item>
|
||||
<item>32</item>
|
||||
<item>33</item>
|
||||
<item>34</item>
|
||||
<item>35</item>
|
||||
<item>36</item>
|
||||
<item>37</item>
|
||||
<item>38</item>
|
||||
<item>39</item>
|
||||
<item>40</item>
|
||||
<item>41</item>
|
||||
<item>42</item>
|
||||
<item>43</item>
|
||||
<item>44</item>
|
||||
<item>45</item>
|
||||
<item>46</item>
|
||||
<item>47</item>
|
||||
<item>48</item>
|
||||
<item>49</item>
|
||||
<item>50</item>
|
||||
|
||||
</string-array>
|
||||
<string-array name="jiange">
|
||||
<item>01</item>
|
||||
<item>02</item>
|
||||
<item>03</item>
|
||||
<item>04</item>
|
||||
<item>05</item>
|
||||
<item>06</item>
|
||||
<item>07</item>
|
||||
<item>08</item>
|
||||
<item>09</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>13</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
<item>16</item>
|
||||
<item>17</item>
|
||||
<item>18</item>
|
||||
<item>19</item>
|
||||
<item>20</item>
|
||||
<item>21</item>
|
||||
<item>22</item>
|
||||
<item>23</item>
|
||||
<item>24</item>
|
||||
<item>25</item>
|
||||
<item>26</item>
|
||||
<item>27</item>
|
||||
<item>28</item>
|
||||
<item>29</item>
|
||||
<item>30</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#008577</color>
|
||||
<color name="colorPrimaryDark">#00574B</color>
|
||||
<color name="colorAccent">#D81B60</color>
|
||||
<color name="blue2"> #F0F5FD </color>
|
||||
<color name="white">#FFFFFF</color>
|
||||
</resources>
|
||||
@ -0,0 +1,4 @@
|
||||
<resources>
|
||||
<string name="app_name">浙江双箭RFID输送带信息管理系统</string>
|
||||
<string name="app_name1">匹配改变RFID</string>
|
||||
</resources>
|
||||