Package com.vsked.bean

Examples of com.vsked.bean.TbSMResult


      rs = pt.executeQuery();
      while (rs.next()) {
        if (tbSMResultList == null) {
          tbSMResultList = new ArrayList<TbSMResult>();
        }
        TbSMResult tsr = new TbSMResult();
        tsr.setID(rs.getInt("ID"));
        tsr.setSM_Type(rs.getInt("SM_Type"));
        tsr.setSM_ID(rs.getInt("SM_ID"));
        tsr.setSubTime(rs.getString("SubTime"));
        tsr.setOrgAddr(rs.getString("OrgAddr"));
        tsr.setDestAddr(rs.getString("DestAddr"));
        tsr.setSM_Content(rs.getString("SM_Content"));
        tsr.setSendTime(rs.getString("SendTime"));
        tsr.setMsgID(rs.getString("MsgID"));
        tsr.setService_ID(rs.getString("Service_ID"));
        tsr.setFee_UserType(rs.getString("Fee_UserType"));
        tsr.setFee_Terminal_ID(rs.getString("Fee_Terminal_ID"));
        tsr.setMsg_Fmt(rs.getInt("Msg_Fmt"));
        tsr.setFeeType(rs.getString("FeeType"));
        tsr.setFeeCode(rs.getInt("FeeCode"));
        tsr.setValid_Time(rs.getString("Valid_Time"));
        tsr.setSent_Time(rs.getString("Sent_Time"));
        tsr.setMsg_Status(rs.getString("Msg_Status"));
        tsr.setTryTimes(rs.getInt("TryTimes"));
        tsr.setRecv_Status(rs.getString("Recv_Status"));
        tsr.setRecv_Time(rs.getString("Recv_Time"));
        tsr.setReserve1(rs.getInt("Reserve1"));
        tsr.setReserve2(rs.getString("Reserve2"));
        tsr.setCreatorID(rs.getString("CreatorID"));
        tsr.setSMType(rs.getInt("SMType"));
        tsr.setMessageID(rs.getString("MessageID"));
        tsr.setDestAddrType(rs.getInt("DestAddrType"));
        tbSMResultList.add(tsr);

      }

    } catch (Exception e) {
View Full Code Here


  public boolean getTodayResult(){
    String strArray[]=FileOperate.readFile(new FileOperate().getConfigFilePathForEvery()+"/DBConfig.xml").split("#");
    List<TbSMResult> smList=new SPDAO().getTodayTbSMResult();
    if(smList!=null){
      for(int i=0;i<smList.size();i++){
        TbSMResult sm=smList.get(i);
        MSGOutBox mob=new MSGOutBox();
        mob.setExpressLevel(Integer.parseInt(strArray[9].trim()));
          mob.setSender(strArray[10]);
          mob.setReceiver(sm.getDestAddr());
        mob.setMsgType(0);
        mob.setMsgTitle(sm.getSM_Content()+strArray[20].trim());
        mob.setMMSContentLocation("");
        mob.setSendTime(sm.getSendTime());
        mob.setCommPort(Integer.parseInt(strArray[8].trim()));
        if(!new MSGOutBoxDAO().add(mob))
        {
          flag=false;
        }else{
          new SPDAO().updateTodayTbSMResult(sm.getID());
        }
      }//end for i
    }//end if smList
    List<TbMMResult> mmList=new SPDAO().getTodayTbMMResult();
   
View Full Code Here

  public boolean getTodayResultForSMSCat(){
    String strArray[]=FileOperate.readFile(new FileOperate().getConfigFilePathForEvery()+"/DBConfig.xml").split("#");
    List<TbSMResult> smList=new SPDAO().getTodayTbSMResult();
    if(smList!=null){
      for(int i=0;i<smList.size();i++){
        TbSMResult sm=smList.get(i);
        WaitToSendSmsTable wtss=new WaitToSendSmsTable();
        wtss.setPhoneNumber(sm.getDestAddr());
        wtss.setSmsOperator("系统管理员");
        wtss.setSmsContent(sm.getSM_Content()+strArray[20].trim());
        wtss.setStatus("待发");
        wtss.setSmsDeport("");
        wtss.setFastSms("0");
        wtss.setNewFlag(0);
        if(!new WaitToSendSmsTableDAO().add(wtss))
        {
          flag=false;
        }else{
          new SPDAO().updateTodayTbSMResult(sm.getID());
        }
      }//end for i
    }//end if smList
      return flag; 
  }
View Full Code Here

      rs = pt.executeQuery();
      while (rs.next()) {
        if (tbSMResultList == null) {
          tbSMResultList = new ArrayList<TbSMResult>();
        }
        TbSMResult tsr = new TbSMResult();
        tsr.setID(rs.getInt("ID"));
        tsr.setSM_Type(rs.getInt("SM_Type"));
        tsr.setSM_ID(rs.getInt("SM_ID"));
        tsr.setSubTime(rs.getString("SubTime"));
        tsr.setOrgAddr(rs.getString("OrgAddr"));
        tsr.setDestAddr(rs.getString("DestAddr"));
        tsr.setSM_Content(rs.getString("SM_Content"));
        tsr.setSendTime(rs.getString("SendTime"));
        tsr.setMsgID(rs.getString("MsgID"));
        tsr.setService_ID(rs.getString("Service_ID"));
        tsr.setFee_UserType(rs.getString("Fee_UserType"));
        tsr.setFee_Terminal_ID(rs.getString("Fee_Terminal_ID"));
        tsr.setMsg_Fmt(rs.getInt("Msg_Fmt"));
        tsr.setFeeType(rs.getString("FeeType"));
        tsr.setFeeCode(rs.getInt("FeeCode"));
        tsr.setValid_Time(rs.getString("Valid_Time"));
        tsr.setSent_Time(rs.getString("Sent_Time"));
        tsr.setMsg_Status(rs.getString("Msg_Status"));
        tsr.setTryTimes(rs.getInt("TryTimes"));
        tsr.setRecv_Status(rs.getString("Recv_Status"));
        tsr.setRecv_Time(rs.getString("Recv_Time"));
        tsr.setReserve1(rs.getInt("Reserve1"));
        tsr.setReserve2(rs.getString("Reserve2"));
        tsr.setCreatorID(rs.getString("CreatorID"));
        tsr.setSMType(rs.getInt("SMType"));
        tsr.setMessageID(rs.getString("MessageID"));
        tsr.setDestAddrType(rs.getInt("DestAddrType"));
        tbSMResultList.add(tsr);

      }

    } catch (Exception e) {
View Full Code Here

  public boolean getTodayResult(){
    String strArray[]=FileOperate.readFile("c:/DBConfig.xml").split("#");
    List<TbSMResult> smList=new SPDAO().getTodayTbSMResult();
    if(smList!=null){
      for(int i=0;i<smList.size();i++){
        TbSMResult sm=smList.get(i);
        MSGOutBox mob=new MSGOutBox();
        mob.setExpressLevel(Integer.parseInt(strArray[9].trim()));
          mob.setSender(strArray[10]);
          mob.setReceiver(sm.getDestAddr());
        mob.setMsgType(0);
        mob.setMsgTitle(sm.getSM_Content());
        mob.setMMSContentLocation("");
        mob.setSendTime(sm.getSendTime());
        mob.setCommPort(Integer.parseInt(strArray[8].trim()));
        if(!new MSGOutBoxDAO().add(mob))
        {
          flag=false;
        }else{
          new SPDAO().updateTodayTbSMResult(sm.getID());
        }
      }//end for i
    }//end if smList
    List<TbMMResult> mmList=new SPDAO().getTodayTbMMResult();
   
View Full Code Here

TOP

Related Classes of com.vsked.bean.TbSMResult

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.