- [C#] Hướng dẫn convert HTML code sang PDF File trên NetCore 7 Winform
- [C#] Hướng dẫn viết ứng dụng chat với Gemini AI Google Winform
- Hướng dẫn khóa file bằng nhiều process id, không cho xóa tập tin
- Hướng dẫn cách tạo Product Id cho ứng dụng phần mềm XXXXX-XXXXX-XXXXX-XXXXX
- [SQLSERVER] Hướng dẫn tạo script sql từ ứng dụng Sqlserver management Studio
- [C#] Hướng dẫn sử dụng thư viện AutoITx lấy id và password Ultraviewer trên winform
- [VB.NET] Hướng dẫn lấy thông tin tài khoản đăng nhập windows và khởi động lại ứng dụng ở chế độ Administrator
- [C#] Sử dụng thư viện Polly gửi lại request api khi request bị lỗi hay rớt mạng
- [DEVEXPRESS] Chia sẻ source code tạo báo cáo report in tem nhãn label trên C# winform
- [DEVEXPRESS] Hướng dẫn vẽ biểu đồ Bar Chart trên Winform
- [C#] Tạo form đăng nhập và đăng ký với hiệu ứng Sliding Animation Effect
- [C#] Hướng dẫn tạo thanh toán đơn hàng qua mã vạch VietQR sử dụng API PayOS hoàn toàn miễn phí
- [C#] Hướng dẫn ghi log ra RichTextBox giống Console trên Winform sử dụng thư viện Serilog
- [C#] Hướng dẫn cách tạo mã QR Code trên file Excel
- [VB.NET] Gởi tin nhắn và file đính kèm qua ứng dụng gởi tin nhắn Whats App
- [C#] Viết ứng dụng Auto Fill list Textbox from clipboard Winform
- [TOOL] Chia sẻ phần mềm thay đổi thông tin cấu hình máy tính
- [C#] Hướng dẫn Export dữ liệu ra file Microsoft Word Template
- [C#] Chia sẻ source code tool kiểm tra domain website
- [C#] Hướng dẫn tạo file PDF sử dụng thư viện QuestPDF
[DEVEXPRESS] Hướng dẫn sử dụng Schedule Control hiển thị giờ làm việc nhân viên VB.NET
Bài viết hôm nay, mình sẽ hướng dẫn các bạn sử dụng công cụ Schedule Control trong Devexpress bằng ngôn ngữ VB.NET, để hiển thị giờ ra vào làm việc của nhân viên.
Chức năng này có thể giúp bạn phần nào hiển thị cho phần mềm nhân sự có thể xem theo tháng làm việc của từng nhân viên trong công ty của mình.
Giao diện demo của ứng dụng:
Source code VB.NET
Imports System.ComponentModel
Imports System.Text
Imports DevExpress.XtraScheduler
Partial Public Class Form1
Shared Sub New()
DevExpress.UserSkins.BonusSkins.Register()
DevExpress.Skins.SkinManager.EnableFormSkins()
End Sub
Public Sub New()
InitializeComponent()
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
SchedulerControl2.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Month
SchedulerControl2.OptionsCustomization.AllowInplaceEditor = DevExpress.XtraScheduler.UsedAppointmentType.None
' đặt load đầu tháng
SchedulerControl2.Start = New DateTime(2017, 6, 1)
' Hiển thị lịch làm việc thời gian nhân viên
For i As Integer = 0 To 29
Dim app As Appointment = SchedulerStorage1.CreateAppointment(AppointmentType.Normal)
Dim start As New DateTime(2017, 6, 1 + i, 7, 30, 0)
Dim [end] As New DateTime(2017, 6, 1 + i, 11, 30, 0)
app.Start = start
app.[End] = [end]
app.Description = "Ca sáng"
'SchedulerStorage1.Appointments.Labels.Clear()
app.LabelKey = 3
app.StatusKey = 1
app.AllDay = False
SchedulerStorage1.Appointments.Add(app)
' thời điểm 2
Dim app2 As Appointment = SchedulerStorage1.CreateAppointment(AppointmentType.Normal)
Dim start2 As New DateTime(2017, 6, 1 + i, 12, 30, 0)
Dim [end2] As New DateTime(2017, 6, 1 + i, 16, 30, 0)
app2.Start = start2
app2.[End] = [end2]
app2.Description = "Ca chiều"
app2.LabelKey = 1
'SchedulerStorage1.Appointments.Labels.Clear()
'app2.AllDay = False
'SchedulerStorage1.Appointments.Labels.Add(System.Drawing.Color.FromArgb((CInt((CByte(255)))), (CInt((CByte(194)))), (CInt((CByte(190))))), "Important", "&Important")
SchedulerStorage1.Appointments.Add(app2)
Next
End Sub
End Class
Và dưới đây là bảng màu để cho các bạn set color label
CHÚC CÁC BẠN THÀNH CÔNG!