コード例 #1
0
        public PartialViewResult _Mailbox(MaxIdForm MaxId)
        {
            int EmployeeId = SessionUser.GetUser().Id;
            IEnumerable <MailboxForm> form = MessageService.GetResponsesToEmployeeWithoutSome(EmployeeId, MaxId.Max_id).Select(message => new MailboxForm(message, EmployeeId));

            return(PartialView(form));
        }
コード例 #2
0
 public PartialViewResult _MessagesTask(MaxIdForm form, int TaskId)
 {
     if (form.Max_id == -1)
     {
         return(_Messages(MessageService.GetTaskMessages(TaskId)));
     }
     else
     {
         return(_Messages(MessageService.GetTaskMessagesWithoutSome(TaskId, form.Max_id)));
     }
 }
コード例 #3
0
 public PartialViewResult _MessagesProject(MaxIdForm form, int ProjectId)
 {
     if (form.Max_id == -1)
     {
         return(_Messages(MessageService.GetProjectMessages(ProjectId)));
     }
     else
     {
         return(_Messages(MessageService.GetProjectMessagesWithoutSome(ProjectId, form.Max_id)));
     }
 }
コード例 #4
0
 public PartialViewResult _MessagesEmployee(MaxIdForm form, int EmployeeId)
 {
     if (form.Max_id == -1)
     {
         return(_Messages(MessageService.GetMyDiscussionWithEmployee(SessionUser.GetUser().Id, EmployeeId)));
     }
     else
     {
         return(_Messages(MessageService.GetMyDiscussionWithEmployeeWithoutSome(SessionUser.GetUser().Id, EmployeeId, form.Max_id)));
     }
 }