public void dialog(){
new DatePickerDialog(this, new OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
start_time = year+"-"+(monthOfYear+1)+"-"+dayOfMonth;
Log.d("HJJJJ",start_time);
mStartData.setText(year+"-"+(monthOfYear+1)+"-"+dayOfMonth);
}
}, mYear, mMonth, mDay).show();
}
public void dialogs(){
new DatePickerDialog(this, new OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
end_time = year+"-"+(monthOfYear+1)+"-"+dayOfMonth;
mEndData.setText(year+"-"+(monthOfYear+1)+"-"+dayOfMonth);
}
},mYear,mMonth,mDay).show();
}
public void requst() {
String URL="http://120.76.133.225/app/Static/totalweight";
// start_time=mYear+"-"+(mMonth)+"-"+mDay;
// end_time=mYear+"-"+(mMonth+1)+"-"+mDay;
String data="?id="+App.getApp().getToken()+"&start_date="+ start_time +"&end_date="+end_time;
Log.d("HEHEHEH",URL + data);
Log.d("MMMMMM",data);
RxVolley.get(URL + data, new HttpCallback() {
@Override
public void onSuccess(String t) {
super.onSuccess(t);
parseJson(t);
}
});
}
卧龙绝圣