extjs3.2+struts2实现多文件上传excel并插入到数据库

Extjs4.2+struts2+swfupload多文件上传 写这篇文章一方面是为了让大家能够快速的上手swfupload从而快速的开发,一方面怕博主以后忘了能够回来在翻翻自己的文章。 下面直接进入正题,在使用swfupload之前我们先来介绍下swfupload的特点,从而明白为什么要使用swfupload。 swfupload特点:    1.swfupload是使用flash进行文件上传,实现了无刷新页面。   阅读详情
多个文件上传分为List集合和数组,下面我们着重介绍一下list集合的上传。都大同小异。

下面是extjs效果图

上传成功后的效果图

下面是extjs的实现代码

Ext.onReady(function() {
    //音乐上传信息
    Ext.BLANK_IMAGE_URL = "/extjs/images/s.gif";
        var music=[
                    {
                        name : 'worksId',
                        type : 'integer',
                        sortable : true
                    },
                    {
                        name : "isbn",
                        type : "string",
                        sortable : true
                    }, {
                        name : "name",
                        type : "string",
                        sortable : true
                    }, {
                        name : "author",
                        type : "string",
                        sortable : true
                    }, {
                        name : "description",
                        type : "string",
                        sortable : true
                    }, {
                        name : "publish",
                        type : "string",
                        sortable : true
                    },{
                        name : "price",
                        type : "float",
                        sortable : true
                    },
                    {
                        name : "number",
                        type : "integer",
                        sortable : true
                    }, {
                        
                        name : "telecom",
                        type : "string",
                        sortable : true
                    },{
                        name : "move",
                        type : "string",
                        sortable : true
                    }
                    ,{
                        name : "link",
                        type : "string",
                        sortable : true
                    },{
                        name : "web",
                        type : "string",
                        sortable : true
                    },{
                        name : "webname",
                        type : "string",
                        sortable : true
                    },{
                        name : "exclusive",
                        type : "string",
                        sortable : true
                    },{
                        name : "copyright",
                        type : "string",
                        sortable : true
                    },{
                        name : "sublicense",
                        type : "string",
                        sortable : true
                    },{
                        name : "pname",
                        type : "string",
                        sortable : true
                    },{
                        name : "accredit",
                        type : "string",
                        sortable : true
                    },{
                        name : "Btime",
                        type : "string",
                        sortable : true
                    }
            ];
    
        var store = new Ext.data.JsonStore({
            url: "findByName.action",
            type:'json',
           // root: 'root',
            timeout: '180000',
           
            fields: music
           // autoLoad : {params:{start:0,limit:10}}
        })
        
        var form = new Ext.form.FormPanel({  
             
            labelWidth: 80,   
            url:'/extjs/upload.action',  
            fileUpload:true,  
            defaultType: 'textfield',  
      
            items: [{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
                allowBlank: false,  
               
                anchor: '90%'  // anchor width by percentage  
            },{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
             
               
                anchor: '90%'  // anchor width by percentage  
            },{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
                
               
                anchor: '90%'  // anchor width by percentage  
            },{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
                
               
                anchor: '90%'  // anchor width by percentage  
            },{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
                
               
                anchor: '90%'  // anchor width by percentage  
            },{  
                xtype: 'textfield',  
                fieldLabel: '上传文件',  
                name: 'urlName',  
                inputType: 'file',  
              
               
                anchor: '90%'  // anchor width by percentage  
            }]  
        });  
        var up=new Ext.Window({
            width:500,
            height:250,
            id:'up',
            frame : true,
            closable:false,
            items:form,
        
             buttons: [{  
                    text: '上传',  
                    handler: function() {  
                        if(form.form.isValid()){  
                            form.getForm().submit({      
                                waitMsg:'正在上传,请稍后!',
                                success: function(form, action){  
                                
                                var win = Ext.getCmp("up");
                                 win.hide();
                                 Ext.Msg.alert("提示","上传成功!");
                                 
                                 var grid = Ext.getCmp("musicgrid");
                                 var store = grid.getStore();
                                 store.load();
                                
                                
                                },      
                               failure: function(){      
                                    Ext.Msg.alert("提示","上传失败!");    
                               }  
                            })               
                        }  
                   }  
                },{  
                    text: '关闭',  
                    handler:function(){up.hide();}  
                }]
            
            
        });
    
        var grid = new Ext.grid.GridPanel({  
             id:'musicgrid',
             name:'musicgrid',
             renderTo : "form1",// 呈现
           
            // 下面的每一列都对应上面定义的列名  
            height:600,
            width:900,
            frame:true,
           
            tbar : [ {
                xtype : 'button',
                text : '上传',
                iconCls : 'table_print',
                id : 'upload',
                handler : function() {
                up.show();
            }
            }],
             store : store,  
            columns: [ {header: " 序号", width: 160, sortable: true, dataIndex: 'worksId'},
                 {header: "ISBN", width: 160, sortable: true, dataIndex: 'isbn'},
                        {header: "作品名称", width: 160, sortable: true, dataIndex: 'name'},
                        {header: "作者", width: 100, sortable: true, dataIndex: 'author'},
                        {header: "是否出版", width: 100, sortable: true, dataIndex: 'publish',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }},
                        {header: "出版社", width: 100, sortable: true,  dataIndex: 'pname'},
                        {header: "价格", width:100, sortable: true,  dataIndex: 'price'},
                        {header: "印刷份数", width: 100, sortable: true,  dataIndex: 'number'},
                        {header: "作者授权", width:100, sortable: true,  dataIndex: 'accredit',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }},
                         {header: "电信", width:100, sortable: true,  dataIndex: 'telecom',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }}, {header: "移动", width:100, sortable: true,  dataIndex: 'move',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }}, {header: "联通", width:100, sortable: true,  dataIndex: 'link',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }}, {header: "网站", width:100, sortable: true,  dataIndex: 'web',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }},
                        {header: "网站名称", width:100, sortable: true,  dataIndex: 'webname'},
                         {header: "独家性", width:100, sortable: true,  dataIndex: 'exclusive',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }}, {header: "电子版全", width:100, sortable: true,  dataIndex: 'copyright',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }}, {header: "转授权", width:100, sortable: true,  dataIndex: 'sublicense',renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
                            if(value == 'Y') {
                                 return "<span style='color:red;font-weight:bold;'>是</span>"
                         }     
                        if(value == 'N') {
                            return "<span style='color:green;font-weight:bold;'>否</span>"
                    }   
                        
                        }},    {header: "描述", width: 160, sortable: true, dataIndex: 'description'},
                        
                    ]
        });  
});


