Commit 3c2353cd311a410b99769ec255eb9a92bfebe028
0 parents
1、畅游通核销app源码提交;
Showing
467 changed files
with
47575 additions
and
0 deletions
Too many changes.
To preserve performance only 100 of 467 files are displayed.
.classpath
0 → 100644
1 | +++ a/.classpath | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<classpath> | ||
3 | + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
4 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
5 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||
6 | + <classpathentry kind="src" path="src"/> | ||
7 | + <classpathentry kind="src" path="gen"/> | ||
8 | + <classpathentry kind="output" path="bin/classes"/> | ||
9 | +</classpath> |
AndroidManifest.xml
0 → 100644
1 | +++ a/AndroidManifest.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + xmlns:tool="http://schemas.android.com/tools" | ||
4 | + package="com.ectrip.trips.check" | ||
5 | + android:versionCode="25" | ||
6 | + android:versionName="4.22" | ||
7 | + tool:ignore="LockedOrientationActivity"> | ||
8 | + | ||
9 | + <!-- 各个类型的大小布局声明 --> | ||
10 | + <supports-screens | ||
11 | + android:anyDensity="true" | ||
12 | + android:largeScreens="true" | ||
13 | + android:normalScreens="true" | ||
14 | + android:resizeable="true" | ||
15 | + android:smallScreens="true" | ||
16 | + android:xlargeScreens="true" /> | ||
17 | + | ||
18 | + | ||
19 | + <uses-permission android:name="com.pos.permission.ACCESSORY_DATETIME" /> | ||
20 | + <uses-permission android:name="com.pos.permission.ACCESSORY_LED" /> | ||
21 | + <uses-permission android:name="com.pos.permission.ACCESSORY_BEEP" /> | ||
22 | + <uses-permission android:name="com.pos.permission.CARD_READER_ICC" /> | ||
23 | + <uses-permission android:name="com.pos.permission.CARD_READER_PICC" /> | ||
24 | + <uses-permission android:name="com.pos.permission.CARD_READER_MAG" /> | ||
25 | + <uses-permission android:name="com.pos.permission.COMMUNICATION" /> | ||
26 | + <uses-permission android:name="com.pos.permission.PRINTER" /> | ||
27 | + <uses-permission android:name="com.pos.permission.SECURITY" /> | ||
28 | + | ||
29 | + | ||
30 | + <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | ||
31 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
32 | + <uses-permission android:name="android.permission.RESTART_PACKAGES" /> | ||
33 | + <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /> | ||
34 | + <uses-permission android:name="android.permission.BROADCAST_STICKY" /> | ||
35 | + <uses-permission android:name="android.permission.CALL_PHONE" /> | ||
36 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
37 | + <!-- 读写sd卡的权限,用于缓存广告所用到的图片,节省流量 ,并可获得更好的用户体验(所有使用有米android 2.0版本以上sdk的应用都会共享缓存的图片) --> | ||
38 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | ||
39 | + <!-- 连接网络权限 ,用于请求广告(必须) --> | ||
40 | + <uses-permission android:name="android.permission.INTERNET" /> | ||
41 | + <!-- 读取手机基本信息权限,用于精确统计用户的机型等信息(必须) --> | ||
42 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
43 | + <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> | ||
44 | + <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" /> | ||
45 | + <uses-permission android:name="android.permission.VIBRATE" /> | ||
46 | + <uses-permission android:name="android.permission.CAMERA" /> | ||
47 | + | ||
48 | + <uses-feature android:name="android.hardware.camera" /> | ||
49 | + <uses-feature android:name="android.hardware.camera.autofocus" /> | ||
50 | + | ||
51 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
52 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | ||
53 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
54 | + <uses-permission android:name="android.permission.READ_CONTACTS" /> | ||
55 | + <uses-permission android:name="android.permission.WRITE_CONTACTS" /> | ||
56 | + <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" /> | ||
57 | + <uses-permission android:name="android.permission.VIBRATE" /> | ||
58 | + <uses-permission android:name="android.permission.FLASHLIGHT" /> | ||
59 | + | ||
60 | + <!-- Wifi related --> | ||
61 | + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | ||
62 | + <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | ||
63 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
64 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
65 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
66 | + | ||
67 | + <!-- 蓝牙权限 --> | ||
68 | + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"></uses-permission> | ||
69 | + <uses-permission android:name="android.permission.BLUETOOTH"></uses-permission> | ||
70 | + | ||
71 | + <!-- 弹框类型,必须保留,因为屏蔽home键 --> | ||
72 | + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
73 | + <uses-permission android:name="android.permission.REORDER_TASKS" /> | ||
74 | + | ||
75 | + <!-- 切换logo,修改icon(logo_qne_launcher或者logo_cyt) 和label(app_name点击进入修改为)畅游通logo_cyt,去哪儿logo_qne,路路通logo_lly --> | ||
76 | + <application | ||
77 | + android:name="com.ectrip.cyt.config.MyApp" | ||
78 | + android:allowBackup="true" | ||
79 | + android:hardwareAccelerated="true" | ||
80 | + android:icon="@drawable/logo_cyt" | ||
81 | + android:label="@string/app_name" | ||
82 | + android:largeHeap="true" | ||
83 | + android:theme="@style/Theme"> | ||
84 | + <uses-library | ||
85 | + android:name="com.pos.sdk" | ||
86 | + android:required="false" /> | ||
87 | + <uses-library | ||
88 | + android:name="com.odm" | ||
89 | + android:required="false" /> | ||
90 | + | ||
91 | + <activity | ||
92 | + android:name="com.ectrip.cyt.ui.WelcomeActivity" | ||
93 | + android:configChanges="orientation|keyboardHidden" | ||
94 | + android:label="@string/app_name" | ||
95 | + android:screenOrientation="portrait"> | ||
96 | + <intent-filter> | ||
97 | + <action android:name="android.intent.action.MAIN" /> | ||
98 | + | ||
99 | + <category android:name="android.intent.category.LAUNCHER" /> | ||
100 | + </intent-filter> | ||
101 | + </activity> | ||
102 | + | ||
103 | + <!-- 盛本POS机页面 --> | ||
104 | + <activity | ||
105 | + android:name="com.basewin.zxing.MipcaActivityCapture" | ||
106 | + android:screenOrientation="portrait" | ||
107 | + android:theme="@android:style/Theme.Black.NoTitleBar"/> | ||
108 | + <activity | ||
109 | + android:name="com.basewin.zbar.ZbarScanActivity" | ||
110 | + android:screenOrientation="portrait" | ||
111 | + android:theme="@android:style/Theme.Black.NoTitleBar"/> | ||
112 | + | ||
113 | + <!-- 盛本POS机页面 --> | ||
114 | + | ||
115 | + | ||
116 | + <!-- 首页 --> | ||
117 | + <activity | ||
118 | + android:name="com.ectrip.cyt.ui.MainActivity" | ||
119 | + android:configChanges="orientation|keyboardHidden" | ||
120 | + android:launchMode="singleTask" | ||
121 | + android:screenOrientation="portrait" | ||
122 | + android:theme="@style/Theme" | ||
123 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
124 | + <activity | ||
125 | + android:name="com.ectrip.cyt.ui.InputIdCardActivity" | ||
126 | + android:configChanges="orientation|keyboardHidden" | ||
127 | + android:launchMode="singleTask" | ||
128 | + android:screenOrientation="portrait" | ||
129 | + android:theme="@style/Theme" | ||
130 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
131 | + <activity | ||
132 | + android:name="com.ectrip.cyt.ui.InputOridActivity" | ||
133 | + android:configChanges="orientation|keyboardHidden" | ||
134 | + android:launchMode="singleTask" | ||
135 | + android:screenOrientation="portrait" | ||
136 | + android:theme="@style/Theme" | ||
137 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
138 | + <activity | ||
139 | + android:name="com.ectrip.cyt.ui.OrderListActivity" | ||
140 | + android:configChanges="orientation|keyboardHidden" | ||
141 | + android:launchMode="singleTask" | ||
142 | + android:screenOrientation="portrait" | ||
143 | + android:theme="@style/Theme" | ||
144 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
145 | + <activity | ||
146 | + android:name="com.ectrip.cyt.ui.ScanerOrderActivity" | ||
147 | + android:configChanges="orientation|keyboardHidden" | ||
148 | + android:launchMode="singleTask" | ||
149 | + android:screenOrientation="portrait" | ||
150 | + android:theme="@style/Theme" | ||
151 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
152 | + <activity | ||
153 | + android:name="com.ectrip.cyt.ui.ReTicketActivity" | ||
154 | + android:configChanges="orientation|keyboardHidden" | ||
155 | + android:launchMode="singleTask" | ||
156 | + android:screenOrientation="portrait" | ||
157 | + android:theme="@style/Theme" | ||
158 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
159 | + <activity | ||
160 | + android:name="com.ectrip.cyt.ui.ResultActivity" | ||
161 | + android:configChanges="orientation|keyboardHidden" | ||
162 | + android:launchMode="singleTask" | ||
163 | + android:screenOrientation="portrait" | ||
164 | + android:theme="@style/Theme" | ||
165 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
166 | + <activity | ||
167 | + android:name="com.ectrip.cyt.ui.QueryOrderListActivity" | ||
168 | + android:configChanges="orientation|keyboardHidden" | ||
169 | + android:launchMode="singleTask" | ||
170 | + android:screenOrientation="portrait" | ||
171 | + android:theme="@style/Theme" | ||
172 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
173 | + <activity | ||
174 | + android:name="com.ectrip.cyt.ui.SelectActionActivity" | ||
175 | + android:configChanges="orientation|keyboardHidden" | ||
176 | + android:launchMode="singleTask" | ||
177 | + android:screenOrientation="portrait" | ||
178 | + android:theme="@style/Theme" | ||
179 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
180 | + <activity | ||
181 | + android:name="com.ectrip.cyt.ui.SettingsActivity" | ||
182 | + android:configChanges="orientation|keyboardHidden" | ||
183 | + android:launchMode="singleTask" | ||
184 | + android:screenOrientation="portrait" | ||
185 | + android:theme="@style/Theme" | ||
186 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
187 | + | ||
188 | + <receiver android:name="com.ectrip.cyt.utils.StartActivityForBoot"> | ||
189 | + <intent-filter> | ||
190 | + <action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
191 | + | ||
192 | + <category android:name="android.intent.category.HOME" /> | ||
193 | + </intent-filter> | ||
194 | + </receiver> | ||
195 | + | ||
196 | + <activity | ||
197 | + android:name="android_serialport_api.print_tool.ConsoleActivity" | ||
198 | + android:screenOrientation="portrait" | ||
199 | + android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"></activity> | ||
200 | + <activity | ||
201 | + android:name="com.ectrip.cyt.ui.DeviceListActivity" | ||
202 | + android:configChanges="orientation|keyboardHidden" | ||
203 | + android:launchMode="standard" | ||
204 | + android:screenOrientation="portrait" | ||
205 | + android:theme="@style/Theme" | ||
206 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
207 | + <activity | ||
208 | + android:name="com.ectrip.cyt.ui.PhomeScanerOrderActivity" | ||
209 | + android:configChanges="orientation|keyboardHidden" | ||
210 | + android:launchMode="singleTask" | ||
211 | + android:screenOrientation="portrait" | ||
212 | + android:theme="@style/Theme" | ||
213 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
214 | + <activity | ||
215 | + android:name="com.ectrip.cyt.ui.ScanerHandsetActivity" | ||
216 | + android:configChanges="orientation|keyboardHidden" | ||
217 | + android:launchMode="singleTask" | ||
218 | + android:screenOrientation="portrait" | ||
219 | + android:theme="@style/Theme" | ||
220 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
221 | + <activity | ||
222 | + android:name="com.fri.idcread.idcread" | ||
223 | + android:configChanges="orientation|keyboardHidden" | ||
224 | + android:launchMode="singleTask" | ||
225 | + android:screenOrientation="portrait" | ||
226 | + android:theme="@style/Theme" | ||
227 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
228 | + <activity | ||
229 | + android:name="com.ectrip.cyt.ui.ScanerIdCardActivity" | ||
230 | + android:configChanges="orientation|keyboardHidden" | ||
231 | + android:launchMode="singleTask" | ||
232 | + android:screenOrientation="portrait" | ||
233 | + android:theme="@style/Theme" | ||
234 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
235 | + <activity | ||
236 | + android:name="com.ectrip.cyt.ui.SerialIdCardPortActivity" | ||
237 | + android:configChanges="orientation|keyboardHidden" | ||
238 | + android:launchMode="singleTask" | ||
239 | + android:screenOrientation="portrait" | ||
240 | + android:theme="@style/Theme" | ||
241 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
242 | + <!-- 身份证显示列表页面 --> | ||
243 | + <activity | ||
244 | + android:name="com.ectrip.cyt.ui.IDOrderListActivity" | ||
245 | + android:configChanges="orientation|keyboardHidden" | ||
246 | + android:launchMode="singleTask" | ||
247 | + android:screenOrientation="portrait" | ||
248 | + android:theme="@style/Theme" | ||
249 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
250 | + <!-- 二维码显示列表页面 --> | ||
251 | + <activity | ||
252 | + android:name="com.ectrip.cyt.ui.QRCodeOrderListActivity" | ||
253 | + android:configChanges="orientation|keyboardHidden" | ||
254 | + android:launchMode="singleTask" | ||
255 | + android:screenOrientation="portrait" | ||
256 | + android:theme="@style/Theme" | ||
257 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
258 | + <!-- 身份证列表页面 --> | ||
259 | + <activity | ||
260 | + android:name="com.ectrip.cyt.ui.InputOrderListActivity" | ||
261 | + android:configChanges="orientation|keyboardHidden" | ||
262 | + android:launchMode="singleTask" | ||
263 | + android:screenOrientation="portrait" | ||
264 | + android:theme="@style/Theme" | ||
265 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
266 | + <!-- 输入手机号页面 --> | ||
267 | + <activity | ||
268 | + android:name="com.ectrip.cyt.ui.InputPhoneActivity" | ||
269 | + android:configChanges="orientation|keyboardHidden" | ||
270 | + android:launchMode="singleTask" | ||
271 | + android:screenOrientation="portrait" | ||
272 | + android:theme="@style/Theme" | ||
273 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
274 | + <!-- 手机号订单显示界面 --> | ||
275 | + <activity | ||
276 | + android:name="com.ectrip.cyt.ui.PhoneOrderListActivity" | ||
277 | + android:configChanges="orientation|keyboardHidden" | ||
278 | + android:launchMode="singleTask" | ||
279 | + android:screenOrientation="portrait" | ||
280 | + android:theme="@style/Theme" | ||
281 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
282 | + <!-- 蓝牙打印工具页面 --> | ||
283 | + <activity | ||
284 | + android:name="android_serialport_api.print_tool.MobilePrintTool" | ||
285 | + android:configChanges="orientation|keyboardHidden" | ||
286 | + android:launchMode="standard" | ||
287 | + android:screenOrientation="portrait" | ||
288 | + android:theme="@style/Theme" | ||
289 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
290 | + <!-- 验证码输入页面 --> | ||
291 | + <activity | ||
292 | + android:name="com.ectrip.cyt.ui.InputCodeActivity" | ||
293 | + android:configChanges="orientation|keyboardHidden" | ||
294 | + android:launchMode="standard" | ||
295 | + android:screenOrientation="portrait" | ||
296 | + android:theme="@style/Theme" | ||
297 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
298 | + <!-- 验证码显示页面 --> | ||
299 | + <activity | ||
300 | + android:name="com.ectrip.cyt.ui.CodeOrderListActivity" | ||
301 | + android:launchMode="standard" | ||
302 | + android:screenOrientation="portrait" | ||
303 | + android:theme="@style/Theme" | ||
304 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
305 | + <!-- 统计页面 --> | ||
306 | + <activity | ||
307 | + android:name="com.ectrip.cyt.ui.StatisticsActivity" | ||
308 | + android:launchMode="singleTask" | ||
309 | + android:screenOrientation="portrait" | ||
310 | + android:theme="@style/Theme" | ||
311 | + android:windowSoftInputMode="adjustPan|stateHidden"></activity> | ||
312 | + <!-- 统计按月查询 --> | ||
313 | + <activity | ||
314 | + android:name="com.ectrip.cyt.ui.StatisticsMonActivity" | ||
315 | + android:launchMode="singleTask" | ||
316 | + android:screenOrientation="portrait" | ||
317 | + android:theme="@style/Theme2" | ||
318 | + android:windowSoftInputMode="adjustPan|stateHidden"></activity> | ||
319 | + <!-- 统计按天查询 --> | ||
320 | + <activity | ||
321 | + android:name="com.ectrip.cyt.ui.StatisticsDayActivity" | ||
322 | + android:launchMode="standard" | ||
323 | + android:screenOrientation="portrait" | ||
324 | + android:theme="@style/Theme" | ||
325 | + android:windowSoftInputMode="adjustPan|stateHidden"></activity> | ||
326 | + <activity | ||
327 | + android:name="com.ectrip.cyt.ui.CannerSelectedActivity" | ||
328 | + android:launchMode="standard" | ||
329 | + android:screenOrientation="portrait" | ||
330 | + android:theme="@style/Theme" | ||
331 | + android:windowSoftInputMode="adjustPan|stateHidden"></activity> | ||
332 | + <activity | ||
333 | + android:name="com.ectrip.cyt.ui.AboutActivity" | ||
334 | + android:launchMode="standard" | ||
335 | + android:screenOrientation="portrait" | ||
336 | + android:theme="@style/Theme" | ||
337 | + android:windowSoftInputMode="adjustPan|stateHidden"></activity> | ||
338 | + <!-- 新版手持机二维码扫描 --> | ||
339 | + <activity | ||
340 | + android:name="com.ectrip.cyt.ui.NewHandleScanerActivity" | ||
341 | + android:launchMode="singleTask" | ||
342 | + android:screenOrientation="portrait" | ||
343 | + android:theme="@style/Theme" | ||
344 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
345 | + <!-- 盛本的红色pos机 --> | ||
346 | + <activity | ||
347 | + android:name="com.ectrip.cyt.ui.BasewinScanActivity" | ||
348 | + android:launchMode="singleTask" | ||
349 | + android:screenOrientation="portrait" | ||
350 | + android:theme="@style/Theme" | ||
351 | + android:windowSoftInputMode="adjustPan|stateHidden" /> | ||
352 | + | ||
353 | + | ||
354 | + <service android:name="com.ectrip.cyt.service.OrderRegularDelecteService"></service> | ||
355 | + <!-- | ||
356 | + <receiver android:name="com.eztlib.blu.BluetoothConnectActivityReceiver" > | ||
357 | + <intent-filter> | ||
358 | + <action android:name="android.bluetooth.device.action.PAIRING_REQUEST" /> | ||
359 | + </intent-filter> | ||
360 | + </receiver> | ||
361 | + --> | ||
362 | + | ||
363 | + </application> | ||
364 | + <!-- 处理打印的类:com.ectrip.cyt.center.PrintHandle | ||
365 | + --> | ||
366 | + | ||
367 | +</manifest> | ||
0 | \ No newline at end of file | 368 | \ No newline at end of file |
assets/commu.xml
0 → 100644
1 | +++ a/assets/commu.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | + | ||
3 | +<commu> | ||
4 | + <type>socket</type> | ||
5 | + <ip>192.168.0.1</ip> | ||
6 | + <port>10000</port> | ||
7 | + <timeout>60</timeout> | ||
8 | + <!-- 是否启用SSL --> | ||
9 | + <ifSSL>1</ifSSL> | ||
10 | + <!-- 证书名称,需要放在资源文件raw文件夹下面,如果设置为null,将信任所有证书 --> | ||
11 | + <cer>null</cer> | ||
12 | +</commu> | ||
13 | + |
assets/config.xml
0 → 100644
1 | +++ a/assets/config.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | + | ||
3 | +<config> | ||
4 | + <debug>1</debug> <!-- 是否需要应用捕捉异常,1 不捕捉 0 捕捉 --> | ||
5 | + <initDataBase>1</initDataBase> <!-- 是否需要在BaseApplication中初始化SDK自带数据库 1 初始化 0 不初始化--> | ||
6 | + <initServiceManager>0</initServiceManager> <!-- 是否需要在BaseApplication中初始化ServiceManager 1 初始化 0 不初始化--> | ||
7 | +</config> | ||
8 | + |
assets/database.xml
0 → 100644
1 | +++ a/assets/database.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<!-- 数据库定义 --> | ||
3 | +<!-- version字段定义之后,如果需要修改表结构或者增加删除表,需要修改version,SDK自动根据版本号的更换重新初始化数据表,自动进行数据迁移,原数据不会丢失 --> | ||
4 | +<Database | ||
5 | + name="Cashier.db" | ||
6 | + defaultTable="transaction_data" | ||
7 | + version="2" > | ||
8 | + | ||
9 | + <!-- 交易数据保存 --> | ||
10 | + <!-- primaryKey需要定义在第一个field里面 --> | ||
11 | + | ||
12 | + <table | ||
13 | + name="transaction_data" | ||
14 | + primaryKey="id" > | ||
15 | + | ||
16 | + <field name="id" /> <!-- 主键,只能自增长的integer --> | ||
17 | + | ||
18 | + <field name="referenceNo" /> <!-- 参考号 ,可能多条,不能 --> | ||
19 | + | ||
20 | + <field name="trace" /> <!-- 流水号 --> | ||
21 | + | ||
22 | + <field name="merchant_name" /> <!-- 商户名称 --> | ||
23 | + | ||
24 | + <field name="merchant_no" /> <!-- 商户号 --> | ||
25 | + | ||
26 | + <field name="terminal_no" /> <!-- 终端号 --> | ||
27 | + | ||
28 | + <field name="pay_type" /> <!-- 交易方式 银行卡支付还是移动支付 --> | ||
29 | + | ||
30 | + <field name="func" /> <!-- 交易类型 消费,撤销,退货 --> | ||
31 | + | ||
32 | + <field name="card_number" /> <!-- 卡号 --> | ||
33 | + | ||
34 | + <field name="operatorNo" /> <!-- 操作员号 --> | ||
35 | + | ||
36 | + <field name="exp_date" /> <!-- 有效期 --> | ||
37 | + | ||
38 | + <field name="batch_no" /> <!-- 批次号 --> | ||
39 | + | ||
40 | + <field name="auth_no" /> <!-- 授权号 --> | ||
41 | + | ||
42 | + <field name="date_time" /> <!-- 交易时间 --> | ||
43 | + | ||
44 | + <field name="amount" /> <!-- 交易金额 --> | ||
45 | + | ||
46 | + <field name="ticket_no" /> <!-- 票据号 --> | ||
47 | + | ||
48 | + <field name="iss_desc" /> <!-- 收单行 --> | ||
49 | + | ||
50 | + <field name="issuerId2" /> <!-- 发卡行ID --> | ||
51 | + | ||
52 | + <field name="app_lab" /> <!-- APP LAB --> | ||
53 | + | ||
54 | + <field name="maskedPan" /> <!-- maskedPan --> | ||
55 | + | ||
56 | + <field name="atc" /> <!-- ATC --> | ||
57 | + | ||
58 | + <field name="aid" /> <!-- AID --> | ||
59 | + | ||
60 | + <field name="csn" /> <!-- CSN --> | ||
61 | + | ||
62 | + <field name="iad" /> <!-- IAD --> | ||
63 | + | ||
64 | + <field name="tc" /> <!-- TC --> | ||
65 | + | ||
66 | + <field name="aip" /> <!-- AIP --> | ||
67 | + | ||
68 | + <field name="cardtype" /> <!-- 卡类型 。银行卡标志磁条,IC,RF 移动支付表示 微信,支付宝 --> | ||
69 | + | ||
70 | + <field name="qrcode" /> <!-- 二维码,移动支付的时候返回 --> | ||
71 | + | ||
72 | + <field name="status" /> <!-- 此笔交易状态,正常,已撤销,已退货 --> | ||
73 | + | ||
74 | + <field name="oldreferenceNo" /> <!-- 原来的参考号--> | ||
75 | + | ||
76 | + <field name="oldtrace" /> <!-- 原来的流水号 --> | ||
77 | + | ||
78 | + <field name="installmentAmount" /> <!-- 原来的流水号 --> | ||
79 | + </table> | ||
80 | + | ||
81 | +</Database> | ||
0 | \ No newline at end of file | 82 | \ No newline at end of file |
assets/packet8583.xml
0 → 100644
1 | +++ a/assets/packet8583.xml | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<root> | ||
3 | + <!-- 任何属性在不影响解析的情况下都可以不写 --> | ||
4 | + | ||
5 | + <!-- 划分为BINARY,CHAR,NUMERIC,LLVAR,LLLVAR,LLVAR_NUMERIC,LLLVAR_NUMERIC,LLBINARY,LLLBINARY这几种格式 | ||
6 | + BINARY采用二进制编码(8位二进制数编码为一个字节) | ||
7 | + LLBINARY域前加一个字节的字节长度(采用bcd编码) | ||
8 | + LLLBINARY域前加两个字节的长度(注:字节长度,如0x00 0x20就取后面20个字节长度数据)(采用bcd编码) | ||
9 | + CHAR,LLVAR,LLLVAR为ASC(即正常的getBytes(Encoding))编码 | ||
10 | + LLVAR域前加一个字节的字节长度(采用bcd编码),LLLVAR域前加两个字节的字节长度(采用bcd编码), | ||
11 | + NUMERIC,LLVAR_NUMERIC,LLLVAR_NUMERIC采用BCD(半个字节表示一个10进制数, 每两位编码为一个字节)编码, | ||
12 | + LLVAR_NUMERIC域前加一个字节的字节长度(采用bcd编码), LLLVAR_NUMERIC域前加两个字节的长度(注:非字节长度,而是数字的长度,即字节长度的两倍)(采用bcd编码) | ||
13 | + CHAR、BINARY、NUMERIC都需要指定长度,默认CHAR类型左对齐、右补空格,NUMERIC右对齐、左补零,有特殊,就需要 增加align屬性, | ||
14 | + lengthType指明变长字段长度表示的方法,bcd表示十进制压缩码,hex表示十六进制数据,正常不需要设置,只有非常特殊的情况 | ||
15 | + 代码中会在IsoField setValue时进行格式化,组装报文时计算LLVAR等域长 --> | ||
16 | +<!-- compress=true默认压缩, type为NUMERIC的域都为BCD类型,变长域长度也要压缩成BCD码 --> | ||
17 | +<ISO8583Config compress="true"> | ||
18 | + | ||
19 | + <field id="tpdu" type="NUMERIC" length="5" /> <!-- tpdu,一般都会有值 --> | ||
20 | + <field id="header" type="NUMERIC" length="6" /> <!-- msgid之前的报文头部分,一般都会有值,在这边设置好可以,bcd压缩格式,长度不限制 --> | ||
21 | + <field id="msgid" type="NUMERIC" length="2" /> <!-- msgid--> | ||
22 | + <field id="bitmap" type="NUMERIC" length="8" /> <!-- 第1域 bitmap必须使用这个 --> | ||
23 | + <field id="2" type="LLVAR_NUMERIC" /> | ||
24 | + <field id="3" type="NUMERIC" length="3" /> | ||
25 | + <field id="4" type="NUMERIC" length="6" /> | ||
26 | + <field id="8" type="CHAR" length="11" /> | ||
27 | + <field id="11" type="NUMERIC" length="3" /> | ||
28 | + <field id="12" type="NUMERIC" length="3" /> | ||
29 | + <field id="13" type="NUMERIC" length="2" /> | ||
30 | + <field id="14" type="NUMERIC" length="2" /> | ||
31 | + <field id="15" type="NUMERIC" length="2" /> | ||
32 | + <field id="22" type="NUMERIC" length="2" align="left" /> | ||
33 | + <field id="23" type="NUMERIC" length="2" align="right" /> | ||
34 | + <field id="24" type="NUMERIC" length="2" /> | ||
35 | + <field id="25" type="NUMERIC" length="1" /> | ||
36 | + <field id="26" type="NUMERIC" length="1" /> | ||
37 | + <field id="32" type="LLVAR_NUMERIC" /> | ||
38 | + <field id="35" type="LLVAR_NUMERIC" /> | ||
39 | + <field id="36" type="LLLVAR_NUMERIC" /> | ||
40 | + <field id="37" type="CHAR" length="12" /> | ||
41 | + <field id="38" type="CHAR" length="6" /> | ||
42 | + <field id="39" type="CHAR" length="2" /> | ||
43 | + <field id="41" type="CHAR" length="8" /> | ||
44 | + <field id="42" type="CHAR" length="15" /> | ||
45 | + <field id="44" type="LLVAR" /> | ||
46 | + <field id="48" type="LLLVAR_NUMERIC" /> | ||
47 | + <field id="49" type="CHAR" length="3" /> | ||
48 | + <field id="52" type="BINARY" length="8" /> | ||
49 | + <field id="53" type="NUMERIC" length="8" /> | ||
50 | + <field id="54" type="LLLVAR" /> | ||
51 | + <field id="55" type="LLLBINARY" /> | ||
52 | + <field id="58" type="LLLVAR" /> | ||
53 | + <field id="60" type="LLLVAR_NUMERIC" /> | ||
54 | + <field id="61" type="LLLVAR_NUMERIC" /> | ||
55 | + <field id="62" type="LLLTRACK" /> | ||
56 | + <field id="63" type="LLLVAR" /> | ||
57 | + <field id="64" type="BINARY" length="8" /> | ||
58 | + | ||
59 | +</ISO8583Config> | ||
60 | + | ||
61 | +<!--第二个8583配置,多个可以在下面添加 --> | ||
62 | +<ISO8583Config-config compress="true"> | ||
63 | + | ||
64 | + | ||
65 | + <field id="tpdu" type="NUMERIC" length="5" /> <!-- tpdu,一般都会有值 --> | ||
66 | + <field id="header" type="NUMERIC" length="6" /> <!-- msgid之前的报文头部分,一般都会有值,在这边设置好可以,bcd压缩格式,长度不限制 --> | ||
67 | + <field id="msgid" type="NUMERIC" length="2" /> <!-- msgid--> | ||
68 | + <field id="bitmap" type="NUMERIC" length="8" /> <!-- 第1域 bitmap必须使用这个 --> | ||
69 | + <field id="2" type="LLVAR_NUMERIC" /> | ||
70 | + <field id="3" type="NUMERIC" length="3" /> | ||
71 | + <field id="4" type="NUMERIC" length="6" /> | ||
72 | + <field id="8" type="CHAR" length="11" /> | ||
73 | + <field id="11" type="NUMERIC" length="3" /> | ||
74 | + <field id="12" type="NUMERIC" length="3" /> | ||
75 | + <field id="13" type="NUMERIC" length="2" /> | ||
76 | + <field id="14" type="NUMERIC" length="2" /> | ||
77 | + <field id="15" type="NUMERIC" length="2" /> | ||
78 | + <field id="22" type="NUMERIC" length="2" align="left" /> | ||
79 | + <field id="23" type="NUMERIC" length="2" align="right" /> | ||
80 | + <field id="24" type="NUMERIC" length="2" /> | ||
81 | + <field id="25" type="NUMERIC" length="1" /> | ||
82 | + <field id="26" type="NUMERIC" length="1" /> | ||
83 | + <field id="32" type="LLVAR_NUMERIC" /> | ||
84 | + <field id="35" type="LLVAR_NUMERIC" /> | ||
85 | + <field id="36" type="LLLVAR_NUMERIC" /> | ||
86 | + <field id="37" type="CHAR" length="12" /> | ||
87 | + <field id="38" type="CHAR" length="6" /> | ||
88 | + <field id="39" type="CHAR" length="2" /> | ||
89 | + <field id="41" type="CHAR" length="8" /> | ||
90 | + <field id="42" type="CHAR" length="15" /> | ||
91 | + <field id="44" type="LLVAR" /> | ||
92 | + <field id="48" type="LLLVAR_NUMERIC" /> | ||
93 | + <field id="49" type="CHAR" length="3" /> | ||
94 | + <field id="52" type="BINARY" length="8" /> | ||
95 | + <field id="53" type="NUMERIC" length="8" /> | ||
96 | + <field id="54" type="LLLVAR" /> | ||
97 | + <field id="55" type="LLLBINARY" /> | ||
98 | + <field id="58" type="LLLVAR" /> | ||
99 | + <field id="60" type="LLLVAR_NUMERIC" /> | ||
100 | + <field id="61" type="LLLVAR_NUMERIC" /> | ||
101 | + <field id="62" type="LLLTRACK" /> | ||
102 | + <field id="63" type="LLLVAR" /> | ||
103 | + <field id="64" type="BINARY" length="8" /> | ||
104 | + | ||
105 | +</ISO8583Config-config> | ||
106 | +</root> | ||
107 | + | ||
108 | + |
external_libs/bw_odm_20160526.jar
0 → 100644
No preview for this file type
external_libs/classes_2.1.11_20160907.jar
0 → 100644
No preview for this file type
ic_launcher-web.png
0 → 100644
50.2 KB
libs/android-support-v4.jar
0 → 100644
No preview for this file type
libs/arm64-v8a/libserial_IdCard.so
0 → 100644
No preview for this file type
libs/armeabi/libEZTLIB.so
0 → 100644
No preview for this file type
libs/armeabi/libfctrlgp.so
0 → 100644
No preview for this file type
libs/armeabi/libiconv.so
0 → 100644
No preview for this file type
libs/armeabi/libidcread.so
0 → 100644
No preview for this file type
libs/armeabi/libpwmV2.so
0 → 100644
No preview for this file type
libs/armeabi/libserial_IdCard.so
0 → 100644
No preview for this file type
libs/armeabi/libserial_port.so
0 → 100644
No preview for this file type
libs/armeabi/libserial_portHandset.so
0 → 100644
No preview for this file type
libs/armeabi/libserial_port_newhandset.so
0 → 100644
No preview for this file type
libs/armeabi/libzbarjni.so
0 → 100644
No preview for this file type
libs/bcprov-jdk16-1.45.jar
0 → 100644
No preview for this file type
libs/bw_pos_sdk2.0.18.jar
0 → 100644
No preview for this file type
libs/dom4j-1.6.1.jar
0 → 100644
No preview for this file type
libs/fastjson-1.2.3.jar
0 → 100644
No preview for this file type
libs/gson-2.6.2.jar
0 → 100644
No preview for this file type
libs/mips/libserial_IdCard.so
0 → 100644
No preview for this file type
libs/mips64/libserial_IdCard.so
0 → 100644
No preview for this file type
libs/sunjce_provider.jar
0 → 100644
No preview for this file type
libs/x86/libserial_IdCard.so
0 → 100644
No preview for this file type
libs/x86/libserial_port.so
0 → 100644
No preview for this file type
libs/zbar.jar
0 → 100644
No preview for this file type
libs/zxing.jar
0 → 100644
No preview for this file type
res/color/date_picker_selector.xml
0 → 100644
1 | +++ a/res/color/date_picker_selector.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<selector | ||
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | + <item android:state_pressed="true" android:color="@color/darker_blue" /> | ||
5 | + <item android:state_selected="true" android:state_pressed="false" android:color="@color/blue" /> | ||
6 | + <item android:state_selected="false" android:state_pressed="false" android:color="@color/date_picker_text_normal" /> | ||
7 | +</selector> | ||
0 | \ No newline at end of file | 8 | \ No newline at end of file |
res/color/date_picker_year_selector.xml
0 → 100644
1 | +++ a/res/color/date_picker_year_selector.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<selector | ||
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | + <item android:state_pressed="true" android:color="@color/darker_blue" /> | ||
5 | + <item android:state_selected="false" android:state_pressed="false" android:color="@color/date_picker_text_normal" /> | ||
6 | +</selector> | ||
0 | \ No newline at end of file | 7 | \ No newline at end of file |
res/color/done_text_color.xml
0 → 100644
1 | +++ a/res/color/done_text_color.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<selector | ||
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | + <item android:state_enabled="false" android:color="@color/done_text_color_disabled" /> | ||
5 | + <item android:state_enabled="true" android:color="@color/done_text_color_normal" /> | ||
6 | +</selector> | ||
0 | \ No newline at end of file | 7 | \ No newline at end of file |
res/color/mr_calendar_text_selector.xml
0 → 100644
1 | +++ a/res/color/mr_calendar_text_selector.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<!-- Copyright 2012 Square, Inc. --> | ||
3 | + | ||
4 | +<selector xmlns:android="http://schemas.android.com/apk/res/android" | ||
5 | + xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
6 | + <item android:state_selected="true" android:color="@color/calendar_text_selected"/> | ||
7 | + <item android:state_pressed="true" android:color="@color/calendar_text_selected"/> | ||
8 | + <item app:state_current_month="false" android:color="@color/calendar_text_inactive"/> | ||
9 | + <item app:state_today="true" android:color="@color/calendar_active_month_bg"/> | ||
10 | + <item app:state_selectable="false" android:color="@color/calendar_text_unselectable" /> | ||
11 | + <item android:color="@color/calendar_text_active"/> | ||
12 | +</selector> |
res/color/num_textcolor_selector.xml
0 → 100644
1 | +++ a/res/color/num_textcolor_selector.xml | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<selector | ||
3 | + xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | + <item android:state_pressed="true" android:color="@color/green" /> | ||
5 | + <item android:state_selected="true" android:color="@color/green" /> | ||
6 | + <item android:color="@color/white" /> | ||
7 | +</selector> | ||
0 | \ No newline at end of file | 8 | \ No newline at end of file |
res/drawable-hdpi/backgrouds.png
0 → 100644
425 Bytes
res/drawable-hdpi/btn_num.9.png
0 → 100644
113 Bytes
res/drawable-hdpi/checkbox_off.png
0 → 100644
2.46 KB
res/drawable-hdpi/checkbox_on.png
0 → 100644
4.05 KB
res/drawable-hdpi/circle.png
0 → 100644
7.58 KB
res/drawable-hdpi/circle_selector.png
0 → 100644
7.72 KB
res/drawable-hdpi/count_colorful.png
0 → 100644
5.99 KB
res/drawable-hdpi/count_gray.png
0 → 100644
5.63 KB
res/drawable-hdpi/dapiao.9.png
0 → 100644
254 Bytes
res/drawable-hdpi/ico_choose.png
0 → 100644
1.84 KB
res/drawable-hdpi/ico_choose_checked.png
0 → 100644
1.43 KB
res/drawable-hdpi/id2.jpg
0 → 100644
133 KB
res/drawable-hdpi/id_blue.png
0 → 100644
3.05 KB
res/drawable-hdpi/id_red.png
0 → 100644
3.05 KB
res/drawable-hdpi/logo_cyt.png
0 → 100644
9.29 KB
res/drawable-hdpi/logo_llt.png
0 → 100644
7.68 KB
res/drawable-hdpi/logo_qne.png
0 → 100644
7.4 KB
res/drawable-hdpi/logo_qne_launcher.png
0 → 100644
5.07 KB
res/drawable-hdpi/main_cyt.jpg
0 → 100644
19.7 KB
res/drawable-hdpi/main_cyt_pad.png
0 → 100644
131 KB
res/drawable-hdpi/main_emc.jpg
0 → 100644
51.4 KB
res/drawable-hdpi/main_emc_pad.png
0 → 100644
131 KB
res/drawable-hdpi/main_lly.jpg
0 → 100644
80.1 KB
res/drawable-hdpi/main_lly_pad.png
0 → 100644
161 KB
res/drawable-hdpi/main_qne.jpg
0 → 100644
31.9 KB
res/drawable-hdpi/main_qnr_pad.png
0 → 100644
279 KB
res/drawable-hdpi/no_data.png
0 → 100644
16.9 KB
res/drawable-hdpi/num_blue.png
0 → 100644
2.97 KB
res/drawable-hdpi/num_red.png
0 → 100644
2.93 KB
res/drawable-hdpi/pos.png
0 → 100644
177 KB
res/drawable-hdpi/printer_blue.png
0 → 100644
3.1 KB
res/drawable-hdpi/printer_red.png
0 → 100644
3.16 KB
res/drawable-hdpi/qr_code_bg.9.png
0 → 100644
2.28 KB
res/drawable-hdpi/scan_line.png
0 → 100644
6.26 KB
res/drawable-hdpi/scanning_blue.png
0 → 100644
2.09 KB
res/drawable-hdpi/scanning_red.png
0 → 100644
2.07 KB
res/drawable-hdpi/set_colorful.png
0 → 100644
7.11 KB
res/drawable-hdpi/set_gray.png
0 → 100644
6.91 KB
res/drawable-hdpi/shadow.png
0 → 100644
17.5 KB
res/drawable-hdpi/switch_btn_off.png
0 → 100644
1.27 KB
res/drawable-hdpi/switch_btn_on.png
0 → 100644
1.79 KB
res/drawable-hdpi/tel_blue.png
0 → 100644
3.89 KB
res/drawable-hdpi/tel_red.png
0 → 100644
3.89 KB
res/drawable-hdpi/ticket_blue.png
0 → 100644
3.22 KB
res/drawable-hdpi/ticket_red.png
0 → 100644
3.09 KB
res/drawable-hdpi/top_arrow.png
0 → 100644
3.01 KB
res/drawable-hdpi/welcome_bg_cyt.jpg
0 → 100644
167 KB
res/drawable-hdpi/welcome_bg_qne.jpg
0 → 100644
177 KB
res/drawable-mdpi/welcome_bg_cyt.jpg
0 → 100644
113 KB
res/drawable-mdpi/welcome_bg_qne.jpg
0 → 100644
172 KB
res/drawable-xhdpi/about_icon.png
0 → 100644
5.74 KB
res/drawable-xhdpi/checkswitch_bottom.png
0 → 100644
5.19 KB
res/drawable-xhdpi/checkswitch_btn_pressed.png
0 → 100644
3.19 KB
res/drawable-xhdpi/checkswitch_btn_unpressed.png
0 → 100644
3.29 KB
res/drawable-xhdpi/checkswitch_frame.png
0 → 100644
2.8 KB
res/drawable-xhdpi/checkswitch_mask.png
0 → 100644
866 Bytes
res/drawable-xhdpi/code_icon.png
0 → 100644
5.99 KB
res/drawable-xhdpi/day_icon.png
0 → 100644
7.34 KB
res/drawable-xhdpi/handset_code.png
0 → 100644
39.6 KB
res/drawable-xhdpi/icon_bg02.9.png
0 → 100644
87 Bytes
res/drawable-xhdpi/id_icon.png
0 → 100644
5.45 KB
res/drawable-xhdpi/month_icon.png
0 → 100644
8.22 KB