private void BinOrderStatusDetails(string orderStatus)
    {
        string    OrderID = Encrypt_Decrypt.Decrypt(Session["sOrderID"].ToString().Trim(), true);
        DataTable dtOrder = orderObj.GetOrderDetails(Convert.ToInt32(OrderID));

        if (dtOrder.Rows.Count > 0)
        {
            DataRow dr = dtOrder.Rows[0];
            orderStatus = orderStatus.ToUpper();
            if (orderStatus.Contains("ETA"))
            {
                orderStatus = "INTRANSIT";
            }


            if (orderStatus == "CLOSE")
            {
                btnDisableCloseOrder.Visible = true;
                btnCloseOrder.Visible        = false;

                btnClearance.Visible        = false;
                btnDisableClearance.Visible = true;


                string eta = Convert.ToString(dr["ETA"]);
                if (eta != "N/A")
                {
                    lblETAText.Text = "ETA : " + Convert.ToDateTime(eta).ToString("dd MMM yyyy");
                }

                tblETA.Visible     = false;
                lblETAText.Visible = true;
            }
            else if (orderStatus == "UNDER CUSTOM CLEARANCE" || orderStatus == "UNDER<BR/>CUSTOM<BR/>CLEARANCE")
            {
                btnClearance.Visible        = false;
                btnDisableClearance.Visible = true;

                tblETA.Visible     = true;
                lblETAText.Visible = false;

                btnDisableCloseOrder.Visible = false;
                btnCloseOrder.Visible        = true;

                btnIntransitSubmit.Visible = true;
            }
            else if (orderStatus == "INTRANSIT")
            {
                btnClearance.Visible        = false;
                btnDisableClearance.Visible = true;

                string eta = Convert.ToString(dr["ETA"]);
                if (eta != "N/A")
                {
                    lblETAText.Text = "ETA : " + Convert.ToDateTime(eta).ToString("dd MMM yyyy");
                }

                tblETA.Visible     = false;
                lblETAText.Visible = true;

                btnDisableCloseOrder.Visible = false;
                btnCloseOrder.Visible        = true;
            }
        }
    }