Duwamish 'Framewokes and Data How to Run !!! ~~~

xiaoxiao2021-03-06  17

DUWAMISH 7.0 structure is divided into four logical layers:

1. The Web layer provides access to the application for the client. The web form is just a user operation with HTML, and the code hidden file implements event processing of various controls.

2. The business appearance layer provides the web layer to process the account, category browsing, and books. BusinessFacade project is implemented. The business appearance layer is used as an isolation layer that isolates the user interface to the implementation of various business functions. In addition to the low-level systems and support functions, all calls to the database server are made through this assembly.

3. BusinessRules project in the business rules layer solution file is implemented. It contains various business rules and logic implementations. Business rules complete this task such as the verification of customer accounts and book orders.

4. Data Access Layer Data Access Layer provides data services for business rules layers. DataAccess project in the solution file is implemented.

In addition to the above four logic layers, DUWAMISH 7.0 also includes shared functions in the COMMON project encapsulated in the duwamish.sln solution file.

Account Details "page Displays the user's account information, but also allows the user to modify account information. However, the user must first log in and create an account by logging in to the process before modifying the information. Users who have created an account can return to "Logon" page, type credentials, then advance to the "Account Details" page to modify account information. For more information on the login process.

Create a new account:

Start the account management process in the web layer. When loading the page, update the user's account information via the duwamish7.web.account.submitbutton_click.account.submitbutton_click.Acount.SubmitButton_Click method and duwamish7.beb.accountmodule.ProcessChanges method. Then, the Web method calls the Duwamish7.businessFacade.customer method of the business appearance, which creates a new representation of the SALT and hash operations, and then uses the business rule layer Duwamish7.businessRules.customer.Update method. Next, call the duwamish7.dataAccess.customs.updateCustomer method of the data access layer, and this method calls the UpdateCustomer stored procedure in the database layer.

Users create new accounts for the Web layer's duwamish7.web.secure.logon.submitButton_Click method provides user account information to Duwamish 7.0 applications. Duwamish7.Web.Secure.logon.SubmitButton_Click method calls duwamish7.Web.accountModule.ProcessChanges method, while the latter calls the duwamish7.businessFacade.customer method of the business appearance layer.

Account management is one of several parts of the business rule layer.

The data creation of the new account and the data modification of existing accounts are the same. Therefore, DUWAMISH 7.0 uses a user control called AccountModule to handle these two processes.

Duwamish7.Web.account.SubmitButton_Click method: [C #] ///

/// Validates the saves off the customer account information ./// The source of the event. /// An Eventargs That Contains the Event data. /// public void submitbutton_click (Object sender, eventargs e) {/// process the change The form // moduleaccount.processchanges ();} [c #]

///

/// Validates the Saves Off The Customer Account INFORMATION.

/// IF this is a new customer, the crete the item, or edit for an existing customer.

/// this is caled from the page where this user control exists.

/// Returns True on success, false OtherWise.

///

Public Bool ProcessChanges ()

{

//

// Update The Database

//

IF (SaveCustomer ())

{

Editlabel.visible = false;

CreateLabel.visible = false;

Updatedlabel.visible = true;

Return True;

}

Else

{

//

// show any errors

//

DisplayerroS ();

UpdatedLabel.visible = false;

Return False;

}

} Duwamish7.web.account.submitButton_Click method:

转载请注明原文地址:https://www.9cbs.com/read-41399.html

New Post(0)