You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB
C#

using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using SlnMesnac.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlnMesnac.WPF.ViewModel
{
public class EmployeeLoginViewModel : ViewModelBase
{
private readonly ILogger<EmployeeLoginViewModel> _logger;
public EmployeeLoginViewModel()
{
CheckInCommand = new RelayCommand(CheckIn);
}
/// <summary>
/// 获取标签信息
/// </summary>
private void GetTagInfo()
{
}
#region 事件定义
/// <summary>
/// 上班打卡
/// </summary>
public RelayCommand CheckInCommand { get; set; }
/// <summary>
/// 下班打卡
/// </summary>
public RelayCommand CheckOutCommand { get; set; }
#endregion
public void CheckIn()
{
var str = "";
var hid = App.ServiceProvider.GetService<HIDMode>();
hid.ConnectRfidHid();
}
}
}