Package com.lgx8.gateway.entities

Examples of com.lgx8.gateway.entities.Orders


  @RequestMapping("/recharge/initrecharge.do")
  public String initRechargePage(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/recharge/create_rechargehistory";
  }
View Full Code Here


  @RequestMapping("/recharge/initrechargeapply.do")
  public String initRechargePageApply(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/recharge/create_rechargeapply";
  }
View Full Code Here

      }

      for (int n = 1; n <= size; n++) {
        HSSFRow rowdata = sheet.createRow(n);
        // int i = (n - 1) + ((t - 1) * number);
        RebateContent rc = list.get(n-1);
        HSSFCell cell0 = rowdata.createCell(0);
        HSSFRichTextString text0 = new HSSFRichTextString(rc.getFllx());
        cell0.setCellValue(text0);
        cell0.setCellStyle(styledata);

        HSSFCell cell1 = rowdata.createCell(1);
        // HSSFRichTextString text1 = new
        // HSSFRichTextString(card.getPassword());
        cell1.setCellValue(rc.getOid());
        cell1.setCellStyle(styledata);

        HSSFCell cell2 = rowdata.createCell(2);
        // HSSFRichTextString text2 = new
        // HSSFRichTextString(card.getScore().toString());
        cell2.setCellValue(rc.getName());
        cell2.setCellStyle(styledata);

        HSSFCell cell3 = rowdata.createCell(3);
        cell3.setCellValue(rc.getJf_count());
        cell3.setCellStyle(styledata);
       

      }

View Full Code Here

    }
   
    List<Scorecard> cards = new ArrayList<Scorecard>();
   
    ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
    IScorecardDao scorecardDao = (IScorecardDao) ac.getBean("scorecardDao");
   
    cards = scorecardDao.listScorecards(cardStart, cardEnd);
   
    String[] headers = { "卡号", "密码", "积分", "有效开始时间", "有效结束时间" };
   
    int size = cards.size();
    int number = Integer.parseInt(numberStr);
View Full Code Here

    String tj_st = request.getParameter("tj_st");
    String tj_ed = request.getParameter("tj_ed");
    String fllx = request.getParameter("fllx");
    StringBuffer sb = new StringBuffer();
    PageArgument pr = getPageInfo(request);
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(tj_st!=null&&!tj_st.equals("")){
      sb.append(" and createdtime>=str_to_date('"+tj_st+"','%Y-%m-%d %H:%i:%s')");
    }
    if(tj_ed!=null&&!tj_ed.equals("")){
      sb.append(" and createdtime<=str_to_date('"+tj_ed+"','%Y-%m-%d %H:%i:%s')");
View Full Code Here

  }
 
  @RequestMapping("/rebate/modifyrebateruleinit.do")
  public ModelAndView modifyRebateruleInit(HttpServletRequest request,HttpServletResponse response){
    String re_id = request.getParameter("rrid");
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(re_id!=null&&re_id.length()>0){
      if(rtUser.getUsertype()==User.USER_TYPE_GSYG){
        Rebaterule rr = rechargeRebateService.getRebateRule(Long.parseLong(re_id));
        request.setAttribute("rebaterule", rr);
        return  new ModelAndView("/management/rebate/create_rebaterule");
      }else{
        return new ModelAndView("/management/rebate/list_rebaterule");
View Full Code Here

  }
 
  @RequestMapping("/rebate/deleterebaterule.do")
  public ModelAndView deleteRebateruleInit(HttpServletRequest request,HttpServletResponse response){
    String re_id = request.getParameter("rrid");
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(re_id!=null&&re_id.length()>0){
      if(rtUser.getUsertype()==User.USER_TYPE_GSYG){
        Rebaterule rr = rechargeRebateService.getRebateRule(Long.parseLong(re_id));
        rechargeRebateService.deleteRebateRule(rr);
      }
    }
    return new ModelAndView("/management/rebate/list_rebaterule");
View Full Code Here

    return new ModelAndView("/management/rebate/list_rebaterule");
  }
 
  @RequestMapping("/rebate/saverebate.do")
  public String saveRebateRule(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String fllv = request.getParameter("fllv");
    String fllx = request.getParameter("fllx");
    String flzt = request.getParameter("flzt");
    String flid = request.getParameter("rrid");
    Rebaterule rr = null;
    if(rtUser.getUsertype()==User.USER_TYPE_GSYG){
      if(flid!=null&&flid.length()>0&&!flid.equals("0")){
        long id = Long.parseLong(flid);
        rr = rechargeRebateService.getRebateRule(id);
        rr.setDELETEFLAG(flzt);
        rr.setFLLX(fllx);
View Full Code Here

  public ModelAndView listRebate(HttpServletRequest request,HttpServletResponse response){
    String tj_st = request.getParameter("fl_st");
    String tj_ed = request.getParameter("fl_ed");
    StringBuffer sb = new StringBuffer();
    PageArgument pr = getPageInfo(request);
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(tj_st!=null&&!tj_st.equals("")){
      sb.append(" and flsj>=str_to_date('"+tj_st+"','%Y-%m-%d %H:%i:%s')");
    }
    if(tj_ed!=null&&!tj_ed.equals("")){
      sb.append(" and flsj<=str_to_date('"+tj_ed+"','%Y-%m-%d %H:%i:%s')");
    }
   
    if(rtUser!=null&&rtUser.getUsertype()!=0&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      if(rtUser.getUsertype()!=User.USER_TYPE_GSYG){
        sb.append(" and flsyfbh="+rtUser.getOrganizationid());
      }
      String hql = "";
      if(sb.toString()!=null&&!sb.toString().equals("")){
         hql = " from Rebate where "+sb.toString().substring(4)+" order by flsj desc";
      }else{
View Full Code Here

    if(hd_lx!=null&&hd_lx.length()!=0&&!hd_lx.equals("")){
      sb.append(" and dhlx='"+hd_lx+"'");
    }
   
    sb.append(" and dhzt='0'");
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
   
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG){
      String hql = "from ChargeIndex where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by dhtjrq desc";
      PageList list = rechargeRebateService.getPageListRebateByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
    return null;
View Full Code Here

TOP

Related Classes of com.lgx8.gateway.entities.Orders

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.