You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
4.4 KiB
C#
194 lines
4.4 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using HcUtility.Core;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace DSWeb.MvcShipping.Models.MsSysParamSet
|
|
{
|
|
|
|
[JsonObject]
|
|
public class SysParamSet : ModelObjectBillBody
|
|
{
|
|
#region 私有成员
|
|
private string _GID = Guid.NewGuid().ToString();//业务编号
|
|
private string _PARAMNAME;//
|
|
private string _PARAMDESCRIPTION;//
|
|
private string _PARAMVALUE="";//
|
|
private string _MODIFIEDUSER;
|
|
private string _MODIFIEDTIME;
|
|
private string _PARAMTYPE;
|
|
private string _DISPVALUE;
|
|
private string _FIELDTYPE;
|
|
|
|
|
|
#endregion
|
|
|
|
public SysParamSet()
|
|
{
|
|
TableName = "sys_param_set";
|
|
}
|
|
|
|
#region 读写属性
|
|
/// <summary>
|
|
/// 主键唯一值
|
|
/// </summary>
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
public string GID
|
|
{
|
|
get { return _GID; }
|
|
set { _GID = value; }
|
|
}
|
|
[ModelDB]
|
|
public string PARAMNAME
|
|
{
|
|
get { return _PARAMNAME; }
|
|
set { _PARAMNAME = value; }
|
|
}
|
|
[ModelDB]
|
|
public string PARAMTYPE
|
|
{
|
|
get { return _PARAMTYPE; }
|
|
set { _PARAMTYPE = value; }
|
|
}
|
|
|
|
public string DISPVALUE
|
|
{
|
|
get { return _DISPVALUE; }
|
|
set { _DISPVALUE = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string PARAMDESCRIPTION
|
|
{
|
|
get { return _PARAMDESCRIPTION; }
|
|
set { _PARAMDESCRIPTION = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string PARAMVALUE
|
|
{
|
|
get { return _PARAMVALUE; }
|
|
set { _PARAMVALUE = value; }
|
|
}
|
|
|
|
public string FIELDTYPE
|
|
{
|
|
get { return _FIELDTYPE; }
|
|
set { _FIELDTYPE = value; }
|
|
}
|
|
[ModelDB]
|
|
public string MODIFIEDUSER
|
|
{
|
|
get { return _MODIFIEDUSER; }
|
|
set { _MODIFIEDUSER = value; }
|
|
}
|
|
[ModelDB]
|
|
public string MODIFIEDTIME
|
|
{
|
|
get { return _MODIFIEDTIME; }
|
|
set { _MODIFIEDTIME = value; }
|
|
}
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
{
|
|
return "GID";
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// 如果未配置此参数 或确定指定为是 才返回true
|
|
/// 否则返回false
|
|
/// 用于一些新增的参数 防止未配置此参数的用户产生意外操作
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool isnullortrue() {
|
|
if (PARAMVALUE == "是" || PARAMVALUE == "1" || string.IsNullOrWhiteSpace(PARAMVALUE))
|
|
{
|
|
return true;
|
|
}
|
|
else return false;
|
|
}
|
|
}
|
|
|
|
[JsonObject]
|
|
public class SysParamValue : ModelObjectBillHead
|
|
{
|
|
#region 私有成员
|
|
private string _GID = Guid.NewGuid().ToString();//业务编号
|
|
private string _PARAMNAME;//
|
|
private string _PARAMDESCRIPTION;//
|
|
private string _PARAMVALUE = "否";//
|
|
private string _DISPVALUE;
|
|
|
|
|
|
#endregion
|
|
|
|
public SysParamValue()
|
|
{
|
|
TableName = "sys_parameter_value";
|
|
}
|
|
|
|
#region 读写属性
|
|
/// <summary>
|
|
/// 主键唯一值
|
|
/// </summary>
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
public string GID
|
|
{
|
|
get { return _GID; }
|
|
set { _GID = value; }
|
|
}
|
|
[ModelDB]
|
|
public string PARAMNAME
|
|
{
|
|
get { return _PARAMNAME; }
|
|
set { _PARAMNAME = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string PARAMDESCRIPTION
|
|
{
|
|
get { return _PARAMDESCRIPTION; }
|
|
set { _PARAMDESCRIPTION = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string PARAMVALUE
|
|
{
|
|
get { return _PARAMVALUE; }
|
|
set { _PARAMVALUE = value; }
|
|
}
|
|
[ModelDB]
|
|
public string DISPVALUE
|
|
{
|
|
get { return _DISPVALUE; }
|
|
set { _DISPVALUE = value; }
|
|
}
|
|
|
|
|
|
#endregion
|
|
}
|
|
|
|
|
|
[JsonObject]
|
|
public class FeeParamSet : ModelObjectBillBody
|
|
{
|
|
|
|
#region 读写属性
|
|
public bool Feenotopen { get; set; }
|
|
public bool EXCHANGERATEISREADONLY { get; set; }
|
|
|
|
|
|
|
|
#endregion
|
|
}
|
|
|
|
|
|
|
|
}
|