|
|
@@ -52,6 +52,7 @@ import com.core.base.fragment.SupportToolBarFragment;
|
|
|
import com.core.broadcast.MsgBroadcast;
|
|
|
import com.core.net.http.ViewUtil;
|
|
|
import com.core.net.utils.NetUtils;
|
|
|
+import com.core.utils.DialogUtils;
|
|
|
import com.core.utils.FlexJsonUtil;
|
|
|
import com.core.utils.helper.AvatarHelper;
|
|
|
import com.me.network.app.http.HttpClient;
|
|
|
@@ -465,7 +466,10 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
showToact(R.string.networks_out);
|
|
|
return;
|
|
|
}
|
|
|
- ViewUtil.LoginTask(MyApplication.getInstance().mLoginUser.getTelephone()
|
|
|
+ if (DialogUtils.isDialogShowing(popupWindow)){
|
|
|
+ popupWindow.dismiss();
|
|
|
+ }
|
|
|
+ ViewUtil.LoginTask(MyApplication.getInstance().mLoginUser.getTelephone()
|
|
|
, CommonUtil.getSharedPreferences(ct, "user_password"), ct);
|
|
|
break;
|
|
|
case R.id.editInfoIv://个人资料
|
|
|
@@ -473,6 +477,9 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
break;
|
|
|
case R.id.rl_master_change:
|
|
|
if (!platform) {
|
|
|
+ if (DialogUtils.isDialogShowing(ViewUtil.popupWindow)){
|
|
|
+ ViewUtil.popupWindow.dismiss();
|
|
|
+ }
|
|
|
changeMaster();
|
|
|
}
|
|
|
break;
|
|
|
@@ -548,6 +555,11 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
|
|
|
//切换账套
|
|
|
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<>();
|
|
|
@@ -558,7 +570,7 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
} else {
|
|
|
String masterlist = CommonUtil.getSharedPreferences(ct, "erp_masterlist");
|
|
|
List<Master> mList = JSON.parseArray(masterlist, Master.class);
|
|
|
- List<ItemsSelectType1> selectType1s=new ArrayList<>();
|
|
|
+ List<ItemsSelectType1> selectType1s=new ArrayList<>();
|
|
|
if (!ListUtils.isEmpty(mList)) {
|
|
|
for (int i = 0; i < mList.size(); i++) {
|
|
|
String masterCN=CommonUtil.getSharedPreferences(MyApplication.getInstance(),"Master_ch");
|
|
|
@@ -567,10 +579,10 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
selectId=i;
|
|
|
}
|
|
|
}
|
|
|
- ItemsSelectType1 itemsSelectType1=new ItemsSelectType1();
|
|
|
- itemsSelectType1.setName(mList.get(i).getMa_function());
|
|
|
- itemsSelectType1.setEn_name(mList.get(i).getMa_user());
|
|
|
- selectType1s.add(itemsSelectType1);
|
|
|
+ ItemsSelectType1 itemsSelectType1=new ItemsSelectType1();
|
|
|
+ itemsSelectType1.setName(mList.get(i).getMa_function());
|
|
|
+ itemsSelectType1.setEn_name(mList.get(i).getMa_user());
|
|
|
+ selectType1s.add(itemsSelectType1);
|
|
|
}
|
|
|
}
|
|
|
showPopDialog(ct,selectType1s);
|
|
|
@@ -586,7 +598,7 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
// });
|
|
|
// mDialog.show();
|
|
|
// mDialog.initViewData(mList);
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -720,6 +732,10 @@ public class MeFragment extends SupportToolBarFragment implements View.OnClickLi
|
|
|
popupWindow.setBackgroundDrawable(new BitmapDrawable());
|
|
|
popupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
|
|
|
popupWindow.showAtLocation(ct.getWindow().getDecorView(), Gravity.CENTER, 0, 0);
|
|
|
+
|
|
|
+// if (ViewUtil.mdProcessDialog!=null&&ViewUtil.mdProcessDialog.isShowing()){
|
|
|
+// ViewUtil.mdProcessDialog.dismiss();
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
|