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.
DS7/DSWeb/Areas/TruckMng/Models/Card/Card.cs

174 lines
4.1 KiB
C#

3 years ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.TruckMng.Models.Card
{
[JsonObject]
public class CardHeadmb : ModelObjectBillBody
{//
#region private Fields
private string _GID = string.Empty;
private string _CARDNO = string.Empty;
private string _CARDTYPE = string.Empty;
private string _OP = string.Empty;
private string _OWNGID = string.Empty;
private string _ISDELETE = string.Empty;
private string _REMAIN = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string CARDNO
{
get { return _CARDNO; }
set { _CARDNO = value; }
}
[ModelDB]
public string CARDTYPE
{
get { return _CARDTYPE; }
set { _CARDTYPE = value; }
}
[ModelDB]
public string OP
{
get { return _OP; }
set { _OP = value; }
}
[ModelDB]
public string OWNGID
{
get { return _OWNGID; }
set { _OWNGID = value; }
}
[ModelDB]
public string ISDELETE
{
get { return _ISDELETE; }
set { _ISDELETE = value; }
}
public string REMAIN
{
get { return _REMAIN; }
set { _REMAIN = value; }
}
#endregion
public CardHeadmb ( )
{
// TableName = "tMsWlPcHead";
TableName = "tSavings_card";
}
public override string GetBillNoFieldName()
{
return "OWNGID";
}
public override string GetTimeMarkFieldName()
{
return "";
}
}
[JsonObject]
public class CardUsemb : ModelObjectBillBody
{//
#region private Fields
private string _GID = string.Empty;
private string _CARDGID = string.Empty;
private string _CARDNO = string.Empty;
private string _BILLNO = string.Empty;
private string _OPERATE = string.Empty;
private string _INNUM = string.Empty;
private string _OUTNUM = string.Empty;
private string _OPTIME = string.Empty;
private string _REMARK = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string CARDGID
{
get { return _CARDGID; }
set { _CARDGID = value; }
}
[ModelDB]
public string CARDNO
{
get { return _CARDNO; }
set { _CARDNO = value; }
}
[ModelDB]
public string BILLNO
{
get { return _BILLNO; }
set { _BILLNO = value; }
}
[ModelDB]
public string OPERATE
{
get { return _OPERATE; }
set { _OPERATE = value; }
}
[ModelDB]
public string INNUM
{
get { return _INNUM; }
set { _INNUM = value; }
}
[ModelDB]
public string OUTNUM
{
get { return _OUTNUM; }
set { _OUTNUM = value; }
}
[ModelDB]
public string OPTIME
{
get { return _OPTIME; }
set { _OPTIME = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
#endregion
public CardUsemb ( )
{
// TableName = "tMsWlPcHead";
TableName = "tCard_Use";
}
public override string GetBillNoFieldName()
{
return "CARDGID";
}
public override string GetTimeMarkFieldName()
{
return "";
}
}
#region 参照部分
#endregion
}