`
lovnet
  • 浏览: 6878004 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

Microsoft User Interface Process Application Block 研究(3)

阅读更多

这篇文章研究的是如何在一个用户登录后获得用户的任务。

Web界面中,用户如果通过验证就会转到welocme.aspx页面中,在这个页面中首先创建一个CartTask对象:

Dim task As New CartTask(Page.User.Identity.Name)

这个对象的Newuserlogon As String)方法中调用了静态方法StoreControllerBase.GetUserTaskId来获得任务的标示,这个任务标示是一个Guid类。在GetUserTaskID方法的如下代码中返回:

Dim cartBO As New CartTaskBusinessObject()

taskId = cartBO.GetTask(userName)

CartTaskBusinessObject.GetTask方法中定义了三个类:

Dim McustomerDS As New CustomerDS

Dim McustomerDALC As New CustomerDALC

Dim McartTaskDALC As New CartTaskDALC

其中CustomerDS是保存用户信息的类,它是从DataSet类继承过来的。CustomerDALC是从BaseDALC(这个类还没有研究??)继承过来的。这两个类是针对用户信息操作的。CartTaskDALC是从BaseDALC继承过来的,是针对当前用户的任务进行操作的。CartTaskBusinessObject.GetTask方法最终返回的是用户所对应的任务Guid(这个Guid是保存在数据库CartTasks表中的)。

然后在welcome.aspxPage_Load中判断当前用户是否有Task Guid,如果有的话就在startButton中显示“Continue the existing buy process”,否则就显示“Start to a new buy process”。

以后需要分析一下CustomerDS类以及BaseDALC类,CustomerDS为什么从DataSet类继承,BaseDALC类是做什么用的。
分享到:
评论

相关推荐

    User Interface Process (UIP) Application Block 2.0 版

    前段时间找到的 User Interface Process (UIP) Application Block 2.0 版

    uIP:一种用在8位嵌入式系统中的轻量级的TCP/IP协议栈

    UIP(User Interface Process Application Block)是微软社区开发的众多Application Block中的其中之一,它是开源的。UIP是一个MVC框架,区别与其它的一些MVC框架是它不仅支持webForm(网页),同样也支持 winForm,但...

    嵌入式系统/ARM技术中的LPC2364在串口转网口专用协议卡的研究

    串口转网口模块是一个可以让串口设备立即具备联网能力的设备联网... UIP(User Interface Process Application Block)是微软社区开发的众多ApplicationBlock中的其中之一,它是开源的。UIP是一个MVC框架,区别与其它

    Software.Application.Development.A.Visual.Cplusplus.MFC.and.STL

    Chapter 2 - Initial Graphical User Interface Chapter 3 - Constructing Blocks Chapter 4 - Constructing Block Ports Chapter 5 - Constructing Connections Chapter 6 - Moving Blocks and Connections Chapter...

    c#经典题目

    如Data Access Application Block用于简化数据访问,User Interface Process Application Block则用于构建MVC界面层。这些是微软提供的可复用组件,旨在提高开发效率和代码质量。 11. 设计模式及其应用场景 常见的...

    Floor Plan Manager - ABAP Webdynpro

    Adjusting the header using the Interface Description Repository API (IDRAPI) involves modifying the header elements based on user interactions or application state changes. #### Conclusion Floor Plan...

    VxWorks Netrom实现

    Figure 1 illustrates this process in a logical block diagram. The following sections in this document discuss the Vether integration process, including the necessary steps to configure the ...

    ASP.NET编程珠几

    除了个人开发者之外,Microsoft的Patterns and Practices Group也贡献了一份名为Wizard Navigator的解决方案,它是User Interface Process (UIP) Application Block的一部分。这些早期的尝试和努力为后来ASP.NET 2.0...

    Introduction to 3G Mobile Communications

    3 WCDMA Air Interface: Physical Layer 49 3.1 General 49 3.1.1 Forward Error Correction Encoding/Decoding 52 3.1.2 Radio Measurements and Indications to Higher Layers 53 3.1.3 Macrodiversity ...

    ASP.NET2.0

    随着技术的发展和技术社区的贡献,诸如Tom Blanchard的文章“Code Snip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x”以及Microsoft的User Interface Process (UIP) Application Block上的Wizard ...

    大学毕业论文-—基于simulink的通信系统仿真.doc

    The graphical user interface (GUI) of MATLAB makes it user-friendly and accessible, even for those with limited programming experience. SIMULINK, an extension of MATLAB, is a block-based simulation ...

    C & C++ Win32 API Programming

    2. **Documentation**: Microsoft provides extensive documentation on the Win32 API, which can be a valuable resource throughout the learning process. 3. **Tools and Compilers**: Familiarize yourself ...

    计算机网络第六版答案

    25. Routers process network, link and physical layers (layers 1 through 3). (This is a little bit of a white lie, as modern routers sometimes act as firewalls or caching components, and process ...

    BURNINTEST--硬件检测工具

    will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...

    EurekaLog_7.5.0.0_Enterprise

    4)....Added "--el_injectjcl", "--el_createjcl", and "--el_createdbg" command-line options for ecc32/emake to inject JEDI/JCL debug info, create .jdbg file, and create .dbg file (Microsoft debug format...

    IOS5 Programming Cookbook

    - **Interface Builder Overview**: Interface Builder is a graphical tool within Xcode used for designing user interfaces. It provides a visual representation of views and controls that make up the app'...

    Information and Computer Technology, Modeling and Control

    Chapter 45 Construction of Multimedia Databases and User Interfaces For a Computer System To Support Ecological Research In Georgian Aquatory of The Black Sea Chapter 46 Robust Decentralized Inventory...

    JSP Simple Examples

    In try block we write those code which can throw exception while code execution and when the exception is thrown it is caught inside the catch block. Multiple try catch We can have more than one try/...

    Java邮件开发Fundamentals of the JavaMail API

    programs, similar to Eudora, pine, and Microsoft Outlook. The API's main purpose is not for transporting, delivering, and forwarding messages; this is the purview of applications such as sendmail ...

Global site tag (gtag.js) - Google Analytics