Rdiframework.net (. NET Rapid Information System Development Integration Framework) "Development example" of Product Management (MVC Edition)

Source: Internet
Author: User

rdiframework.net - . NET rapid development of the integration Framework

Product Management for "development Examples" (MVC edition)

Overview of Part 1th

Rdiframework.net, based on the. NET Rapid Information system development, integration framework for enterprises or individuals in. NET environment, the rapid development system provides strong support, developers do not need to develop the system's basic functions and public modules, the framework itself provides a powerful library of functions and development package, developers only need to focus on the development of the business sector, so greatly improve development efficiency and save development costs. The framework is developed using the most mainstream C # language, supporting a variety of database types and supporting WinForm and the Web. The use of rdiframework.net can improve the overall quality of the management software system, improve the compatibility between modules and modules, improve the reuse of code, make the software system architecture more reasonable, the quality is more perfect, so that the maximum extent of labor results re-use. Framework Foundation modules include: powerful and flexible rights control components, unified module allocation and management components, flexible and easy to use workflow components, centralized data dictionary management components, automatic upgrade components, a variety of common business controls (pagination control, combined query control, picture navigation control, etc.), multi-language support, Powerful framework-based code generator, rich base class library and development aids, built-in Miniweb browser and other basic common functional components. Application system based on this framework, the use of component-based, reusable development, save development costs, speed up the development speed, in software development better to do much faster province.

Below we will use Rdiframework.net to develop an application that shows how to use the framework to develop in a simple and rapid way. Here we will develop a product management function module, before development, we need to design the database, suppose we want to develop a product management module. The table involved is demoproduct (product information example table), here is a brief explanation, generally we recommend that each table contains the following fields: Deletemark (delete flag), Sortcode (sort code), and each data involved in the User information field: Createon, Createuserid, CreateBy, ModifiedOn, Modifieduserid, ModifiedBy

The table is designed as follows:

The table structure details are as follows:

Part 2nd pre-development planning

Table design, we can start the work of development, before development we generally need to determine the current system used by the database connection (not required), module planning, module has the Operation button (Operation permission item) settings, business code and interface UI generation, functional testing, and so on.

2.1 Database Connection Definition

"Database connection Management" can be in our framework to manage a number of different database types of database connections, in order to facilitate our specific system development and use, even if the late server IP, database type and other changes, just here to make simple changes, do not change the original program or modify the program code is very convenient. Open it. NET rapid Development Integration Framework, select "Database connection Management" in the list of features, "System settings", open the "Database connection management" main interface, shown in 2.1.1.

Figure 2.1.1 Database connection management

Here, we need to define a database connection based on the database where product management is located, and of course, if the corresponding database connection definition already exists, do not repeat the definition to avoid ambiguity. Suppose my product management related data sheet is placed in the RDIFRAMEWORKV3.0 database, click Add to open the New Database Connection window, as shown in 2.1.2. For special instructions here, our framework has reserved several connection constants, such as:

  Rdiframeworkdbconection, Businessdbconnection, workflowdbconnection

We can access the following three constants, or we can define our own connection constants:

  Systeminfo.rdiframeworkdbconection, Systeminfo.businessdbconnection, systeminfo.workflowdbconnection

If our business systems and frameworks are placed in a library, then there is no need to go to "database connection management" to define the database connection, directly using the Systeminfo.rdiframeworkdbconection connection string, other similar.

Figure 2.1.2 New Database connection

In the "Add Database Connection" window, the "Connection name" cannot be duplicated with the existing connection name, the connection type is the type of the database, here we are SQL Server, servers address is the database server address, the user name and password is a legitimate user to log on to the database server. When these are defined, click Save to complete the definition of the database connection. The connection name "Productdblink" Here is very important, in the framework-based development process, through this name to access the product instance library. Of course, you can also not define a database connection character, so the framework uses the Systeminfo.businessdbconnection connection string by default.

2.2 Module Planning

Module planning is that the software we are going to develop includes those modules, which are popular to have those menu items. We will make a plan before the project starts, of course, we can change it later. Here we are to facilitate the explanation, our product management contains only one module, namely: "Product Management" module. Select module management from the list of features on the left side of the frame, and open the module management main interface, shown in 2.2.1.

Figure 2.2.1 Module Management

In the module management main interface, we need to make reasonable planning, for example, because our "Test product management" belongs to an instance program, I select "In the left tree." NET rapid Development Integration Framework > "Case Module" to add a "Test Product management" module. Click Add to open the New Module window, shown in 2.2.2.

Figure 2.2.2 New Module

In the "Add Module" window, it is important to note whether the "parent menu" is the module we choose, here is the "case module", "Name" is the name of the feature list displayed on the left side of the frame, "numbering" can not be repeated, the suggestion is the name of the module, "MVC link Address" is the relative path of the The "valid" flag indicates whether our new module is valid. The "public" flag indicates whether this module is a public (public) module, which is visible to all users of the login framework, regardless of whether they have access rights to the module. We can also assign an icon to it. Clicking Save completes the addition of a module.

