using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsCodeExcelImpFormat { [JsonObject] public class MsCodeExcelImpFormat : ModelObjectBillHead { #region 私有成员 private string _GID = Guid.NewGuid().ToString(); private string _FMNAME = ""; private string _REMARK= ""; private string _BSTYPE = ""; private string _CREATEUSER = ""; private string _CREATEUSERREF = ""; private string _CREATETIME = ""; private string _MODIFIEDUSER = ""; private string _MODIFIEDTIME = ""; private string _CORPID = String.Empty; #endregion #region 读写属性 [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string FMNAME { get { return _FMNAME; } set { _FMNAME = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _CORPID; } set { _CORPID = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } [ModelDB] public string BSTYPE { get { return _BSTYPE; } set { _BSTYPE = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } } public string CREATEUSERREF { get { return _CREATEUSERREF; } set { _CREATEUSERREF = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } } [ModelDB] public string MODIFIEDUSER { get { return _MODIFIEDUSER; } set { _MODIFIEDUSER = value; } } [ModelDB] public string MODIFIEDTIME { get { return _MODIFIEDTIME; } set { _MODIFIEDTIME = value; } } #endregion public MsCodeExcelImpFormat() { TableName = "code_excel_impformat"; } override public string GetBillNoFieldName() { return "GID"; } } [JsonObject] public class MsCodeExcelImpFormatDetail : ModelObjectBillBody { #region 私有成员 private string _gid;//主键唯一值 private string _LINKGID;//费用模板GID(主表) private string _FIELDNAME = ""; #endregion public MsCodeExcelImpFormatDetail() { TableName = "code_excel_impformat_detail"; } #region 读写属性 /// /// 主键唯一值 /// public string GID { get { return _gid; } set { _gid = value; } } /// /// 费用模板GID(主表) /// public string LINKGID { get { return _LINKGID; } set { _LINKGID = value; } } [ModelDB] public string FIELDNAME { get { return _FIELDNAME; } set { _FIELDNAME = value; } } public string TABLETYPE { get; set; } public string COLUMNNAME { get; set; } public string ISDEF { get; set; } public string FIELDTYPE { get; set; } public string DEFVALUE { get; set; } public string FEENAME { get; set; } public string REMARKS { get; set; } #endregion override public string GetBillNoFieldName() { return "LINKGID"; } } [JsonObject] public class MsCodeExcelImpFormatFee : ModelObjectBillBody { #region 私有成员 private string _gid;//主键唯一值 private string _LINKGID;//费用模板GID(主表) #endregion public MsCodeExcelImpFormatFee() { TableName = "code_excel_impformat_fee"; } #region 读写属性 /// /// 主键唯一值 /// public string GID { get { return _gid; } set { _gid = value; } } /// /// 费用模板GID(主表) /// public string LINKGID { get { return _LINKGID; } set { _LINKGID = value; } } public string FEENAME { get; set; } public string FEEDESCRP { get; set; } public int FEETYPE { get; set; } public string REMARKS { get; set; } #endregion override public string GetBillNoFieldName() { return "LINKGID"; } } #region 参照部分 #endregion }