/// <summary>
        /// Function to bind the data.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void DataBind()
        {
            ISalesManagerBLL     objBLL   = SalesManagerBLLFactory.CreateSalesManagerBLLObject();
            List <ICustomerBill> custlist = new List <ICustomerBill>();
            DateTime             date     = Convert.ToDateTime(txtDate.Text);

            custlist = objBLL.GetBillList(date);
            //custlist= objBLL.GetBillList(Calendar1.SelectedDate);
            int count = custlist.Count();

            lblnumberbill.Text        = count.ToString();
            gvShowBillList.DataSource = custlist;
            gvShowBillList.DataBind();
        }
        /// <summary>
        /// This is the method for Viewing Bill Details based on selected date
        /// </summary>
        protected void btnViewBill_Click(object sender, EventArgs e)
        {
            lblMessage.Text = "";
            ISalesManagerBLL     objBLL   = SalesManagerBLLFactory.CreateSalesManagerBLLObject();
            List <ICustomerBill> custlist = new List <ICustomerBill>();
            DateTime             date     = Convert.ToDateTime(txtDate.Text);

            custlist = objBLL.GetBillList(date);
            //custlist= objBLL.GetBillList(Calendar1.SelectedDate);
            int count = custlist.Count();

            lblnumberbill.Text        = count.ToString();
            lblNumberBills.Visible    = true;
            lblnumberbill.Visible     = true;
            gvShowBillList.DataSource = custlist;
            gvShowBillList.DataBind();

            if (gvShowBillList.Rows.Count == 0)
            {
                lblMessage.Text        = "Bills Not Found";
                lblNumberBills.Visible = false;
                lblnumberbill.Visible  = false;
            }
        }