struts2的实现代码

package com.ising99.action;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


import javax.servlet.http.HttpServletResponse;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;

import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.io.FileUtils;

import org.apache.struts2.ServletActionContext;

import com.ising99.biz.BookBiz;
import com.ising99.pojo.Book;

public class BookAction extends BaseAction<Book>{
                        private BookBiz bookBizImpl;
            //            private File urlName;
                //        private String urlNameContentType;
            //            private String  urlNameFileName;
                        private String savePath;
                        // 上传多个文件的集合文本  
                          
                        private List<File> urlName;  
                        // /多个上传文件的类型集合  
                        private List<String> urlNameContentType;  
                       // 多个上传文件的文件名集合  
                        private List<String> urlNameFileName;  
        


                public List<File> getUrlName() {
                            return urlName;
                        }

                        public void setUrlName(List<File> urlName) {
                            this.urlName = urlName;
                        }

                        public List<String> getUrlNameContentType() {
                            return urlNameContentType;
                        }

                        public void setUrlNameContentType(List<String> urlNameContentType) {
                            this.urlNameContentType = urlNameContentType;
                        }

                        public List<String> getUrlNameFileName() {
                            return urlNameFileName;
                        }

                        public void setUrlNameFileName(List<String> urlNameFileName) {
                            this.urlNameFileName = urlNameFileName;
                        }


                private     List<Book> list=new ArrayList<Book>();
                
                        public List<Book> getList() {
                    return list;
                }

                public void setList(List<Book> list) {
                    this.list = list;
                }


                        private List file;

                    
                        public List getFile() {
                            return file;
                        }

                        public void setFile(List file) {
                            this.file = file;
                        }


                        public String getSavePath() {
                            return savePath;
                        }

                        public void setSavePath(String savePath) {
                            this.savePath = savePath;
                        }

