C# Класс BoxDetails.Presenter.BoxDetailsPresenter

Presenter for the LMS Archive, also contains much code that would ordianrily be in the Model
Показать файл Открыть проект

Открытые методы

Метод Описание
AddRecord ( string strClientName ) : bool

AddRecord Uses DAL helper class to execute u_AddRecord_i using the current record in the view Takes strProjectName as a parameter and doesn't need to, this should be removed. Calls the ConvertKCPToString function to get the string of locations and numbers from the Key Value Pair.

BoxDetailsPresenter ( IRecordView view ) : System

Initializes a new instance of the BoxDetailsPresenter class.

BoxDetailsPresenter ( ISearchView view ) : System

Initializes a new instance of the BoxDetailsPresenter class.

DeleteFile1 ( ) : void

Deletes the file1.

DeleteFile2 ( ) : void

Deletes the file2.

DeleteRecord ( ) : bool

GetEntry Uses DAL helper class to execute u_DeleteRecord_d. Deletes the currently viewed record.

GetEntry ( string RecordID ) : bool

GetEntry Uses DAL helper class to execute u_GetRecordByID_s with the RecordID in order to populate the view from the returned Dataset. Checks each Row has a value before assigning it. Calls the ConvertStringToKVP function to get the list of locations and box numbers.

GetSearchResults ( ) : bool

GetSearchResults Uses the BaseDal helper class to retrieve search results based on the paramater list sent to u_SearchRecords_s . The search logic is contained in the SQL of that stored procedure. Updates the view with the results dataset.

UpdateRecord ( ) : bool

UpdateRecord Uses DAL helper class to execute u_UpdateRecord_u using the current record in the view Checks each view property has a value before assigning it. Calls the ConvertKCPToString function to get the string of locations and numbers from the Key Value Pair.

Приватные методы

Метод Описание
ConvertKVPToString ( int>.List keyValueList ) : string

Converts the KVP to string.

ConvertStringToKVP ( string strEntryString ) : int>>.List

Converts the string to KVP.

UploadFile ( System.Web.HttpPostedFile fleFile ) : string

Uploads the file.

Описание методов

AddRecord() публичный Метод

AddRecord Uses DAL helper class to execute u_AddRecord_i using the current record in the view Takes strProjectName as a parameter and doesn't need to, this should be removed. Calls the ConvertKCPToString function to get the string of locations and numbers from the Key Value Pair.
public AddRecord ( string strClientName ) : bool
strClientName string string
Результат bool

BoxDetailsPresenter() публичный Метод

Initializes a new instance of the BoxDetailsPresenter class.
public BoxDetailsPresenter ( IRecordView view ) : System
view IRecordView The view.
Результат System

BoxDetailsPresenter() публичный Метод

Initializes a new instance of the BoxDetailsPresenter class.
public BoxDetailsPresenter ( ISearchView view ) : System
view ISearchView The view.
Результат System

DeleteFile1() публичный Метод

Deletes the file1.
public DeleteFile1 ( ) : void
Результат void

DeleteFile2() публичный Метод

Deletes the file2.
public DeleteFile2 ( ) : void
Результат void

DeleteRecord() публичный Метод

GetEntry Uses DAL helper class to execute u_DeleteRecord_d. Deletes the currently viewed record.
public DeleteRecord ( ) : bool
Результат bool

GetEntry() публичный Метод

GetEntry Uses DAL helper class to execute u_GetRecordByID_s with the RecordID in order to populate the view from the returned Dataset. Checks each Row has a value before assigning it. Calls the ConvertStringToKVP function to get the list of locations and box numbers.
public GetEntry ( string RecordID ) : bool
RecordID string string
Результат bool

GetSearchResults() публичный Метод

GetSearchResults Uses the BaseDal helper class to retrieve search results based on the paramater list sent to u_SearchRecords_s . The search logic is contained in the SQL of that stored procedure. Updates the view with the results dataset.
public GetSearchResults ( ) : bool
Результат bool

UpdateRecord() публичный Метод

UpdateRecord Uses DAL helper class to execute u_UpdateRecord_u using the current record in the view Checks each view property has a value before assigning it. Calls the ConvertKCPToString function to get the string of locations and numbers from the Key Value Pair.
public UpdateRecord ( ) : bool
Результат bool