`
mywebcode
  • 浏览: 1000949 次
文章分类
社区版块
存档分类
最新评论
文章列表
准备工作:须要有spring的poi包支持 第一步:定一个方法将数据写入到Excel文件中,以输入流的形式返回给Action进行接受 public classIStudentServiceImpl { public InputStream getInputStream(){ // HSSFWorkbook hw = new HSSFWorkbook(); HSSFWorkbook hw = new HSSFWorkbook(); // HSSFSheet sheet = hw.createSheet("sheet1"); ...
第一种方式: public static String getRandomString(int length){ String str = "abcdefghijklmonpqrstuvwxyzABCDEFGHIJKLMONPQRSTUVWXYZ0123456789"; StringBuffer sb = new StringBuffer(); Random random = new Random(); for(int i=0; i<length; i++){ //从0-61中产生一个随机的数 int number ...
HTML代码: <asp:GridView ID="GridView1" runat="server" DataKeyNames="ckdh" Height="183px" Style="left: 0px; position: relative; top: -18px; font-size: small;" Width="864px" AllowPaging="True" AllowSorting="True" AutoGe ...
web.sitemap的代码: ?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="退库管理" description="单击此进行退库管理"> <siteMapNode url="" title=& ...
HTML核心代码如下: <asp:TextBox ID="TextBox1" runat="server" Style="position: relative" Width="200px" AutoPostBack="true" OnTextChanged="TextBox1_Changed"></asp:TextBox> <asp:Button ID="Button1" runat="server" ...
String sqlconn = "Data Source=wei//SQLEXPRESS;Initial Catalog=HISDB;Integrated Security=True"; SqlConnection weida = new SqlConnection(sqlconn); weida.Open(); //********************* string sql = "SELECT tkdh FROM tkxx WHERE checked = 'True' AND tkdh='" + ckdh + "'"; Sq ...
Global site tag (gtag.js) - Google Analytics