C# Class CmsData.Person

ファイルを表示 Open project: bvcms/bvcms Class Usage Examples

Public Properties

Property Type Description
DiscClassStatusCompletedCodes int[]
DropCodesThatDrop int[]

Public Methods

Method Description
Add ( CmsData.CMSDataContext db, CmsData.Family fam, string firstname, string nickname, string lastname, System.DateTime dob ) : Person
Add ( CmsData.CMSDataContext db, bool SendNotices, CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, int MarriedCode, int gender, int originId, int EntryPointId, bool testing = false ) : Person
Add ( CmsData.Family fam, int position, CmsData.Tag tag, string name, string dob, bool Married, int gender, int originId, int EntryPointId ) : Person
Add ( CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, bool Married, int gender, int originId, int EntryPointId ) : Person
Add ( CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, int MarriedCode, int gender, int originId, int EntryPointId ) : Person
AddEditExtraBool ( CmsData.CMSDataContext db, int id, string field, bool value ) : void
AddEditExtraBool ( string field, bool tf ) : void
AddEditExtraCode ( string field, string value ) : void
AddEditExtraData ( CmsData.CMSDataContext db, int id, string field, string value, System.DateTime dt = null ) : void
AddEditExtraDate ( CmsData.CMSDataContext db, int id, string field, System.DateTime value ) : void
AddEditExtraDate ( string field, System.DateTime value ) : void
AddEditExtraInt ( CmsData.CMSDataContext db, int id, string field, int value ) : void
AddEditExtraInt ( string field, int value ) : void
AddEditExtraInts ( string field, int value, int value2 ) : void
AddEditExtraText ( string field, string value, System.DateTime dt = null ) : void
AddEditExtraValue ( CmsData.CMSDataContext db, int id, string field, string value ) : void
AddEditExtraValue ( string field, string code, System.DateTime date, string text, bool bit, int intn, System.DateTime dt = null ) : void
AddMedical ( string s ) : void
AddRelated ( CmsData.CMSDataContext db, int pid ) : CmsData.RelatedFamily
AddTaskAbout ( CmsData.CMSDataContext db, int AssignTo, string description ) : CmsData.Task
AddToExtraText ( string field, string value ) : void
CanViewStatementFor ( CmsData.CMSDataContext db, int id ) : bool
ComputeTitle ( ) : string
DeletePicture ( CmsData.CMSDataContext db ) : void
DeleteThumbnail ( CmsData.CMSDataContext db ) : void
ExtraValueExists ( CmsData.CMSDataContext db, int id, string field ) : bool
FetchOrCreateBaptismType ( CmsData.CMSDataContext db, string type ) : int
FetchOrCreateCampus ( CmsData.CMSDataContext db, string campus ) : CmsData.Campu
FetchOrCreateDecisionType ( CmsData.CMSDataContext db, string type ) : int
FetchOrCreateJoinType ( CmsData.CMSDataContext db, string status ) : int
FetchOrCreateMaritalStatus ( CmsData.CMSDataContext db, string type ) : int
FetchOrCreateMaritalStatusId ( CmsData.CMSDataContext db, string status ) : int
FetchOrCreateMemberStatus ( CmsData.CMSDataContext db, string type ) : int
FetchOrCreateNewMemberClassStatus ( CmsData.CMSDataContext db, string type ) : int
FixTitle ( ) : void
GetAge ( ) : int
GetBirthdate ( ) : DateTime?
GetExtra ( string field ) : string
GetExtraValue ( CmsData.CMSDataContext db, int id, string field ) : CmsData.PeopleExtra
GetExtraValue ( CmsData.CMSDataContext db, int id, string field, string value ) : CmsData.PeopleExtra
GetExtraValue ( string field ) : CmsData.PeopleExtra
GetOptOuts ( ) : List
GetRecReg ( ) : CmsData.RecReg
GetUsers ( ) : List
LogChanges ( CmsData.CMSDataContext db ) : void
LogChanges ( CmsData.CMSDataContext db, List changes ) : void
LogChanges ( CmsData.CMSDataContext db, List changes, int UserPeopleId ) : void
LogChanges ( CmsData.CMSDataContext db, int UserPeopleId ) : void
LogExtraValue ( string op, string field ) : void
LogPictureUpload ( CmsData.CMSDataContext db, int UserPeopleId ) : void
ManagedGiving ( ) : CmsData.ManagedGiving
MovePersonStuff ( CmsData.CMSDataContext db, int targetid ) : void
Now ( ) : System.DateTime
OptOutKey ( string fromEmail ) : string
PaymentInfo ( ) : PaymentInfo
PossibleDuplicates ( ) : List
PossibleDuplicates2 ( ) : List
PostUnattendedContribution ( CMSDataContext db, decimal amt, int fund, string description, bool pledge = false, int typecode = null, int tranid = null ) : Contribution
RemoveExtraValue ( CMSDataContext db, string field ) : void
SetExtra ( string field, string value ) : void
SetRecReg ( ) : RecReg
SplitFamily ( CMSDataContext db ) : void
SpouseName ( CMSDataContext db ) : string
Tag ( CMSDataContext db, int peopleId, string tagName, int ownerId, int tagTypeId ) : void
ToString ( ) : string
ToggleTag ( int peopleId, string tagName, int ownerId, int tagTypeId ) : bool
UnTag ( CMSDataContext db, int peopleId, string tagName, int ownerId, int tagTypeId ) : void
UpdateCampus ( CMSDataContext db, object value ) : void
UpdateContributionOption ( CMSDataContext db, int option ) : void
UpdateElectronicStatement ( CMSDataContext db, bool tf ) : void
UpdateEnvelopeOption ( CMSDataContext db, int option ) : void
UpdatePosition ( CMSDataContext db, int value ) : void
UpdateValue ( string field, object value ) : void
UpdateValueFromText ( List psb, string field, string value ) : void
UpdateValueFromText ( string field, string value ) : void
UploadDocument ( CMSDataContext db, Stream stream, string name, string mimetype ) : void
UploadPicture ( CMSDataContext db, Stream stream ) : void

