WEB development framework series (2) page function development (1), Framework page Function
Complete Solution for creating the TEST project together in the previous section
Next we are faced with the development of specific functional pages.
Analyze the following page before development.
It can be said that there are many basic data maintenance functions in any project.
We classify this type of data as basic data.
These pages need to be available but are not commonly used.
If it is to be developed, it is certainly time-consuming although not complex.
The Development Framework provides solutions for such pages. You don't need to spend too much time on this page.
Completed through the unified configuration page. Note that we choose functions that are required in the system but not commonly used.
Why?
For common functions, we hope to provide flexible encoding to meet current or future customer needs.
If configuration is used, although the development is efficient, the flexibility is limited. Here, the program owner needs to grasp the degree.
Below are the basic information about the currency required to create a project.
We need code and name.
The following describes the development procedure:
Enable the auxiliary Development Tool
Choose from the menu on the left: system configuration, as shown in the picture on the right.
Enter the database type and link string to set the current auxiliary tool to connect to our development database TEST
Click "project development =" in the left-side menu to create a basic table, as shown in figure
Enter the data table name
Click create basic table]Note: This type of table only contains code and name fields.The next section will introduce the development of such basic materials.
In this way, the table is created for us. Next we will go to SQLSERVER to check
There is a page address below: This is the menu address of our currency information. So far, our functions have been completed.
Let's go to the database to check the BASE_CURRENCY basic data table.
For example
Next, release the Function
Operating System: such
Click System Management => function management to display our function menu.
On the Basic data node, right-click => Add
Name input: currency Information
Address: the address mentioned in the above section when you created the basic information.
After entering the information, click Save.
The corresponding currency information appears in our tree.
At this time, you can choose to refresh the left menu or log on to the system again
After refreshing, the currency information function is displayed in the left menu.
Click the menu, and the query list page of the currency information appears on the right.
Click the new feature on the list page to bring up the following maintenance page.
Enter CNY name: RMB
Save
The system prompts "saved successfully"
We close the page and query it in the list query screen.
Click query, and the RMB we just maintained will be retrieved.
Okay.
So far our first basic material: currency information, the development is complete.
Finished? It seems that I have not written a line of code!
Yes. We have seen that the newly created table indeed saves a piece of data "RMB" through the new screen, and can be correctly queried in the query screen.
Let's summarize the following:
Pages like this category have a lot in a project, such as currency information, reporting unit information, customs code, transportation method
The following section describes the basic development, but not only the code and name.
What should we do?