|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Models.MsCodeGoods
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class CodeGoods : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region 私有成员
|
|
|
|
|
private string _GID = Guid.NewGuid().ToString();//业务编号
|
|
|
|
|
private string _GOODCODE;//
|
|
|
|
|
private string _GOODNAME;//
|
|
|
|
|
private string _GOODNO;//料号
|
|
|
|
|
private string _DESCRIP;
|
|
|
|
|
private decimal _ARRATE;
|
|
|
|
|
private decimal _APRATE;
|
|
|
|
|
private decimal _AROUTRATE;
|
|
|
|
|
private decimal _APOUTRATE;
|
|
|
|
|
private string _GoodsTypeGID;
|
|
|
|
|
private string _GoodsType;
|
|
|
|
|
private string _ISSTOP;
|
|
|
|
|
private string _CORPID;
|
|
|
|
|
private string _CREATEUSER;
|
|
|
|
|
private string _CREATEUSERREF;
|
|
|
|
|
private DateTime _CREATETIME = DateTime.Now;//录入日期
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public CodeGoods()
|
|
|
|
|
{
|
|
|
|
|
TableName = "code_goods";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 读写属性
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键唯一值
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _GID; }
|
|
|
|
|
set { _GID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODCODE
|
|
|
|
|
{
|
|
|
|
|
get { return _GOODCODE; }
|
|
|
|
|
set { _GOODCODE = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _GOODNAME; }
|
|
|
|
|
set { _GOODNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODNO
|
|
|
|
|
{
|
|
|
|
|
get { return _GOODNO; }
|
|
|
|
|
set { _GOODNO = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DESCRIP
|
|
|
|
|
{
|
|
|
|
|
get { return _DESCRIP; }
|
|
|
|
|
set { _DESCRIP = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal ARRATE
|
|
|
|
|
{
|
|
|
|
|
get { return _ARRATE; }
|
|
|
|
|
set { _ARRATE = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal APRATE
|
|
|
|
|
{
|
|
|
|
|
get { return _APRATE; }
|
|
|
|
|
set { _APRATE = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal AROUTRATE
|
|
|
|
|
{
|
|
|
|
|
get { return _AROUTRATE; }
|
|
|
|
|
set { _AROUTRATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal APOUTRATE
|
|
|
|
|
{
|
|
|
|
|
get { return _APOUTRATE; }
|
|
|
|
|
set { _APOUTRATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODSTYPEGID
|
|
|
|
|
{
|
|
|
|
|
get { return _GoodsTypeGID; }
|
|
|
|
|
set { _GoodsTypeGID = value; }
|
|
|
|
|
}
|
|
|
|
|
public string GOODSTYPE
|
|
|
|
|
{
|
|
|
|
|
get { return _GoodsType; }
|
|
|
|
|
set { _GoodsType = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ISSTOP
|
|
|
|
|
{
|
|
|
|
|
get { return _ISSTOP; }
|
|
|
|
|
set { _ISSTOP = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CREATEUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATEUSER; }
|
|
|
|
|
set { _CREATEUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
public string CREATEUSERREF
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATEUSERREF; }
|
|
|
|
|
set { _CREATEUSERREF = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CORPID
|
|
|
|
|
{
|
|
|
|
|
get { return _CORPID; }
|
|
|
|
|
set { _CORPID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public DateTime CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } }
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class CodeGoodsDetail : ModelObjectBillBody
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private string _GID = String.Empty;
|
|
|
|
|
private string _LINKGID = String.Empty;
|
|
|
|
|
private string _GOODSDETAILNAME = String.Empty;
|
|
|
|
|
private string _REMARK = String.Empty;
|
|
|
|
|
private decimal _GOODSDETAILPKGS;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Public Properties
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _GID; }
|
|
|
|
|
set { _GID = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string LINKGID
|
|
|
|
|
{
|
|
|
|
|
get { return _LINKGID; }
|
|
|
|
|
set { _LINKGID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODSDETAILNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _GOODSDETAILNAME; }
|
|
|
|
|
set { _GOODSDETAILNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal GOODSDETAILPKGS
|
|
|
|
|
{
|
|
|
|
|
get { return _GOODSDETAILPKGS; }
|
|
|
|
|
set { _GOODSDETAILPKGS = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string REMARK
|
|
|
|
|
{
|
|
|
|
|
get { return _REMARK; }
|
|
|
|
|
set { _REMARK = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public CodeGoodsDetail()
|
|
|
|
|
{
|
|
|
|
|
TableName = "code_goods_detail";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "LINKGID";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class CodeGoodsType : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private string _GID = String.Empty;
|
|
|
|
|
private string _GoodsTypeCode = String.Empty;
|
|
|
|
|
private string _GoodsTypeName = String.Empty;
|
|
|
|
|
private string _Description = String.Empty;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Public Properties
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _GID; }
|
|
|
|
|
set { _GID = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODSTYPECODE
|
|
|
|
|
{
|
|
|
|
|
get { return _GoodsTypeCode; }
|
|
|
|
|
set { _GoodsTypeCode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string GOODSTYPENAME
|
|
|
|
|
{
|
|
|
|
|
get { return _GoodsTypeName; }
|
|
|
|
|
set { _GoodsTypeName = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DESCRIPTION
|
|
|
|
|
{
|
|
|
|
|
get { return _Description; }
|
|
|
|
|
set { _Description = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GOODSTYPECODENAME {get;set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public CodeGoodsType()
|
|
|
|
|
{
|
|
|
|
|
TableName = "code_goodsType";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|