Private Methods

Method Description
GetStreet ( CmsData.CMSDataContext db ) : string
NameSplit ( string name, string &First, string &Last ) : void
OnBaptismStatusIdChanged ( ) : void
OnDeceasedDateChanged ( ) : void
OnDecisionTypeIdChanged ( ) : void
OnDropCodeIdChanged ( ) : void
OnNewMemberClassStatusIdChanged ( ) : void
OnNickNameChanged ( ) : void
TrySubmit ( CMSDataContext db, string message ) : void
UpdateOption ( CMSDataContext db, string field, int option ) : void

Method Details

Add() public static method

public static Add ( CmsData.CMSDataContext db, CmsData.Family fam, string firstname, string nickname, string lastname, System.DateTime dob ) : Person
db CmsData.CMSDataContext
fam CmsData.Family
firstname string
nickname string
lastname string
dob System.DateTime
return Person

Add() public static method

public static Add ( CmsData.CMSDataContext db, bool SendNotices, CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, int MarriedCode, int gender, int originId, int EntryPointId, bool testing = false ) : Person
db CmsData.CMSDataContext
SendNotices bool
fam CmsData.Family
position int
tag CmsData.Tag
firstname string
nickname string
lastname string
dob string
MarriedCode int
gender int
originId int
EntryPointId int
testing bool
return Person

Add() public static method

public static Add ( CmsData.Family fam, int position, CmsData.Tag tag, string name, string dob, bool Married, int gender, int originId, int EntryPointId ) : Person
fam CmsData.Family
position int
tag CmsData.Tag
name string
dob string
Married bool
gender int
originId int
EntryPointId int
return Person

Add() public static method

