Commit a2335ad3 authored by zhang_u's avatar zhang_u

单机取号

parents
*.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
local.properties
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8 (2)" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?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="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<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>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
/build
\ No newline at end of file
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 29
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "com.example.numbertakingmachine"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
multiDexEnabled true
ndk {
moduleName "readerapi"
abiFilters "armeabi-v7a", "arm64-v8a", "armeabi", "x86_64"
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
android.applicationVariants.all {
variant ->
variant.outputs.all {
// 此处指定生成的apk文件名
outputFileName = "NumberTakingMachineV" + versionName + ".apk"
}
}
repositories {
flatDir {
dirs 'libs'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation files('libs\\jna.jar')
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
implementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.apache.httpcomponents:httpcore:4.4.4'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.google.code.gson:gson:2.8.5'
}
\ No newline at end of file
# 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
\ No newline at end of file
package com.example.numbertakingmachine;
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.numbertakingmachine", appContext.getPackageName());
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.numbertakingmachine">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
tools:ignore="ProtectedPermissions" />
<application
android:name=".utils.MyApplication"
android:allowBackup="true"
android:icon="@drawable/app_logo"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:roundIcon="@drawable/app_logo"
android:supportsRtl="true"
android:theme="@style/NoTitle">
<activity
android:name=".ui.SplashActivity"
android:windowSoftInputMode="adjustPan"
tools:ignore="MissingClass">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.MainActivity"></activity>
<service android:name=".server.MyServer" />
<receiver
android:name=".service.BootReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<!-- <action android:name="com.hisense.action.THIRDSTART"/> -->
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
</application>
</manifest>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<CHONGZHI_PRINT><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>充值凭单</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title></Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>单号:%CARDNO</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title></Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>充值结果:%PRINTRESULT</Title>
</Line>
</CHONGZHI_PRINT>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<CHONGZHI_PRINT_HIS><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>%DYBT</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%YYMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>卡号:%CARDNO 姓名:%NAME</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>充值金额:%CZJE %CZJEDX</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>充值日期:%CZRQ</Title>
</Line>
</CHONGZHI_PRINT_HIS>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<GENERAL_PRINT><Line>
<FontSize>2</FontSize>
<Bold>1</Bold>
<Pos>left</Pos>
<Title>%LINE1</Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE2</Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>1</Bold>
<Pos>left</Pos>
<Title>%LINE3</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%BARCODE</Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE4</Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE5</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE6</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%QR</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE7</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE8</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE9</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE10</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE11</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE12</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE13</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE14</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>left</Pos>
<Title>%LINE15</Title>
</Line>
</GENERAL_PRINT>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<GUAHAO_PRINT><Line>
<FontSize>2</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>%DYBT</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%YYMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>卡号:%CARDNO 姓名:%NAME</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%BARCODE</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>挂号金额:%GHJE</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>挂号项目名称:%XMMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>挂号日期:%GHRQ</Title>
</Line>
</GUAHAO_PRINT>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<SHOUFEI_PRINT><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>%DYBT</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%YYMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>卡号:%CARDNO 姓名:%NAME</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%BARCODE</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>收费金额:%SFJE</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>收费项目名称:%DXMMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>收费日期:%SFRQ</Title>
</Line>
</SHOUFEI_PRINT>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<YUYUE_PRINT><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>%DYBT</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>2</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>%YYMC</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>1</Bold>
<Pos>center</Pos>
<Title>卡号:%CARDNO 姓名:%NAME</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>预约号序:%YYHX</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>预约科室:%YYKS</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>预约医生:%YYYS</Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title> </Title>
</Line><Line>
<FontSize>1</FontSize>
<Bold>0</Bold>
<Pos>center</Pos>
<Title>预约日期:%YYRQ</Title>
</Line>
</YUYUE_PRINT>
\ No newline at end of file
<!--
* @Author: zhangYaRan
* @Date: 2020-07-11 15:20:43
* @LastEditors: zhangYaRan
* @LastEditTime: 2021-08-12 10:51:44
* @Description:
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
1.前端点击按钮调用的sendAndroidApp方法
<textarea name="" id="textarea" placeholder="请输入发送的值" cols="30" rows="10"></textarea>
<button id="sendMsgReadCard">读卡</button>
<button id="sendMsgPlay">播放语音</button>
<button id="sendMsgPintLine">打印</button>
<button id="sendReadIC">读IC卡</button>
<button id="sendMsg">测试</button>
<br>
<br>
<br>
<br>
2.前端接受的方法是getAndroidApp
<textarea name="" id="getTextarea" placeholder="接收到的值" cols="30" rows="10"></textarea>
</body>
<script>
//接受
function getAndroidApp(val) {
//alert(val)
console.log('接收的值:' + val)
document.getElementById("getTextarea").value = val
}
window.onload = function () {
//点击发送
document.getElementById("sendMsgReadCard").onclick = function () {
var textareaVal = '<invoke name="READALLCARD" timeout="0"><arguments></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.sendAndroidApp) {
RW.sendAndroidApp(textareaVal)
} else {
alert('没有找到sendAndroidApp方法')
}
}
document.getElementById("sendMsgPlay").onclick = function () {
var textareaVal = '<invoke name="YYBF"><arguments><string id="Play">请您保持距离</string></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.sendAndroidApp) {
RW.sendAndroidApp(textareaVal)
} else {
alert('没有找到sendAndroidApp方法')
}
}
document.getElementById("sendMsgPintLine").onclick = function () {
var textareaVal = '<invoke name="GENERAL_PRINT"><arguments><string id="LINE1">德阳市人民医院通行码</string><string id="LINE2">-----------------------</string><string id="LINE3">姓名:王大鹏</string><string id="LINE4">证件类型:电子健康码</string><string id="LINE5">手机号:13521797155</string><string id="LINE6">------------6-------------</string><string id="QR">123456789</string><string id="LINE7">------------8-------------</string><string id="BARCODE">123456789</string></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.sendAndroidApp) {
RW.sendAndroidApp(textareaVal)
} else {
alert('没有找到sendAndroidApp方法')
}
}
document.getElementById("sendReadIC").onclick = function () {
var textareaVal = '<invoke name="READCARDFJC"><arguments><string id="SECTOR">2</string><string id="BLOCK">0</string><string id="KEY">AB08222893CD</string></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.sendAndroidApp) {
RW.sendAndroidApp(textareaVal)
} else {
alert('没有找到sendAndroidApp方法')
}
}
document.getElementById("sendMsg").onclick = function () {
var textareaVal = '测试字符串';
//getAndroidApp(textareaVal)
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.showToast) {
RW.showToast(textareaVal)
} else {
alert('没有找到showToast方法')
}
}
}
</script>
</html>
\ No newline at end of file
<!--
* @Author: zhangYaRan
* @Date: 2020-07-11 15:20:43
* @LastEditors: zhangYaRan
* @LastEditTime: 2021-08-12 10:51:44
* @Description:
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
1.前端点击按钮调用的XmlTcp方法
<textarea name="" id="textarea" placeholder="请输入发送的值" cols="30" rows="10"></textarea>
<button id="sendMsgReadCard">读卡</button>
<button id="sendMsgPlay">播放语音</button>
<button id="sendMsgPintLine">打印</button>
<button id="sendMsgPintStatus">打印机状态</button>
<button id="sendMsg">测试</button>
<br>
<br>
<br>
<br>
2.前端接受的方法是RxData
<textarea name="" id="getTextarea" placeholder="接收到的值" cols="30" rows="10"></textarea>
</body>
<script>
//接受
function RxData(val) {
//alert(val)
console.log('接收的值:' + val)
document.getElementById("getTextarea").value = val
}
window.onload = function () {
//点击发送
document.getElementById("sendMsgReadCard").onclick = function () {
var textareaVal = '<invoke name="READALLCARD" timeout="0"><arguments></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.XmlTcp) {
RW.XmlTcp(textareaVal)
} else {
alert('没有找到XmlTcp方法')
}
}
document.getElementById("sendMsgPlay").onclick = function () {
var textareaVal = '<invoke name="PLAYVOICE"><arguments><string id="Play">请您保持距离</string></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.XmlTcp) {
RW.XmlTcp(textareaVal)
} else {
alert('没有找到XmlTcp方法')
}
}
document.getElementById("sendMsgPintLine").onclick = function () {
var textareaVal = '<invoke name="GENERAL_PRINT"><arguments><string id="LINE1">德阳市人民医院通行码</string><string id="LINE2">-----------------------</string><string id="LINE3">姓名:王大鹏</string><string id="LINE4">证件类型:电子健康码</string><string id="LINE5">手机号:13521797155</string><string id="LINE6">------------6-------------</string><string id="QR">123456789</string><string id="LINE7">------------8-------------</string><string id="BARCODE">123456789</string></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.XmlTcp) {
RW.XmlTcp(textareaVal)
} else {
alert('没有找到XmlTcp方法')
}
}
document.getElementById("sendMsgPintStatus").onclick = function () {
var textareaVal = '<invoke name="RECEIPTSTATUS"><arguments></arguments></invoke>';
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.XmlTcp) {
RW.XmlTcp(textareaVal)
} else {
alert('没有找到XmlTcp方法')
}
}
document.getElementById("sendMsg").onclick = function () {
var textareaVal = '测试字符串';
//getAndroidApp(textareaVal)
document.getElementById("textarea").value = textareaVal
console.log('发送的值:' + textareaVal)
if (RW.showToast) {
RW.showToast(textareaVal)
} else {
alert('没有找到showToast方法')
}
}
}
</script>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment