示例#1
0
        public string GetEntityName(int entityTypeId)
        {
            var tr = TicketEntities.FirstOrDefault(x => x.EntityTypeId == entityTypeId);

            if (tr != null)
            {
                return(tr.EntityName);
            }
            return("");
        }
示例#2
0
        public string GetEntityFieldValue(string fieldName)
        {
            var tr = TicketEntities.FirstOrDefault(x => x.HasCustomData(fieldName));

            return(tr != null?tr.GetCustomData(fieldName) : "");
        }
示例#3
0
        public string GetEntityFieldValue(int entityTypeId, string fieldName)
        {
            var tr = TicketEntities.FirstOrDefault(x => x.EntityTypeId == entityTypeId);

            return(tr != null?tr.GetCustomData(fieldName) : "");
        }