Exemplo n.º 1
0
 public PatientNote(Patient aPatient, Note aNote, Charge aCharge)
 {
     patient = aPatient;
     note = aNote;
     charge = aCharge;
 }
Exemplo n.º 2
0
        /// <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;
        }