




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、WORD數(shù)據(jù)庫原理課程設(shè)計說明書學生宿舍管理系統(tǒng)學 院: 計算機與信息科學學院專 業(yè): 網(wǎng)絡(luò)工程 班 級: 網(wǎng)絡(luò)1402學號:吳琳琳1420140231 學號:周岐浪1420140217指導教師: 高 職稱 講師完成時間:2016年12月1、管理系統(tǒng)設(shè)計的背景、意義與目標l 設(shè)計背景l(fā) 設(shè)計意義l 設(shè)計目標2、系統(tǒng)開發(fā)環(huán)境3、系統(tǒng)需求分析l 基本功能需求l 功能模塊l 數(shù)據(jù)字典4、概念結(jié)構(gòu)設(shè)計l 概念設(shè)計l E_R模型設(shè)計5、邏輯結(jié)構(gòu)設(shè)計l 將E_R圖轉(zhuǎn)換為關(guān)系模型l 各表關(guān)系模型圖6、數(shù)據(jù)實施和維護l 功能實現(xiàn)代碼l 系統(tǒng)實現(xiàn)效果7、個人實現(xiàn)的功能8、總結(jié)1、管理系統(tǒng)設(shè)計的背景、意義與目標l
2、 設(shè)計背景隨著IT事業(yè)的發(fā)展,如今,我們已經(jīng)全面跨入信息時代。計算機被廣泛的應用于各個行業(yè),人工戰(zhàn)略已經(jīng)轉(zhuǎn)化為信息戰(zhàn)略,如何在短時間獲取大量信息并整合信息,成為立足于時代的關(guān)鍵。為了適應考生人數(shù)的急劇增長,當今社會各大高校都在進行擴招政策,學生數(shù)量的急劇增加帶來信息量的成倍增長,由于信息管理的不善與疏忽,各大高校大小事故時有發(fā)生。進行正確的信息管理,對于信息與時處理和反應,能夠最大程度的減少學校以與在校學生的損失,減小潛在危機。學生宿舍是學生生活的基本單位,是同學休息與學習的地方,為了保障同學入住學生宿舍的安全性,信息的處理和管理極為重要。據(jù)了解,本校的宿舍信息管理仍然使用傳統(tǒng)的手工方式,主要
3、方式是基于文本、表格等紙介質(zhì)的手工處理,用人工手抄對男女生信宿信息進行處理登記。數(shù)據(jù)信息處理工作量大,容易出錯且不易修改;由于數(shù)據(jù)繁多,容易丟失,逐條查找記錄的方式不易操作,浪費了大量的時間,效率極低。學校的宿舍管理缺乏系統(tǒng),規(guī)的信息管理手段。建立學生宿舍管理系統(tǒng),使宿舍管理工作系統(tǒng)化,規(guī)化,便捷化,程序化,避免宿舍管理的隨意性,提高信息處理的速度和準確性,能夠與時、準確、有效的查詢和修改宿舍情況。l 設(shè)計的意義高校規(guī)模的擴大,在校學生的基本情況隨之層次化、多樣化、復雜化,相應的,學生管理工作面臨嚴峻的挑戰(zhàn)。高校學生信息日漸龐大,相應的宿舍管理工作變得復雜而困難。傳統(tǒng)的賬本化工作模式,手工記錄
4、學生信息并存檔,這樣的人工管理方式費時、費事、費力,信息獲取慢,更新滯后,查閱困難,容易出錯。為了給學生提供一個安全舒適的工作、生活、學習環(huán)境,方便宿舍管理工作的同時為學生、教師提供準確實時的信息至關(guān)重要。本校的宿舍信息管理,主要方式是基于文本、表格等紙介質(zhì)的手工處理,用人工手抄對男女生信宿信息進行處理登記。數(shù)據(jù)信息處理工作量大,容易出錯且不易修改;由于數(shù)據(jù)繁多,容易丟失,逐條查找記錄的方式不易操作,浪費了大量的時間,效率極低。以上的管理缺陷對學生宿舍管理造成了相當大的阻力,工作進展困難,問題解決的周期過長,資料整改工作量過大。為了改善學生宿舍管理情況,運用數(shù)據(jù)庫技術(shù)對學生信息進行處理和統(tǒng)一管
5、理,在校園實現(xiàn)宿舍無紙化辦公。利用計算機的特點,利用互聯(lián)網(wǎng)進行遠程操作,制定學生客戶端,教師客戶端,管理員客戶端,實現(xiàn)有針對性信息化管理,充分發(fā)揮計算機的高效性、可靠性、性、大容量、低成本等特點,建立學生宿舍管理系統(tǒng),對宿舍相關(guān)信息進行統(tǒng)一管理。新型管理方式學生宿舍管理系統(tǒng),將幫助宿舍管理人員提高工作效率,全面地掌握宿舍情況,提高宿舍安全系數(shù),快速解決學生入住學生宿舍遇到的問題,幫助管理人員與教師與時掌握學生情況。l 設(shè)計目標開發(fā)設(shè)計學生宿舍管理系統(tǒng),運用簡單的計算機操作實現(xiàn)快速檢索和快速查找,方便信息錄入和更新,本系統(tǒng)僅針對管理員進行使用。實現(xiàn)信息查詢、日常管理、宿舍管理、信息維護幾個方面的
6、系統(tǒng)化管理:1、信息查詢:a)宿舍信息:包括宿舍樓編號、寢室編號、入住人數(shù)、寢室入住人員學號、用水量、用電量、水費、電費。b)學生信息:包括學生、學號、宿舍號c)宿舍基本配置:包括床、柜子、燈、風扇、電視機2、宿舍管理:學生管理(入住、更換宿舍、);房間管理(增加、刪除、查詢)3、信息維護:學生個人信息更新、宿舍信息更新、宿舍設(shè)備信息更新。2、系統(tǒng)開發(fā)環(huán)境開發(fā)所使用數(shù)據(jù)庫系統(tǒng):MySql開發(fā)環(huán)境:windows 7開發(fā)工具:Microsoft VisualStudio 2010開發(fā)語言:C+、SQL3、系統(tǒng)需求分析l 基本功能需求學生宿舍管理系統(tǒng)為了更好的進行宿舍管理而設(shè)計。用戶的需求具體體現(xiàn)
7、在各種信息的輸入、修改和查詢。系統(tǒng)功能實現(xiàn)如下:1、提供學生的入住信息的錄入,更換宿舍信息登記。提供各宿舍的具體信息,如宿舍樓棟、宿舍號、水費、電費等。并可通過查詢宿舍號得到宿舍的具體信息、入住的學生信息、宿舍的設(shè)備信息等。2、提供管理員增加、刪除各信息的功能。l 功能模塊本宿舍管理系統(tǒng)的主要功能為:學生管理、宿舍信息管理、宿舍設(shè)備信息管理、信息查詢、息更新、信息維護。l 數(shù)據(jù)字典(1)宿舍設(shè)備情況數(shù)據(jù)字典(2)宿舍信息情況數(shù)據(jù)字典(3)學生信息情況數(shù)據(jù)字典4、概念結(jié)構(gòu)設(shè)計l 概念設(shè)計(1)學生實體:用于顯示學生的屬性,包括、學號、宿舍編號。(2)宿舍實體:用于顯示宿舍的屬性,包括樓號、宿舍號
8、、入住學生學號、可住人數(shù)、已住人數(shù)、用水量、水費、用電量、電費。(3)宿舍設(shè)備實體:用于顯示宿舍設(shè)備的屬性,包括床、柜子、風扇、燈、電視機。l E_R模型設(shè)計(1) 學生實體E_R圖(2)宿舍實體E_R圖(3)宿舍物品設(shè)備實體E_R圖(4)各實體關(guān)系E_R圖5、邏輯結(jié)構(gòu)設(shè)計l 將E-R圖轉(zhuǎn)換為關(guān)系模型:(1)Student:(num、name、dormitoryCat);(2)Room:(dormitoryCat、dormitory、room、studentNum、water、waterCharge、electricity、electricityCharge);(3)Item:(dormito
9、ryCat、bed、cabinet、light、fan、tv)l 各表關(guān)系模型圖:(1) Item表外鍵設(shè)計:(2) Student表外鍵設(shè)計:(3) 各表之間的關(guān)系模型圖,Item表與Student表通過外鍵與Room聯(lián)系:6、數(shù)據(jù)實施和維護l 功能實現(xiàn)的代碼/dbstruct.h#pragma onceclass dbStructpublic:MYSQL my;char errMsg300;/學生表charStudentNum9;charStudentName20;/宿舍chardormitoryCat6;chardormitory3;charroom4;doublewater;doubl
10、eelectricity;doublewaterCharge;doubleelectricityCharge;unsigned int members;/物件boolbed;boolcabinet;boollight;boolfan;booltv;dbStruct();dbStruct();bool Init();bool GetStruct();/添加學生表一項bool InsertStudentTable();/改變一項bool SetStudentTable(char num9);/主鍵為num, vachar(8)/獲取一項bool GetStudent(char num9);/*刪除
11、一項bool DeleteStudent(char num9);/添加宿舍表一項bool InsertDormitoryTable();/改變一項bool SetDormitoryTable(char dormitoryCat6);/主鍵為dormitoryCat, varchar(6)/獲得一項bool GetDormitory(char dormitoryCat6);/刪除一項bool DeleteDormitory(char dormitoryCat6);/添加物品表一項bool InsertItemTable();/改變一項bool SetItemTable(char dormitor
12、yCat6);/主鍵為dormitoryCat, varchar(6)/獲得一項bool GetItem(char dormitoryCat6);/*刪除一項bool DeleteItem(char dormitoryCat6);void ErrMB();/dbStruct.cpp#include "stdafx.h"dbStruct:dbStruct()this->water = 0.0;this->electricity = 0.0;this->waterCharge = 0.0;this->electricityCharge = 0.0;thi
13、s->members = 4;this->bed = TRUE;this->cabinet = TRUE;this->light = TRUE;this->fan = TRUE;this->tv = TRUE;dbStruct:dbStruct()mysql_close(&my);bool dbStruct:Init()mysql_init(&this->my);if(!mysql_real_connect(&this->my, "localhost", "root", "
14、fast", "dormitory", 0, NULL, 0)StringCchPrintfA(errMsg, 300, "獲取寢室物件信息錯誤: %sn", mysql_error(&this->my);return false;mysql_query(&this->my, "SET NAMES gbk");return true;/bool dbStruct:InsertStudentTable()if(this->dormitoryCat = NULL |this->Studen
15、tName = NULL | this->StudentNum = NULL)StringCchPrintfA(errMsg, 100, "添加學生信息錯誤: 值不完整n");return FALSE;char query300;/獲得該寢室已住人數(shù)數(shù)StringCchPrintfA(query, 300, "SELECT count(dormitoryCat) FROM student WHERE dormitoryCat = "19425"",this->dormitoryCat);mysql_query(&t
16、his->my, query);/可以確保在數(shù)據(jù)庫工作正常的情況下,能夠查詢到惟一的一條數(shù)據(jù)MYSQL_RES * res;res = mysql_use_result(&this->my);MYSQL_ROW row;int i; /i為已住人數(shù)while(row = mysql_fetch_row(res) != NULL)i = row00 - '0'mysql_free_result(res);if(+i > 4)/超過了寢室最大人員數(shù)量StringCchPrintfA(errMsg, 300, "添加學生信息錯誤: 此寢室已滿n&q
17、uot;);/*是否自動添加宿舍信息return FALSE;/可以添加學生信息StringCchPrintfA(query, 300,"INSERT INTO student(num, name, dormitoryCat) VALUES("%s", "%s", "%s")",this->StudentNum, this->StudentName, this->dormitoryCat);if(mysql_query(&this->my, query) != 0)StringCch
18、PrintfA(errMsg, 300, "添加學生信息錯誤: %sn", mysql_error(&this->my);/*是否需要自動添加宿舍信息return FALSE;return TRUE;bool dbStruct:DeleteStudent(char num9)char query300;StringCchPrintfA(query, 300, "DELETE FROM student WHERE num = "%s"", num);if(mysql_query(&this->my, quer
19、y) != 0)StringCchPrintfA(errMsg, 300, "刪除學生信息錯誤: %sn", mysql_error(&this->my);/*是否需要自動添加宿舍信息return FALSE;return TRUE;bool dbStruct:GetStudent(char num9)char query300;StringCchPrintfA(query, 300, "SELECT * FROM student WHERE num = "%s"", num);if(mysql_query(&t
20、his->my, query) != NULL)StringCchPrintfA(errMsg, 300, "獲取學生信息錯誤: %sn", mysql_error(&this->my);return FALSE;MYSQL_RES * res;MYSQL_ROW row;res = mysql_use_result(&this->my);while(row = mysql_fetch_row(res) != NULL)StringCchPrintfA(this->StudentNum, 9, row0);StringCchPrint
21、fA(this->StudentName, 20, row1);StringCchPrintfA(this->dormitoryCat, 6, row2);mysql_free_result(res);return TRUE;/bool dbStruct:InsertDormitoryTable()if(this->dormitoryCat = NULL | this->room = NULL | this->dormitory = NULL)StringCchPrintfA(errMsg, 300, "添加宿舍信息錯誤: 值不完整n");re
22、turn FALSE;char query300;StringCchPrintfA(query, 300,"INSERT INTO room(dormitoryCat, dormitory, room, studentsNum, water, electricity, waterCharge, electricityCharge) VALUES("%s", "%s", "%s", %d, %.2lf, %.2lf, %.2lf, %.2lf)",this->dormitoryCat, this->dor
23、mitory, this->room,this->members, this->water, this->electricity, this->waterCharge, this->electricityCharge);if(mysql_query(&this->my, query) != 0)StringCchPrintfA(errMsg, 300, "添加宿舍信息錯誤: %sn", mysql_error(&this->my);return FALSE;this->InsertItemTable();
24、return TRUE;bool dbStruct:DeleteDormitory(char dormitoryCat6)/由于外鍵約束,刪除此寢室時,相應的student和item表中的此寢室信息自動刪除.char query300;StringCchPrintfA(query, 300, "DELETE FROM room WHERE dormitoryCat = "%s"", dormitoryCat);if(mysql_query(&this->my, query) != 0)StringCchPrintfA(errMsg, 300
25、, "刪除宿舍信息錯誤: %sn", mysql_error(&this->my);return FALSE;return TRUE;bool dbStruct:GetDormitory(char dormitoryCat6)char query300;StringCchPrintfA(query, 300, "SELECT * FROM room WHERE dormitoryCat = "%s"", dormitoryCat);if(mysql_query(&this->my, query) != NU
26、LL)StringCchPrintfA(errMsg, 300, "獲取寢室信息錯誤: %sn", mysql_error(&this->my);return FALSE;MYSQL_RES * res;MYSQL_ROW row;res = mysql_use_result(&this->my);while(row = mysql_fetch_row(res) != NULL)StringCchPrintfA(this->dormitoryCat, 6, row0);StringCchPrintfA(this->dormitory,
27、 3, row1);StringCchPrintfA(this->room, 4, row2);this->members = atoi(row3);this->water = atof(row4);this->electricity = atof(row5);this->waterCharge = atof(row6);this->electricityCharge = atof(row7);mysql_free_result(res);return TRUE;/bool dbStruct:InsertItemTable()if(this->dorm
28、itoryCat = NULL)StringCchPrintfA(errMsg, 300, "添加宿舍信息錯誤: 值不完整n");return FALSE;char query300;StringCchPrintfA(query, 300,"INSERT INTO item(dormitoryCat,bed, cabinet, light, fan, tv) VALUES("%s", %d, %d, %d, %d, %d)",this->dormitoryCat, this->bed, this->cabinet,
29、this->light,this->fan, this->tv);if(mysql_query(&this->my, query) != 0)StringCchPrintfA(errMsg, 300, "添加宿舍物件信息錯誤: %sn", mysql_error(&this->my);return FALSE;return TRUE;bool dbStruct:GetItem(char dormitoryCat6)char query300;StringCchPrintfA(query, 300, "SELECT *
30、FROM item WHERE dormitoryCat = "%s"", dormitoryCat);if(mysql_query(&this->my, query) != NULL)StringCchPrintfA(errMsg, 300, "獲取寢室物件信息錯誤: %sn", mysql_error(&this->my);return FALSE;MYSQL_RES * res;MYSQL_ROW row;res = mysql_use_result(&this->my);while(row =
31、mysql_fetch_row(res) != NULL)StringCchPrintfA(this->dormitoryCat, 6, row0);this->bed = (atoi(row3) = 1? true: false);this->cabinet = (atof(row4) = 1? true: false);this->light = (atof(row5) = 1? true: false);this->fan = (atof(row6) = 1? true: false);this->tv = (atof(row7) = 1? true:
32、 false);mysql_free_result(res);return TRUE;void dbStruct:ErrMB()MessageBoxA(GetActiveWindow(), this->errMsg, "發(fā)生錯誤!", MB_ICONERROR);/stdafx.h#pragma once#include "targetver.h"/ Windows 頭文件:#include <windows.h>#include <mysql.h>#include <WindowsX.h>#include &l
33、t;CommCtrl.h>/ C 運行時頭文件#include <stdlib.h>#include <malloc.h>#include <memory.h>#include <tchar.h>#include <strsafe.h>/ TODO: 在此處引用程序需要的其他頭文件#include "dbStruct.h"#pragma comment(lib, "libmysql.lib")#pragma comment(lib, "comctl32.lib")/st
34、dafx.cpp/ stdafx.cpp : 只包括標準包含文件的源文件/ DormitoryMng.pch 將作為預編譯頭/ stdafx.obj 將包含預編譯類型信息#include "stdafx.h"/dormitoryMng.h#pragma once#include "resource.h"#define MAX_LOADSTRING 100/dormitoryMng.cpp(部分代碼)bool QueryStart(bool flag)char query300;if(flag = true)/查詢寢室信息GetWindowTextA(Ge
35、tDlgItem(g_hWndQuery, IDC_EDITBUILD), m_db.dormitory, 3);GetWindowTextA(GetDlgItem(g_hWndQuery, IDC_EDITROOM), m_db.room, 4);if(strcmp(m_db.dormitory, "") = 0 && strcmp(m_db.room,"") = 0)StringCchCopyA(query, 300,"SELECT room.dormitoryCat,dormitory, room, studentsNum
36、, count(student.dormitoryCat), water, electricity, waterCharge, electricityCharge FROM room LEFT JOIN student ON room.dormitoryCat = student.dormitoryCat GROUP BY room.dormitoryCat");else if(strcmp(m_db.dormitory, "") != 0 && strcmp(m_db.room,"") = 0)StringCchPrintfA
37、(query, 300,"SELECT room.dormitoryCat,dormitory, room, studentsNum, count(student.dormitoryCat), water, electricity, waterCharge, electricityCharge FROM room LEFT JOIN student ON room.dormitoryCat = student.dormitoryCat WHERE dormitory = "%s" GROUP BY room.dormitoryCat",m_db.dorm
38、itory);else if(strcmp(m_db.dormitory, "") = 0 && strcmp(m_db.room,"") != 0)StringCchPrintfA(query, 300,"SELECT room.dormitoryCat,dormitory, room, studentsNum, count(student.dormitoryCat), water, electricity, waterCharge, electricityCharge FROM room LEFT JOIN student
39、ON room.dormitoryCat = student.dormitoryCat WHERE room = "%s" GROUP BY room.dormitoryCat",m_db.room);elseStringCchPrintfA(query, 300,"SELECT room.dormitoryCat,dormitory, room, studentsNum, count(student.dormitoryCat), water, electricity, waterCharge, electricityCharge FROM room L
40、EFT JOIN student ON room.dormitoryCat = student.dormitoryCat WHERE dormitory = "%s" AND room = "%s" GROUP BY room.dormitoryCat",m_db.dormitory, m_db.room);if(true != QueryInput(L"寢室號.樓棟號.寢室號.可住人數(shù).當前人數(shù).用水量.用電量.水費.電費", 9, query)m_db.ErrMB();else/查詢學生信息GetWindowTextA(
41、GetDlgItem(g_hWndQuery, IDC_EDITSTUNO), m_db.StudentNum, 9);GetWindowTextA(GetDlgItem(g_hWndQuery, IDC_EDITSTUNAME), m_db.StudentName, 20);if(strcmp(m_db.StudentNum, "") = 0 && strcmp(m_db.StudentName, "") = 0)StringCchCopyA(query, 300,"SELECT num, name, dormitoryCat
42、 FROM student");else if(strcmp(m_db.StudentNum, "") != 0 && strcmp(m_db.StudentName, "") = 0)StringCchPrintfA(query, 300,"SELECT num, name, dormitoryCat FROM student WHERE num = "%s"",m_db.StudentNum);else if(strcmp(m_db.StudentNum, "")
43、= 0 && strcmp(m_db.StudentName, "") != 0)StringCchPrintfA(query, 300,"SELECT num, name, dormitoryCat FROM student WHERE name = "%s"",m_db.StudentName);elseStringCchPrintfA(query, 300,"SELECT num, name, dormitoryCat FROM student WHERE name = "%s" A
44、ND num = "%s"",m_db.StudentName, m_db.StudentNum);if(true != QueryInput(L"學號.所住寢室", 3, query)m_db.ErrMB();return TRUE;LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)int wmId, wmEvent;PAINTSTRUCT ps;HDC hdc;switch (message)case WM_CREATE:if(!m_
45、db.Init()m_db.ErrMB();/*填寫錯誤信息break;/創(chuàng)建列表CreateList(hWnd);/查詢填充if(false = QueryInput(L"寢室號.樓棟號.寢室號.可住人數(shù).當前人數(shù).用水量.用電量.水費.電費", 9,"SELECT room.dormitoryCat,dormitory, room, studentsNum,count(student.dormitoryCat),water,electricity, waterCharge,electricityCharge FROM room LEFT JOIN studen
46、t ON room.dormitoryCat = student.dormitoryCat GROUP BY room.dormitoryCat")m_db.ErrMB();break;case WM_NOTIFY:LPNMITEMACTIVATE nc = (LPNMITEMACTIVATE)lParam;if(nc->hdr.code = NM_RCLICK && nc->iSubItem != 0)HMENU hMenu = CreatePopupMenu();InsertMenu(hMenu, 0, MF_ENABLED, 10023, _T(&q
47、uot;刪除");InsertMenu(hMenu, 0, MF_ENABLED, 10024, _T("詳細信息");ClientToScreen(hWnd, &nc->ptAction);int result = TrackPopupMenu(hMenu, TPM_RETURNCMD | TPM_LEFTBUTTON| TPM_NOANIMATION,nc->ptAction.x + 5, nc->ptAction.y + 30, 0, hWnd, NULL);if(result = 10023)wchar_t str9;ListVi
48、ew_GetItemText(g_hWndList, nc->iItem, 2, str, 9);int iSize;char * szMultiByte;/寬字符轉(zhuǎn)換成多字節(jié)型iSize = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);szMultiByte = new chariSize;WideCharToMultiByte(CP_ACP, 0, str, -1, szMultiByte, iSize, NULL, NULL);if(iSize = 6)if(!m_db.DeleteDormitory(s
49、zMultiByte)m_db.ErrMB();delete szMultiByte;break;/刷新ListView_DeleteAllItems(g_hWndList);while(ListView_DeleteColumn(g_hWndList, 1)if(true != QueryInput(L"寢室號.樓棟號.寢室號.可住人數(shù).當前人數(shù).用水量.用電量.水費.電費", 9,"SELECT room.dormitoryCat,dormitory, room, studentsNum,count(student.dormitoryCat),water,el
50、ectricity, waterCharge,electricityCharge FROM room LEFT JOIN student ON room.dormitoryCat = student.dormitoryCat GROUP BY room.dormitoryCat")m_db.ErrMB();elseif(!m_db.DeleteStudent(szMultiByte)m_db.ErrMB();delete szMultiByte;break;/刷新ListView_DeleteAllItems(g_hWndList);while(ListView_DeleteColu
51、mn(g_hWndList, 1)if(true != QueryInput(L"學號.所住寢室", 3, "SELECT * FROM student")m_db.ErrMB();delete szMultiByte;RedrawWindow(g_hWnd, NULL, NULL, RDW_INVALIDATE);break;case WM_COMMAND:wmId = LOWORD(wParam);wmEvent = HIWORD(wParam);/ 分析菜單選擇:switch (wmId)case IDC_REFRESH:/刷新ListView_D
52、eleteAllItems(g_hWndList);while(ListView_DeleteColumn(g_hWndList, 1)if(true != QueryInput(L"寢室號.樓棟號.寢室號.可住人數(shù).當前人數(shù).用水量.用電量.水費.電費", 9,"SELECT room.dormitoryCat,dormitory, room, studentsNum,count(student.dormitoryCat),water,electricity, waterCharge,electricityCharge FROM room LEFT JOIN student ON room.dormitoryCat = student.dormitoryCat GROUP BY room.dormitoryCat")m_db.ErrMB();RedrawWindow(g_hWnd, NULL, NULL, RDW_INVALIDATE);break;case ID
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 隱私權(quán)與個人信息保護的深度解讀
- 阿里巴巴電子商務平臺的成功案例
- 操作系統(tǒng)的訪問控制與權(quán)限管理
- 超快激光材料改性-第1篇-洞察及研究
- 繪畫材料科學-洞察及研究
- 故障自愈技術(shù)研究-第1篇-洞察及研究
- 外科病例分析(大理)
- 基本公共衛(wèi)生監(jiān)督職業(yè)病防治
- 坡面侵蝕機理研究-洞察及研究
- 隱私計算與數(shù)據(jù)合規(guī)-洞察及研究
- 《國軍標風險》課件
- 鄭州鐵路局招聘筆試沖刺題2025
- 醫(yī)院常見消毒劑的使用
- (更新版)國家開放大學電大專科《機械設(shè)計基礎(chǔ)》機考網(wǎng)考形考網(wǎng)絡(luò)題庫及答案
- 國開電大《流通概論》形考任務
- 肺癌圍手術(shù)期靶向治療
- 《中國企業(yè)在“一帶一路”沿線國投資風險分析及對策》12000字(論文)
- 2024-2030年中國電鍍工藝商業(yè)計劃書
- 2024天津高考英語試題及答案
- 《儲能系統(tǒng)變流器涉網(wǎng)性能硬件在環(huán)檢測規(guī)范編制說明》
- 【提分攻略·河北專用】《專題07 生物的遺傳和變異》中考生物大題(解析版)
評論
0/150
提交評論