This article studies how to get the user's task after logging in to a user.
In the web interface, users will go to the Welocme.aspx page by verification, first create a CartTask object in this page:
Dim Task as new carttask (page.user.Identity.name)
The Static Method StoreControllerBase.getusrtaskId is called in this object's New (UserLogon AS String) method to get the title of the task. This task is marked is a GUID class. Returns in the following code in the getUsertaskid method:
Dim Cartbo As New CarttaskbusinessObject ()
Taskid = Cartbo.gettask (username)
Three classes are defined in the CartTaskBusinessObject.gettask method:
DIM MCUSTOMERDS AS New Customerds
DIM MCUSTOMERDALC AS New Customerdalc
Dim McartTaskdalc As New CartTaskdalc
Where CustomerDS is a class that saves user information, it is inherited from the DataSet class. Customerdalc is inherited from Basedalc (this class has not studied ??). These two classes are operated for user information. CartTaskDalc is inherited from Basedalc, which is operated for the task of the current user. The CarttaskbusinessObject.gettask method finally returned to the task Guid of the user (this GUID is saved in the database CartTasks table).
Then determine if the current user has a Task GUID in Welcome.aspx's Page_Load, if any, "Continue the EXISTING Buies" is displayed in StartButton, otherwise "Start to A New Buy Process" is displayed.
Analyze it later
Customerds
Class and
Basedalc
class,
Customerds
Why is it from
Dataset
Class inheritance,
Basedalc
What is the use of it.