public List <LeaveInService> SearchLeaveInfoUnRead(int Id) { List <LeaveInService> l = new List <LeaveInService>(); List <LeaveMessage> lm = leop.SendLeaveInfoUnRead(Id); foreach (LeaveMessage lo in lm) { LeaveInService ll = new LeaveInService(); ll.LeaveId = (long)lo.LeaveId; ll.UserId = (long)lo.UserId; ll.SendUserId = (long)lo.SendUserId; ll.ExamineOrExamineresult = (int)lo.ExamineOrExamineResult; l.Add(ll); } return(l); }
public bool SaveInLeaveInfoInService(LeaveInService log) { leop.InsertIntoLeaveEntity(log); return true; }
public bool SaveInLeaveInfoInService(LeaveInService log) { leop.InsertIntoLeaveEntity(log); return(true); }
public List<LeaveInService> SearchLeaveInfoUnRead(int Id) { List<LeaveInService> l = new List<LeaveInService>(); List<LeaveMessage> lm = leop.SendLeaveInfoUnRead(Id); foreach (LeaveMessage lo in lm) { LeaveInService ll = new LeaveInService(); ll.LeaveId = (long)lo.LeaveId; ll.UserId = (long)lo.UserId; ll.SendUserId = (long)lo.SendUserId; ll.ExamineOrExamineresult = (int)lo.ExamineOrExamineResult; l.Add(ll); } return l; }