卸货,装卸回单添加loading
This commit is contained in:
parent
9766690957
commit
ef6247fc22
@ -115,12 +115,12 @@ public class ShangChuangImgActivity extends BaseAppCompatActivity {
|
|||||||
for (int i = 0; i < TYPE_NAME.length; i++) {
|
for (int i = 0; i < TYPE_NAME.length; i++) {
|
||||||
if (CacheGroup.cacheList.get(TYPE_NAME[i]) != null) {
|
if (CacheGroup.cacheList.get(TYPE_NAME[i]) != null) {
|
||||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get(TYPE_NAME[i]), BaseBean.class);
|
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get(TYPE_NAME[i]), BaseBean.class);
|
||||||
if (!isFinishing()&&customDialog!=null&&customDialog.isShowing()){
|
|
||||||
customDialog.dismiss();
|
|
||||||
}
|
|
||||||
if (bb.getCode() == 200) {
|
if (bb.getCode() == 200) {
|
||||||
if (index == 2) {
|
if (index == 2) {
|
||||||
if (!keys) {//装货回单
|
if (!keys) {//装货回单
|
||||||
|
if (!isFinishing() && customDialog != null && customDialog.isShowing()) {
|
||||||
|
customDialog.dismiss();
|
||||||
|
}
|
||||||
Toast.makeText(con, "上传成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(con, "上传成功", Toast.LENGTH_SHORT).show();
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
@ -211,6 +211,7 @@ public class ShangChuangImgActivity extends BaseAppCompatActivity {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private LatLng latLng;
|
private LatLng latLng;
|
||||||
|
|
||||||
public LatLng convertGPSToBaidu(LatLng srLatLng) {
|
public LatLng convertGPSToBaidu(LatLng srLatLng) {
|
||||||
@ -376,12 +377,12 @@ public class ShangChuangImgActivity extends BaseAppCompatActivity {
|
|||||||
// for(int i=0;i<imgIds.size();i++){
|
// for(int i=0;i<imgIds.size();i++){
|
||||||
// Log.e("--imgIds--",imgIds.get(i)+"");
|
// Log.e("--imgIds--",imgIds.get(i)+"");
|
||||||
// }
|
// }
|
||||||
switch (index) {
|
|
||||||
case 0:
|
|
||||||
if (customDialog != null && !customDialog.isShowing()) {
|
if (customDialog != null && !customDialog.isShowing()) {
|
||||||
customDialog = new CustomDialog(con, "网络请求中...");
|
customDialog = new CustomDialog(con, "网络请求中...");
|
||||||
customDialog.show();
|
customDialog.show();
|
||||||
}
|
}
|
||||||
|
switch (index) {
|
||||||
|
case 0:
|
||||||
//装货
|
//装货
|
||||||
if (imgIds != null && imgIds.size() > 0) {
|
if (imgIds != null && imgIds.size() > 0) {
|
||||||
lub.setLatitude(lgdu.getLatitude() + "");
|
lub.setLatitude(lgdu.getLatitude() + "");
|
||||||
@ -609,6 +610,9 @@ public class ShangChuangImgActivity extends BaseAppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onFailure(String s, String s1) {
|
public void onFailure(String s, String s1) {
|
||||||
Log.e("上报安联失败(卸货照片):", s + s1);
|
Log.e("上报安联失败(卸货照片):", s + s1);
|
||||||
|
if (!isFinishing() && customDialog != null && customDialog.isShowing()) {
|
||||||
|
customDialog.dismiss();
|
||||||
|
}
|
||||||
// SPUtil.insSP(con,"make","卸货",sob.getData().getShippingNoteNumber());
|
// SPUtil.insSP(con,"make","卸货",sob.getData().getShippingNoteNumber());
|
||||||
// SPUtil.insSP(con,"make","卸货-"+sob.getData().getShippingNoteNumber(),gson.toJson(image));
|
// SPUtil.insSP(con,"make","卸货-"+sob.getData().getShippingNoteNumber(),gson.toJson(image));
|
||||||
// Intent serviceIn=new Intent(con, MakeUpAlService.class);
|
// Intent serviceIn=new Intent(con, MakeUpAlService.class);
|
||||||
@ -684,8 +688,6 @@ public class ShangChuangImgActivity extends BaseAppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上传安联和交通厅,平台-装货
|
* 上传安联和交通厅,平台-装货
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user