开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1227|回复: 0
收起左侧

[求助] C#部分方法源码 求改易语言

[复制链接]

结帖率:94% (245/260)
发表于 2015-3-3 10:33:38 | 显示全部楼层 |阅读模式   浙江省温州市

发卡
======================================================================================================================================================
  private void FaKa()
{
    try
    {
        this.Log("读取表格信息...");
        List<User> employeeList = this.GetEmployeeList();
        if (employeeList != null)
        {
            IUserDal userDal = new ManualUserDal(employeeList);
            UserEOList list2 = new UserEOList(userDal, 2);
            this.Log("正在上传离职人员信息...");
            list2.XiaoKa();
            string msg = string.Format("待离职总数:{0}条。离职成功数:{1}条。失败数:{2}条。", list2.NeedCancelCount, list2.CanceledCount, list2.NeedCancelCount - list2.CanceledCount);
            list2 = new UserEOList(userDal, 2);
            this.Log("正在上传在职人员信息...");
            this.timerClose = new Timer(new TimerCallback(this.timerCall), this, 0, 0x3e8);
            list2.FaKa();
            this.ErrorUsers = list2.ErrorUsers;
            msg = msg + string.Format("在职人员信息总数:{0}条。待上传总数:{1}条。成功数:{2}条。失败数:{3}条。", new object[] { list2.sunfaka, list2.NeedSendCount, list2.SendedCount, list2.NeedSendCount - list2.SendedCount });
            this.Result(msg);
        }
        base.Invoke(new Action(this.EnableControl));
        MessageBox.Show("上传完毕。");
    }
    catch (Exception exception)
    {
        this.Log(exception.Message);
        base.Invoke(new Action(this.EnableControl));
        MessageBox.Show(exception.Message);
    }
}


======================================================================================================================================================
刷卡源码
======================================================================================================================================================
private void ShuaKa()
{
    try
    {
        this.Log("读取表格信息...");
        List<AttendanceRecord> clockInList = this.GetClockInList();
        if (clockInList != null)
        {
            IAttendanceRecordDal attendanceRecordDal = new ManualAttendanceRecordDal(clockInList);
            AttendanceRecordEOList list2 = new AttendanceRecordEOList(attendanceRecordDal, 2);
            this.Log("正在上传考勤信息...");
            this.timerClose = new Timer(new TimerCallback(this.timerCallshuaka), this, 0, 0x3e8);
            list2.Upload();
            this.Result(string.Format("在职人员考勤信息总数:{0}条。待上传总数:{1}条。成功:{2}条。失败:{3}条。", new object[] { list2.sunshuaka, list2.NeedShuaKaCount, list2.ShuaKaedCount, list2.NeedShuaKaCount - list2.ShuaKaedCount }));
        }
        base.Invoke(new Action(this.EnableControl));
        MessageBox.Show("上传完毕。");
    }
    catch (Exception exception)
    {
        this.Log(exception.Message);
        base.Invoke(new Action(this.EnableControl));
        MessageBox.Show(exception.Message);
    }
}

======================================================================================================================================================

private void LiZhi()
{
    List<User> idCard = this.GetIdCard();
    if (idCard != null)
    {
        IUserDal userDal = new ManualUserDal(idCard);
        UserEOList list2 = new UserEOList(userDal, 2);
        this.Log("正在上传离职人员信息...");
        this.timerClose = new Timer(new TimerCallback(this.timerCall), this, 0, 0x3e8);
        list2.LiZhi();
        string msg = string.Format("待离职总数:{0}条。离职成功数:{1}条。失败数:{2}条。", idCard.Count, list2.CanceledCount, idCard.Count - list2.CanceledCount);
        this.Result(msg);
    }
    base.Invoke(new Action(this.EnableControl));
    MessageBox.Show("离职完毕。");
}
======================================================================================================================================================

C#源码 求改易语言


  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表