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 RunBillEditViewModel { public string GID { get; set; } public string CUSTOMERNAME { get; set; } public string CARRIER { get; set; } public string FORWARDER { 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 STATUS { get; set; } public string REMARK { get; set; } public string BillNO { get; set; } public bool SFDJ{ get; set; } } public static class RunBillEditViewModelExt { public static RunBillEditViewModel AsEditViewModel(this OpSeaeRunBill model) { return Mapper.Map(model); } public static OpSeaeRunBill AsModel(this RunBillEditViewModel model) { return Mapper.Map(model); } public static OpSeaeRunBill AsModel(this RunBillEditViewModel model, OpSeaeRunBill dest) { return Mapper.Map(model, dest); } } }