using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HRManagerSystem.Bll
{
    class FuLi
    {
        DataDataContext ddt = new DataDataContext();
        /// <summary>
        /// 刷新方法
        /// </summary>
        /// <param name="dg"></param>
        public void Reflush(DataGridView dg)
        {
            var result = ddt.T_FuLi.Join(ddt.T_StaffRecords, id => id.Staff_ID, staid => staid.Staff_ID, (id1, staid1) => new { id1.FL_ID, id1.FL_Cause, id1.FL_Time, id1.FL_Money, staid1.Staff_Name }).AsQueryable();
            dg.DataSource = result;
        }
    }
}
