Package org.jeecgframework.web.system.pojo.base

Examples of org.jeecgframework.web.system.pojo.base.TSAttachment


  @RequestMapping(params = "delObjFile")
  @ResponseBody
  public AjaxJson delObjFile(HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    String fileKey = oConvertUtils.getString(request.getParameter("fileKey"));// 文件ID
    TSAttachment attachment = systemService.getEntity(TSAttachment.class,fileKey);
    String subclassname = attachment.getSubclassname(); // 子类类名
    Object objfile = systemService.getEntity(MyClassLoader.getClassByScn(subclassname), attachment.getId());// 子类对象
    message = "" + attachment.getAttachmenttitle() + "删除成功";
    systemService.delete(objfile);
    systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
   
    j.setMsg(message);
    return j;
View Full Code Here


   */
  @RequestMapping(params = "objfileList")
  public ModelAndView objfileList(HttpServletRequest request) {
    Object object = null;// 业务实体对象
    String fileKey = oConvertUtils.getString(request.getParameter("fileKey"));// 文件ID
    TSAttachment attachment = systemService.getEntity(TSAttachment.class,fileKey);
    String businessKey = oConvertUtils.getString(request.getParameter("businessKey"));// 业务主键
    String busentityName = oConvertUtils.getString(request.getParameter("busentityName"));// 业务主键
    String typename = oConvertUtils.getString(request.getParameter("typename"));// 类型
    String typecode = oConvertUtils.getString(request.getParameter("typecode"));// 类型typecode
    if (StringUtil.isNotEmpty(busentityName) && StringUtil.isNotEmpty(businessKey)) {
      object = systemService.get(MyClassLoader.getClassByScn(busentityName), businessKey);
      request.setAttribute("object", object);
      request.setAttribute("businessKey", businessKey);
    }
    if(attachment!=null)
    {
      request.setAttribute("subclassname",attachment.getSubclassname());
    }
    request.setAttribute("fileKey", fileKey);
    request.setAttribute("typecode", typecode);
    request.setAttribute("typename", typename);
    request.setAttribute("typecode", typecode);
View Full Code Here

  /**
   * @Description 修复附件表
   * @author tanghan 2013-7-20
   */
  private void repairAttachment() {
    TSAttachment jro = new TSAttachment();
    jro.setAttachmenttitle("JR079839867R90000001000");
    jro.setRealpath("JR079839867R90000001000");
    jro.setSwfpath("upload/files/20130719201109hDr31jP1.swf");
    jro.setExtend("doc");
    commonDao.saveOrUpdate(jro);

    TSAttachment treaty = new TSAttachment();
    treaty.setAttachmenttitle("JEECG平台协议");
    treaty.setRealpath("JEECG平台协议");
    treaty.setSwfpath("upload/files/20130719201156sYHjSFJj.swf");
    treaty.setExtend("docx");
    commonDao.saveOrUpdate(treaty);

    TSAttachment analyse = new TSAttachment();
    analyse.setAttachmenttitle("分析JEECG与其他的开源项目的不足和优势");
    analyse.setRealpath("分析JEECG与其他的开源项目的不足和优势");
    analyse.setSwfpath("upload/files/20130719201727ZLEX1OSf.swf");
    analyse.setExtend("docx");
    commonDao.saveOrUpdate(analyse);

    TSAttachment DMS = new TSAttachment();
    DMS.setAttachmenttitle("DMS-T3第三方租赁业务接口开发说明");
    DMS.setRealpath("DMS-T3第三方租赁业务接口开发说明");
    DMS.setSwfpath("upload/files/20130719201841LzcgqUek.swf");
    DMS.setExtend("docx");
    commonDao.saveOrUpdate(DMS);

    TSAttachment sap = new TSAttachment();
    sap.setAttachmenttitle("SAP-需求说明书-金融服务公司-第三方租赁业务需求V1.7-研发");
    sap.setRealpath("SAP-需求说明书-金融服务公司-第三方租赁业务需求V1.7-研发");
    sap.setSwfpath("upload/files/20130719201925mkCrU47P.swf");
    sap.setExtend("doc");
    commonDao.saveOrUpdate(sap);

    TSAttachment standard = new TSAttachment();
    standard.setAttachmenttitle("JEECG团队开发规范");
    standard.setRealpath("JEECG团队开发规范");
    standard.setSwfpath("upload/files/20130724103633fvOTwNSV.swf");
    standard.setExtend("txt");
    commonDao.saveOrUpdate(standard);

    TSAttachment temple = new TSAttachment();
    temple.setAttachmenttitle("第一模板");
    temple.setRealpath("第一模板");
    temple.setSwfpath("upload/files/20130724104603pHDw4QUT.swf");
    temple.setExtend("doc");
    commonDao.saveOrUpdate(temple);

    TSAttachment githubhelp = new TSAttachment();
    githubhelp.setAttachmenttitle("github入门使用教程");
    githubhelp.setRealpath("github入门使用教程");
    githubhelp.setSwfpath("upload/files/20130704200345EakUH3WB.swf");
    githubhelp.setExtend("doc");
    commonDao.saveOrUpdate(githubhelp);

    TSAttachment githelp = new TSAttachment();
    githelp.setAttachmenttitle("github入门使用教程");
    githelp.setRealpath("github入门使用教程");
    githelp.setSwfpath("upload/files/20130704200651IE8wPdZ4.swf");
    githelp.setExtend("doc");
    commonDao.saveOrUpdate(githelp);

    TSAttachment settable = new TSAttachment();
    settable.setAttachmenttitle("(张代浩)-金融服务公司机构岗位职责与任职资格设置表(根据模板填写)");
    settable.setRealpath("(张代浩)-金融服务公司机构岗位职责与任职资格设置表(根据模板填写)");
    settable.setSwfpath("upload/files/20130704201022KhdRW1Gd.swf");
    settable.setExtend("xlsx");
    commonDao.saveOrUpdate(settable);

    TSAttachment eim = new TSAttachment();
    eim.setAttachmenttitle("EIM201_CN");
    eim.setRealpath("EIM201_CN");
    eim.setSwfpath("upload/files/20130704201046JVAkvvOt.swf");
    eim.setExtend("pdf");
    commonDao.saveOrUpdate(eim);

    TSAttachment github = new TSAttachment();
    github.setAttachmenttitle("github入门使用教程");
    github.setRealpath("github入门使用教程");
    github.setSwfpath("upload/files/20130704201116Z8NhEK57.swf");
    github.setExtend("doc");
    commonDao.saveOrUpdate(github);

    TSAttachment taghelp = new TSAttachment();
    taghelp.setAttachmenttitle("JEECGUI标签库帮助文档v3.2");
    taghelp.setRealpath("JEECGUI标签库帮助文档v3.2");
    taghelp.setSwfpath("upload/files/20130704201125DQg8hi2x.swf");
    taghelp.setExtend("pdf");
    commonDao.saveOrUpdate(taghelp);
  }
View Full Code Here

            int i=1;
            Map<String, Object> root = new HashMap<String, Object>();
            List att = new ArrayList();
            while(rs.next())
            {
                 TSAttachment tsAttachment = new TSAttachment();
               tsAttachment.setId(i+"");
               tsAttachment.setAttachmenttitle(rs.getString("attachmenttitle"));
               tsAttachment.setRealpath(rs.getString("attachmenttitle"));
               tsAttachment.setSwfpath(rs.getString("swfpath"));
               tsAttachment.setExtend(rs.getString("extend"));
               att.add(tsAttachment);
                 i++;
            }
            root.put("animals", att);
           
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.system.pojo.base.TSAttachment

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.