|
@@ -68,7 +68,7 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ViewUtil {
|
|
public class ViewUtil {
|
|
|
- public static Context ct;
|
|
|
|
|
|
|
+ public static Context ct = MyApplication.getInstance().getApplicationContext();
|
|
|
public static String erp_phone;
|
|
public static String erp_phone;
|
|
|
public static String erp_password;
|
|
public static String erp_password;
|
|
|
public static String erp_master;
|
|
public static String erp_master;
|
|
@@ -608,7 +608,7 @@ public class ViewUtil {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/*@功能:管理平台的返回信息处理*/
|
|
/*@功能:管理平台的返回信息处理*/
|
|
|
public static void LoginSucess(String json, String phone, String password) {
|
|
public static void LoginSucess(String json, String phone, String password) {
|
|
|
LogUtil.d("AppInfo","phone:"+phone+"password:"+password);
|
|
LogUtil.d("AppInfo","phone:"+phone+"password:"+password);
|
|
@@ -719,7 +719,7 @@ public class ViewUtil {
|
|
|
// select = 0;
|
|
// select = 0;
|
|
|
// }
|
|
// }
|
|
|
LogUtil.d("AppInfo","phone:"+phone+"password:"+password);
|
|
LogUtil.d("AppInfo","phone:"+phone+"password:"+password);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
showPopDialog((Activity) ct,itemsSelectType1s,phone,password);
|
|
showPopDialog((Activity) ct,itemsSelectType1s,phone,password);
|
|
|
// loginERPDialog = new MaterialDialog.Builder(ct)
|
|
// loginERPDialog = new MaterialDialog.Builder(ct)
|
|
|
// .title(ct.getString(R.string.user_dialog_company))
|
|
// .title(ct.getString(R.string.user_dialog_company))
|
|
@@ -775,7 +775,7 @@ public class ViewUtil {
|
|
|
adapter.notifyDataSetChanged();
|
|
adapter.notifyDataSetChanged();
|
|
|
ItemPopListAdapter.ViewHolder viewHolder= (ItemPopListAdapter.ViewHolder) view.getTag();
|
|
ItemPopListAdapter.ViewHolder viewHolder= (ItemPopListAdapter.ViewHolder) view.getTag();
|
|
|
String text= viewHolder.tvItemName.getText().toString();
|
|
String text= viewHolder.tvItemName.getText().toString();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
selectCompanyItems(selectId, text,erp_phone, erp_password);
|
|
selectCompanyItems(selectId, text,erp_phone, erp_password);
|
|
|
}});
|
|
}});
|
|
|
popupWindow = new PopupWindow(view, windowManager.getDefaultDisplay().getWidth()- DensityUtil.dp2px(50), LinearLayout.LayoutParams.WRAP_CONTENT);
|
|
popupWindow = new PopupWindow(view, windowManager.getDefaultDisplay().getWidth()- DensityUtil.dp2px(50), LinearLayout.LayoutParams.WRAP_CONTENT);
|
|
@@ -793,8 +793,8 @@ public class ViewUtil {
|
|
|
popupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
|
|
popupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
|
|
|
popupWindow.showAtLocation(ct.getWindow().getDecorView(), Gravity.CENTER, 0, 0);
|
|
popupWindow.showAtLocation(ct.getWindow().getDecorView(), Gravity.CENTER, 0, 0);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
private static boolean selectCompanyItems(int which, CharSequence text, String phone, String password) {
|
|
private static boolean selectCompanyItems(int which, CharSequence text, String phone, String password) {
|
|
|
LogUtil.i("AppInfo","text;"+text+"phone:"+phone+" password:"+password);
|
|
LogUtil.i("AppInfo","text;"+text+"phone:"+phone+" password:"+password);
|