C# Class ServerModule.ServiceCTS

Inheritance: IServiceCTS
显示文件 Open project: VlasyukTanya/CTS

Public Methods

Method Description
AuthenticateUser ( string username, string password ) : bool
DrawQuestionById ( int questionId ) : string
GetAnswersDataTableByQuestionId ( int questionId ) : DataTable
GetGroupsDataTable ( ) : DataTable
GetQuestionById ( int questionId ) : Question
GetQuestionsDataTableByTestId ( int testId ) : DataTable
GetSubjectsDataTable ( ) : DataTable
GetTestsDataTableBySubjectId ( int subjectId ) : DataTable
GetTestsForUser ( int userId ) : DataTable
GetTutorsDataTable ( ) : DataTable
GetUsersCount ( ) : int
GetUsersDataTable ( ) : DataTable
IIsLifeGood ( ) : bool
addGroup ( string name_group ) : void
addSubject ( string name_subject ) : void
addTutor ( string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, int roleId, int groupId ) : void
addUser ( string name, string passwd, string realName, string email, int roleId, int groupId ) : void
addUserTest ( int id_user, int id_test, int numberOfTries, float mark, bool ifAvailable, System.DateTime testTime, bool canSkip, bool canBack, int testContinuesTime ) : void
delUser ( int id ) : void
deleteGroup ( int id_group ) : void
deleteSubject ( int id_subject ) : void
updateGroup ( int id_group, string name_group ) : void
updateSubject ( int id_subject, string name_subject ) : void
updateTutor ( int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string registrationDate, int roleId, int groupId ) : User

Method Details

AuthenticateUser() public method

public AuthenticateUser ( string username, string password ) : bool
username string
password string
return bool

DrawQuestionById() public method

public DrawQuestionById ( int questionId ) : string
questionId int
return string

GetAnswersDataTableByQuestionId() public method

public GetAnswersDataTableByQuestionId ( int questionId ) : DataTable
questionId int
return System.Data.DataTable

GetGroupsDataTable() public method

public GetGroupsDataTable ( ) : DataTable
return System.Data.DataTable

GetQuestionById() public method

public GetQuestionById ( int questionId ) : Question
questionId int
return DBLibrary.Question

GetQuestionsDataTableByTestId() public method

public GetQuestionsDataTableByTestId ( int testId ) : DataTable
testId int
return System.Data.DataTable

GetSubjectsDataTable() public method

public GetSubjectsDataTable ( ) : DataTable
return System.Data.DataTable

GetTestsDataTableBySubjectId() public method

public GetTestsDataTableBySubjectId ( int subjectId ) : DataTable
subjectId int
return System.Data.DataTable

GetTestsForUser() public method

public GetTestsForUser ( int userId ) : DataTable
userId int
return System.Data.DataTable

GetTutorsDataTable() public method

public GetTutorsDataTable ( ) : DataTable
return System.Data.DataTable

GetUsersCount() public method

public GetUsersCount ( ) : int
return int

GetUsersDataTable() public method

public GetUsersDataTable ( ) : DataTable
return System.Data.DataTable

IIsLifeGood() public method

public IIsLifeGood ( ) : bool
return bool

addGroup() public method

public addGroup ( string name_group ) : void
name_group string
return void

addSubject() public method

public addSubject ( string name_subject ) : void
name_subject string
return void

addTutor() public method

public addTutor ( string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, int roleId, int groupId ) : void
name string
passwd string
realName string
email string
additionalContacts DBLibrary.AdditionalContacts
roleId int
groupId int
return void

addUser() public method

public addUser ( string name, string passwd, string realName, string email, int roleId, int groupId ) : void
name string
passwd string
realName string
email string
roleId int
groupId int
return void

addUserTest() public method

public addUserTest ( int id_user, int id_test, int numberOfTries, float mark, bool ifAvailable, System.DateTime testTime, bool canSkip, bool canBack, int testContinuesTime ) : void
id_user int
id_test int
numberOfTries int
mark float
ifAvailable bool
testTime System.DateTime
canSkip bool
canBack bool
testContinuesTime int
return void

delUser() public method

public delUser ( int id ) : void
id int
return void

deleteGroup() public method

public deleteGroup ( int id_group ) : void
id_group int
return void

deleteSubject() public method

public deleteSubject ( int id_subject ) : void
id_subject int
return void

updateGroup() public method

public updateGroup ( int id_group, string name_group ) : void
id_group int
name_group string
return void

updateSubject() public method

public updateSubject ( int id_subject, string name_subject ) : void
id_subject int
name_subject string
return void

updateTutor() public method

public updateTutor ( int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string registrationDate, int roleId, int groupId ) : User
id int
name string
passwd string
realName string
email string
additionalContacts DBLibrary.AdditionalContacts
registrationDate string
roleId int
groupId int
return DBLibrary.User