public LoadCheck(List <Dept> depts, attContent dc, GetDeptNameDelgate _GetDeptName) { InitializeComponent(); Depts = depts; Dc = dc; GetDeptName = _GetDeptName; }
public EmpCheckMonth(USERINFO emp, AttControlClass attControl, GetDeptNameDelgate GetDeptName) { Emp = emp; DeptName = GetDeptName((short)emp.DEFAULTDEPTID); AttControl = attControl; GetDayType = AttControl.GetDayType; EmpNote = AttControl.GetEmpNoteInfoByByte(emp.Notes); if (EmpNote == null) { EmpNote = new EmpNoteInfo(); EmpNote.EmpPyName = PinyinHelper.PinyinString(emp.Name); EmpNote.IsHaveNote = true; AttControl.UpDateEmpNoteInfo(emp.USERID, EmpNote); } }