ControllerStandardDataItemClass Class |
Namespace: SOWIWin.Helper
The ControllerStandardDataItemClass type exposes the following members.
| Name | Description | |
|---|---|---|
| ControllerStandardDataItemClass(Session) |
Set standard values CanIndex, CanDetails, CanCreate, CanEdit and CanDelete on true.
| |
| ControllerStandardDataItemClass(Boolean, Session) |
Set standard values CanIndex, CanDetails, CanCreate, CanEdit and CanDelete on true.
| |
| ControllerStandardDataItemClass(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Session) |
Set own values
|
| Name | Description | |
|---|---|---|
| ActionName |
From controller context
| |
| AppModule |
Requirement for data handling
| |
| CanCreate |
Requirement: View Create
| |
| CanDelete |
Requirement: View Delete
| |
| CanDetails |
Requirement: View Details
| |
| CanEdit |
Requirement: View Edit
| |
| CanImport |
View Index: button Import
| |
| CanIndex |
Requirement: View Index
| |
| ControllerName |
From controller context
| |
| DictionaryUI |
Get this session DictionaryUI
| |
| GetNewDataItem |
Requirement for data handling
| |
| ModelState |
SOWI App ModelState object
| |
| Session |
Win session object
|
| Name | Description | |
|---|---|---|
| Create |
Standard Create (Get). Check CanCreate and Permission by Create.
Called CreateOnActionResultGet when entitled
| |
| Create(String, DataItemClass) |
Standard Create (Post). Check CanCreate. Next step by push Button (switch submit): save and cancel.
If no case is true (switch default) then called CreateOnActionResultPostCase with parameter submit.
| |
| CreateGetToolbar |
Standard toolbar for Create with button:
save (default), cancel
| |
| CreateOnActionResultGet |
Called CreateSetViewBag and gives a View object with a new data item (GetNewDataItem)
| |
| CreateOnActionResultPostCase |
Not implemented is for spezification Post.
| |
| CreateOnActionResultPostSave |
Standard save data item from Create. Check Permission by Create.
Validating data if true then insert data item if false then set ModelState and give View back.
| |
| CreateSetViewBag |
Set ViewBag values: if the following values null then
set DataGridView (AppModule.GetDataGridView), Toolbar (CreateGetToolbar),
and ContentName (_CreateContentPartial).
More values set by methods FormSetViewBag and SetViewBagList.
| |
| Delete(Int32) |
Standard Delete (Get). Check CanDelete and Permission by Delete and DeleteOwner.
Called DeleteOnActionResultGet when entitled
| |
| Delete(String, Int32) |
Standard Delete (Post). Check CanDelete. Next step by push Button (switch submit): delete and cancel.
If no case is true (switch default) then called DeleteOnActionResultPostCase with parameter submit.
| |
| DeleteGetToolbar |
Standard toolbar for Edit with button:
delete (default), cancel
| |
| DeleteOnActionResultGet |
Called DeleteSetViewBag and gives a View object with data item by ID
| |
| DeleteOnActionResultPostCase |
Not implemented is for spezification Post.
| |
| DeleteOnActionResultPostDelete |
Standard delete data item. Check Permission by Delete and DeleteOwner.
Validating data if true then delete data item if false then set ModelState and give View back.
| |
| DeleteSetViewBag |
Set ViewBag values: if the following values null then
set DataGridView (AppModule.DataGridView), Toolbar (DeleteGetToolbar),
HasListHeader (false) and ContentName (_DeleteContentPartial).
More values set by method FormSetViewBag.
| |
| Details(Int32) |
Standard Details (Get). Check CanDetails and Permission by Read and ReadOwner.
Called DetailsOnActionResultGet when entitled
| |
| Details(String, Int32) |
Standard Details (Post). Check CanDetails. Next step by push Button (switch submit): back, edit and delete.
If no case is true (switch default) then called DetailsOnActionResultPostCase with parameter submit.
| |
| DetailsGetToolbar |
Standard toolbar for Details with button:
back (default), edit (disabled at not CanEdit), delete (disabled at not CanDelete)
| |
| DetailsOnActionResultGet |
Called DetailsSetViewBag and gives a View object with data item by ID
| |
| DetailsOnActionResultPostCase |
Not implemented is for spezification Post.
| |
| DetailsSetViewBag |
Set ViewBag values: if the following values null then
set DataGridView from AppModule, Toolbar (DetailsGetToolbar),
and ContentName (_DetailsContentPartial).
More values set by method FormSetViewBag.
| |
| Edit(Int32) |
Standard Edit (Get). Check CanEdit and Permission by Update and UpdateOwner.
Called EditOnActionResultGet when entitled
| |
| Edit(String, DataItemClass) |
Standard Edit (Post). Check CanEdit. Next step by push Button (switch submit): save and cancel.
If no case is true (switch default) then called EditOnActionResultPostCase with parameter submit.
| |
| EditGetToolbar |
Standard toolbar for Edit with button:
save (default), cancel
| |
| EditOnActionResultGet |
Called EditSetViewBag and gives a View object with data item by ID
| |
| EditOnActionResultPostCase |
Not implemented is for spezification Post.
| |
| EditOnActionResultPostSave |
Standard save data item from Edit. Check Permission by Update and UpdateOwner.
Validating data if true then update data item if false then set ModelState and give View back.
| |
| EditSetViewBag |
Set ViewBag values: if the following values null then
set DataGridView (AppModule.GetDataGridView), Toolbar (EditGetToolbar),
HasListHeader (false) and ContentName (_EditContentPartial).
More values set by methods FormSetViewBag and SetViewBagList.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FormSetViewBag |
Set Form ViewBag values: ControllerName, ActionName
and if null then DictionaryUI, Title (ControllerName and ActionName),
ReturnUrl (this URL)
and if not null Message value then add Session Message
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Index |
Standard Index (Get). Check CanIndex and Permission by Read and ReadOwner.
Called IndexOnActionResultGet when entitled
| |
| Index(String, ListViewConfig) |
Standard Index (Post). Check CanIndex. Next step by push Button (switch submit): create, refresh and EditDataGridView.
If no case is true (switch default) then called IndexOnActionResultPostCase with parameter submit.
| |
| IndexGetToolbar |
Standard toolbar for Index with button:
create (default and disabled not CanCreate), refresh,
ListHeader (toogle for LiestHeader) and EditDataGridView
| |
| IndexGetToolbarItem |
Standard toolbar for data item (Edit, Details, Delete)
| |
| IndexOnActionResultGet |
Called IndexSetViewBag and gives a View object with data list configuration by ListViewConfig
| |
| IndexOnActionResultPostCase |
Not implemented is for spezification Post.
| |
| IndexOnActionResultPostCreate |
Standard Index Post Create
| |
| IndexOnActionResultPostImport |
Import file
| |
| IndexOnActionResultPostRefresh |
Standard Index (Post Refresh). Check Permission by Read and ReadOwner.
Called IndexSetViewBag and gives a View object with data list configuration by ListViewConfig
| |
| IndexSetViewBag |
Set ViewBag values: Session Return Window (this Window)
and if the following values null then
set DataGridView (AppModule.DataGridView), Toolbar (IndexGetToolbar),
HasListHeader (true) and ContentName.
More values set by method FormSetViewBag.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PermissionCheck |
Check Permission with array of CRUD (enumeration)
| |
| PermissionDenied |
Go to LogIn with Message (No authorization or not logged in.) and set Session ReturnUrl
| |
| RedirectToAction | ||
| RedirectToLocal |
Redirection to local url
| |
| SetViewBagList |
Set view bag list is empty
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| View |