Bảng UIType đầy đủ
📝 Text/String Fields
┌────────┬───────────────────┬───────────────────────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 1 │ Text │ Trường văn bản ngắn (VARCHAR) │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 2 │
Time │ Trường thời gian │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 4 │ Auto-generated │ Số tự động (ví dụ: mã record) │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 13 │ Email │ Địa chỉ email │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 17 │ URL │ Liên kết web │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 19 │ Text Area (Large) │ Văn bản dài │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 21 │ TextArea │ Văn bản nhiều dòng │ ❌ │
├────────┼───────────────────┼───────────────────────────────┼────────────┤
│ 85 │ Skype │ Skype ID │ ❌ │
└────────┴───────────────────┴───────────────────────────────┴────────────┘
🔢 Number Fields
┌────────┬──────────────────────┬───────────────────────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 5 │
Date │ Ngày tháng │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 6 │ DateTime │ Ngày giờ │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 7 │ Decimal/Integer │ Số thập phân hoặc số nguyên │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 9 │ Percent │ Phần trăm │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 11 │ Phone │ Số điện thoại │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 14 │
Time │ Thời gian │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 70 │ CreatedTime/DateTime │ Thời gian tạo │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 71 │ Currency │ Tiền tệ │ ❌ │
├────────┼──────────────────────┼───────────────────────────────┼────────────┤
│ 72 │ Currency
(Special
) │ Tiền tệ đặc biệt
(List Price
) │ ❌ │
└────────┴──────────────────────┴───────────────────────────────┴────────────┘
☑️ Selection Fields
┌────────┬───────────────────────┬──────────────────────────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├────────┼───────────────────────┼──────────────────────────────────┼────────────┤
│ 15 │ Picklist (Role-based) │ Dropdown có phân quyền theo Role │ ❌ │
├────────┼───────────────────────┼──────────────────────────────────┼────────────┤
│ 16 │ Picklist │ Dropdown đơn giản │ ❌ │
├────────┼───────────────────────┼──────────────────────────────────┼────────────┤
│ 33 │ MultiSelectCombo │ Chọn nhiều giá trị │ ❌ │
├────────┼───────────────────────┼──────────────────────────────────┼────────────┤
│ 55 │ Salutation │ Xưng hô (Mr, Mrs...) │ ❌ │
├────────┼───────────────────────┼──────────────────────────────────┼────────────┤
│ 56 │ Checkbox │ Ô đánh dấu (Yes/No) │ ❌ │
└────────┴───────────────────────┴──────────────────────────────────┴────────────┘
🔗 Reference Fields (Liên kết đến Module khác) ⭐
UIType: 10
Tên: Reference (Generic)
Module Target: Nhiều module (cấu hình trong abmsco_fieldmodulerel)
Reference?: ✅ YES
────────────────────────────────────────
UIType: 51
Tên: Account Reference
Module Target: Accounts
Reference?: ✅ YES
────────────────────────────────────────
UIType: 52
Tên: User Reference
Module Target: Users (Assigned To)
Reference?: ✅ YES
────────────────────────────────────────
UIType: 53
Tên: Owner
Module Target: Users (Owner/Assigned To)
Reference?: ✅ YES
────────────────────────────────────────
UIType: 57
Tên: Contact Reference
Module Target: Contacts
Reference?: ✅ YES
────────────────────────────────────────
UIType: 58
Tên: Campaign Reference
Module Target: Campaigns
Reference?: ✅ YES
────────────────────────────────────────
UIType: 59
Tên: Product Reference
Module Target: Products
Reference?: ✅ YES
────────────────────────────────────────
UIType: 66
Tên: Related To (Multi)
Module Target: Accounts, Contacts...
Reference?: ✅ YES
────────────────────────────────────────
UIType: 68
Tên: Related To
Module Target: Nhiều module
Reference?: ✅ YES
────────────────────────────────────────
UIType: 73
Tên: Account (Vendor ctx)
Module Target: Accounts
Reference?: ✅ YES
────────────────────────────────────────
UIType: 75
Tên: Vendor Reference
Module Target: Vendors
Reference?: ✅ YES
────────────────────────────────────────
UIType: 76
Tên: Potential Reference
Module Target: Potentials
Reference?: ✅ YES
────────────────────────────────────────
UIType: 77
Tên: User Reference
Module Target: Users (Reports To)
Reference?: ✅ YES
────────────────────────────────────────
UIType: 78
Tên: Quote Reference
Module Target: Quotes
Reference?: ✅ YES
────────────────────────────────────────
UIType: 80
Tên: SalesOrder Reference
Module Target: SalesOrder
Reference?: ✅ YES
────────────────────────────────────────
UIType: 81
Tên: Vendor Reference
Module Target: Vendors
Reference?: ✅ YES
────────────────────────────────────────
UIType: 101
Tên: Reference (Custom)
Module Target: Cấu hình riêng
Reference?: ✅ YES
────────────────────────────────────────
UIType: 1024
Tên: User Reference (Special)
Module Target: Users
Reference?: ✅ YES
┌────────┬────────────────┬─────────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├────────┼────────────────┼─────────────────┼────────────┤
├────────┼────────────────┼─────────────────┼────────────┤
│ 69 │ Image │ Hình ảnh │ ❌ │
├────────┼────────────────┼─────────────────┼────────────┤
│ 83 │ Currency Field │ Giá (ListPrice) │ ❌ │
└────────┴────────────────┴─────────────────┴────────────┘
┌────────┬──────────┬───────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├────────┼──────────┼───────────────┼────────────┤
│ 98 │ Role │ Role của user │ ❌ │
├────────┼──────────┼───────────────┼────────────┤
│ 99 │ Password │ Mật khẩu │ ❌ │
└────────┴──────────┴───────────────┴────────────┘
🏢 ABMS Custom UITypes
┌─────────────────┬────────────────────┬─────────────────────────────┬────────────┐
│ UIType │ Tên │ Mô tả │ Reference? │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ 22 │ InoReferenceSearch │ Tìm kiếm reference đặc biệt │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ 30 │ Province │ Tỉnh/Thành phố │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ 31 │ District │ Quận/Huyện │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ 32 │ Ward │ Phường/Xã │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ innocreator │ IncCreator │ Người tạo (custom) │ ✅ YES │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ incdatetime │ IncDatetime │ Datetime custom │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ innomaskedphone │ InnoMaskedPhone │ SĐT có mask │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ innotxteditor │ InnoTxtEditor │ Text editor │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ innoupload │ InnoUpload │ Upload
file │ ❌ │
├─────────────────┼────────────────────┼─────────────────────────────┼────────────┤
│ innoaddress │ InnoAddress │ Địa chỉ │ ❌ │
└─────────────────┴────────────────────┴─────────────────────────────┴────────────┘
---
📌 Tóm tắt Reference UITypes
public static
$referenceUitypes = array( 51, // Accounts
52, // Users
53, // Users (Owner)
57, // Contacts
58, // Campaigns
59, // Products
73, // Accounts
75, // Vendors
66, // Multi-module
81, // Vendors
76, // Potentials
78, // Quotes
80, // SalesOrder
68, // Multi-module
10, // Generic Reference
1024 // Users (Special)
);
Các Reference UIType là những trường lưu ID của record từ module khác, cho phép tạo
liên kết giữa các module trong hệ thống CRM.