using AutoMapper; using DSWeb.Areas.MvcShipping.DB; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DSWeb.Areas.MvcShipping.Models.MsOpSeaeRunBill { public class RunBillListViewModel { public string GID { get; set; } public string CUSTOMERNAME { get; set; } public string CHIEF { get; set; } public string TEL { get; set; } public string ADDR { get; set; } public string REASON { get; set; } public string USERID { get; set; } public string USERNAME { get; set; } public string RUNTIME { get; set; } public string CREATETIME { get; set; } public string COMPLETETIME { get; set; } public string CREATEUSERNAME { get; set; } public string STATUS { get; set; } public string REMARK { get; set; } public string BillNO { get; set; } public string TimeSpan { get; set; } } public static class RunBillListViewModelExt { public static RunBillListViewModel AsListViewModel(this OpSeaeRunBill model) { return Mapper.Map(model); } public static List AsListViewModelList(this IEnumerable model) { return Mapper.Map, List>(model); } } }