Ejemplo n.º 1
0
 private void initDatas() {
   // TODO Auto-generated method stub
   MApplication app = (MApplication) getActivity().getApplication();
   String endJson = app.getData(Constants.CONFIG_KEY.END_STATION, "");
   String startJson = app.getData(Constants.CONFIG_KEY.START_STATION, "");
   String customerJson = app.getData(Constants.CONFIG_KEY.CUSTOMER, "");
   if (TextUtils.isEmpty(endJson)
       || TextUtils.isEmpty(startJson)
       || TextUtils.isEmpty(customerJson)) {
     webRequest(
         endStationWebservice.getMethodName(),
         endStationWebservice.getWebParams(),
         endStationWebservice.isPost());
   } else {
     refreshSpiner4Data(endJson);
     refreshSpiner5Data(startJson);
     refreshSpiner6Data(customerJson);
   }
 }
Ejemplo n.º 2
0
 public void refreshSpData() {
   webRequest(
       endStationWebservice.getMethodName(),
       endStationWebservice.getWebParams(),
       endStationWebservice.isPost());
 }