protected override Movement GetModel(FirebirdSql.Data.FirebirdClient.FbDataReader reader)
 {
     return(new Movement
     {
         ShopCode = reader.GetString(0),
         MovementNumber = reader.GetInt32(1),
         MovementType = reader.GetString(2),
         MovementDescription = reader.GetString(3),
         ArticleCode = reader.GetString(4),
         ColorCode = reader.GetString(5),
         SizeCode = reader.GetString(6),
         MovementDirection = reader.GetString(7),
         MovementTime = reader.GetDateTime(9),
         MovementDate = reader.GetDateTime(8),
         SalesPerson = reader.GetString(10),
         CostPrice = reader.Get <Decimal?>(11),
         UnitPrice = reader.Get <Decimal?>(12),
         DocumentLine = reader.GetString(13),
         DocumentNumber = reader.GetString(14),
         LocationFrom = reader.GetString(15),
         LocationTo = reader.GetString(16),
         Quantity = reader.GetInt32(17),
         TransactionNumber = reader.GetString(18),
         LotNumber = reader.GetString(19)
     });
 }
Example #2
0
 protected override Statistic GetModel(FirebirdSql.Data.FirebirdClient.FbDataReader reader)
 {
     return new Statistic
       {
     Atmosphere          = reader.GetString(0),
     Context             = reader.GetString(1),
     DateTime            = reader.GetDateTime(2),
     ShopCode            = reader.GetString(3),
     TotalSales          = reader.GetDecimal(4),
     ClientSales         = reader.GetDecimal(5),
     GeneralSales        = reader.GetDecimal(6),
     UnitsSold           = reader.GetDecimal(7),
     UnitsPerClient      = reader.GetDecimal(8),
     TotalAmount         = reader.GetDecimal(9),
     SalesPerClient      = reader.GetDecimal(10),
     VisitorCount        = reader.Get<Int32?>(11),
     VisitorsWithNoSales = reader.Get<Int32?>(12)
       };
 }
 protected override Stock GetModel(FirebirdSql.Data.FirebirdClient.FbDataReader reader)
 {
     return(new Stock
     {
         DateTime = reader.GetDateTime(0),
         ShopCode = reader.GetString(1),
         ArticleCode = reader.GetString(2),
         ColorCode = reader.GetString(3),
         SizeCode = reader.GetString(4),
         InStock = reader.GetInt32(5),
         Maximum = reader.GetInt32(6),
         Minimum = reader.GetInt32(7),
         Reserved = reader.GetInt32(8),
         Ordered = reader.GetInt32(9),
         Delivered = reader.GetInt32(10),
         Available = reader.GetInt32(11),
         TotalIn = reader.GetInt32(12),
         TotalOut = reader.GetInt32(13),
         WAC = reader.Get <Decimal?>(14)
     });
 }