Package com.lgx8.gateway.admin.servlet

Examples of com.lgx8.gateway.admin.servlet.UpdateGatewayCategoryDetailServlet


    return "/management/recharge/result_rechargehistory";
  }
 
  @RequestMapping("/recharge/confirmrechargehistory.do")
  public String confirmRechargeHistory(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String idString = request.getParameter("id");
    String confirmlx = request.getParameter("confirmType");
    long id = idString==null?0l:Long.parseLong(idString);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG&&id!=0){
      Rechargehistory rh = rechargehistoryDao.findRechargehistoryById(id);
      rechargeRebateService.confirmRechargehistory(rtUser, rh, confirmlx);
      request.setAttribute("rechargehistory", rh);
      request.setAttribute("confirm", "true");
    }
View Full Code Here


    return "/management/recharge/result_rechargehistory";
  }
 
  @RequestMapping("/recharge/saverechargehistoryapply.do")
  public ModelAndView saveRechargeHistoryApply(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String czje = request.getParameter("czje");
    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
View Full Code Here

   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    //创造JSON所需的Map(此处代码可使用StringBuffer拼接JSON字符串代替)
    Map<Object,Object> pageInfo = new HashMap<Object,Object>();
   
    RunTimeUser currentUser = RunTimeUser.getRunTimeUser(request);
    if(null==currentUser) {
      response.setContentType("html/txt");
      response.setCharacterEncoding("utf-8");  
          response.setHeader("Pragma", "no-cache");  
          response.setHeader("Cache-Control", "no-cache, must-revalidate");  
          response.setHeader("Pragma", "no-cache");  
          try {  
              response.getWriter().write("");  
              response.getWriter().flush();  
              response.getWriter().close();
          } catch (IOException e) {  
              e.printStackTrace();  
          }
    }
   
    String hql = " from Orders o where o.user.id = "+currentUser.getId()+" and o.status!="+Orders.STATUS_CART;
   
    String hidden = request.getParameter("hidden");
    //得到当前页数
    String page = request.getParameter("page");
    //得到每页显示行数
View Full Code Here

          HSSFRow rowdata = sheet.createRow(n);
          int i = (n-1)+((t-1)*number);
          if(i < size)
          {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
            Scorecard card = cards.get(i);
            HSSFCell cell0 = rowdata.createCell(0);
            HSSFRichTextString text0 = new HSSFRichTextString(card.getCard());
            cell0.setCellValue(text0);
            cell0.setCellStyle(styledata);
           
            HSSFCell cell1 = rowdata.createCell(1);
//            HSSFRichTextString text1 = new HSSFRichTextString(card.getPassword());
            cell1.setCellValue(card.getPassword());
            cell1.setCellStyle(styledata);
           
            HSSFCell cell2 = rowdata.createCell(2);
//            HSSFRichTextString text2 = new HSSFRichTextString(card.getScore().toString());
            cell2.setCellValue(card.getScore());
            cell2.setCellStyle(styledata);
           
            HSSFCell cell3 = rowdata.createCell(3);
            HSSFRichTextString text3 = new HSSFRichTextString(sdf.format(card.getEffectiveTimeStart()));
            cell3.setCellValue(text3);
            cell3.setCellStyle(styledata);
           
            HSSFCell cell4 = rowdata.createCell(4);
            HSSFRichTextString text4 = new HSSFRichTextString(sdf.format(card.getEffectiveTimeEnd()));
            cell4.setCellValue(text4);
            cell4.setCellStyle(styledata);
          }
        }
      }
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    User user = new User();
    user.setUsername("czt");
    user.setPassword("czt");
    user.setEmail("www15119258@qq.com");
    user.setRegistertime(new Date());
    user.setLastlogin(new Date());
    user.setNickname("苍之涛");
    user.setTruename("李晖");
    user.setSex(User.SEX_NULL);
    user.setIp("127.0.0.1");
    user.setMobile("15015531354");
   
   
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
   
    IUserCardService userCardService = (IUserCardService) ac.getBean("userCardService");
