用户界面流程组件
问题描述:
三层体系结构和用户界面流程组件之间有什么区别?
您能否通过一个简单的示例来帮助我解决这个概念....
What is the difference between Three tier Architecture and User Interface Process Components?
Could u please help me about this concept with simple example....
答
3-Tier体系结构通常包含UI或表示层,业务访问层(BAL)或业务逻辑层和数据访问层(DAL).
表示层(UI)
表示层包含诸如.aspx或Windows窗体之类的页面,在这些页面中向用户呈现数据或从用户那里获取输入.
业务访问层(BAL)或业务逻辑层
如果需要,BAL包含与数据相关的业务逻辑,验证或计算.在我的演示中,我将其称为业务访问层".
数据访问层(DAL)
DAL包含有助于业务层连接数据并执行所需操作的方法,这些方法可能是返回数据或处理数据(插入,更新,删除等).对于此演示应用程序,我举了一个非常简单的示例.我假设我必须处理人员记录(名字,姓氏,年龄),并且在本文中我只会引用这些数据.
用户界面流程组件
复杂的用户界面通常需要许多高度复杂的形式.为了提高可重用性,可维护性和可扩展性,您可以创建一个单独的用户界面流程(UIP)组件,以封装表单之间的依赖关系以及与它们之间的导航相关的逻辑.您可以将同一概念应用于单个表单的组件之间的依赖关系,验证和导航.这些UIP组件通常是基于设计模式的自定义组件.
UI和UIP组件之间的交互通常遵循Model-View-Controller或Presentation-Abstraction-Controller.
3-Tier architecture generally contains UI or Presentation Layer, Business Access Layer (BAL) or Business Logic Layer and Data Access Layer (DAL).
Presentation Layer (UI)
Presentation layer cotains pages like .aspx or windows form where data is presented to the user or input is taken from the user.
Business Access Layer (BAL) or Business Logic Layer
BAL contains business logic, validations or calculations related with the data, if needed. I will call it Business Access Layer in my demo.
Data Access Layer (DAL)
DAL contains methods that helps business layer to connect the data and perform required action, might be returning data or manipulating data (insert, update, delete etc). For this demo application, I have taken a very simple example. I am assuming that I have to play with record of persons (FirstName, LastName, Age) and I will refer only these data through out this article.
User Interface Process Components
Complex user interfaces often require many highly complex forms. To increase reusability, maintainability, and extensibility, you can create a separate user interface process (UIP) component to encapsulate dependencies between forms and the logic associated with navigating between them. You can apply the same concept to the dependencies, validation, and navigation between components of a single form. These UIP components are typically custom components that are based on design patterns.
The interaction between UI and UIP components often follows the Model-View-Controller or Presentation-Abstraction-Controller.
^ ]应该会有所帮助您拥有第一个,现在您知道如何查找第二个.
This[^] should help you with the first, and now you know how to look up the second.