private void GetOrdersList()
    {
        ShopingCart k = new ShopingCart()
        {
            flag = 0
        };
        DataTable dt = k.GetOrderList();

        rptrCustomerOrder.DataSource = dt;
        rptrCustomerOrder.DataBind();
    }
    private void ShowOrderDetails(string PanelId, int orderNo)
    {
        Panel1.Visible = false;
        Panel2.Visible = false;
        Panel3.Visible = false;
        Panel4.Visible = false;
        if (IsOrderNoValid(orderNo))
        {
            rblOrderDetails.Visible = true;
            if (PanelId == "1")
            {
                ShopingCart k = new ShopingCart()
                {
                    flag = orderNo
                };
                DataTable dtCustomerDetails = k.GetOrderList();
                if (dtCustomerDetails.Rows.Count > 0)
                {
                    Panel1.Visible          = true;
                    lblCustomerName.Text    = Convert.ToString(dtCustomerDetails.Rows[0]["CustomerName"]);
                    lblCustomerPhoneNo.Text = Convert.ToString(dtCustomerDetails.Rows[0]["CustomerPhoneNo"]);
                    lblCustomerEmailId.Text = Convert.ToString(dtCustomerDetails.Rows[0]["CustomerEmailD"]);
                    lblTotalPrice.Text      = Convert.ToString(dtCustomerDetails.Rows[0]["TotalPrice"]);
                    lblTotalProducts.Text   = Convert.ToString(dtCustomerDetails.Rows[0]["TotalProducts"]);
                    lblCustomerAddress.Text = Convert.ToString(dtCustomerDetails.Rows[0]["CustomerAddress"]);
                    lblPayMentMethod.Text   = Convert.ToString(dtCustomerDetails.Rows[0]["PaymentMethod"]);
                }
            }
            if (PanelId == "2")
            {
                Panel2.Visible = true;
                ShopingCart k = new ShopingCart()
                {
                    flag = orderNo
                };
                dlProducts.DataSource = k.GetTransactionDetails();
                dlProducts.DataBind();
            }
            if (PanelId == "3")
            {
                Panel3.Visible    = true;
                txtStatus.Visible = CanIUpDatesStatus;
                btnAdd.Visible    = CanIUpDatesStatus;

                GetSetOrderStatus(0);
            }
        }
        else
        {
            Panel4.Visible = true;
        }
    }
    private bool IsOrderNoValid(int orderNo)
    {
        ShopingCart k = new ShopingCart()
        {
            flag = orderNo
        };
        DataTable dtCustomerDetails = k.GetOrderList();

        if (dtCustomerDetails.Rows.Count > 0)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }