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.
DS7/DSWeb/Areas/MvcShipping/Models/MsOpSeaeRunBill/RunBillListViewModel.cs

42 lines
1.4 KiB
C#

3 years ago
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<RunBillListViewModel>(model);
}
public static List<RunBillListViewModel> AsListViewModelList(this IEnumerable<OpSeaeRunBill> model)
{
return Mapper.Map<IEnumerable<OpSeaeRunBill>, List<RunBillListViewModel>>(model);
}
}
}