public PatientNote(Patient aPatient, Note aNote, Charge aCharge) { patient = aPatient; note = aNote; charge = aCharge; }
/// <summary> /// This will only work with the joined table!!! /// </summary> /// <param name="dr"></param> /// <returns></returns> public Charge CreateCharge(System.Data.DataRow dr) { //TODO: Fix this so it works with the Charge table as well Charge charge = new Charge(); if (!dr.HasErrors && dr != null) { charge.Id = (int)dr["chargeid"]; charge.Description = (string) dr["chargetext"]; charge.PrimulaCharachter = (string) dr["chargeprimula"]; } return charge; }