Exemple #1
0
 public PatientHistory(VisitService vis)
 {
     _serviceName = vis.Service.Title;
     _doctorName = vis.Visit.Doctor.FirstName + " " + vis.Visit.Doctor.LastName;
     _teeth = vis.ToothDescription;
     string insNames = "";
     foreach (VisitServiceInsurance visins in vis.VisitServiceInsurances)
         insNames += visins.InsuranceDef.Insurance.Title + ", ";
     if (insNames.Count() > 0) insNames = insNames.TrimEnd(", ".ToArray());
     _Insurance = insNames;
     _cost = vis.Cost;
     _discount = vis.Discount;
     _visit = vis.Visit;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Visits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVisits(Visit visit)
 {
     base.AddObject("Visits", visit);
 }
 /// <summary>
 /// Create a new Visit object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="fromTime">Initial value of the FromTime property.</param>
 /// <param name="toTime">Initial value of the ToTime property.</param>
 /// <param name="patientId">Initial value of the PatientId property.</param>
 /// <param name="employeeId">Initial value of the EmployeeId property.</param>
 /// <param name="reminderSent">Initial value of the ReminderSent property.</param>
 public static Visit CreateVisit(global::System.Int32 id, global::System.DateTime fromTime, global::System.DateTime toTime, global::System.Int32 patientId, global::System.Int32 employeeId, global::System.Boolean reminderSent)
 {
     Visit visit = new Visit();
     visit.Id = id;
     visit.FromTime = fromTime;
     visit.ToTime = toTime;
     visit.PatientId = patientId;
     visit.EmployeeId = employeeId;
     visit.ReminderSent = reminderSent;
     return visit;
 }