Пример #1
0
 public string GetClientStatusNameBySatisfyStatus(int status, int TicketID)
 {
     try
     {
         FeedBackMessagesEntity tmpEntity = _listFbms.Find(r => r.TicketID == TicketID && r.WaitClientFeedback > 0);
         if (tmpEntity != null)
         {
             return("<span style='color:red;'>Wait Feedback</span>");
         }
         if (status == (int)TicketsState.Ready_For_Review)
         {
             return("<span style='color:red;'>Ready For Review</span>");
         }
         if (UnderDevelopingStatus().Contains(status))
         {
             return("In Progress");
         }
         else if (UnderEstimationStatus().Contains(status))
         {
             return("Estimating");
         }
         return(Enum.GetName(typeof(TicketsState), status).Replace('_', ' '));
     }
     catch (Exception ex)
     {
         WebLogAgent.Write("Excepted Exception in FeedBackMessageHandler.GetClientStatusNameBySatisfyStatus(" + status.ToString() + "," + TicketID.ToString() + ")\n\r" + ex.Message);
         return("Expected.");
     }
 }
Пример #2
0
        public string GetDashboardStatus(object status, int ticketID)
        {
            FeedBackMessagesEntity tmpEntity = _listFbms.Find(r => r.TicketID == ticketID && r.WaitPMFeedback > 0);

            if (tmpEntity != null)
            {
                return(tmpEntity.WaitPMFeedback > 0 ? "<span style='color:red;'>Wait PM Feedback</span>" : "<span style='color:red;'>Wait Client Feedback</span>");
            }
            return(status.ToString());
        }
Пример #3
0
        public string ShowAction(object ticketID)
        {
            FeedBackMessagesEntity tmpEntity = _listFbms.Find(r => r.TicketID == (int)ticketID);

            if (tmpEntity == null)
            {
                return("");
            }
            return("class ='action'");
        }
Пример #4
0
        public string FeedBackMessage(object ticketID)
        {
            FeedBackMessagesEntity tmpEntity = _listFbms.Find(r => r.TicketID == (int)ticketID);

            if (tmpEntity != null)
            {
                return(string.Format("<a href=\"#\" onclick=\"OpenTicketDetail({0},'f')\" title=\"FeedBack\"><img src=\"/icons/ticket_status.gif\" alt=\"FeedBack\" /></a>"
                                     , tmpEntity.TicketID));
            }
            return("");
        }
Пример #5
0
        public string FeedBackMessage(object ticketID, RolesEnum role)
        {
            FeedBackMessagesEntity tmpEntity = _listFbms.Find(r => r.TicketID == (int)ticketID);

            if (tmpEntity != null)
            {
                if ((role == RolesEnum.PM && tmpEntity.WaitPMFeedback > 0) ||
                    (role == RolesEnum.CLIENT && tmpEntity.WaitClientFeedback > 0))
                {
                    int fid = role == RolesEnum.PM ? tmpEntity.WaitPMFeedback : tmpEntity.WaitClientFeedback;
                    return(string.Format("<a href=\"#\" onclick=\"OpenReplyFeedBackDialog({0},{1})\" id=\"feedback{1}\" title=\"Reply FeedBack\"><img src=\"/icons/25.gif\" alt=\"Reply Feedback\" /></a>"
                                         , fid, tmpEntity.TicketID));
                }
                else
                {
                    return(string.Format("<a href=\"#\" onclick=\"OpenTicketDetail({0},'f')\" title=\"Feedback\"><img src=\"/icons/ticket_status.gif\" alt=\"Feedback\" /></a>"
                                         , tmpEntity.TicketID));
                }
            }
            return("");
        }
Пример #6
0
 bool Framework.Core.Repository.IRepository <FeedBackMessagesEntity> .Update(FeedBackMessagesEntity entity)
 {
     throw new NotImplementedException();
 }