|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using Ys.Core.Common;
|
|
|
using FreeSql.DataAnnotations;
|
|
|
namespace djy.Paas.Model
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// GVm箱体数据
|
|
|
/// </summary>
|
|
|
public class tb_vgm_SendBoxInfo : DataBase
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
/// Vgm订单 Guid
|
|
|
/// </summary>
|
|
|
public Guid? VgmGid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 请求源类型 0 自身客户的客户 1 来源对接系统
|
|
|
/// </summary>
|
|
|
public int Rootin { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 序号
|
|
|
/// </summary>
|
|
|
public int Index { get; set; }
|
|
|
/// <summary>
|
|
|
/// 提交日志code
|
|
|
/// </summary>
|
|
|
public string LogsCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 主日志 用于存储返回数据状态等信息
|
|
|
/// </summary>
|
|
|
public bool IsMain { get; set; } = false;
|
|
|
/// <summary>
|
|
|
/// 箱子类型尺寸
|
|
|
/// </summary>
|
|
|
public string BoxType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 箱量
|
|
|
/// </summary>
|
|
|
public int BoxCount { get; set; }
|
|
|
/// <summary>
|
|
|
/// 箱号
|
|
|
/// </summary>
|
|
|
public string Code { get; set; }
|
|
|
/// <summary>
|
|
|
/// 封号
|
|
|
/// </summary>
|
|
|
public string SealCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 毛重
|
|
|
/// </summary>
|
|
|
public double Weigth { get; set; }
|
|
|
/// <summary>
|
|
|
/// 皮重
|
|
|
/// </summary>
|
|
|
public double WeigthTare { get; set; }
|
|
|
/// <summary>
|
|
|
/// 称重重量 VGM
|
|
|
/// </summary>
|
|
|
public double WeigthTotal{ get; set; }
|
|
|
/// <summary>
|
|
|
/// 件数
|
|
|
/// </summary>
|
|
|
public int Pkgs { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 尺寸 立方米
|
|
|
/// </summary>
|
|
|
[Column(Scale =4)]
|
|
|
public decimal Cbm { get; set; }
|
|
|
/// <summary>
|
|
|
/// 称重方式
|
|
|
/// </summary>
|
|
|
public string WeigthType { get; set; }
|
|
|
|
|
|
private string _WeigthTypeName = "";
|
|
|
/// <summary>
|
|
|
/// 请求返回URl多个 ,间隔
|
|
|
/// </summary>
|
|
|
[Column(StringLength =2000)]
|
|
|
public string RetrunUrl { get; set; }
|
|
|
/// <summary>
|
|
|
/// 称重方名称
|
|
|
/// </summary>
|
|
|
[Column(IsIgnore =true)]
|
|
|
public string WeigthTypeName { set { _WeigthTypeName = value; }
|
|
|
get {
|
|
|
return _WeigthTypeName.IsNull() ? GetWegthType(WeigthType, 1):_WeigthTypeName;
|
|
|
} }
|
|
|
/// <summary>
|
|
|
/// 请求返回的数据
|
|
|
/// </summary>
|
|
|
[Column(StringLength =500)]
|
|
|
public string Gethtml { get; set; }
|
|
|
/// <summary>
|
|
|
/// 称重方式转换
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="type">默认1 1 key to name, 2 key to code</param>
|
|
|
/// <returns></returns>
|
|
|
public string GetWegthType(string obj, int type=1) {
|
|
|
var str = "";
|
|
|
var list =new Dictionary<string, string>();
|
|
|
list.Add("SM2", "累加(SM2)");
|
|
|
list.Add("SM1", "称重(SM1)");
|
|
|
try {
|
|
|
str = type == 1?list[obj] : list.Where(w => w.Value == obj).First().Key;
|
|
|
}
|
|
|
catch { }
|
|
|
|
|
|
return str;
|
|
|
}
|
|
|
|
|
|
#region
|
|
|
/// <summary>
|
|
|
/// 提单编号
|
|
|
/// </summary>
|
|
|
[Column(IsIgnore =true)]
|
|
|
public string SendOrderCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 客户名称
|
|
|
/// </summary>
|
|
|
[Column(IsIgnore = true)]
|
|
|
public string CustomerName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 订舱代理名称
|
|
|
/// </summary>
|
|
|
[Column(IsIgnore = true)]
|
|
|
public string AgentName { get; set; }
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
}
|
|
|
}
|