private PurchaseSetInfo ReaderPurchaseSet(IDataReader dr) { var info = new PurchaseSetInfo { GoodsId = SqlRead.GetGuid(dr, "GoodsId"), GoodsName = SqlRead.GetString(dr, "GoodsName"), WarehouseId = SqlRead.GetGuid(dr, "WarehouseId"), CompanyId = SqlRead.GetGuid(dr, "CompanyId"), PurchasePrice = SqlRead.GetDecimal(dr, "PurchasePrice"), PersonResponsible = SqlRead.GetGuid(dr, "PersonResponsible"), Memo = SqlRead.GetString(dr, "Memo"), PromotionId = SqlRead.GetGuid(dr, "PromotionId"), IsStockUp = SqlRead.GetBoolean(dr, "IsStockUp"), PurchaseGroupId = SqlRead.GetGuid(dr, "PurchaseGroupId"), FilingForm = SqlRead.GetInt(dr, "FilingForm"), StockUpDay = SqlRead.GetInt(dr, "StockUpDay"), FirstWeek = SqlRead.GetInt(dr, "FirstWeek"), SecondWeek = SqlRead.GetInt(dr, "SecondWeek"), ThirdWeek = SqlRead.GetInt(dr, "ThirdWeek"), FourthWeek = SqlRead.GetInt(dr, "FourthWeek"), FilingTrigger = SqlRead.GetInt(dr, "FilingTrigger"), Insufficient = SqlRead.GetInt(dr, "Insufficient"), IsDelete = Convert.ToInt32(dr["IsDelete"]), CompanyName = SqlRead.GetString(dr, "CompanyName"), HostingFilialeId = SqlRead.GetGuid(dr, "HostingFilialeId") }; return(info); }