using System; using System.Data; using System.Collections; using System.Collections.Generic; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.DingTalkSet { [JsonObject] public class CodeDingTalkSet : ModelObjectBillHead { #region private Fields private string _GID = Guid.NewGuid().ToString(); #endregion public CodeDingTalkSet() { TableName = "code_DingTalkSet"; } #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get; set; } [ModelDB] public string MODULENAME { get; set; } [ModelDB] public string AGENTID { get; set; } [ModelDB] public string APPKEY { get; set; } [ModelDB] public string APPSECRET { get; set; } [ModelDB] public string PROCID { get; set; } [ModelDB] public string PROCNAME { get; set; } [ModelDB] public string CALLBACK_AES_KEY { get; set; } [ModelDB] public string CALBACK_TOKEN { get; set; } [ModelDB] public string APITOKEN { get; set; } [ModelDB] public bool ISENABLE { get; set; } #endregion } [JsonObject] public class CodeDingTalkSetDetail : ModelObjectBillBody { #region 私有成员 private string _gid;//主键唯一值 private string _TEMPLATEID;//费用模板GID(主表) private string _FIELDNAME = ""; private int _XP;// private int _YP;// private string _FIXSTR = ""; #endregion public CodeDingTalkSetDetail() { TableName = "code_DingTalkSet_Detail"; } #region 读写属性 /// /// 主键唯一值 /// public string GID { get { return _gid; } set { _gid = value; } } /// /// 费用模板GID(主表) /// public string MODULEID { get { return _TEMPLATEID; } set { _TEMPLATEID = value; } } [ModelDB] public string TABLETYPE { get; set; } [ModelDB] public string DFIELDNAME { get; set; } [ModelDB] public string DDFIELDNAME { get; set; } [ModelDB] public string FIELDNAME { get; set; } [ModelDB] public string DEFAULTVALUE { get; set; } #endregion override public string GetBillNoFieldName() { return "MODULEID"; } } }