C# Class StaffBrokerFunctions, AgapeConnect1

Summary description for StaffBrokerFunctions
Datei anzeigen Open project: AgapeEurope/AgapeConnect1 Class Usage Examples

Public Methods

Method Description
AddProfileValue ( int PortalId, int staffId, string propertyName, string propertyValue, int Type ) : void
ChangeUsername ( string OldUsername, string NewUsername ) : void
CreateStaffMember ( int PortalId, DotNetNuke User1in, DotNetNuke User2in, short staffTypeIn ) : AP_StaffBroker_Staff
CreateStaffMember ( int PortalId, DotNetNuke User1in, short staffTypeIn = 1 ) : AP_StaffBroker_Staff
CreateStaffMember ( int PortalId, DotNetNuke User1in, string SpouseName, DateTime SpouseDOB, short staffTypeIn = 1 ) : AP_StaffBroker_Staff
CreateUniqueFileName ( IFolderInfo theFolder, string ext ) : string
CreateUser ( int PortalId, String GCXUsername, String FirstName, String LastName ) : DotNetNuke.Entities.Users.UserInfo
CurrencyConvert ( decimal amount, string fromCurrency, string toCurrency ) : decimal
GetDepartments ( int UserId ) : List
GetDeptGiveToURL ( int PortalId, int costCenter ) : String
GetFormattedCurrency ( int PortalId, string Value ) : string
GetLeaders ( int UserId, Boolean includeDelegates = true ) : List
GetLeadersDetailed ( int UserId, int PortalId ) : List
GetReportsTo ( int UserId ) : List
GetSetting ( string SettingName, int portalId ) : string
GetSpouseId ( int UserId ) : int
GetStaff ( ) : IQueryable
GetStaffExcl ( int PortalId ) : IQueryable
GetStaffIncl ( int PortalId ) : IQueryable
GetStaffJointPhoto ( int staffID ) : string
GetStaffMember ( int UserId ) : AP_StaffBroker_Staff
GetStaffProfileProperty ( AP_StaffBroker_Staff &Staffin, string propertyName ) : string
GetStaffProfileProperty ( int staffId, string propertyName ) : string
GetStaffbyStaffId ( int StaffId ) : AP_StaffBroker_Staff
GetTeam ( int LeaderId ) : List
GetTemplate ( string templateName, int PortalId ) : string
IsDept ( int PortalId, string costCenter ) : Boolean
SetSetting ( string SettingName, string value, int portalId ) : void
SetUserProfileProperty ( int PortalId, int UserId, String PropertyName, String PropertyValue, int DataType = 349 ) : void
StaffBrokerFunctions ( ) : System
ValidateAccountCode ( string AccountCode, int PortalId ) : String
ValidateCostCenter ( string CostCenter, int PortalId ) : String
VerifyAccountCode ( int PortalId, string AccountCode ) : Boolean
VerifyCostCenter ( int PortalId, string costCenter ) : Boolean

Method Details

AddProfileValue() public static method

public static AddProfileValue ( int PortalId, int staffId, string propertyName, string propertyValue, int Type ) : void
PortalId int
staffId int
propertyName string
propertyValue string
Type int
return void

ChangeUsername() public static method

public static ChangeUsername ( string OldUsername, string NewUsername ) : void
OldUsername string
NewUsername string
return void

CreateStaffMember() public static method

public static CreateStaffMember ( int PortalId, DotNetNuke User1in, DotNetNuke User2in, short staffTypeIn ) : AP_StaffBroker_Staff
PortalId int
User1in DotNetNuke
User2in DotNetNuke
staffTypeIn short
return AP_StaffBroker_Staff

CreateStaffMember() public static method

public static CreateStaffMember ( int PortalId, DotNetNuke User1in, short staffTypeIn = 1 ) : AP_StaffBroker_Staff
PortalId int
User1in DotNetNuke
staffTypeIn short
return AP_StaffBroker_Staff

CreateStaffMember() public static method

public static CreateStaffMember ( int PortalId, DotNetNuke User1in, string SpouseName, DateTime SpouseDOB, short staffTypeIn = 1 ) : AP_StaffBroker_Staff
PortalId int
User1in DotNetNuke
SpouseName string
SpouseDOB DateTime
staffTypeIn short
return AP_StaffBroker_Staff

CreateUniqueFileName() public static method

