摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、添加dao public int studentAdd(Connection con,Student student)throws Exception{ String sql="insert into t_student values(null,?,?,?,?,?,?,?)"; PreparedStatement pstmt=con.prepareStatement(sql); pstmt.setString(1, student.getStuNo());... 阅读全文
posted @ 2013-07-01 17:24 cnmotive 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、获取搜索条件值 function searchStudent(){ $('#dg').datagrid('load',{ stuNo:$('#s_stuNo').val(), stuName:$('#s_stuName').val(), sex:$('#s_sex').combobox("getValue"), ... 阅读全文
posted @ 2013-07-01 13:06 cnmotive 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、建立数据表及数据(略)2、创建student model package com.java1234.model;import java.sql.Date;public class Student { private int id; private String stuNo; private String stuName; private String sex; private Date birthday; private int gradeId; ... 阅读全文
posted @ 2013-07-01 07:08 cnmotive 阅读(351) 评论(0) 推荐(0) 编辑