C#考勤管理系统报告
四、 系统界面和主要源代码
1. 员工打卡界面:
主要代码:
//根据用户是否存在执行不同的操作
if (empName == "")
{
MessageBox.Show("对不起,该员工号不存在!请重新输入!", "系统提示"); }
else
{
//如果用户存在,查看今天有没有签退记录
commandText = string.Format("select count(*) from T_Record where EID='{0}' and type=2 and year(RecordTime)=year(getdate()) and