protected void GetDamageRecordById(string damageRecordId)
        {
            SalesOrderBLL salesOrder = new SalesOrderBLL();

            try
            {
                DataTable dt = salesOrder.GetDamageRecordById(damageRecordId);

                if (dt.Rows.Count > 0)
                {
                    recordIdLabel.Text = dt.Rows[0]["DamageRecordId"].ToString();
                    recordDateLabel.Text = dt.Rows[0]["RecordDate"].ToString();
                    statusLabel.Text = dt.Rows[0]["Status"].ToString();

                  
                    //if (string.IsNullOrEmpty(dt.Rows[0]["WarehouseId"].ToString()))
                    //{
                    //    salesCenterIdLabel.Text = dt.Rows[0]["SalesCenterId"].ToString();
                    //    salesCenterNameLabel.Text = dt.Rows[0]["SalesCenterName"].ToString();
                    //}
                   
                        salesCenterIdLabel.Text = dt.Rows[0]["WarehouseId"].ToString();
                        salesCenterNameLabel.Text = dt.Rows[0]["WarehouseName"].ToString();
                    
                   
                    totalAmountLabel.Text = dt.Rows[0]["TotalAmount"].ToString();
                }
                else
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = "";
                }
            }
            catch (Exception ex)
            {
                msgbox.Visible = true; msgTitleLabel.Text = "Exception!!!"; msgDetailLabel.Text = ex.Message;
            }
            finally
            {
                salesOrder = null;
            }
        }