Package com.vsked.util

Examples of com.vsked.util.FileOperate


            ex.printStackTrace();  
        }  
        */
        pane = new JPanel();
        //File directory=new File("images");
        ImageIcon imageIcon=new ImageIcon(new FileOperate().getConfigFilePathForEvery()+"sendmsg.gif");
        button = new JButton("缩小到托盘");  
        button.setEnabled(false);  
        label = new JLabel(imageIcon);  
        pane.add(label);  
        pane.add(button);  
View Full Code Here


    private void tray(){  
        button.setEnabled(true);  
        tray = SystemTray.getSystemTray(); // 获得本操作系统托盘的实例  
        //File directory=new File("images");
        //System.out.println(directory.getAbsolutePath());
        ImageIcon icon = new ImageIcon(new FileOperate().getConfigFilePathForEvery()+"/picon.jpg"); // 将要显示到托盘中的图标  
        PopupMenu pop = new PopupMenu(); // 构造一个右键弹出式菜单  
        MenuItem show = new MenuItem("显示窗口");  
        MenuItem exit = new MenuItem("退出");  
        MenuItem author = new MenuItem("关于");  
        /** 
View Full Code Here

   *
   * @return
   */
  public List<TbSMResult> getTodayTbSMResult() {
    try {
      String strArray[]=FileOperate.readFile(new FileOperate().getConfigFilePathForEvery()+"/DBConfig.xml").split("#");
      Date d = new java.util.Date();
      SimpleDateFormat sdf = new SimpleDateFormat("MMdd");
      String nowStr = sdf.format(d);
     
      conn = ConnectDB.getSqlServerConnection();
View Full Code Here

   * @return
   */
  public List<TbMMResult> getTodayTbMMResult() {

    try {
      String strArray[]=FileOperate.readFile(new FileOperate().getConfigFilePathForEvery()+"/DBConfig.xml").split("#");
      Date d = new java.util.Date();
      SimpleDateFormat sdf = new SimpleDateFormat("MMdd");
      String nowStr = sdf.format(d);
     
      conn = ConnectDB.getSqlServerConnection();
View Full Code Here

  /**
   * 得到今天短信彩信结果 彩信猫
   * @return
   */
  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();
View Full Code Here

    }//end if mmList
   
      return flag; 
  }
  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();
View Full Code Here

   * @return
   */
  public static String moveFileToFolder(String inContent,String title){
    //-- start func
   
    String strArray[]=FileOperate.readFile(new FileOperate().getConfigFilePathForEvery()+"/DBConfig.xml").split("#");
    String mmsContents="";
    String tempStr=inContent;
    String[] tempArray=tempStr.split(";");
    Date d = new java.util.Date();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
View Full Code Here

TOP

Related Classes of com.vsked.util.FileOperate

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.