using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LazyEating.Repository;
using LazyEating.Model;

namespace LazyEating.UI.Web.Admin
{
    public partial class Menu : System.Web.UI.Page
    {
        public int count = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            count = OrderRepository.FindOrderCount(OrderState.已付款);
            if (count > 0)
            {
                spanCount1.InnerHtml = "(" + count + ")";
                spanCount2.InnerHtml = "(" + count + ")";
            }
        }
    }
}