public void InsertOrUpdate(RecieptEntity reciept)
        {
            //is this a new entry?
            if (db.Entry(reciept).State == System.Data.EntityState.Detached)
            {
                Create(reciept);
            }
            //this must be an existing entry, we shoudl update it
            else
            {
                Update(reciept);
            }

            return;
        }
Пример #2
0
        protected async override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            //drawerLayout = FindViewById<DrawerLayout>(Resource.Id.drawer_layout);
            //LayoutInflater inflater = (LayoutInflater)this.GetSystemService(Context.LayoutInflaterService);
            //View contentView = inflater.Inflate(Resource.Layout.Reciept, null, false);
            //drawerLayout.AddView(contentView);
            SetContentView(Resource.Layout.Reciept);
            TextView      storeUsernameText = FindViewById <TextView>(Resource.Id.txtUsername);
            SessionHelper sessionHelper     = new SessionHelper(this);
            string        Username          = sessionHelper.GetSessionKey(SessionKeys.SESSION_USERNAME_KEY);
            string        UserID            = sessionHelper.GetSessionKey(SessionKeys.SESSION_USERID_KEY);
            string        AuthToken         = sessionHelper.GetSessionKey(SessionKeys.SESSION_TOKEN_KEY);

            storeUsernameText.Text = "Hello " + Username;

            EditText recieptName   = FindViewById <EditText>(Resource.Id.editrecieptTxt);
            Button   btnAddReciept = FindViewById <Button>(Resource.Id.addreciept);

            JsonValue jsonReciept = await HttpRequestHelper <RecieptEntity> .GetRequest(ServiceTypes.GetReciepts, "/" + AuthToken + "/" + UserID);

            ParseRecieptJSON(jsonReciept);

            btnAddReciept.Click += async(sender, e) =>
            {
                try
                {
                    RecieptDTO recieptDTO = new RecieptDTO();
                    recieptDTO.CreatedOn = DateTime.Now.ToString();
                    recieptDTO.Name      = recieptName.Text;
                    recieptDTO.StoreID   = Convert.ToInt32(UserID);
                    recieptDTO.Status    = ((int)ReceiptStatusEnum.New).ToString();
                    RecieptEntity recieptEntity = new RecieptEntity {
                        AuthToken = AuthToken, recieptDTO = recieptDTO
                    };
                    JsonValue json = await HttpRequestHelper <RecieptEntity> .POSTreq(ServiceTypes.AddReciept, recieptEntity);

                    ParseJSON(json);

                    JsonValue jsonReciept1 = await HttpRequestHelper <RecieptEntity> .GetRequest(ServiceTypes.GetReciepts, "/" + AuthToken + "/" + UserID);

                    ParseRecieptJSON(jsonReciept1);
                }
                catch (Exception ex)
                {
                }
            };
        }
        public ActionResult AddUpdate(RecieptEntity reciept)
        {
            if (ModelState.IsValid)
            {
                //Is it already in the database?
                var queryForOriginal = db.Reciepts.Where(rec =>
                    rec.RIF == reciept.RIF &&
                    rec.Project.ID == reciept.ProjectID);

                //Then remove it
                if (queryForOriginal.Count() > 0)
                {
                    var originalReciept = queryForOriginal.First();

                    db.Reciepts.Remove(originalReciept);
                    db.SaveChanges();
                }

                //replace  it with the new values
                reciept.Project = db.Projects.Find(reciept.ProjectID);
                db.Reciepts.Add(reciept);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            //General information used on this page:
               //All the counties
            ViewBag.Counties = County.AsJsonArray();

            //All the stores in this project
            var stores = db.Reciepts.Where(rec => rec.ProjectID == reciept.ProjectID).Select(rec => rec.StoreName).Distinct().ToList();
            JavaScriptSerializer jss = new JavaScriptSerializer();
            ViewBag.Stores = jss.Serialize(stores);

            return View("Index", reciept);
        }
        public void Seed()
        {
            ApplicationDBContext db = new ApplicationDBContext();
            Project project = new Project();
            project.Name = "Salisbury - Old Concord Rd";
            project.DateStarted = DateTime.Now;
            project.IsDeleted = false;
            project.OwnerID = 0;
            db.Projects.Add(project);
            db.SaveChanges();

            RecieptEntity RecieptEntity = null;

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "1";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-16");
            RecieptEntity.SalesTax = 7.29f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 111.43f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "2";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-16");
            RecieptEntity.SalesTax = 1.91f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 29.13f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "3";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-18");
            RecieptEntity.SalesTax = 16.76f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 256.12f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "4";
            RecieptEntity.StoreName = "DESCO Inc.";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-20");
            RecieptEntity.SalesTax = 5.36f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 82.00f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "5";
            RecieptEntity.StoreName = "KnoxBox";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-05");
            RecieptEntity.SalesTax = 27.68f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 437.68f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "6";
            RecieptEntity.StoreName = "Quickscrews International";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-22");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 110.76f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "7";
            RecieptEntity.StoreName = "ABC Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-22");
            RecieptEntity.SalesTax = 248.83f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 3803.55f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "8";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-03");
            RecieptEntity.SalesTax = 191.52f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 2927.52f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "9";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-07");
            RecieptEntity.SalesTax = 60.27f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 921.27f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "10";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-07");
            RecieptEntity.SalesTax = 1620.21f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 24762.21f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "11";
            RecieptEntity.StoreName = "Guaranteed Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-05");
            RecieptEntity.SalesTax = 79.38f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 1213.38f;
            RecieptEntity.County = 41;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "12";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-02");
            RecieptEntity.SalesTax = 3.57f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 54.57f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "13";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-02");
            RecieptEntity.SalesTax = 12.29f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 187.87f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "14";
            RecieptEntity.StoreName = "United Rentals";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-03");
            RecieptEntity.SalesTax = 18.71f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 293.09f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "15";
            RecieptEntity.StoreName = "United Rentals";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-13");
            RecieptEntity.SalesTax = 3.81f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 65.29f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "16";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-13");
            RecieptEntity.SalesTax = 10.69f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 163.38f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "17";
            RecieptEntity.StoreName = "United Rentals";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-16");
            RecieptEntity.SalesTax = 21.11f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 322.71f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "18";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-14");
            RecieptEntity.SalesTax = 1972.96f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 30157.96f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "19";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-14");
            RecieptEntity.SalesTax = 13.48f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 206.08f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "20";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-21");
            RecieptEntity.SalesTax = 11.43f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 174.77f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "21";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-21");
            RecieptEntity.SalesTax = 11.91f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 182.10f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "22";
            RecieptEntity.StoreName = "Hoffman & Hoffman";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-18");
            RecieptEntity.SalesTax = 625.45f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 9560.45f;
            RecieptEntity.County = 41;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "23";
            RecieptEntity.StoreName = "Office Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-11");
            RecieptEntity.SalesTax = 0.80f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 11.79f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "24";
            RecieptEntity.StoreName = "Suburban Propane";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-10");
            RecieptEntity.SalesTax = 107.92f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 1634.52f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "25";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-28");
            RecieptEntity.SalesTax = 33.22f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 507.72f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "26";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-28");
            RecieptEntity.SalesTax = 357.21f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 5460.24f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "27";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-02");
            RecieptEntity.SalesTax = 50.44f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 720.64f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "28";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-21");
            RecieptEntity.SalesTax = 987.85f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 15100.00f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "29";
            RecieptEntity.StoreName = "DESCO Inc.";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-20");
            RecieptEntity.SalesTax = 0.65f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 9.87f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "30";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-20");
            RecieptEntity.SalesTax = 16.17f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 247.15f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "31";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 13.15f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 201.01f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "32";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-06-30");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 56.59f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "33";
            RecieptEntity.StoreName = "Office Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 20.16f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 308.12f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "34";
            RecieptEntity.StoreName = "Office Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = -16.31f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = -249.27f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "35";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-10");
            RecieptEntity.SalesTax = 1.40f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 21.38f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "36";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-10");
            RecieptEntity.SalesTax = 1.77f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 27.11f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "37";
            RecieptEntity.StoreName = "Sam's Club";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-10");
            RecieptEntity.SalesTax = 25.88f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 392.56f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "38";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-10");
            RecieptEntity.SalesTax = 8.01f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 122.37f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "39";
            RecieptEntity.StoreName = "Office Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 16.31f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 249.27f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "40";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 31.54f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 482.15f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "41";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 1.94f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 29.66f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "42";
            RecieptEntity.StoreName = "Sherwin-Williams";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 26.45f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 404.35f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "43";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 10.62f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 162.27f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "44";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 0.69f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 10.57f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "45";
            RecieptEntity.StoreName = "Sherwin-Williams";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 10.58f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 161.74f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "46";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 30.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "47";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 67.21f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "48";
            RecieptEntity.StoreName = "Office Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 0.59f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 8.97f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "49";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 23.92f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 365.62f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "50";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 2.76f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 42.16f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "51";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 10.33f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 157.83f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "52";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 0.76f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 11.60f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "53";
            RecieptEntity.StoreName = "Southeastern Concrete Products";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 14.89f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 235.54f;
            RecieptEntity.County = 49;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "54";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 3.38f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 51.60f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "55";
            RecieptEntity.StoreName = "Earp's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 45.67f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "56";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 9.84f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 150.42f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "57";
            RecieptEntity.StoreName = "Home Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 6.06f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 92.63f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "58";
            RecieptEntity.StoreName = "DESCO Inc.";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 13.66f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 208.78f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "59";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 1.49f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 25.36f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "60";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 25.04f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "61";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 3.83f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 58.53f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "62";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.78f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 39.98f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "63";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 1.57f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 24.02f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "64";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 8.56f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 130.89f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "65";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.75f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 11.51f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "66";
            RecieptEntity.StoreName = "WilcoHess";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 24.99f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "67";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 68.83f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "68";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 1.85f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 94.45f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "69";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 10.70f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 163.57f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "70";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 55.28f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "71";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.80f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 40.60f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "72";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 29.17f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "73";
            RecieptEntity.StoreName = "United Rentals";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 6.64f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 105.11f;
            RecieptEntity.County = 49;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "74";
            RecieptEntity.StoreName = "Pop Shoppe";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 62.24f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "75";
            RecieptEntity.StoreName = "Swicegoods Paper";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 6.78f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 103.58f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "76";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 11.44f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 174.89f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "77";
            RecieptEntity.StoreName = "Fastenal";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 9.61f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 146.89f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "78";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 4.30f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 65.74f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "79";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.39f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 19.99f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "80";
            RecieptEntity.StoreName = "Food Lion";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.86f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 43.76f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "81";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 4.16f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 63.59f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "82";
            RecieptEntity.StoreName = "Earp's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 44.31f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "83";
            RecieptEntity.StoreName = "Pops Country Store";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 5.60f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 85.55f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "84";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = 21.03f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 321.41f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "85";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 10.82f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 165.40f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "86";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-12");
            RecieptEntity.SalesTax = -23.92f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = -365.62f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "87";
            RecieptEntity.StoreName = "Food Lion";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 144.05f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "88";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 2.24f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 114.14f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "89";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 58.78f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "90";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 7.11f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 108.63f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "91";
            RecieptEntity.StoreName = "Concrete Supply Company";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-21");
            RecieptEntity.SalesTax = 562.83f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 8599.68f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "92";
            RecieptEntity.StoreName = "GrandinRoad";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-11");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 373.32f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "93";
            RecieptEntity.StoreName = "Sunbelt Rentals";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 71.61f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 1094.61f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "94";
            RecieptEntity.StoreName = "Thermo King Central";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-14");
            RecieptEntity.SalesTax = 12.20f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 180.47f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "95";
            RecieptEntity.StoreName = "Hertz Equipment Rental";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-16");
            RecieptEntity.SalesTax = 28.07f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 429.07f;
            RecieptEntity.County = 60;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "96";
            RecieptEntity.StoreName = "WeGotLites";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-23");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 678.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "97";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = -9.15f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = -139.81f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "98";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = -10.10f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = -154.40f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "99";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 50.31f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "100";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 17.95f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "101";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 1.82f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 27.79f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "102";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 4.66f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 71.23f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "103";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 9.15f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 139.81f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "104";
            RecieptEntity.StoreName = "Sunnyside Ice and Fuel Co., Inc";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 930.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "105";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 9.15f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 139.81f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "106";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.65f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 9.87f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "107";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 12.88f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 196.95f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "108";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 3.67f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 77.43f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "109";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 12.12f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 185.28f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "110";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 7.37f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 112.71f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "111";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 2.71f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 41.41f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "112";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 13.27f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 202.87f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "113";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.92f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 14.04f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "114";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 2.67f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 40.80f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "115";
            RecieptEntity.StoreName = "Target.com";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 6.06f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 92.58f;
            RecieptEntity.County = 34;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "116";
            RecieptEntity.StoreName = "Home Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 1.40f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 21.36f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "117";
            RecieptEntity.StoreName = "Home Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 3.24f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 49.56f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "118";
            RecieptEntity.StoreName = "Marathon";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 34.23f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "119";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 2.22f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 33.91f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "120";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-20");
            RecieptEntity.SalesTax = 25.29f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 386.57f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "121";
            RecieptEntity.StoreName = "Subway";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-20");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 36.27f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "122";
            RecieptEntity.StoreName = "Chckfila";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-20");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 7.37f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "123";
            RecieptEntity.StoreName = "Fastenal";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-20");
            RecieptEntity.SalesTax = 3.84f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 58.75f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "124";
            RecieptEntity.StoreName = "Ruehlen Supply Co";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-20");
            RecieptEntity.SalesTax = 2.39f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 36.57f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "125";
            RecieptEntity.StoreName = "Derrick Travel Plaza";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-21");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 30.01f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "126";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-21");
            RecieptEntity.SalesTax = 1.04f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 15.94f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "127";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-22");
            RecieptEntity.SalesTax = 2.64f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 40.38f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "128";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-22");
            RecieptEntity.SalesTax = 1.39f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 21.31f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "129";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-22");
            RecieptEntity.SalesTax = 0.73f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 11.11f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "130";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 5.44f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 83.20f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "131";
            RecieptEntity.StoreName = "Staples";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 4.90f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 74.88f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "132";
            RecieptEntity.StoreName = "Staples";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 2.13f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 30.49f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "133";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 6.69f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 102.33f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "134";
            RecieptEntity.StoreName = "Rushco Food";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 39.52f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "135";
            RecieptEntity.StoreName = "WilcoHess";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 75.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "136";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-22");
            RecieptEntity.SalesTax = -0.46f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = -7.07f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "137";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 50.37f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "138";
            RecieptEntity.StoreName = "Sheetz";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 36.01f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "139";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 1.81f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 27.69f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "140";
            RecieptEntity.StoreName = "Sherwin-Williams";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 19.99f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 305.51f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "141";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 6.96f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 106.33f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "142";
            RecieptEntity.StoreName = "Sam's Club";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 12.04f;
            RecieptEntity.FoodTax = 2.46f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 307.29f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "143";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 2.94f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 150.02f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "144";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 1.33f;
            RecieptEntity.FoodTax = 1.51f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 97.19f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "145";
            RecieptEntity.StoreName = "Sam's Club";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-15");
            RecieptEntity.SalesTax = 2.16f;
            RecieptEntity.FoodTax = 0.78f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 72.92f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "146";
            RecieptEntity.StoreName = "Rastaurant Depot";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 138.26f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "147";
            RecieptEntity.StoreName = "WilcoHess";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 1.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 49.80f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "148";
            RecieptEntity.StoreName = "Auto Zone";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-14");
            RecieptEntity.SalesTax = 1.36f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 20.83f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "149";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 1.94f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 29.64f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "150";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.83f;
            RecieptEntity.FoodTax = 0.43f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 34.80f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "151";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 2.04f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 103.80f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "152";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-17");
            RecieptEntity.SalesTax = 1.52f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 77.58f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "153";
            RecieptEntity.StoreName = "Walmart";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 1.06f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 53.96f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "154";
            RecieptEntity.StoreName = "Sandy's One Stop";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-19");
            RecieptEntity.SalesTax = 0.40f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 20.30f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "155";
            RecieptEntity.StoreName = "Subway";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-21");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 65.81f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "156";
            RecieptEntity.StoreName = "Sunnyside Ice and Fuel Co., Inc";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-18");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 69.50f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "157";
            RecieptEntity.StoreName = "Sam's Club";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-13");
            RecieptEntity.SalesTax = 4.83f;
            RecieptEntity.FoodTax = 5.80f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 369.91f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "158";
            RecieptEntity.StoreName = "Trane";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-10");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 16481.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "159";
            RecieptEntity.StoreName = "The Glass Shop";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-07-16");
            RecieptEntity.SalesTax = 0.00f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 1752.00f;
            RecieptEntity.County = 101;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "160";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 3.57f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 54.64f;
            RecieptEntity.County = 13;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "161";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-23");
            RecieptEntity.SalesTax = 3.53f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 53.90f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);

            RecieptEntity = new RecieptEntity();
            RecieptEntity.RIF = "162";
            RecieptEntity.StoreName = "Lowe's";
            RecieptEntity.DateOfSale = DateTime.Parse("2012-08-24");
            RecieptEntity.SalesTax = 0.93f;
            RecieptEntity.FoodTax = 0.00f;
            RecieptEntity.ProjectID = project.ID;
            RecieptEntity.SalesAmount = 14.15f;
            RecieptEntity.County = 80;
            RecieptEntity.Notes = "";
            db.Reciepts.Add(RecieptEntity);
            db.SaveChanges();
        }
        public ActionResult Index(Guid ProjectID)
        {
            var modal = new RecieptEntity();

            modal.Project = db.Projects.Find(ProjectID);

            //We have navigated to a Project that dosnt exist anymore
            if (modal.Project == null)
            {
                return View("Error");
            }

            //All the counties
            ViewBag.Counties = County.AsJsonArray();

            //All the stores in this project
            var stores = db.Reciepts.Where(rec => rec.ProjectID == ProjectID).Select(rec => rec.StoreName).Distinct().ToList();
            JavaScriptSerializer jss = new JavaScriptSerializer();
            ViewBag.Stores = jss.Serialize(stores);

            return View(modal);
        }
 public void Update(RecieptEntity reciept)
 {
     throw new NotImplementedException();
 }
 public void Delete(RecieptEntity reciepts)
 {
     throw new NotImplementedException();
 }
 public void Create(RecieptEntity reciept)
 {
     db.Reciepts.Add(reciept);
     db.SaveChanges();
 }