Examples of EQuery()


Examples of com.firefun.DAO.Result.EQuery()

  public boolean realDel(String delid) {
    Result rst = new Result("ffdb");

    String sql = "select ccmc from ff_upload where fileid='" + delid + "'";
    rst.EQuery(sql);
    String filename = rst.getString(0, "ccmc");
    delFile(filename);
    sql = "delete from ff_upload where fileid='" + delid + "'";
    return rst.EUpdate(sql);
  }
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

   */
  public String getDBMess(Object obj, String ywid, String basepath) {
    String str_out = "";
    Result rst = new Result("ffdb");
    String sql = "select * from ff_upload where ywid ='" + ywid + "'";
    rst.EQuery(sql);
    for (int i = 0; i < rst.getRow(); i++) {
      str_out += "<tr>\n<td align=\"center\" class=\"mtabtab02\">"
          + rst.getString(i, "filemc") + "&nbsp;</td>\n";
      str_out += "<td align=\"center\" class=\"mtabtab02\">"
          + rst.getString(i, "filelx") + "&nbsp;</td>\n";
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

  public String getYwid(String ywid) {
    Result rst = new Result("ffdb");
    if ("".equals(ywid) || (ywid == null)) {
      // 文件id申请
      String sql = "select seq_ywid.nextval ywid from dual";
      rst.EQuery(sql);
      ywid = rst.getString(0, "ywid");
    }
    return ywid;
  }
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

    // 获取用户信息
    UserInfo userinfo = (UserInfo) session.getAttribute("userInfo");
    String userid = userinfo.getUserID();
    String dwid = userinfo.getDwid();
    sql = "select sjdwid from sys_dept where dwid='" + dwid + "'";
    rst.EQuery(sql);
    String sjdwid = rst.getString(0, "sjdwid");

    if (obj != null) {
      Files files = (Files) obj;
      for (int i = 0; i < files.getCount(); i++) {
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

      Files files = (Files) obj;
      for (int i = 0; i < files.getCount(); i++) {
        com.firefun.FileUpload.File myFile = files.getFile(i);
        if (!myFile.isMissing()) {
          sql = "select SEQ_FF_UPLOAD.Nextval fileid from dual";
          rst.EQuery(sql);
          fileid = rst.getString(0, "fileid");
          // 增加更名
          randomString = RandomString.getDBCode();
          filename = myFile.getFileName();
          /*
 
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

    FileOutputStream fileoutstream = new FileOutputStream(path);
    String b_file = "";
    Result rst = new Result("ffdb");
    String sql = "select b_file from ff_upload where fileid='" + downid
        + "'";
    rst.EQuery(sql);
    if (rst.getRow() > 0) {
      b_file = rst.getString(0, "b_file");
    }
    byte[] bs = b_file.getBytes();
    fileoutstream.write(bs);
View Full Code Here

Examples of com.firefun.DAO.Result.EQuery()

        //String contenttype = request.getParameter("contenttype");
        //String filemc = request.getParameter("filemc");
        String downid = request.getParameter("downid");
        Result rst = new Result("ffdb");
    String sql = "select * from ff_upload where fileid ='" + downid + "'";
    rst.EQuery(sql);
    String ccmc = rst.getString(0,"ccmc");
        String contenttype = rst.getString(0,"contenttype");
        String filemc = rst.getString(0,"filemc");
   
        String path = Address.getAddress().replace("WEB-INF","")+ "upload/" + ccmc;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.