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