C# Class AIMS_BD_IATI.DAL.AimsDAL

Mostrar archivo Open project: BD-IATI/edi Class Usage Examples

Public Methods

Method 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

Method 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 method

public CreateNewExecutingAgency ( participatingorg org, string userId ) : ExecutingAgencyLookupItem
org participatingorg
userId string
return AIMS_BD_IATI.Library.ExecutingAgencyLookupItem

GetAIMSProjectInIATIFormat() public method

public GetAIMSProjectInIATIFormat ( int projectId ) : iatiactivity
projectId int
return iatiactivity

GetAIMSProjectsInIATIFormat() public method

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
return List

GetAllFundSources() public method

Get Managing DPs
public GetAllFundSources ( ) : List
return List

GetExchangesRateToUSD() public method

public GetExchangesRateToUSD ( string fromCurrencyISOcode, System.DateTime date = null ) : List
fromCurrencyISOcode string
date System.DateTime
return List

GetExecutingAgencies() public method

public GetExecutingAgencies ( ) : List
return List

GetExecutingAgencyTypes() public method

public GetExecutingAgencyTypes ( ) : List
return List

GetFundSourceIDnIATICode() public method

public GetFundSourceIDnIATICode ( string IatiCode ) : string
IatiCode string
return string

GetFundSources() public method

public GetFundSources ( string userId ) : List
userId string
return List

GetFundSources() public method

public GetFundSources ( ) : List
return List

GetMappedAIMSProjectsInIATIFormat() public method

public GetMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
dp string
mappedProjectIds List
return List

GetNearestGeoLocation() public static method

public static GetNearestGeoLocation ( List geoLocations, location location ) : GeoLocation
geoLocations List
location location
return GeoLocation

GetNotMappedAIMSProjectsInIATIFormat() public method

public GetNotMappedAIMSProjectsInIATIFormat ( string dp, List mappedProjectIds ) : List
dp string
mappedProjectIds List
return List

GetProjects() public method

public GetProjects ( string dp ) : List
dp string
return List

GetTrustFundDetails() public method

public GetTrustFundDetails ( int trustFundId ) : TrustFundModel
trustFundId int
return AIMS_BD_IATI.Library.Parser.ParserIATIv2.TrustFundModel

GetTrustFunds() public method

public GetTrustFunds ( string dp ) : List
dp string
return List

UpdateCofinanceProjects() public method

public UpdateCofinanceProjects ( List projects, string Iuser ) : int?
projects List
Iuser string
return int?

UpdateProjects() public method

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

UpdateTrustFunds() public method

public UpdateTrustFunds ( List TrustFundModels, string Iuser ) : int?
TrustFundModels List
Iuser string
return int?