|
|
|
|
using AutoMapper;
|
|
|
|
|
using BookingWeb.DB.Model;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
|
|
|
|
namespace BookingWeb.Models
|
|
|
|
|
{
|
|
|
|
|
public class OpCtnOrderEditViewModel
|
|
|
|
|
{
|
|
|
|
|
public string CTN_ID { get; set; }
|
|
|
|
|
//public string ORDNO { get; set; }
|
|
|
|
|
public string CTNALL { get; set; }
|
|
|
|
|
public int? CTNNUM { get; set; }
|
|
|
|
|
//public int? TEU { get; set; }
|
|
|
|
|
//public string CNTRNO { get; set; }
|
|
|
|
|
//public string SEALNO { get; set; }
|
|
|
|
|
//public int? PKGS { get; set; }
|
|
|
|
|
//public string KINDPKGS { get; set; }
|
|
|
|
|
//public decimal? KGS { get; set; }
|
|
|
|
|
//public decimal? CBM { get; set; }
|
|
|
|
|
//public decimal? TAREWEIGHT { get; set; }
|
|
|
|
|
//public string CTNSTATUS { get; set; }
|
|
|
|
|
//public string WEIGHTYPE { get; set; }
|
|
|
|
|
//public decimal? WEIGHKGS { get; set; }
|
|
|
|
|
//public string WEIGHATTN { get; set; }
|
|
|
|
|
//public string VGMCONNCOM { get; set; }
|
|
|
|
|
//public string WEIGHTEL { get; set; }
|
|
|
|
|
//public string WEIGHDATE { get; set; }
|
|
|
|
|
//public string VGMADDR { get; set; }
|
|
|
|
|
//public string VGMEMAIL { get; set; }
|
|
|
|
|
public string REMARK { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class OpCtnOrderEditViewModelExt
|
|
|
|
|
{
|
|
|
|
|
public static OpCtnOrderEditViewModel AsOrderEditViewModel(this OP_CTN model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<OpCtnOrderEditViewModel>(model);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static OP_CTN AsModel(this OpCtnOrderEditViewModel model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<OP_CTN>(model);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<OpCtnOrderEditViewModel> AsOrderEditViewModelList(this IEnumerable<OP_CTN> model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<List<OpCtnOrderEditViewModel>>(model);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static List<OP_CTN> AsModelList(this IEnumerable<OpCtnOrderEditViewModel> model)
|
|
|
|
|
{
|
|
|
|
|
return Mapper.Map<List<OP_CTN>>(model);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|