NewRow[1] = "没有排班";
                        _Result.Rows.Add(NewRow);
                    }
                }

                this.dataGridView1.AutoGenerateColumns = false;
                this.dataGridView1.DataSource = _Result;
3.5.2    月考勤报表

图13 会员付款管理
    根据部门、员工姓名、年、月组合查询统计生成员工月考勤报表的具体业务逻辑实现如下所示:
               string UserName = this.comboBox2.SelectedValue.ToString();
                DateTime Begin = Convert.ToDateTime(String.Format("{0}-{1}-1 0:00:00", this.comboBox3.Text, this.comboBox4.Text));
                DateTime End = Convert.ToDateTime(String.Format("{0}-{1}-30 23:59:59", this.comboBox3.Text, this.comboBox4.Text));

                var WorkObject = _DbEntities.WorkOrder.Where(p => p.W_UserName == UserName && p.W_Time >= Begin && p.W_Time <= End).ToList();
                foreach (var temp in WorkObject)
                {
                    DataRow NewRow = _Result.NewRow();
                    NewRow[0] = String.Format("{0:yyyy-MM-dd}", temp.W_Time);
                    NewRow[1] = temp.W_Type;
                    _Result.Rows.Add(NewRow);
                }
                this.dataGridView1.AutoGenerateColumns = false;
                this.dataGridView1.DataSource = _Result;
3.5.3    登入统计
图14 登入统计
    员工登入统计的业务逻辑具体实现如下:
           DateTime Begin = Convert.ToDateTime(String.Format("{0}-{1}-1 0:00:00", this.comboBox3.Text, this.comboBox4.Text));
            DateTime End = Convert.ToDateTime(String.Format("{0}-{1}-30 23:59:59", this.comboBox3.Text, this.comboBox4.Text));
            this.dataGridView1.AutoGenerateColumns = false;
            this.dataGridView1.DataSource = _DbEntities.Sign.Where(p => p.S_Time >= Begin && p.S_Time <= End).ToList();
4    总结
上一篇:VB设备管理系统设计+需求分析+可行性分析
下一篇:C#校园爱心慈善屋交易网站的设计与实现+ER图+数据流图DFD

java的B2C型电子商务网站管理系统的设计

局域网管理系统的设计与实现

Android手机考勤系统设计

医疗公众号管理系统设计+源代码

Android药品公司管理系统的设计+源代码

jsp+mysql酒店管理系统的设计+源代码

船舶码头客流管理系统设计+源代码

浅谈动画短片《天降好运》中的剧本创作

适合宝妈开的实体店,适...

弹道修正弹实测弹道气象数据使用方法研究

淮安市老漂族心理与休闲体育现状的研究

紫陵阁

林业机械作业中的安全性问题【2230字】

小学《道德与法治》学习心得体会

人事管理系统开题报告

大学生就业方向与专业关系的研究

组态王文献综述