public static Add ( CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, bool Married, int gender, int originId, int EntryPointId ) : Person
fam CmsData.Family
position int
tag CmsData.Tag
firstname string
nickname string
lastname string
dob string
Married bool
gender int
originId int
EntryPointId int
return Person

Add() public static method

public static Add ( CmsData.Family fam, int position, CmsData.Tag tag, string firstname, string nickname, string lastname, string dob, int MarriedCode, int gender, int originId, int EntryPointId ) : Person
fam CmsData.Family
position int
tag CmsData.Tag
firstname string
nickname string
lastname string
dob string
MarriedCode int
gender int
originId int
EntryPointId int
return Person

AddEditExtraBool() public static method

public static AddEditExtraBool ( CmsData.CMSDataContext db, int id, string field, bool value ) : void
db CmsData.CMSDataContext
id int
field string
value bool
return void

AddEditExtraBool() public method

public AddEditExtraBool ( string field, bool tf ) : void
field string
tf bool
return void

AddEditExtraCode() public method

public AddEditExtraCode ( string field, string value ) : void
field string
value string
return void

AddEditExtraData() public static method

public static AddEditExtraData ( CmsData.CMSDataContext db, int id, string field, string value, System.DateTime dt = null ) : void
db CmsData.CMSDataContext
id int
field string
value string
dt System.DateTime
return void

AddEditExtraDate() public static method

public static AddEditExtraDate ( CmsData.CMSDataContext db, int id, string field, System.DateTime value ) : void
db CmsData.CMSDataContext
id int
field string
value System.DateTime
return void

AddEditExtraDate() public method

public AddEditExtraDate ( string field, System.DateTime value ) : void
field string
value System.DateTime
return void

AddEditExtraInt() public static method

public static AddEditExtraInt ( CmsData.CMSDataContext db, int id, string field, int value ) : void
db CmsData.CMSDataContext
id int
field string
value int
return void

AddEditExtraInt() public method

public AddEditExtraInt ( string field, int value ) : void
field string
value int
return void

AddEditExtraInts() public method

public AddEditExtraInts ( string field, int value, int value2 ) : void
field string
value int
value2 int
return void

AddEditExtraText() public method

public AddEditExtraText ( string field, string value, System.DateTime dt = null ) : void
field string
value string
dt System.DateTime
return void

AddEditExtraValue() public static method

public static AddEditExtraValue ( CmsData.CMSDataContext db, int id, string field, string value ) : void
db CmsData.CMSDataContext
id int
field string
value string
return void

AddEditExtraValue() public method

public AddEditExtraValue ( string field, string code, System.DateTime date, string text, bool bit, int intn, System.DateTime dt = null ) : void
field string
code string
date System.DateTime
text string
bit bool
intn int
dt System.DateTime
return void

AddMedical() public method

public AddMedical ( string s ) : void
s string
return void

AddRelated() public method

public AddRelated ( CmsData.CMSDataContext db, int pid ) : CmsData.RelatedFamily
db CmsData.CMSDataContext
pid int
return CmsData.RelatedFamily

AddTaskAbout() public method

public AddTaskAbout ( CmsData.CMSDataContext db, int AssignTo, string description ) : CmsData.Task
db CmsData.CMSDataContext
AssignTo int
description string
return CmsData.Task

AddToExtraText() public method

public AddToExtraText ( string field, string value ) : void
field string
value string
return void

CanViewStatementFor() public method

public CanViewStatementFor ( CmsData.CMSDataContext db, int id ) : bool
db CmsData.CMSDataContext
id int
return bool

ComputeTitle() public method

public ComputeTitle ( ) : string
return string

DeletePicture() public method

public DeletePicture ( CmsData.CMSDataContext db ) : void
db CmsData.CMSDataContext
return void

DeleteThumbnail() public method

public DeleteThumbnail ( CmsData.CMSDataContext db ) : void
db CmsData.CMSDataContext
return void

ExtraValueExists() public static method

