|
|
@ -1,6 +1,8 @@ |
|
|
package com.qhclh.ytzh.work.carsmannage; |
|
|
package com.qhclh.ytzh.work.carsmannage; |
|
|
|
|
|
|
|
|
import android.support.v7.widget.Toolbar; |
|
|
import android.support.v7.widget.Toolbar; |
|
|
|
|
|
import android.view.Menu; |
|
|
|
|
|
import android.view.MenuItem; |
|
|
import android.view.View; |
|
|
import android.view.View; |
|
|
import android.widget.ListView; |
|
|
import android.widget.ListView; |
|
|
|
|
|
|
|
|
@ -122,4 +124,38 @@ public class MaojiCarsinfoActivity extends BaseActivity { |
|
|
}; |
|
|
}; |
|
|
loadTask.execute(); |
|
|
loadTask.execute(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public boolean onCreateOptionsMenu(Menu menu) { |
|
|
|
|
|
getMenuInflater().inflate(R.menu.close, menu); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) { |
|
|
|
|
|
switch (item.getItemId()) { |
|
|
|
|
|
case R.id.item_close: |
|
|
|
|
|
close(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
return super.onOptionsItemSelected(item); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void close() { |
|
|
|
|
|
ViewOnClickTask closeTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
|
|
@Override |
|
|
|
|
|
protected void successUI() { |
|
|
|
|
|
showToast("已结束当前行程"); |
|
|
|
|
|
finish(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Object call() throws Exception { |
|
|
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.ToFoodFactoryTransportLogRpc_Close,id); |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
closeTask.execute(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |