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.

142 lines
3.6 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Stock
{
/// <summary>
/// 门店入库单列表
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class StoreStorageInTicket
{
/// <summary>
/// 企业编号
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 单据ID
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
/// <summary>
/// 单据编号
/// </summary>
[JsonProperty(PropertyName = "no")]
public string No { get; set; }
/// <summary>
/// 门店ID
/// </summary>
[JsonProperty(PropertyName = "storeId")]
public string StoreId { get; set; }
/// <summary>
/// 门店编号
/// </summary>
[JsonProperty(PropertyName = "storeNo")]
public string StoreNo { get; set; }
/// <summary>
/// 门店名称
/// </summary>
[JsonProperty(PropertyName = "storeName")]
public string StoreName { get; set; }
/// <summary>
/// 入库类型
/// </summary>
[JsonProperty(PropertyName = "type")]
public int Type { get; set; }
/// <summary>
/// 入库类型名称
/// </summary>
[JsonProperty(PropertyName = "typeName")]
public string TypeName { get; set; }
/// <summary>
/// 仓库ID
/// </summary>
[JsonProperty(PropertyName = "storageId")]
public string StorageId { get; set; }
/// <summary>
/// 仓库名称
/// </summary>
[JsonProperty(PropertyName = "storageName")]
public string StorageName { get; set; }
/// <summary>
/// 备注说明
/// </summary>
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
/// <summary>
/// 单据状态
/// </summary>
[JsonProperty(PropertyName = "status")]
public int Status { get; set; }
/// <summary>
/// 单据状态转换
/// </summary>
[JsonIgnore]
public string StatusStr
{
get
{
string result = "未知";
switch (Status)
{
case 0:
result = "新建";
break;
case 1:
result = "驳回";
break;
case 2:
result = "审核通过";
break;
case 3:
result = "已作废";
break;
}
return result;
}
}
/// <summary>
/// 制单人
/// </summary>
[JsonProperty(PropertyName = "setMan")]
public string SetMan { get; set; }
/// <summary>
/// 制单日期
/// </summary>
[JsonProperty(PropertyName = "setDate")]
public string SetDate { get; set; }
/// <summary>
/// 审核人
/// </summary>
[JsonProperty(PropertyName = "checkMan")]
public string CheckMan { get; set; }
/// <summary>
/// 审核日期
/// </summary>
[JsonProperty(PropertyName = "checkDate")]
public string CheckDate { get; set; }
}
}