Exemplo n.º 1
0
        private static void Populate(System.Data.DataTableReader dr, Vare rec)
        {
            var with_1 = rec;

            with_1.VareGrpID         = System.Convert.ToInt32(dr.DBtoInt("VareGrpID"));
            with_1.VareNr            = dr.DBtoString("VareNr");
            with_1.Navn              = dr.DBtoString("Navn");
            with_1.Beskrivelse       = dr.DBtoString("Beskrivelse");
            with_1._CurrencyID       = System.Convert.ToInt32(dr.DBtoInt("CurrencyID"));
            with_1._CurrencyRate     = System.Convert.ToDecimal(dr.DBtoDecimal("CurrencyRate"));
            with_1._Indkobspris      = System.Convert.ToDecimal(dr.DBtoDecimal("Indkobspris"));
            with_1._FragtPct         = System.Convert.ToDecimal(dr.DBtoDecimal("FragtPct"));
            with_1._Fragt            = System.Convert.ToDecimal(dr.DBtoDecimal("Fragt"));
            with_1._KostprisCurrency = System.Convert.ToDecimal(dr.DBtoDecimal("KostprisCurrency"));
            with_1._KostprisDKK      = System.Convert.ToDecimal(dr.DBtoDecimal("KostprisDKK"));
            with_1._DaekningsBidrag  = System.Convert.ToDecimal(dr.DBtoDecimal("DaekningsBidrag"));
            with_1._DaekningsGrad    = System.Convert.ToDecimal(dr.DBtoDecimal("DaekningsGrad"));
            with_1._SalgsPris        = System.Convert.ToDecimal(dr.DBtoDecimal("SalgsPris"));
            with_1.Status            = (RescueTekniq.BOL.VareStatusEnum)(dr.DBtoInt("Status"));
            with_1.FragtID           = System.Convert.ToInt32(dr.DBtoInt("FragtID"));
            with_1.FaktaArkPath      = dr.DBtoString("FaktaArkPath");
            with_1.SupplierItemNo    = dr.DBtoString("SupplierItemNo");
            with_1.SupplierItemName  = dr.DBtoString("SupplierItemName");
            PopulateStandard(dr, rec);
        }