示例#1
0
        public static List <LocationHistory.Work.WorkTicketHistorySH> ToDbModelList(this List <WorkTicketHistorySH> tList)
        {
            if (tList == null)
            {
                return(null);
            }
            List <LocationHistory.Work.WorkTicketHistorySH> dLsit = new List <LocationHistory.Work.WorkTicketHistorySH>();

            foreach (WorkTicketHistorySH ticket in tList)
            {
                LocationHistory.Work.WorkTicketHistorySH entity = ticket.ToDbModel();
                dLsit.Add(entity);
            }
            return(dLsit);
        }
示例#2
0
        public static WorkTicketHistorySH ToTModel(this LocationHistory.Work.WorkTicketHistorySH item)
        {
            if (item == null)
            {
                return(null);
            }
            WorkTicketHistorySH ticket = new WorkTicketHistorySH();

            ticket.id         = item.Abutment_Id;
            ticket.fromOrder  = item.fromOrder;
            ticket.ticketCode = item.ticketCode;
            ticket.type       = item.type;
            ticket.state      = item.state;
            ticket.createTime = item.createTime.ToString();
            ticket.startTime  = item.startTime.ToString();
            ticket.endTime    = item.endTime.ToString();
            ticket.detail     = item.detail;
            ticket.ticketName = item.ticketName;
            return(ticket);
        }