|
|
|
@ -10,9 +10,15 @@ import android.widget.TextView; |
|
|
|
|
|
|
|
import com.qhclh.ytzh.R; |
|
|
|
import com.qhclh.ytzh.base.BaseActivity; |
|
|
|
import com.qhclh.ytzh.home.RpcUrl; |
|
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
|
import com.qhclh.ytzh.ui.CalendarDialogFragment; |
|
|
|
import com.qhclh.ytzh.ui.RefreshLayout; |
|
|
|
|
|
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
|
import org.forks.jsonrpc.RpcFacade; |
|
|
|
import org.forks.jsonrpc.RpcObject; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
@ -77,7 +83,31 @@ public class WeightListActivity extends BaseActivity implements CalendarDialogFr |
|
|
|
protected void onResume() { |
|
|
|
super.onResume(); |
|
|
|
// page = 0; |
|
|
|
WeightAppList(0,null); |
|
|
|
} |
|
|
|
|
|
|
|
private void WeightAppList(final int flag,final Date choseTime) { |
|
|
|
ViewOnClickTask WeightAppListTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
List<RpcObject> rpcList; |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
System.out.println("aaa+++++"+rpcList); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
RpcObject queryObj = RpcObject.create(RpcUrl.WeightAppList_canshu); |
|
|
|
queryObj.setInt("PageSize",100); |
|
|
|
queryObj.setInt("PageIndex",0); |
|
|
|
queryObj.setBoolean("OnlySelfCar",true); |
|
|
|
if (flag ==1) { |
|
|
|
queryObj.setDate("Date", choseTime); |
|
|
|
} |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.WeightAppList,queryObj); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
WeightAppListTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -112,7 +142,7 @@ public class WeightListActivity extends BaseActivity implements CalendarDialogFr |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onStartCalendarClick(Date date) { |
|
|
|
|
|
|
|
WeightAppList(1,date); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|