                        public BookBiz getBookBizImpl() {
                            return bookBizImpl;
                        }

                        public void setBookBizImpl(BookBiz bookBizImpl) {
                            this.bookBizImpl = bookBizImpl;
                        }
                        public String upload() throws BiffException, IOException{
                    
                                if (null != getSession().getAttribute("book")) {
                                    getSession().removeAttribute("book");
                                }
                            
                                
                                String path = ServletActionContext.getServletContext().getRealPath(
                                        "excel");// 写到指定路径
                                System.out.println(path);

                                File file = new File(path);
                                
                                // 判断指定的路径下是否有urlNameFileName,如果没有,自动创建
                            
                                       if (!file.exists()) {
                                            file.mkdirs();
                                        }
                                       for (int i = 0; i < urlName.size(); i++) {  
                                           try {  
                                  
                                              //list集合通过get(i)的方式来获取索引  
                                  
                                              FileUtils.copyFile(urlName.get(i), new File(file, urlNameFileName.get(i)));  
                                  
                                           } catch (IOException e) {  
                                  
                                              // TODO Auto-generated catch block  
                                  
                                              e.printStackTrace();  
                                           }  
                                       }  
                                        /*try {
                                            FileUtils.copyFile(urlName, new File(file, urlNameFileName));

                                        } catch (IOException e) {

                                            e.printStackTrace();
                                        }*/
                                       for (int k = 0; k < urlNameFileName.size(); k++) {
                                        
                                
                            String name = urlNameFileName.get(k);
                                System.out.println(name);
                                
                                    int isa = name.lastIndexOf(".");
                                    System.out.println(isa);
                                    String sub = name.substring(isa + 1);
                                    System.out.println(sub);
                                
                        
                                if (!"xls".equals(sub)) {
                                    HttpServletResponse response = ServletActionContext
                                            .getResponse();
                                    response.setContentType("text/html;charset=UTF-8");
                                    response.setCharacterEncoding("UTF-8");
                                    try {
                                        PrintWriter out = response.getWriter();
                                        out
                                                .println("<script type='text/javascript' language='javascript'>");
                                        out.println("alert('对不起,您选择的文档不符合上传格式,请重新选择')");
                                        out.println("</script>");
                                    } catch (IOException e) {
                                        e.printStackTrace();
                                    }
                                    return null;
                                } else if ("xls".equals(sub) || "xls" == sub) {
                                    
                                    InputStream is = new FileInputStream(path + "/" + name);
                                    System.out.println(path + "/" + name);
                                    jxl.Workbook rwb = Workbook.getWorkbook(is);
                                    Sheet sheet = rwb.getSheet(0);
                                        int colNum = sheet.getColumns();//获取总列数
                                        int rowNum = sheet.getRows();//获取总行数

                                        for (int i =1; i < rowNum; i++) {
                                            Book book =new Book();

                                            for (int j = 0; j < colNum; j++) {
                                                Cell c = sheet.getCell(j, i);
                                                if (j == 0) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setIsbn(c.getContents());    
                                                    }
                                                    
                                                } else if(j==1)
                                                {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setName(c.getContents());    
                                                    }
                                                    
                                                }else if (j == 2) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setAuthor(c.getContents());
                                                    }
                                                
                                                } else if (j == 3) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setDescription(c.getContents());
                                                    }
                                                
                                                } else if (j == 4) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setPublish(c.getContents());
                                                    }
                                                
                                                    
                                                } else if (j == 5) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setPname(c.getContents());
                                                    }
                                                
                                                    
                                                } else if (j ==6) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        float price=Float.parseFloat(c.getContents());
                                                        book.setPrice(price);

                                                    }
                                            
                                                } else if (j == 7) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        System.out
                                                        .println(c.getContents()+"份数");
                                                int number=Integer.parseInt(c.getContents());
                                            book.setNumber(number);
                                                    }
                                                    
                                                    
                                                } else if (j == 8) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setAccredit(c.getContents());
                                                    }
                                                } else if (j == 9) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                    book.setTelecom(c.getContents());
                                                    }
                                                }  else if (j == 10) {
                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                        book.setMove(c.getContents());
                                                        }
                                                    
                                                    }  else if (j == 11) {
                                                        if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                            book.setLink(c.getContents());
                                                            }
                                                    
                                                        }  else if (j == 12) {
                                                            if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                                book.setWeb(c.getContents());
                                                                }
                                                            
                                                            
                                                            }  else if (j == 13) {
                                                                if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                                    book.setWebname(c.getContents());
                                                                    }
                                                                
                                                                
                                                                }  else if (j == 14) {
                                                                    if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                                        book.setExclusive(c.getContents());
                                                                        }
                                                                    
                                                                
                                                                    }  else if (j == 15) {
                                                                        if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                                            book.setCopyright(c.getContents());
                                                                            }
                                                                        
                                                                        }  else if (j == 16) {
                                                                            if (null!=c.getContents()&&!"".equals(c.getContents())) {
                                                                                book.setSublicense(c.getContents());
                                                                                }
                                                                            
                                                                        
                                                                            }
                                        
                                                Date date =new Date();
                                                        book.setBtime(date);
                                            }
                                        
                                                
                                                this.bookBizImpl.save(book);
                                                
                                                    list.add(book);
                                                super.getSession().setAttribute("list", list);
                                                
                                                
                                        }
                                            }
                                
                                        
                                        }
                                return SUCCESS;
                                
                            
                                 }
                                
                                
                        public String findByName() {
                            System.out.println("dddd");
                            return SUCCESS;
                        }            
}


