Esempio n. 1
0
 public DrugV(SqlDataReader dr)
 {
     CodeDIN       = DBConverters.GetNullableInt32Number(dr, "CodeDIN");
     CodeGEN       = DBConverters.GetNullableString(dr, "CodeGEN");
     BrandName     = DBConverters.GetNullableString(dr, "BrandName");
     Strength      = DBConverters.GetNullableString(dr, "Strength");
     Form          = DBConverters.GetNullableString(dr, "Form");
     RAMQIndicator = DBConverters.GetNullableString(dr, "RAMQIndicator").ToLower() == "o"; //O or N
     Price         = DBConverters.GetNullableGetDecimalOrDefault(dr, "Price");
     Nature        = DBConverters.GetNullableString(dr, "Nature");
     Monography    = DBConverters.GetNullableString(dr, "Monography");
     Leaflet       = DBConverters.GetNullableString(dr, "Leaflet");
     InfoSupp      = DBConverters.GetNullableString(dr, "InfoSupp");
     Active        = DBConverters.GetNullableBoolean(dr, "Active");
     GenericName   = DBConverters.GetNullableString(dr, "GenericName");
 }
Esempio n. 2
0
        public DrugFormula(SqlDataReader dr, string idPrefix)
        {
            Id              = idPrefix + DBConverters.GetNullableInt32Number(dr, "Id");
            CodeDIN         = DBConverters.GetNullableInt32Number(dr, "CodeDIN");
            Number          = DBConverters.GetNullableString(dr, "Number");
            NumberO         = Number;
            Administration  = DBConverters.GetNullableString(dr, "Administration");
            AdministrationO = Administration;
            Duration        = DBConverters.GetNullableString(dr, "Duration");
            DurationO       = Duration;
            Quantity        = DBConverters.GetNullableString(dr, "Quantity");
            QuantityO       = Quantity;
            Repetatur       = DBConverters.GetNullableString(dr, "Repetatur");
            OriginalText    = ToString();
            var source = DBConverters.GetNullableString(dr, "Source");

            UserTemplate = source == "Fav";
            BrandName    = DBConverters.GetNullableString(dr, "BrandName");
        }