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/RunBillEditViewModel.cs

49 lines
1.4 KiB
C#

2 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 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<RunBillEditViewModel>(model);
}
public static OpSeaeRunBill AsModel(this RunBillEditViewModel model)
{
return Mapper.Map<OpSeaeRunBill>(model);
}
public static OpSeaeRunBill AsModel(this RunBillEditViewModel model, OpSeaeRunBill dest)
{
return Mapper.Map(model, dest);
}
}
}