C# Class UCSF.GlobalHealth.Services.ProjectLoader

Show file Open project: CTSIatUCSF/gadgets Class Usage Examples

Private Properties

Property Type Description
AddAppToPerson void
DeleteAppFromAllPersons void
GetJson string

Public Methods

Method Description
Load ( ) : IList
ProjectLoader ( string url, string applicationName, string url_timeout, string externalid ) : System
Save ( IList projects ) : void

Protected Methods

Method Description
DeleteProjects ( SqlConnection conn, int applicationId ) : void
GetApplicationId ( SqlConnection conn, string appName ) : int
GetNodeId ( String employeeId ) : long?
PrepareProjects ( IList projects ) : IList>.IDictionary
PrepareStetements ( SqlConnection conn ) : void
Save ( SqlConnection conn, int applicationId, string employeeId, IList projects ) : void
getProjectsPrint ( IList projects ) : string

Private Methods

Method Description
AddAppToPerson ( SqlConnection conn, int applicationId, long nodeId ) : void
DeleteAppFromAllPersons ( SqlConnection conn, int applicationId ) : void
GetJson ( Project project ) : string

Method Details

DeleteProjects() protected method

protected DeleteProjects ( SqlConnection conn, int applicationId ) : void
conn System.Data.SqlClient.SqlConnection
applicationId int
return void

GetApplicationId() protected method

protected GetApplicationId ( SqlConnection conn, string appName ) : int
conn System.Data.SqlClient.SqlConnection
appName string
return int

GetNodeId() protected method

protected GetNodeId ( String employeeId ) : long?
employeeId String
return long?

Load() public method

public Load ( ) : IList
return IList

PrepareProjects() protected method

protected PrepareProjects ( IList projects ) : IList>.IDictionary
projects IList
return IList>.IDictionary

PrepareStetements() protected method

protected PrepareStetements ( SqlConnection conn ) : void
conn System.Data.SqlClient.SqlConnection
return void

ProjectLoader() public method

public ProjectLoader ( string url, string applicationName, string url_timeout, string externalid ) : System
url string
applicationName string
url_timeout string
externalid string
return System

Save() public method

public Save ( IList projects ) : void
projects IList
return void

Save() protected method

protected Save ( SqlConnection conn, int applicationId, string employeeId, IList projects ) : void
conn System.Data.SqlClient.SqlConnection
applicationId int
employeeId string
projects IList
return void

getProjectsPrint() protected method

protected getProjectsPrint ( IList projects ) : string
projects IList
return string