public void logout() {
   DialogUtils.showLoading(mContext, EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_OUT);
   AndroidEventManager.getInstance()
       .addEventListener(EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_OUT, this, true);
   AndroidEventManager.getInstance()
       .postEvent(
           EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_OUT,
           0,
           URLUtils.URL_SHOPMANAGERACCOUNT_LOGIN_OUT);
 }
 /**
  * @param username
  * @param pwd
  */
 public void login(String username, String pwd) {
   loginForCashierAppUp = new LoginForCashierAppUp(username, pwd);
   DialogUtils.showLoading(mContext, EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_IN);
   AndroidEventManager.getInstance()
       .addEventListener(EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_IN, this, true);
   AndroidEventManager.getInstance()
       .postEvent(
           EventCode.HTTP_POST_SHOPMANAGERACCOUNT_LOGIN_IN,
           0,
           URLUtils.URL_SHOPMANAGERACCOUNT_LOGIN_IN,
           loginForCashierAppUp);
 }