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/Dispatch/Models/RespGetOpStatus.cs

31 lines
848 B
C#

2 years ago
using AutoMapper;
using DSWeb.Areas.Dispatch.DB;
using DSWeb.MvcShipping.Models.MsOpSeae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DSWeb.Areas.Dispatch.Models
{
public class RespGetOpStatus : RespCommon
{
public List<OpStatusViewModel> Data { get; set; }
}
public class OpStatusViewModel
{
public string STATUS { get; set; }
public string COMPTIME { get; set; }
public string COMPTIME_DATE { get; set; }
public string COMPTIME_TIME { get; set; }
}
public static class OpStatusViewModelExt
{
public static List<OpStatusViewModel> AsOpStatusViewModelList(this IEnumerable<OpStatusInfo> model)
{
return Mapper.Map<IEnumerable<OpStatusInfo>, List<OpStatusViewModel>>(model);
}
}
}