struts.xml

 

<action name="upload" class="bookAction" method="upload">
            <result name="success">true.jsp</result>
        </action>
        <action name="findByName" class="bookAction" method="findByName">
            <result name="success">
            booklist.jsp
            
            </result>
            
        </action>

前台接收上传的数据是通过jsp接收session来获得的,下面是jsp接收session代码

<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.ising99.pojo.Book"%>
<%@page import="net.sf.json.JSONArray"%>

<%
    System.out.println("-------------------------");

    List<Book> list=(List<Book>)session.getAttribute("list");
    response.getWriter().write(JSONArray.fromObject(list).toString());
    
    //int sizes=(Integer)session.getAttribute("size");
    //response.getWriter().write("{\"list2\":"+JSONArray.fromObject(sizes).toString()+",");

    
 %>


项目下载地址:

http://download.youkuaiyun.com/detail/wang623145708/7481015


张北论坛www.zhangbeibbs.com
邢台论坛www.hbxtbbs.com

Ext 3.x 文件批量上传 基于Ext 3.x 的文件批量上传,今天整理出来和大家一起分享 立即下载

相关推荐

Ext上传文件控件

附件是ext上传文件的控件使用实例,下载附件后直接打开附件中的html页面,点击页面中的上传按钮就可以看到上传文件的对话框

ExtJS FormPanel上传

ExtJS上传组件中FormPanel能很方便的实现上传。再项目中对单个文件上传实践起来比较的简单 下面是我用这个控件的部分提起出来的部分代码: &lt;%@ page language="java" import="java.util.*" pageEncoding="utf-8"%&gt; &lt;% String path = request.getContextPath(); S...

一个安静的程序员 436

Extjs多文件上传

支持 自由添加和减少上传文件个数的Extjs多文件上传源代码,10分绝对值得,要注意的一点就是jsp里面引用的Ext的js和css要是2.2版本的

extjs form java_extjs上传excel文件表单formpanel到java后台完整案例

