Package com.lgx8.management.action

Examples of com.lgx8.management.action.ManagementAction


      }

      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


    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_SDCZ);
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
      if(is_nore!=null&&is_nore.length > 0){
        czjf = request.getParameter("czjf");
        rechargeh.setRESERVATION02("02");//设定为不返利
      }else{
        czjf = Double.parseDouble(czje==null?"0":czje)*10+"";
        rechargeh.setRESERVATION02("01");//设定为返利
      }
      rechargeh.setCZDHJFS(Double.parseDouble(czjf==null?"0":czjf));
      rechargeh.setCZYHLX("02");
      if(_m!=null){
        rechargeh.setMerchant(_m);
      }
      rechargehistoryDao.createRechargeHistory(rechargeh);
      request.setAttribute("rechargehistory", rechargeh);
    }
    return "/management/recharge/result_rechargehistory";
View Full Code Here

    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");
    }
    return "/management/recharge/result_rechargehistory";
View Full Code Here

    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));
      if(is_nore!=null&&is_nore.length > 0){
        czjf = request.getParameter("czjf");
        rechargeh.setRESERVATION02("02");
      }else{
        czjf = Double.parseDouble(czje==null?"0":czje)*10+"";
        rechargeh.setRESERVATION02("01");
      }
      rechargeh.setCZDHJFS(Double.parseDouble(czjf==null?"0":czjf));
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_ZFBZ);
      rechargeh.setCZYHLX("02");
      if(_m!=null){
        rechargeh.setMerchant(_m);
      }
     
      rechargehistoryDao.createRechargeHistory(rechargeh);
      request.setAttribute("rechargehistory", rechargeh);
     
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

TOP

Related Classes of com.lgx8.management.action.ManagementAction

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.