public static ExtraValueExists ( CmsData.CMSDataContext db, int id, string field ) : bool
db CmsData.CMSDataContext
id int
field string
return bool

FetchOrCreateBaptismType() public static method

public static FetchOrCreateBaptismType ( CmsData.CMSDataContext db, string type ) : int
db CmsData.CMSDataContext
type string
return int

FetchOrCreateCampus() public static method

public static FetchOrCreateCampus ( CmsData.CMSDataContext db, string campus ) : CmsData.Campu
db CmsData.CMSDataContext
campus string
return CmsData.Campu

FetchOrCreateDecisionType() public static method

public static FetchOrCreateDecisionType ( CmsData.CMSDataContext db, string type ) : int
db CmsData.CMSDataContext
type string
return int

FetchOrCreateJoinType() public static method

public static FetchOrCreateJoinType ( CmsData.CMSDataContext db, string status ) : int
db CmsData.CMSDataContext
status string
return int

FetchOrCreateMaritalStatus() public static method

public static FetchOrCreateMaritalStatus ( CmsData.CMSDataContext db, string type ) : int
db CmsData.CMSDataContext
type string
return int

FetchOrCreateMaritalStatusId() public static method

public static FetchOrCreateMaritalStatusId ( CmsData.CMSDataContext db, string status ) : int
db CmsData.CMSDataContext
status string
return int

FetchOrCreateMemberStatus() public static method

public static FetchOrCreateMemberStatus ( CmsData.CMSDataContext db, string type ) : int
db CmsData.CMSDataContext
type string
return int

FetchOrCreateNewMemberClassStatus() public static method

public static FetchOrCreateNewMemberClassStatus ( CmsData.CMSDataContext db, string type ) : int
db CmsData.CMSDataContext
type string
return int

FixTitle() public method

public FixTitle ( ) : void
return void

GetAge() public method

public GetAge ( ) : int
return int

GetBirthdate() public method

public GetBirthdate ( ) : DateTime?
return DateTime?

GetExtra() public method

public GetExtra ( string field ) : string
field string
return string

GetExtraValue() public static method

public static GetExtraValue ( CmsData.CMSDataContext db, int id, string field ) : CmsData.PeopleExtra
db CmsData.CMSDataContext
id int
field string
return CmsData.PeopleExtra

GetExtraValue() public static method

public static GetExtraValue ( CmsData.CMSDataContext db, int id, string field, string value ) : CmsData.PeopleExtra
db CmsData.CMSDataContext
id int
field string
value string
return CmsData.PeopleExtra

GetExtraValue() public method

public GetExtraValue ( string field ) : CmsData.PeopleExtra
field string
return CmsData.PeopleExtra

GetOptOuts() public method

public GetOptOuts ( ) : List
return List

GetRecReg() public method

public GetRecReg ( ) : CmsData.RecReg
return CmsData.RecReg

GetUsers() public method

public GetUsers ( ) : List
return List

LogChanges() public method

public LogChanges ( CmsData.CMSDataContext db ) : void
db CmsData.CMSDataContext
return void

LogChanges() public method

public LogChanges ( CmsData.CMSDataContext db, List changes ) : void
db CmsData.CMSDataContext
changes List
return void

LogChanges() public method

public LogChanges ( CmsData.CMSDataContext db, List changes, int UserPeopleId ) : void
db CmsData.CMSDataContext
changes List
UserPeopleId int
return void

LogChanges() public method

public LogChanges ( CmsData.CMSDataContext db, int UserPeopleId ) : void
db CmsData.CMSDataContext
UserPeopleId int
return void

LogExtraValue() public method

public LogExtraValue ( string op, string field ) : void
op string
field string
return void

LogPictureUpload() public method

public LogPictureUpload ( CmsData.CMSDataContext db, int UserPeopleId ) : void
db CmsData.CMSDataContext
UserPeopleId int
return void

ManagedGiving() public method

