Browse Source

传值

master
lh 7 years ago
parent
commit
619d685306
4 changed files with 7 additions and 3 deletions
  1. +3
    -0
      app/src/main/java/com/qhclh/ytzh/home/RpcUrl.java
  2. +1
    -1
      app/src/main/java/com/qhclh/ytzh/work/Fowl/ChulanFragment.java
  3. +2
    -1
      app/src/main/java/com/qhclh/ytzh/work/Fowl/FowlActivity.java
  4. +1
    -1
      app/src/main/java/com/qhclh/ytzh/work/Fowl/ShangjiFragment.java

+ 3
- 0
app/src/main/java/com/qhclh/ytzh/home/RpcUrl.java View File

@ -84,6 +84,9 @@ public class RpcUrl {
public static String BreedFactoryDetails ="/MainSystem/B3_ZhongHui/Rpcs/BreedReportRpc/BreedFactoryDetails"; public static String BreedFactoryDetails ="/MainSystem/B3_ZhongHui/Rpcs/BreedReportRpc/BreedFactoryDetails";
public static String BreedFactoryDetails_fanhui ="/MainSystem/B3_ZhongHui/Rpcs/BreedFactoryInfo"; public static String BreedFactoryDetails_fanhui ="/MainSystem/B3_ZhongHui/Rpcs/BreedFactoryInfo";
public static String QueryBreedPlanFactoryInfo ="/MainSystem/B3_ZhongHui/Rpcs/BreedReportRpc/QueryBreedPlanFactoryInfo";
public static String GetAllWeatherAreas ="/MainSystem/B3_ZhongHui/Rpcs/DayProductReportRpc/GetAllWeatherAreas"; public static String GetAllWeatherAreas ="/MainSystem/B3_ZhongHui/Rpcs/DayProductReportRpc/GetAllWeatherAreas";
public static String GetAllWeatherAreas_fanhui ="/MainSystem/B3ProduceUnitedInfos/BO/WeatherArea"; public static String GetAllWeatherAreas_fanhui ="/MainSystem/B3ProduceUnitedInfos/BO/WeatherArea";


+ 1
- 1
app/src/main/java/com/qhclh/ytzh/work/Fowl/ChulanFragment.java View File

@ -43,7 +43,7 @@ public class ChulanFragment extends BaseFragment {
@Subscribe(threadMode = ThreadMode.MAIN,sticky = true) @Subscribe(threadMode = ThreadMode.MAIN,sticky = true)
public void onEvent(FowlEvent event){ public void onEvent(FowlEvent event){
System.out.println("aaa+++chulan+++"+event.getId());
} }
@Override @Override


+ 2
- 1
app/src/main/java/com/qhclh/ytzh/work/Fowl/FowlActivity.java View File

@ -22,6 +22,7 @@ import com.qhclh.ytzh.work.Hatchery.HatcheryBean;
import org.forks.jsonrpc.JsonRpcResult; import org.forks.jsonrpc.JsonRpcResult;
import org.forks.jsonrpc.RpcFacade; import org.forks.jsonrpc.RpcFacade;
import org.forks.jsonrpc.RpcObject; import org.forks.jsonrpc.RpcObject;
import org.greenrobot.eventbus.EventBus;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -119,7 +120,7 @@ public class FowlActivity extends BaseActivity {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
tv_toolbar_title.setText(items[which]); tv_toolbar_title.setText(items[which]);
pianqulong = pianquid.get(which); pianqulong = pianquid.get(which);
EventBus.getDefault().postSticky(new FowlEvent(pianqulong));
dialog.dismiss(); dialog.dismiss();
} }
} }


+ 1
- 1
app/src/main/java/com/qhclh/ytzh/work/Fowl/ShangjiFragment.java View File

@ -43,7 +43,7 @@ public class ShangjiFragment extends BaseFragment {
@Subscribe(threadMode = ThreadMode.MAIN,sticky = true) @Subscribe(threadMode = ThreadMode.MAIN,sticky = true)
public void onEvent(FowlEvent event){ public void onEvent(FowlEvent event){
System.out.println("aaa+++shangji+++"+event.getId());
} }
@Override @Override


Loading…
Cancel
Save