C# Class AIMS_BD_IATI.DAL.AimsDAL

Afficher le fichier Open project: BD-IATI/edi Class Usage Examples

Méthodes publiques

Méthode Description
CreateNewExecutingAgency ( participatingorg org, string userId ) : ExecutingAgencyLookupItem
GetAIMSProjectInIATIFormat ( int projectId ) : iatiactivity
GetAIMSProjectsInIATIFormat ( string dp ) : List

Convert AIMS to IATI v2.x ref:http://iatistandard.org/202/activity-standard/iati-activities/iati-activity

GetAllFundSources ( ) : List

Get Managing DPs

GetExchangesRateToUSD ( string fromCurrencyISOcode, System.DateTime date = null ) : List
GetExecutingAgencies ( ) : List
GetExecutingAgencyTypes ( ) : List
GetFundSourceIDnIATICode ( string IatiCode ) : string
GetFundSources ( string userId ) : List
GetFundSources ( ) : List
GetMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
GetNearestGeoLocation ( List geoLocations, location location ) : GeoLocation
GetNotMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
GetProjects ( string dp ) : List
GetTrustFundDetails ( int trustFundId ) : TrustFundModel
GetTrustFunds ( string dp ) : List
UpdateCofinanceProjects ( List projects, string Iuser ) : int?
UpdateProjects ( List projects, string Iuser, bool notCleanOldData = true ) : int?
UpdateTrustFunds ( List TrustFundModels, string Iuser ) : int?

Private Methods

Méthode Description
CheckTransactionMismatch ( tblProjectInfo p, iatiactivity MatchedProject, bool checkMismatch = true ) : bool
ConvertAimsToIati ( tblProjectInfo project ) : iatiactivity
DeleteTransactions ( tblProjectInfo p, iatiactivity MatchedProject ) : void
GetNAMinistry ( string userId ) : tblMinistry
GetOtherFundSourceCategory ( string userId ) : tblFundSourceCategory
UpdateTransactions ( string Iuser, IQueryable aimsCurrencies, IQueryable aimsAidCategories, string defaultfinancetype, tblProjectInfo p, iatiactivity MatchedProject ) : void
getIdentifer ( tblProjectInfo project ) : string

Method Details

CreateNewExecutingAgency() public méthode

public CreateNewExecutingAgency ( participatingorg org, string userId ) : ExecutingAgencyLookupItem
org participatingorg
userId string
Résultat AIMS_BD_IATI.Library.ExecutingAgencyLookupItem

GetAIMSProjectInIATIFormat() public méthode

public GetAIMSProjectInIATIFormat ( int projectId ) : iatiactivity
projectId int
Résultat iatiactivity

GetAIMSProjectsInIATIFormat() public méthode

Convert AIMS to IATI v2.x ref:http://iatistandard.org/202/activity-standard/iati-activities/iati-activity
public GetAIMSProjectsInIATIFormat ( string dp ) : List
dp string Managing/Lead/Implementing Development Partner's IATI Organization Code
Résultat List

GetAllFundSources() public méthode

Get Managing DPs
public GetAllFundSources ( ) : List
Résultat List

GetExchangesRateToUSD() public méthode

public GetExchangesRateToUSD ( string fromCurrencyISOcode, System.DateTime date = null ) : List
fromCurrencyISOcode string
date System.DateTime
Résultat List

GetExecutingAgencies() public méthode

public GetExecutingAgencies ( ) : List
Résultat List

GetExecutingAgencyTypes() public méthode

public GetExecutingAgencyTypes ( ) : List
Résultat List

GetFundSourceIDnIATICode() public méthode

public GetFundSourceIDnIATICode ( string IatiCode ) : string
IatiCode string
Résultat string

GetFundSources() public méthode

public GetFundSources ( string userId ) : List
userId string
Résultat List

GetFundSources() public méthode

public GetFundSources ( ) : List
Résultat List

GetMappedAIMSProjectsInIATIFormat() public méthode

public GetMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
dp string
mappedProjectIds List
Résultat List

GetNearestGeoLocation() public static méthode

public static GetNearestGeoLocation ( List geoLocations, location location ) : GeoLocation
geoLocations List
location location
Résultat GeoLocation

GetNotMappedAIMSProjectsInIATIFormat() public méthode

public GetNotMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
dp string
mappedProjectIds List
Résultat List

GetProjects() public méthode

public GetProjects ( string dp ) : List
dp string
Résultat List

GetTrustFundDetails() public méthode

public GetTrustFundDetails ( int trustFundId ) : TrustFundModel
trustFundId int
Résultat AIMS_BD_IATI.Library.Parser.ParserIATIv2.TrustFundModel

GetTrustFunds() public méthode

public GetTrustFunds ( string dp ) : List
dp string
Résultat List

UpdateCofinanceProjects() public méthode

public UpdateCofinanceProjects ( List projects, string Iuser ) : int?
projects List
Iuser string
Résultat int?

UpdateProjects() public méthode

public UpdateProjects ( List projects, string Iuser, bool notCleanOldData = true ) : int?
projects List
Iuser string
notCleanOldData bool
Résultat int?

UpdateTrustFunds() public méthode

public UpdateTrustFunds ( List TrustFundModels, string Iuser ) : int?
TrustFundModels List
Iuser string
Résultat int?