Click or drag to resize

IAppControllerDataItemClass Interface

Minimum of properties and methods for App use in Web or Win Controller

Namespace:  SOWIApp.Foundation
Assembly:  SOWIApp.Foundation (in SOWIApp.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public interface IAppController<DataItemClass>

Type Parameters

DataItemClass
Data Item class e.g. SOWIData.App.Ticket

The IAppControllerDataItemClass type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleDataGridView
Form SOWI App Foundation App Standard see DataGridView
Top
Methods
  NameDescription
Public methodDelete
Form SOWI Data Database Connector see Delete(Int32)
Public methodGetByID
Form SOWI Data Database Connector see GetByID(Int32)
Public methodGetView(ListViewConfig, DictionaryString, String)
Public methodGetView(ListViewConfig, String, DictionaryString, String)
Public methodImport(String)
Data import - not implemented
Public methodCode exampleImport(Stream, String, String)
Data import (partly not implemented). Applicable on web controller by method with parameter object System.Web.HttpPostedFileBase
Public methodInsert
Form SOWI Data Database Connector see Insert(DataItemClass)
Public methodCode examplePermissionCheck
Public methodUpdate
Form SOWI Data Database Connector see Update(DataItemClass)
Public methodUpload(String)
Data content upload - not implemented
Public methodUpload(DataItemClass, FileContent)
Data content upload (partly not implemented)
Public methodValidate
Form SOWI Data Database Connector see Validate(DataItemClass, Actions)
Top
Examples
Write interface name at the class then can all properties and methods implemented by support This code example has all properties and methods without a logic

Code example for properties and methods see his members

/// <summary>
/// A simple SOWI App controller based on <see cref="SOWIApp.Foundation.IAppController{DataItemClass}"/>
/// </summary>
public class SOWIAppController : SOWIApp.Foundation.IAppController<SOWIDataModel>
{
    /// <summary>
    /// Constructor without parameter
    /// </summary>
    public SOWIAppController() { }

    public List<SOWIData.Management.DataGrid> DataGridView
    {
        get
        {
            throw new NotImplementedException();
        }
    }

    public void Delete(int pID)
    {
        throw new NotImplementedException();
    }

    public SOWIDataModel GetByID(int pID)
    {
        throw new NotImplementedException();
    }

    public List<SOWIDataModel> GetView(ref SOWIData.Management.ListViewConfig pViewConfig, Dictionary<string, string> pDictionaryUI = null)
    {
        throw new NotImplementedException();
    }

    public List<SOWIDataModel> GetView(out SOWIData.Management.ListViewConfig pViewConfig, string pViewName, Dictionary<string, string> pDictionaryUI = null)
    {
        throw new NotImplementedException();
    }

    public void Import(string pFile)
    {
        throw new NotImplementedException();
    }

    public void Import(Stream pStream, string pFileName = "", string pContentType = "")
    {
        throw new NotImplementedException();
    }

    public SOWIDataModel Insert(SOWIDataModel pItem)
    {
        throw new NotImplementedException();
    }

    public bool PermissionCheck(SOWIData.Management.CRUD[] pClaims)
    {
        throw new NotImplementedException();
    }

    public SOWIDataModel Update(SOWIDataModel pItem)
    {
        throw new NotImplementedException();
    }

    public void Upload(string pFile)
    {
        throw new NotImplementedException();
    }

    public void Upload(ref SOWIDataModel pItem, SOWIData.Helper.Models.FileContent pFileContent)
    {
        throw new NotImplementedException();
    }

    public SOWIData.Helper.ModelState Validate(SOWIDataModel pItem, SOWIData.Actions pAction)
    {
        throw new NotImplementedException();
    }
}
See Also