protected void GetPurchaseRecordsApprovalListByWarehouse(string warehouseId)
        {
            PurchaseToWHBLL purchaseRecord = new PurchaseToWHBLL();

            try
            {
                DataTable dt = purchaseRecord.GetPurchaseRecordsApprovalListByWarehouse(warehouseId);

                purchaseRecordListGridView.DataSource = dt;
                purchaseRecordListGridView.DataBind();

                if (purchaseRecordListGridView.Rows.Count > 0)
                {
                    purchaseRecordListGridView.UseAccessibleHeader = true;
                    purchaseRecordListGridView.HeaderRow.TableSection = TableRowSection.TableHeader;
                }
                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
            {
                purchaseRecord = null;
            }
        }