public static CreateUniqueFileName ( IFolderInfo theFolder, string ext ) : string
theFolder IFolderInfo
ext string
return string

CreateUser() public static method

public static CreateUser ( int PortalId, String GCXUsername, String FirstName, String LastName ) : DotNetNuke.Entities.Users.UserInfo
PortalId int
GCXUsername String
FirstName String
LastName String
return DotNetNuke.Entities.Users.UserInfo

CurrencyConvert() public static method

public static CurrencyConvert ( decimal amount, string fromCurrency, string toCurrency ) : decimal
amount decimal
fromCurrency string
toCurrency string
return decimal

GetDepartments() public static method

public static GetDepartments ( int UserId ) : List
UserId int
return List

GetDeptGiveToURL() public static method

public static GetDeptGiveToURL ( int PortalId, int costCenter ) : String
PortalId int
costCenter int
return String

GetFormattedCurrency() public static method

public static GetFormattedCurrency ( int PortalId, string Value ) : string
PortalId int
Value string
return string

GetLeaders() public static method

public static GetLeaders ( int UserId, Boolean includeDelegates = true ) : List
UserId int
includeDelegates Boolean
return List

GetLeadersDetailed() public static method

public static GetLeadersDetailed ( int UserId, int PortalId ) : List
UserId int
PortalId int
return List

GetReportsTo() public static method

public static GetReportsTo ( int UserId ) : List
UserId int
return List

GetSetting() public static method

public static GetSetting ( string SettingName, int portalId ) : string
SettingName string
portalId int
return string

GetSpouseId() public static method

public static GetSpouseId ( int UserId ) : int
UserId int
return int

GetStaff() public static method

public static GetStaff ( ) : IQueryable
return IQueryable

GetStaffExcl() public static method

public static GetStaffExcl ( int PortalId ) : IQueryable
PortalId int
return IQueryable

GetStaffIncl() public static method

public static GetStaffIncl ( int PortalId ) : IQueryable
PortalId int
return IQueryable

GetStaffJointPhoto() public static method

public static GetStaffJointPhoto ( int staffID ) : string
staffID int
return string

GetStaffMember() public static method

public static GetStaffMember ( int UserId ) : AP_StaffBroker_Staff
UserId int
return AP_StaffBroker_Staff

GetStaffProfileProperty() public static method

public static GetStaffProfileProperty ( AP_StaffBroker_Staff &Staffin, string propertyName ) : string
Staffin AP_StaffBroker_Staff
propertyName string
return string

GetStaffProfileProperty() public static method

public static GetStaffProfileProperty ( int staffId, string propertyName ) : string
staffId int
propertyName string
return string

GetStaffbyStaffId() public static method

public static GetStaffbyStaffId ( int StaffId ) : AP_StaffBroker_Staff
StaffId int
return AP_StaffBroker_Staff

GetTeam() public static method

public static GetTeam ( int LeaderId ) : List
LeaderId int
return List

GetTemplate() public static method

public static GetTemplate ( string templateName, int PortalId ) : string
templateName string
PortalId int
return string

IsDept() public static method

public static IsDept ( int PortalId, string costCenter ) : Boolean
PortalId int
costCenter string
return Boolean

SetSetting() public static method

public static SetSetting ( string SettingName, string value, int portalId ) : void
SettingName string
value string
portalId int
return void

SetUserProfileProperty() public static method

public static SetUserProfileProperty ( int PortalId, int UserId, String PropertyName, String PropertyValue, int DataType = 349 ) : void
PortalId int
UserId int
PropertyName String
PropertyValue String
DataType int
return void

StaffBrokerFunctions() public method

public StaffBrokerFunctions ( ) : System
return System

ValidateAccountCode() public static method

public static ValidateAccountCode ( string AccountCode, int PortalId ) : String
AccountCode string
PortalId int
return String

ValidateCostCenter() public static method

public static ValidateCostCenter ( string CostCenter, int PortalId ) : String
CostCenter string
PortalId int
return String

VerifyAccountCode() public static method

public static VerifyAccountCode ( int PortalId, string AccountCode ) : Boolean
PortalId int
AccountCode string
return Boolean

VerifyCostCenter() public static method

public static VerifyCostCenter ( int PortalId, string costCenter ) : Boolean
PortalId int
costCenter string
return Boolean