36 lines
880 B
C#
36 lines
880 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Client
|
|||
|
{
|
|||
|
public class Exam
|
|||
|
{
|
|||
|
public int DocID { get; set; }
|
|||
|
public int PatientID { get; set; }
|
|||
|
public int ResultID { get; set; }
|
|||
|
public Exam(int docId,
|
|||
|
int patientId,
|
|||
|
int resultId
|
|||
|
)
|
|||
|
{
|
|||
|
DocID = docId;
|
|||
|
PatientID = patientId;
|
|||
|
ResultID = resultId;
|
|||
|
}
|
|||
|
public int CreateExam()
|
|||
|
{
|
|||
|
EHEC_Service.Exam myExam = new EHEC_Service.Exam
|
|||
|
{
|
|||
|
DoctorId = DocID,
|
|||
|
PatientId = PatientID,
|
|||
|
Result_ResultId = ResultID
|
|||
|
};
|
|||
|
Global.GlobalInstance.Service.WriteExam(myExam);
|
|||
|
return myExam.ExamId;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|