System development environment: Windows+Myclipse (server)+Eclipse (mobile client)+mysql database system client and server-side architecture technology: interface layer, business logic layer, data layer 3-layer separation technology, MVC design idea!
Server and client data communication formats: XML format (used to transmit query record sets) and json format (used to transmit individual object information)
Client program directory structure:
com.mobileclient.activity: Acts as the interface layer (the interface is described in the layout file) and the control layer (controls the running process of the program).
com.mobileclient.domain: Entity object description layer, responsible for describing and encapsulating various attributes of the object, and performing data flow at each level.
com.mobileclient.service: Business logic layer, which realizes data sending and receiving by communicating with the server.
com.mobileclient.handler: When the server returns an xml data set, the class of this layer needs to be called to convert the xml data set into a java object data linked list. SAX parsing technology is used here, which requires lower memory than DOM technology parsing. Very suitable for use on mobile phones.
com.mobileclient.util: It includes various Adapters that are mainly responsible for rendering and displaying various data to the interface. There is also an ImageService that is responsible for obtaining image resources from the server. HttpUtil is responsible for communicating with the server, mainly sending parameters to the server!
com.mobileclient.app: Save the application class, global variables can be placed here, and unhandled exceptions in the application can be captured in the log file.
res/layout: Various interface layout files!
res/drawable-mdpi: Picture resource files used in the program interface!
Server program directory structure:
com.mobileserver.domain: Entity object description layer, responsible for describing and encapsulating various attributes of the object, and performing data flow at each level.
com.mobileserver.servlet: Control layer, responsible for receiving user requests, calling different functions of the business logic layer according to user business needs, and returning the processing results to the client.
com.mobileserver.dao: Business logic layer, which serves the control layer and calls the data layer to implement various CRUD operations (add, modify, query, delete).
com.mobileserver.util: Database operation layer, which directly calls the database connection to implement operations such as querying and updating records, using database connection pool technology.
College information: college number, college name, establishment date, dean's name, contact number, additional information Major information: major number, major name, college, establishment date, contact person, contact number, additional information Class information: class number, Class name, major, date of establishment, class teacher, contact number, additional information student information: student number, name, login password, gender, class, date of birth, political affiliation, student photo, contact number, student email, contact qq, Home address, additional information Teacher information: teacher number, teacher name, login password, gender, date of birth, joining date, ID number, contact number, teacher photo, home address, additional information Course information: course number, course name, classes Teacher, class time, class location, course credits, additional information Course selection information: record number, student object, course object Grade information: record number, student object, course object, grade score, student evaluation News information: record number, news title, News content, release date, news pictures