extjs上传excel文件表单formpanel完整案例,首先弹出一个框,里面有一个extjs form表单,点击按钮可以选择文件,然后点击确定按钮提交表单到服务器,服务器接收代码以接收处理excel文件为例。1.extjs客户端上传文件表单formpanel代码:varuploadWin=newExt.Window({modal:true,title:"批量导入记录",width:400...

weixin_39524574的博客 368

Extjs3.3+swfUpload2.2实现多文件上传组件.pdf

Extjs3.3+swfUpload2.2实现多文件上传组件.pdf

OpenAI Codex 桌面端国内使用全坑解決指南(2026 Windows 实测)

本地文件报错:SQLite 初始化失败、启动闪退、卡加载页 → 本地缓存/数据库损坏,和网络无关网络地区报错→ 网络IP/地区被拦截,和本地软件文件无关Codex 桌面端的大部分报错,都不是软件故障,而是海外软件适配国内网络、国内模型协议不兼容导致的适配问题。不用盲目重装、换网络、改系统设置,只要区分「本地文件问题」和「网络地区问题」,搭配国内大模型 API 替代方案,就能完美解决所有痛点。(注:部分内容可能由 AI 生成)

ups_hxc的博客 1112

Extjs上传附件实战开发,实现批量上传及在线预览功能(一)

使用相关软件:         1、SWFUpload_v2.5;         2、FlexPaper1.5.6;         3、OpenOffice3.4.1;         4、OpenOfficeSDK3.4.1         5、xpdf-chinese-simplified;         6、SWFTools 0.9.2;         所有软件全部开源

江下飞雪 1万+

揭秘无人机前沿领域的科技新突破

本文旨在系统性地介绍无人机技术在前沿领域的最新突破,涵盖从基础理论到实际应用的各个方面。我们将重点关注那些正在改变无人机行业面貌的关键技术创新,并分析它们对未来发展的影响。文章首先介绍无人机技术的基础概念和背景,然后深入探讨六个关键领域的技术突破,接着分析实际应用案例,最后展望未来发展趋势。自主导航系统(SLAM):同时定位与地图构建技术,使无人机能在未知环境中自主导航计算机视觉(CV):使无人机能够"看"和理解周围环境的技术5G通信:第五代移动通信技术,提供高速、低延迟的数据传输能源管理。

AI天才研究院 1490

ExtJs图片上传+回显

var addStore = Ext.create('Ext.data.Store', {     fields: ['id', 'model'],     autoLoad: true,     proxy: {         type: 'ajax',         url: path + '/ad/phoneList.do',         reader: {      

qq_37894807的博客 1582

尚硅谷课程【笔记】——大数据之Shell【一】

【【尚硅谷】Shell脚本从入门到实战】笔记

n04j04h06的博客 1319

OTA(Over-The-Air)升级

OTA(Over-the-Air)是一种通过无线方式进行数据传输和更新的技术,通常用于电子设备(如智能手机、汽车、物联网设备等)的软件、固件或配置更新。OTA可以在设备与服务器之间进行远程传输,用户无需将设备接入电脑或进行有线操作。通过OTA,用户只需要通过Wi-Fi或移动网络连接,便能自动接收并安装最新的更新,而无需手动干预。OTA的优点是便捷和高效,能够确保设备随时保持最新状态,同时减少用户的操作负担。:如智能家居设备、路由器、汽车等硬件设备的固件更新。:确保设备上的应用保持最新版本。

weixin_50127894的博客 5065

【ExtJs】ExtJs的文件上传

ExtJs的文件上传也是采用Ajax的方式,基本上,用户上传之后,其结果马上推回给前台。下面以一个ExtJs图片上传系统,说明这个问题。 一、基本目标 实现如下的一个图片上传的系统,不是基本图片格式,大于1M的图片不给予上传,上传成功显示图片,上传不成功,则显示错误信息。 二、基本思想 这个工程的目录结构如下, 如FileUpload.html的HTML布

编程记录,亲测有效 5986

Unity游戏开发客户端Unity基础

Unity游戏开发客户端面经 之 Unity 篇

Sea3752的博客 2万+

J2EE代码存档--导出Excel

前台使用Ext JS,后台框架为SSH,使用Apache的POI组件来实现导出Excel功能。 Apache POI是Apache软件基金会的开放源码函数库,POI提供API给Java程序对Microsoft Office格式文档进行读写的功能。本项目的各管理模块中用到的导出Excel功能都是调用POI库在服务器端先生成Excel文件,然后提供给前端进行...

diaogan4202的博客 107

RML2018.01a数据集的读取与使用

基于深度学习的自动调制识别

QAQIknow的博客 1万+

【OpenClaw企业级智能体实战】第10篇:医疗行业OpenClaw实战:病历自动书写、医保智能审核与患者随访管理(附HIPAA合规配置+完整代码)

医疗行业正面临“效率提升需求”与“合规监管红线”的双重矛盾:病历书写占据医生30%-50%工作时间,医保审核效率低下,患者随访工作量巨大,但医疗数据“不出域”“责任不转移”的要求又限制了AI落地。本文基于华为云、腾讯云安全规范及中关村科金、复旦大学附属中山医院等真实实践,拆解OpenClaw在医疗场景的五大核心应用(病历自动书写、医保智能审核、患者随访管理、科研文献综述、医学影像预处理),提供私有化部署架构、HIPAA合规配置模板、完整实操流程及可直接运行的代码。

专注于人工智能、软件开发、工控自动化、工厂数字化及智能化等领域,希望和大家共同进步! 441

struts2 配合jaxl 制作Excel模板做的报表[云少原创](有了它就不需要每一个单元格都要一个一个敲代码了哈哈)

一早上,刚刚把第二张表格模板做好了,我感觉这2天的辛苦没有白费,现在要是想做一个导出报表的事情只需要从数据库里面拿出数据然后将他们组装成一个DataModel这个对象就可以了,我一边说一边把代码拷贝出来,最后有时间我把整个jar包也拷贝出来,里面还有很多地方没有完善,希望各位能提出修改意见,或者是自己做一个哈哈,方便以后做Excel报表呵呵。 public class DataModel {

scychina的专栏 1119

汽车标定技术(七)--英飞凌TC3xx_Overlay实现页切换

今天说要开个专栏讲讲XCP标定,但在将标定之前,先把英飞凌专门为标定功能设计overlay功能讲解清楚。

认真搞搞汽车MCU 4017

Java就业指导(从入门到放弃)

本系统是X委托Y开发的用于Z的系统,系统包括A、B、C、D等模块。系统使用了Java企业级开发的开源框架E以及前端技术F。表示层运用了G架构,使用H作为视图I作为控制器并实现了REST风格的请求;业务逻辑层运用了J模式,并通过K实现事务、日志和安全性等功能,通过L实现缓存服务;持久层使用了M封装CRUD操作,底层使用N实现数据存取。整个项目采用了P开发模型。上面的描述中,E通常指Spring(Java企业级开发的一站式选择);

ywl470812087的博客 497

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

jsjq、ajax、java实现多文件上传与列表显示

jsjq、ajax、java实现多文件上传与列表显示

weixin_45587504的博客 524

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

ExtJs典型用法之文件上传

从今天起我会和大家一块来学习ExtJs的典型操作,前面我写了一些ExtJs的文章,那个系列主要是系统的来介绍Ext如何使用。但是我们知道如果仅仅那样来介绍会遗漏很多实用的内容,因此我今后会继续写一些常用的Ext操作方面的内容,暂且叫做"ExtJs典型用法"系列吧。 今天我们首先看一下Ext中如何上传文件。我们知道在传统的html中有file组件(也就是type为file的input组件),但是我们也可以看到在Ext中是没有相应的组件的。那么我们如何来上传文件呢?在Ext中要完成上传其实很简单,只需要设置F

Kenshin Cui's Blog 1万+

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

extjs 文件上传

功能要求: 在mastplan页面添加按钮,实现上传excel文件的功能,并在保存之前读取文件内容将其保存到数据库里面。   具体实现:   ^_^ 先闪闪图片吧。 Jsp页面代码: 在tbar工具栏中添加一按钮: 单击此按钮,弹出一个上传文件的窗口 ,{id:"upload_excel",xtype: "butt

舒婷(Zoe) 6360

extjs3.2+struts1.2实现文件上传。

ext form表单代码: var addDoc = new Ext.FormPanel({ baseCls: 'x-plain', autoWidth: false, labelWidth: 100, labelAlign : 'right...

xiaoyagouwei的专栏 296

ExtJS 的一些使用总结(适用于3.x版本)——第三弹

这些方法大多运行在ExtJS3.2到3.6版本,极个别方法也可以用于4.x版本,请使用前先测试。 上传文件   inputType : 'file' var form = new Ext.form.FormPanel({ fileUpload : true, items : [{ xtype : 'textfield', inputType : 'file', id :

JAVA_HIGHNESS的专栏 1879

Ext中多个form组件放一行的布置

ext中把from表单中的多个组件放到一行的布置方式如下所示:var form = new Ext.FormPanel({     id:typeForm,     renderTo:center-div1,   frame: true,   height: 80,     labelWidth: 50,      title: 类型查询,         items: [{   

licip的专栏 3614
上一篇: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)异常解决方法
下一篇: extjs grid内容显示居中代码
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值