//    userCardService.createUser(user);
//   
    user = userCardService.findUser("username", "czt");
   
    System.out.println(user.getCard().getScore());
   
//    IConfigDao dao = (IConfigDao) ac.getBean("configDao");
//    System.out.println(dao.findGatewayConfig());
   
  }
View Full Code Here

    this.xfhy = xfhy;
  }
  public String toJSON() {
    JSONObject jObj = new JSONObject();
    Merchant _mr = getMerchant();
    User _u = getXfhy();
    try {
      jObj.put("id", getID());
      jObj.put("xfsjmc", _mr==null?"":_mr.getSJMC());
      jObj.put("hyxm", _u==null?"":_u.getUsername());
      jObj.put("hynickName", _u==null?"":_u.getTruename());
      jObj.put("hych", _u==null?"":(_u.getCard()==null?"":_u.getCard().getId()));
      jObj.put("xfje", getXFJE());
      jObj.put("zsjf", getHDJFS());
      jObj.put("xfsj", getXFSJ());
      //jObj.put("", arg1)
    } catch (JSONException e) {
View Full Code Here

  }
 
  public String toJSON(){
    JSONObject jObj = new JSONObject();
    Merchant _m = getMerchant();
    User _czyh = getCZYHBH();
    User _u = getCZQDR();
    try {
      jObj.put("id", getID());
      jObj.put("user_id", _czyh!=null?"":_czyh.getId());
      jObj.put("user_name", _czyh==null?"":_czyh.getUsername());
      jObj.put("merchat_id", _m==null?"":_m.getID());
      jObj.put("m_name", _m==null?"":_m.getSJMC());
      jObj.put("czlx", changetoCN(getRESERVATION01()));
      jObj.put("czje", getCZJE());
      jObj.put("dhjf", getCZDHJFS());
      jObj.put("czsj", getCZSJ());
      jObj.put("czzt", changeToCN(getCzzt()));
      jObj.put("czqdr", _u==null?"":_u.getUsername());
      jObj.put("czqrrq", getCzqdrq());
    } catch (JSONException e) {
      e.printStackTrace();
    }
    return jObj.toString();
View Full Code Here

    car.setScore(score);
    car.setPassword(password);
    this.getHibernateTemplate().persist(car);
   
    String md5Passwd = EncryptUtil.toMD5(password);
    User user = new User();
    user.setPassword(md5Passwd);
    user.setLocked(false);
    user.setEnabled(true);
    user.setOpener(opener);
    user.setParent(parent);
    user.setUsertype(usertype);
    user.setParenttype(parenttype);
    user.setOrganizationid(organizationid);
    user.setRegistertime(new Date());
    user.setCard(car);
    user.setUsername(card);
    user.setLastlogin(new Date());
    if(mobile != null && !"".equals(mobile))
      user.setMobile(mobile);
    if(email != null && !"".equals(email))
      user.setEmail(email);
    this.getHibernateTemplate().persist(user);

    return car;
  }
View Full Code Here

    String name = request.getParameter("name");
    String st_time = request.getParameter("st_time");
    String ed_time = request.getParameter("ed_time");
    String str_curPage = request.getParameter("curPage");
    int curPage = Integer.parseInt(str_curPage==null?"1":str_curPage);
    User user = RunTimeUser.getRunTimeUser(request);
    if(user.getUsertype()==User.USER_TYPE_MERCHANT){
      long m_id = user.getOrganizationid();
      if(m_id!=0){
        Merchant m = merchantDao.getMerchantById(m_id);
        name = m.getSJMC();
      }
    }
View Full Code Here

    user.setMobile("15015531354");
   
   
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
   
    IUserCardService userCardService = (IUserCardService) ac.getBean("userCardService");
//    userCardService.createUser(user);
//   
    user = userCardService.findUser("username", "czt");
   
    System.out.println(user.getCard().getScore());
   
//    IConfigDao dao = (IConfigDao) ac.getBean("configDao");
//    System.out.println(dao.findGatewayConfig());
View Full Code Here

TOP

Related Classes of com.lgx8.gateway.admin.servlet.UpdateGatewayCategoryDetailServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.