public ManagedGiving ( ) : CmsData.ManagedGiving
return CmsData.ManagedGiving

MovePersonStuff() public method

public MovePersonStuff ( CmsData.CMSDataContext db, int targetid ) : void
db CmsData.CMSDataContext
targetid int
return void

Now() public method

public Now ( ) : System.DateTime
return System.DateTime

OptOutKey() public method

public OptOutKey ( string fromEmail ) : string
fromEmail string
return string

PaymentInfo() public method

public PaymentInfo ( ) : PaymentInfo
return PaymentInfo

PossibleDuplicates() public method

public PossibleDuplicates ( ) : List
return List

PossibleDuplicates2() public method

public PossibleDuplicates2 ( ) : List
return List

PostUnattendedContribution() public method

public PostUnattendedContribution ( CMSDataContext db, decimal amt, int fund, string description, bool pledge = false, int typecode = null, int tranid = null ) : Contribution
db CMSDataContext
amt decimal
fund int
description string
pledge bool
typecode int
tranid int
return Contribution

RemoveExtraValue() public method

public RemoveExtraValue ( CMSDataContext db, string field ) : void
db CMSDataContext
field string
return void

SetExtra() public method

public SetExtra ( string field, string value ) : void
field string
value string
return void

SetRecReg() public method

public SetRecReg ( ) : RecReg
return RecReg

SplitFamily() public method

public SplitFamily ( CMSDataContext db ) : void
db CMSDataContext
return void

SpouseName() public method

public SpouseName ( CMSDataContext db ) : string
db CMSDataContext
return string

Tag() public static method

public static Tag ( CMSDataContext db, int peopleId, string tagName, int ownerId, int tagTypeId ) : void
db CMSDataContext
peopleId int
tagName string
ownerId int
tagTypeId int
return void

ToString() public method

public ToString ( ) : string
return string

ToggleTag() public static method

public static ToggleTag ( int peopleId, string tagName, int ownerId, int tagTypeId ) : bool
peopleId int
tagName string
ownerId int
tagTypeId int
return bool

UnTag() public static method

public static UnTag ( CMSDataContext db, int peopleId, string tagName, int ownerId, int tagTypeId ) : void
db CMSDataContext
peopleId int
tagName string
ownerId int
tagTypeId int
return void

UpdateCampus() public method

public UpdateCampus ( CMSDataContext db, object value ) : void
db CMSDataContext
value object
return void

UpdateContributionOption() public method

public UpdateContributionOption ( CMSDataContext db, int option ) : void
db CMSDataContext
option int
return void

UpdateElectronicStatement() public method

public UpdateElectronicStatement ( CMSDataContext db, bool tf ) : void
db CMSDataContext
tf bool
return void

UpdateEnvelopeOption() public method

public UpdateEnvelopeOption ( CMSDataContext db, int option ) : void
db CMSDataContext
option int
return void

UpdatePosition() public method

public UpdatePosition ( CMSDataContext db, int value ) : void
db CMSDataContext
value int
return void

UpdateValue() public method

public UpdateValue ( string field, object value ) : void
field string
value object
return void

UpdateValueFromText() public method

public UpdateValueFromText ( List psb, string field, string value ) : void
psb List
field string
value string
return void

UpdateValueFromText() public method

public UpdateValueFromText ( string field, string value ) : void
field string
value string
return void

UploadDocument() public method

public UploadDocument ( CMSDataContext db, Stream stream, string name, string mimetype ) : void
db CMSDataContext
stream Stream
name string
mimetype string
return void

UploadPicture() public method

public UploadPicture ( CMSDataContext db, Stream stream ) : void
db CMSDataContext
stream Stream
return void

Property Details

DiscClassStatusCompletedCodes public_oe static_oe property

public static int[] DiscClassStatusCompletedCodes
return int[]

DropCodesThatDrop public_oe static_oe property

public static int[] DropCodesThatDrop
return int[]