|
|
@@ -494,12 +494,6 @@ public class MeFragment extends EasyFragment implements View.OnClickListener, On
|
|
|
break;
|
|
|
case R.id.rl_master_change:
|
|
|
if (!platform) {
|
|
|
- if (DialogUtils.isDialogShowing(ViewUtil.popupWindow)){
|
|
|
- ViewUtil.popupWindow.dismiss();
|
|
|
- }
|
|
|
- if (DialogUtils.isDialogShowing(popupWindow)){
|
|
|
- popupWindow.dismiss();
|
|
|
- }
|
|
|
changeMaster();
|
|
|
}
|
|
|
break;
|
|
|
@@ -575,11 +569,6 @@ public class MeFragment extends EasyFragment implements View.OnClickListener, On
|
|
|
|
|
|
//切换账套
|
|
|
public void changeMaster() {
|
|
|
-// if (ViewUtil.mdProcessDialog!=null&&!ViewUtil.mdProcessDialog.isShowing()){
|
|
|
-// ViewUtil.mdProcessDialog.setContent("加载数据中...");
|
|
|
-// ViewUtil.mdProcessDialog.getBuilder().autoDismiss(false);
|
|
|
-// ViewUtil.mdProcessDialog.show();
|
|
|
-// }
|
|
|
if (StringUtil.isEmpty(CommonUtil.getSharedPreferences(ct, "erp_masterlist"))) {
|
|
|
String url = com.core.utils.CommonUtil.getAppBaseUrl(ct) + "mobile/getAllMasters.action";
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
@@ -719,6 +708,13 @@ public class MeFragment extends EasyFragment implements View.OnClickListener, On
|
|
|
|
|
|
public void showPopDialog(final Activity ct, List<ItemsSelectType1> itemsSelectType1s) {
|
|
|
View view = null;
|
|
|
+ if (DialogUtils.isDialogShowing(ViewUtil.popupWindow)){
|
|
|
+ ViewUtil.popupWindow.dismiss();
|
|
|
+ }
|
|
|
+ if (DialogUtils.isDialogShowing(popupWindow)){
|
|
|
+ popupWindow.dismiss();
|
|
|
+ popupWindow = null;
|
|
|
+ }
|
|
|
popupWindow = null;
|
|
|
WindowManager windowManager = (WindowManager) ct.getSystemService(Context.WINDOW_SERVICE);
|
|
|
if (popupWindow == null) {
|