For WebForm configuration, you can configure it through the Web address, destination address, icon three items.

For MVC configuration, you can configure the MVC address, destination address, icon three items.

2.3 Operational Rights planning

Because it is an example program, it is assumed that our product management has only some common operational functions (such as: New, edit, delete, void, query, etc.). Select "Operations Rights Management" in the list of features on the left side of the frame, and open the "Operations Rights Management" main interface, as shown in 2.3.1.

Figure 2.3.1 Operation Rights Management main interface

In, we have completed the "Test product management" of the operational rights of the planning, for the later additions and deletions of operational rights, can be flexible operation.

The 3rd part begins the development of 3.1 business code generation

Use the framework provided by the code generator to generate all the business logic code for the corresponding module by courier, as shown in:

is a single generation of business logic-related code, we can also batch generate all the business logic layer of the specified table code, or according to the Powerdesgin design file to build, batch generation as follows:

Use the Powerdesign build as shown:

In, we choose the table we want to build, set up the corresponding attribute post-point generation, you can batch generate all the business logic layer of code, the generated code may be placed in a single project, or can be put together with the page project, of course, it is recommended to separate the business logic layer of the code in a project, appropriate organization as shown:

3.2 Generation of page code

After the business logic code is generated by the framework, the Web or WinForm can use the code of these business logic layers, and we generate the Mvcui section through the code generator. As shown,

In the We click "Generate Mvcui Interface" to generate the UI section for the currently selected table, as shown in:

In the, we click "Save All" to save the generated interface code to the specified location and automatically pop up. Then put the generated code into the VS project solution suitable location, then, a module of basic increase, delete, change, check, export, paging and other functions are basically completed. What needs to be specially explained here is: the template of the Mvcui interface code generated above can be modified at any time according to the actual need, it is very simple. The generated code is put into the project as shown in:

Specifically put to the MVCUI project where, this can be planned before development, this is very simple. A simple module development can be done by making the appropriate adjustments after generating the code from the above steps.

3.3 Effect Browsing

Through the design of the pre-DB, to the use of code generator to express the code generation, and then do an appropriate amount of adjustment, a functional module even if the basic completed, now we look at the effect after the build.

1, test product information main interface:

is through our framework + code generator Express generated interface, the above interface has a basic increase of data, modify data, delete data, export data, multi-criteria query, paging, right-click menu and other common functions.

2. New interface

3. Modify the interface

4. Export Data

Export data function, we can export data to Excel.

5. Enquiry

"Advanced Query" is a multi-conditional query function, we can combine multiple conditions to query the data we need.

The following is a dynamic presentation of the UI code.

  Reference article:  

Rdiframework.net-based on. NET rapid Information System development Framework-Series catalogue

Rdiframework.net Platform Code Generator V3.0 Release-Updated at 20160518 (available for download)

Rdiframework.net━. NET rapid Information System Development Framework V3.0 version strong release

Rdiframework.net━. NET rapid Information System development framework-Introduction to Workflow components

Rdiframework.net Framework SOA solution (set Windows Services, WinForm form and IIS form release)-Distributed applications

Video list:

  The 1th part, the configuration of the framework in different databases

Section 1.1, the configuration and operation of Rdiframework.net framework in sqlserver2008+

Section 1.2, the configuration and operation of Rdiframework.net framework in oracle11g+

Section 1.3, rdiframework.net framework in MySQL 5.0+ configuration and operation of the explanation

The 2nd part, framework based on the development of code generator

Section 2.1, Rdiframework.net framework based on the generation of code generator industry Logic Layer code

Section 2.2, Rdiframework.net framework based on the generation of code generator mvcui explanation

Section 2.2.1, rdiframework.net framework based on code generator generation Mvcui Explanation _ 2.2 Supplemental Video

Section 2.3, Rdiframework.net framework based on the generation of code generator Webformui explanation

Section 2.4, Rdiframework.net Framework development of WinForm programs based on business logic generated by the code generator

For A few years, thanks to the supporters and users of the rdiframework.net framework, you can find out more at the address below.

rdiframework.net official website:http://www.rdiframework.net/

rdiframework.net Official blog:http://blog.rdiframework.net/

At the same time need to be explained, all the technical articles in the future to the official website as the subject, welcome to our collection!

rdiframework.net Framework by the professional team for a long time to build, has been updated, has been upgrading, please rest assured that use!

Welcome to Rdiframework.net Framework Official public (No.:rdiframework-net), keep abreast of the latest developments.

Scan QR code for immediate attention

Rdiframework.net (. NET Rapid Information System Development Integration Framework) "Development example" of Product Management (MVC Edition)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.