|
|
@@ -37,6 +37,7 @@ import android.widget.TextView;
|
|
|
* 2024-11-15
|
|
|
* 李士越
|
|
|
* */
|
|
|
+@SuppressLint("HandlerLeak")
|
|
|
public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
/**返回*/
|
|
|
private ImageButton backbtn;
|
|
|
@@ -370,6 +371,8 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
select_Button.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
+ //加载转圈
|
|
|
+ ProcessDialogUtils.showProcessDialog(DeliveryNoteInquiryActivity.this);
|
|
|
//发货单信息查询
|
|
|
QueryInformation();
|
|
|
}
|
|
|
@@ -379,6 +382,8 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
revoke_Button.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
+ //加载转圈
|
|
|
+ ProcessDialogUtils.showProcessDialog(DeliveryNoteInquiryActivity.this);
|
|
|
// 锁
|
|
|
Boolean lock = true;
|
|
|
// 过滤出多选选中数据
|
|
|
@@ -404,7 +409,7 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
exceptionHandler.sendMessage(m);
|
|
|
return;
|
|
|
}
|
|
|
- try {
|
|
|
+ try {
|
|
|
JSONObject js = new JSONObject();
|
|
|
js.put("accountCode", accountCode);
|
|
|
js.put("userCode", barcode_print_userCode);
|
|
|
@@ -413,6 +418,7 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
js.put("ementy", ementy.toString());
|
|
|
String API = "http://" + ServerAddress_ip + ":" + ServerAddress_Port + Constants.serverAction
|
|
|
+ "/RevokeInvoice";
|
|
|
+
|
|
|
thread = new HandlerThread("barcodeThread", 5);
|
|
|
thread.start();
|
|
|
mHandler = new Handler(thread.getLooper());
|
|
|
@@ -434,6 +440,8 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
SupplementaryPush_Button.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
+ //加载转圈
|
|
|
+ ProcessDialogUtils.showProcessDialog(DeliveryNoteInquiryActivity.this);
|
|
|
// 锁
|
|
|
Boolean lock = true;
|
|
|
// 过滤出多选选中数据
|
|
|
@@ -489,6 +497,8 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
Delete_Button.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
+ //加载转圈
|
|
|
+ ProcessDialogUtils.showProcessDialog(DeliveryNoteInquiryActivity.this);
|
|
|
// 锁
|
|
|
Boolean lock = true;
|
|
|
// 过滤出多选选中数据
|
|
|
@@ -545,10 +555,11 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
Handler handler = new Handler() {
|
|
|
@Override
|
|
|
public void handleMessage(Message msg) {
|
|
|
-
|
|
|
+ //关闭转圈
|
|
|
+ ProcessDialogUtils.closeProgressDilog();
|
|
|
switch (msg.what) {
|
|
|
// 车牌号
|
|
|
- case 0:
|
|
|
+ case 0:
|
|
|
List<Order> orderList0 = new ArrayList<Order>();
|
|
|
Order order0 = new Order();
|
|
|
order0.setOrderId(0);
|
|
|
@@ -689,12 +700,9 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
|
|
|
@Override
|
|
|
public void run() {
|
|
|
- Bundle b = new Bundle();
|
|
|
- client = new WebClient();
|
|
|
-
|
|
|
- try {
|
|
|
- String result = client.doPost(API, js.toString(), "application/json");
|
|
|
-
|
|
|
+ Bundle b = new Bundle();
|
|
|
+ try {
|
|
|
+ String result = client.doPost(API, js.toString(), "application/json");
|
|
|
Message m = new Message();
|
|
|
m.what = what;
|
|
|
b.putString("result", result);
|
|
|
@@ -766,6 +774,7 @@ public class DeliveryNoteInquiryActivity extends Activity {
|
|
|
public void handleMessage(Message msg) {
|
|
|
switch (msg.what) {
|
|
|
case 0:
|
|
|
+ //关闭转圈
|
|
|
ProcessDialogUtils.closeProgressDilog();
|
|
|
if (mHandler != null) {
|
|
|
mHandler.removeCallbacksAndMessages(null);
|