freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

教學(xué)管理系統(tǒng)之學(xué)生數(shù)據(jù)管理子系統(tǒng)畢業(yè)論文(參考版)

2025-07-03 11:31本頁面
  

【正文】 = temp。 = sheetHead。 private ExcelEnum(String excelName){ = excelName。默認(rèn)0行標(biāo)題,1行標(biāo)題,2行模板數(shù)據(jù) /** * 枚舉 */ public static enum ExcelEnum { /**學(xué)生信息模板 */ STU(), /**教師信息模板 */ TEACHER()。 private int templeRowNum = 2。 // 模板列數(shù) private int columnNum = 0。 /**Excel第一行字符串 ,如:計科1001成績表 */ private String sheetHead。 /**生成的Excel存放的地方 */ private String savePath = 。import 。 ()。 (doc, out)。 (utf8)。 } /** * 格式化輸出documentxml */ public static void sendDom(Document doc, OutputStream out) throws IOException{ XMLOutputter output = new XMLOutputter()。 Document document = (in)。import 。 } // 注意這里連接不能關(guān)閉 return rs。 } } rs = ()。 i 。 // 默認(rèn)的得到的Result的游標(biāo)只能向前 //設(shè)置游標(biāo)可以自由滾動 pst = (sql, , )。 } /** * 通用的查詢方法 * param objs * param sql * return 結(jié)果集ResultSet */ public static ResultSet executeQuery(Object[] objs, String sql) { conn = getConn()。 } finally { free(conn, pst, rs)。 } } row = ()。 i 。 try { pst = (sql)。 } /** * 通用的數(shù)據(jù)更新方法(包含:增,刪,改) * param objs * param sql * return 數(shù)據(jù)庫跟新影響的行數(shù) */ public static int executeUpdate(Object[] objs, String sql) { conn = getConn()。 } catch (SQLException e) { ()。 /** * 獲取數(shù)據(jù)庫連接 * return 數(shù)據(jù)庫連接對象 */ private static final Connection getConn() { try { BasicDataSource dataSource = ().getBasicDataSource()。 /**數(shù)據(jù)庫用戶名. */ private static String username。 /**數(shù)據(jù)庫驅(qū)動. */ private static String driver。 /**預(yù)處理對象. */ private static PreparedStatement pst。import 。 } public static void setBasicDataSource(BasicDataSource basicDataSource) { = basicDataSource。// 最小閑置連接數(shù) (initialSize)。// 最大連接活躍數(shù) (maxIdle)。 (password)。 (url)。 basicDataSource = new BasicDataSource()。 Integer maxWait = ((maxWait))。 Integer maxIdle = ((maxIdle))。 String password = (password)。 String url = (url)。 (in)。 } /** * 初始化數(shù)據(jù)源 * throws IOException */ public void init() throws IOException{ // getClass().getClassLoader()獲取java存放路徑 InputStream in = getClass().getClassLoader().getResourceAsStream()。 private DatabaseFactory() { (======正在執(zhí)行DatabaseFactory=====)。/** * 數(shù)據(jù)源工廠:單例模式 * author 段大志 * 時間:2013124下午3:59:49 */public class DatabaseFactory { private static DatabaseFactory instance = new DatabaseFactory()。import 。import 。 附 錄數(shù)據(jù)庫參數(shù)文件代碼:driver=url=jdbc:sqlserver://localhost:1433。下面就對學(xué)生管理模塊部分用例進行測試。黑盒測試技術(shù)(Black Box Testing)黑盒測試主要還是功能部分。軟件測試是為了在軟件投入生產(chǎn)之前盡可可能的發(fā)現(xiàn)錯誤,使軟件正常的運行。 } 6 系統(tǒng)測試與維護 系統(tǒng)的測試目標(biāo)測試在軟件開發(fā)過程中一直都是備受關(guān)注的,即使在傳統(tǒng)的軟件工程中,也有一個明確、獨立的測試階段。 // 關(guān)閉畫筆資源 ()。 (getRandom(5,5)*)。 (randomColor())。 } // 產(chǎn)生隨機的多邊形 Polygon polygon = new Polygon(new int[]{getRandom(0, width/2),getRandom(width/2, width),getRandom(width/4, width/3)}, new int[]{getRandom(0, height/4),getRandom(0, height/3),getRandom(height/2, height)}, 3)。 (new Color(getRandom(0, 255), getRandom(0, 255), getRandom(0, 255)))。 i++) { int x1 = getRandom(0, width)。 for (int i = 0。 Font font = (, . getResourceAsStream(/res/)).deriveFont(getRandom(0, 1), 40)。 ()。 public BufferedImage createBuf() throws Exception { buf = new BufferedImage(width, height, )。 while((end = (b))!= 1){ (b, 0, end)。 int end = 1。 OutputStream out = ()。 } // 第3步:讀取磁盤文件進行下載操作 String downFileName = ()。 (Excel已經(jīng)生成: + excelFile)。 } (isDeleteTemplate)。 boolean isDeleteTemplate = true。 File excelFile = null。//出生年月 (arr)。 //學(xué)號 arr[2] = ().equals(1) ? 男 : 女。 for(StudentVO stu: list){ String[] arr = new String[6]。 ListStudentVO list = (cId)。 (flag)。 boolean flag = vo == null ? true : false。/script 學(xué)生信息修改無刷新驗證驗證示意圖,見57:圖57 學(xué)生添加成功提示圖無刷新服務(wù)器Ajax驗證服務(wù)關(guān)鍵代碼:protected void validatesId(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ String sId = ((sId))。取消submit的默認(rèn)提交功能 //以上幾項均可選 rules: { sId:{ required: true, rangelength: [10,10], digits:true, remote: page/classes/Student?m=9 //傳說當(dāng)中的ajax驗證,自動把input中的值發(fā)送到服務(wù)器 }, sName: { required: true, rangelength: [2,4] }, sCard: { required: true, rangelength: [18,18] }, cId: { required:true, remote: page/classes/Student?m=8 //傳說當(dāng)中的ajax驗證,自動把input中的值發(fā)送到服務(wù)器 }, politicsStatus:required, sAddress: required, nation:required, sex:required, birthday: { required:true, dateISO:true //例如:20090623,1998/01/22 只驗證格式,不驗證有效性 }, telphone: { required:true, digits:true, rangelength: [11,11] }, :{ digits: true, rangelength: [4,10] } }, })。 } 學(xué)生信息增加手動添加學(xué)生信息示意圖,見圖58圖58 手動添加學(xué)生信息修改學(xué)生基本信息示意圖,見圖58圖58 添加學(xué)生非法信息驗證客戶端驗證技術(shù)關(guān)鍵代碼:script type=text/javascript$(document).ready(function(){ $(input[name=sId]).focus()。 }// 如果第一行為空,跳過 (singleRow)。 } n++。 default: singleRow[n] = 。 if (singleRow[n] != null) { singleRow[n] = singleRow[n].replaceAll(N/A, ) .trim()。 case : ()。 case : singleRow[n] = 。 case : singleRow[n] = ().trim()。 } else { singleRow[n] = ()。 String temp = ()。 // 數(shù)值 case : if ((cell)) { singleRow[n] = (cell .getDateCellValue())。 case : singleRow[n] = (cell .getBooleanCellValue())。 switch (()) { case : singleRow[n] = 。 i columnNum。 int n = 0。 //(該表共有列數(shù): + columnNum)。 Sheet sheet = (sheetIndex)。 ListString[] dataList = new ArrayListString[](100)。 } } catch (Exception e1) { ()。 (savedFile)。 File fullFile = new File(virtualPath)。 !().isEmpty()) { String virtualPath = (fileName)。 //獲取上傳文件的
點擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1