using System; using System.Data; using System.Collections; using System.Collections.Generic; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsCodeDuiTemplate { [JsonObject] public class CodeDuiTemplate : ModelObjectBillHead { #region 私有成员 private string _DM_ID =Guid.NewGuid().ToString();//业务编号 private string _NAME;// private string _REMARKS; private string _INPUTBY; private DateTime _INPUTDATE = DateTime.Now;//录入日期 #endregion public CodeDuiTemplate() { TableName = "code_dui_format"; } #region 读写属性 /// /// 主键唯一值 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string DM_ID { get { return _DM_ID; } set { _DM_ID = value; } } [ModelDB] public string NAME { get { return _NAME; } set { _NAME = value; } } /// /// 业务种类 /// [ModelDB] public string INPUTBY { get { return _INPUTBY; } set { _INPUTBY = value; } } /// [ModelDB] public DateTime INPUTDATE { get { return _INPUTDATE; } set { _INPUTDATE = value; } } /// /// /// 备注 /// [ModelDB] public string REMARKS { get { return _REMARKS; } set { _REMARKS = value; } } [ModelDB] public string ENAME { get; set; } #endregion } [JsonObject] public class CodeDuiTemplateFee : ModelObjectBillBody { #region private Fields private string _DM_ID = String.Empty; private decimal _feeType = 0; private string _feeTyperef = String.Empty; private string _feeName = String.Empty; private string _currency = "RMB"; private string _displayname = ""; private string _feeCode = ""; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string DM_ID { get { return _DM_ID; } set { _DM_ID = value; } } [ModelDB] public decimal FeeType { get { return _feeType; } set { _feeType = value; } } public string FeeTypeRef { get { return _feeTyperef; } set { _feeTyperef = value; } } [ModelDB] public string FeeName { get { return _feeName; } set { _feeName = value; } } [ModelDB] public string FeeCode { get { return _feeCode; } set { _feeCode = value; } } [ModelDB] public string Currency { get { return _currency; } set { _currency = value; } } [ModelDB] public string DisplayName { get { return _displayname; } set { _displayname = value; } } #endregion public CodeDuiTemplateFee() { TableName = "code_dui_format_fee"; } override public string GetBillNoFieldName() { return "DM_ID"; } } [JsonObject] public class CodeDuiTemplateSort : ModelObjectBillBody { #region private Fields private string _DM_ID = String.Empty; private decimal _sortType = 0; private decimal _sortNum = 0; private string _sortTypeRef = String.Empty; private string _fieldName = String.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string DM_ID { get { return _DM_ID; } set { _DM_ID = value; } } [ModelDB] public decimal SortType { get { return _sortType; } set { _sortType = value; } } public string SortTypeRef { get { return _sortTypeRef; } set { _sortTypeRef = value; } } [ModelDB] public decimal SortNum { get { return _sortNum; } set { _sortNum = value; } } [ModelDB] public string FieldName { get { return _fieldName; } set { _fieldName = value; } } #endregion public CodeDuiTemplateSort() { TableName = "code_dui_format_sort"; } override public string GetBillNoFieldName() { return "DM_ID"; } } [JsonObject] public class CodeDuiFeeName : ModelObjectBillBody { #region private Fields private string _fieldName = String.Empty; #endregion #region Public Properties [ModelDB] public string FieldName { get { return _fieldName; } set { _fieldName = value; } } #endregion } }