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/CommMng/Models/CodeGoodsModel.cs

217 lines
4.9 KiB
C#

3 years ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.CommMng.Models
{
[JsonObject]
public class CodeGoodsModel
{
#region Public Properties
private string _gid = "";
/// <summary>
/// 货物代码
/// </summary>
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _goodcode = "";
/// <summary>
/// 商品编码
/// </summary>
public string GOODCODE
{
get { return _goodcode; }
set { _goodcode = value; }
}
private string _goodname = "";
/// <summary>
/// 商品名称
/// </summary>
public string GOODNAME
{
get { return _goodname; }
set { _goodname = value; }
}
private string _descrip = "";
/// <summary>
/// 商品描述
/// </summary>
public string DESCRIP
{
get { return _descrip; }
set { _descrip = value; }
}
private decimal _arrate = 0;
/// <summary>
/// ARRATE
/// </summary>
public decimal ARRATE
{
get { return _arrate; }
set { _arrate = value; }
}
private decimal _aprate = 0;
/// <summary>
/// APRATE
/// </summary>
public decimal APRATE
{
get { return _aprate; }
set { _aprate = value; }
}
private decimal _aroutrate = 0;
/// <summary>
/// AROUTRATE
/// </summary>
public decimal AROUTRATE
{
get { return _aroutrate; }
set { _aroutrate = value; }
}
private decimal _apoutrate = 0;
/// <summary>
/// APOUTRATE
/// </summary>
public decimal APOUTRATE
{
get { return _apoutrate; }
set { _apoutrate = value; }
}
private bool _isstop = false;
/// <summary>
/// ISSTOP
/// </summary>
public bool ISSTOP
{
get { return _isstop; }
set { _isstop = value; }
}
private string _CodeAndName = "";
/// <summary>
/// CODE + 名称
/// </summary>
public string CodeAndName
{
get { return _CodeAndName; }
set { _CodeAndName = value; }
}
private string _GoodsTypeGID = "";
/// <summary>
/// 所属类型GID
/// </summary>
public string GoodsTypeGID
{
get { return _GoodsTypeGID; }
set { _GoodsTypeGID = value; }
}
private string _GoodsTypeName = "";
/// <summary>
/// 所属类型名称
/// </summary>
public string GoodsTypeName
{
get { return _GoodsTypeName; }
set { _GoodsTypeName = value; }
}
2 years ago
public string NCM { get; set; }
3 years ago
#endregion
}
[JsonObject]
public class CodeGoodsDetailModel : ModelObjectBillHead
{
#region 读写属性
private string _gid = "";
/// <summary>
/// 惟一编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _linkgid = "";
/// <summary>
/// 品名GID
/// </summary>
[ModelDB]
public string LINKGID
{
get { return _linkgid; }
set { _linkgid = value; }
}
private string _goodsdetailname = "";
/// <summary>
/// 品牌名称
/// </summary>
[ModelDB]
public string GOODSDETAILNAME
{
get { return _goodsdetailname; }
set { _goodsdetailname = value; }
}
private string _remark = "";
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private decimal _goodsdetailpkgs = 0;
/// <summary>
/// 规格件数
/// </summary>
[ModelDB]
public decimal GOODSDETAILPKGS
{
get { return _goodsdetailpkgs; }
set { _goodsdetailpkgs = value; }
}
private string _GOODNAME = "";
/// <summary>
/// 品名
/// </summary>
public string GOODNAME
{
get { return _GOODNAME; }
set { _GOODNAME = value; }
}
#endregion
public CodeGoodsDetailModel()
{
TableName = "code_goods_detail";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
//
}