Beispiel #1
0
 public static void PopulateMedicineInput(MedicineInput input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.MedicineInputId = Utilities.ToInt(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.MedicineInputId]);
     input.SiteId = Utilities.ToInt(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.SiteId]);
     input.MedicineId = Utilities.ToInt(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.MedicineId]);
     input.Name = Utilities.ToString(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.Name]);
     input.Date = Utilities.ToDateTime(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.Date]);
     input.Description = Utilities.ToString(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.Description]);
     input.Quantity = Utilities.ToNDecimal(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.Quantity]);
     input.InputPrice = Utilities.ToNDecimal(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.InputPrice]);
     input.Supplier = Utilities.ToString(reader[Medical.Apartment.Common.MedicineInput.ColumnNames.Supplier]);
 }
Beispiel #2
0
        public static MedicineInput MedicineInput(System.Data.IDataReader reader)
        {
            MedicineInput result = null;

            if (null != reader && reader.Read())
            {
                result = new MedicineInput();
                PopulateMedicineInput(result, reader);
            }

            return result;
        }