C# Class DBPOLLDemo.Models.participantModel

Mostrar archivo Open project: Marknel/dbPOLL

Public Properties

Property Type Description
address String
city String
company String
country String
createdat System.DateTime
department String
email String
fax int?
modifiedat System.DateTime
name String
phone int?
postcode int?
sessionid int
state String
title String
userid int
userweight int?

Public Methods

Method Description
AssignedList ( int sessionid ) : bool
createParticipant ( int userid, int sessionid ) : void

Create Participant and try to migrate some details from user table.

createParticipantsFromCollection ( System.Web.Mvc.FormCollection collection ) : void

Seperates and creates participants based on a collection of values collected from the Modify.aspx page.

deleteParticipant ( int userid, int sessionid ) : void

Removes participant allocation from database

displayParticipants ( int sessionID ) : List

Returns a list of participants for a given session.

displayUnassignedParticipants ( int sessionid ) : List

Returns a list of unassigned participants for a given session.

editParticipant ( int userid, int sessionid, int userweight, String name, String address, String city, int postcode, String state, String country, String department, String company, String email, int fax, int phone, String title ) : void
editParticipantDataFromCollection ( System.Web.Mvc.FormCollection collection ) : void
getCity ( ) : List
getCountries ( ) : List
getMaxDataID ( ) : int
getMaxParticipantID ( ) : int
getPostcode ( ) : List
getState ( ) : List
getStreet ( ) : List
participantModel ( ) : System

Empty constructor to call methods

participantModel ( int userid, int sessionid, System.DateTime createdat, System.DateTime modifiedat, int userweight, String name, String address, String city, int postcode, String state, String country, String department, String company, String email, int fax, int phone, String title ) : System

Private Methods

Method Description
nullCheck ( String s ) : String

Returns null if the string is Empty

Method Details

AssignedList() public method

public AssignedList ( int sessionid ) : bool
sessionid int
return bool

createParticipant() public method

Create Participant and try to migrate some details from user table.
public createParticipant ( int userid, int sessionid ) : void
userid int
sessionid int
return void

createParticipantsFromCollection() public method

Seperates and creates participants based on a collection of values collected from the Modify.aspx page.
public createParticipantsFromCollection ( System.Web.Mvc.FormCollection collection ) : void
collection System.Web.Mvc.FormCollection Collection of userid values and sessionid.
return void

deleteParticipant() public method

Removes participant allocation from database
public deleteParticipant ( int userid, int sessionid ) : void
userid int userid of participant to remove
sessionid int removes participant from particular allocation
return void

displayParticipants() public method

Returns a list of participants for a given session.
public displayParticipants ( int sessionID ) : List
sessionID int Session to get participants for
return List

displayUnassignedParticipants() public method

Returns a list of unassigned participants for a given session.
public displayUnassignedParticipants ( int sessionid ) : List
sessionid int
return List

editParticipant() public method

public editParticipant ( int userid, int sessionid, int userweight, String name, String address, String city, int postcode, String state, String country, String department, String company, String email, int fax, int phone, String title ) : void
userid int
sessionid int
userweight int
name String
address String
city String
postcode int
state String
country String
department String
company String
email String
fax int
phone int
title String
return void

editParticipantDataFromCollection() public method

public editParticipantDataFromCollection ( System.Web.Mvc.FormCollection collection ) : void
collection System.Web.Mvc.FormCollection
return void

getCity() public method

public getCity ( ) : List
return List

getCountries() public method

public getCountries ( ) : List
return List

getMaxDataID() public method

public getMaxDataID ( ) : int
return int

getMaxParticipantID() public method

public getMaxParticipantID ( ) : int
return int

getPostcode() public method

public getPostcode ( ) : List
return List

getState() public method

public getState ( ) : List
return List

getStreet() public method

public getStreet ( ) : List
return List

participantModel() public method

Empty constructor to call methods
public participantModel ( ) : System
return System

participantModel() public method

public participantModel ( int userid, int sessionid, System.DateTime createdat, System.DateTime modifiedat, int userweight, String name, String address, String city, int postcode, String state, String country, String department, String company, String email, int fax, int phone, String title ) : System
userid int
sessionid int
createdat System.DateTime
modifiedat System.DateTime
userweight int
name String
address String
city String
postcode int
state String
country String
department String
company String
email String
fax int
phone int
title String
return System

Property Details

address public_oe property

public String address
return String

city public_oe property

public String city
return String

company public_oe property

public String company
return String

country public_oe property

public String country
return String

createdat public_oe property

public DateTime,System createdat
return System.DateTime

department public_oe property

public String department
return String

email public_oe property

public String email
return String

fax public_oe property

public int? fax
return int?

modifiedat public_oe property

public DateTime,System modifiedat
return System.DateTime

name public_oe property

public String name
return String

phone public_oe property

public int? phone
return int?

postcode public_oe property

public int? postcode
return int?

sessionid public_oe property

public int sessionid
return int

state public_oe property

public String state
return String

title public_oe property

public String title
return String

userid public_oe property

public int userid
return int

userweight public_oe property

public int? userweight
return int?