You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using AutoMapper;
|
|
|
|
|
using BookingJieFeng.DB.Model;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
|
|
|
|
namespace BookingJieFeng.Models
|
|
|
|
|
{
|
|
|
|
|
public class OpLogListViewModel
|
|
|
|
|
{
|
|
|
|
|
public int LogId { get; set; }
|
|
|
|
|
public string OpTime { get; set; }
|
|
|
|
|
public string OpUserName { get; set; }
|
|
|
|
|
public string OpCompanyName { get; set; }
|
|
|
|
|
public string Module { get; set; }
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
public string BillNO { get; set; }
|
|
|
|
|
public string MBLNO { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class OpLogListViewModelExt
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public static OpLogListViewModel AsListViewModel(this OP_LOG src)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<OpLogListViewModel>(src);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<OpLogListViewModel> AsListViewModelList(this IEnumerable<OP_LOG> src)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<List<OpLogListViewModel>>(src);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|