# KHÔNG SỬ DỤNG DANH MỤC

## YÊU CẦU

* Đơn vị không sử dụng danh mục. Ví dụ, phân xưởng
* Nội dung cần xử lý
  * ẩn danh mục ở menu danh mục
  * ẩn cột trên giao diện nhập liệu: Giao diện chung, giao diện lưới
  * ẩn cột trên tìm kiếm
  * ẩn cột trên giao diện titbrow của danh mục khác nếu có liên kết
  * ẩn cột trên báo cáo nếu có sử dụng

## HƯỚNG DẪN

```sql
-- loại bỏ danh mục
SELECT * FROM TableManage WHERE TableName LIKE 'phanxuong'
update TableManage set stt=0,ModiDate=GETDATE()  WHERE TableName LIKE 'phanxuong'
-- ẩn cột trên tìm kiếm

-- ẩn cột trên giao diện titbrow của danh mục khác
select t1.*
from
(
SELECT TABLENAME FROM BrowConfig WHERE stt<>0 and FIELDNAME like 'phanxuong'
)T1 inner join
(
	select * from TableManage where stt<>0
)T2 on t1.TABLENAME = t2.TableName

-- ẩn cột trên báo cáo 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kythuat.dtechvn.com/danh-muc/khong-s-dung-danh-muc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
