using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCwAccitems
{
[JsonObject]
public class MsCwAccitems : ModelObjectBillHead
{
#region 读写属性
private string _gid = Guid.NewGuid().ToString();
///
/// 唯一编码
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _accid = "";
///
/// 科目代码
///
[ModelDB]
public string ACCID
{
get { return _accid; }
set { _accid = value; }
}
private string _accname = "";
///
/// 科目名称
///
[ModelDB]
public string ACCNAME
{
get { return _accname; }
set { _accname = value; }
}
private bool _detailed = false;
///
/// 末级科目(标志)
///
[ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)]
public bool DETAILED
{
get { return _detailed; }
set { _detailed = value; }
}
private string _dc = "";
///
/// 借贷方向
///
[ModelDB]
public string DC
{
get { return _dc; }
set { _dc = value; }
}
private bool _isfcy = false;
///
/// 是否核算外币
///
[ModelDB]
public bool ISFCY
{
get { return _isfcy; }
set { _isfcy = value; }
}
private bool _isdeptacc = false;
///
/// 是否核算部门
///
[ModelDB]
public bool ISDEPTACC
{
get { return _isdeptacc; }
set { _isdeptacc = value; }
}
private bool _isemplacc = false;
///
/// 是否核算人员
///
[ModelDB]
public bool ISEMPLACC
{
get { return _isemplacc; }
set { _isemplacc = value; }
}
private bool _iscorpacc = false;
///
/// 是否算客户门
///
[ModelDB]
public bool ISCORPACC
{
get { return _iscorpacc; }
set { _iscorpacc = value; }
}
private bool _isitemacc = false;
///
/// 是否核算项目
///
[ModelDB]
public bool ISITEMACC
{
get { return _isitemacc; }
set { _isitemacc = value; }
}
private string _remarks = "";
///
/// 备注
///
[ModelDB]
public string REMARKS
{
get { return _remarks; }
set { _remarks = value; }
}
private string _year = "";
///
/// 年
///
[ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)]
public string YEAR
{
get { return _year; }
set { _year = value; }
}
private string _month = "";
///
/// 月
///
[ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)]
public string MONTH
{
get { return _month; }
set { _month = value; }
}
private string _paccgid = "";
///
/// 父级科目代码
///
[ModelDB]
public string PACCGID
{
get { return _paccgid; }
set { _paccgid = value; }
}
private string _accattribute = "";
///
/// 科目属性(资产、负债、共同、权益、成本、损益)
///
[ModelDB]
public string ACCATTRIBUTE
{
get { return _accattribute; }
set { _accattribute = value; }
}
private bool _isenable = false;
///
/// 是否启用
///
[ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)]
public bool ISENABLE
{
get { return _isenable; }
set { _isenable = value; }
}
private string _ACCTYPE = "";
///
/// 科目类别
///
[ModelDB]
public string ACCTYPE
{
get { return _ACCTYPE; }
set { _ACCTYPE = value; }
}
private string _PACCNAME = "";
///
/// 父类科目名称
///
public string PACCNAME
{
get { return _PACCNAME; }
set { _PACCNAME = value; }
}
private string _id = "";
///
/// tree中的 id 项,科目GID
///
public string id
{
get { return _id; }
set { _id = value; }
}
private string _name = "";
///
/// tree中的 NAME 项,科目code+name
///
public string NAME
{
get { return _name; }
set { _name = value; }
}
private Boolean _leaf = true;
///
/// 是否有子项
///
public Boolean leaf
{
get { return _leaf; }
set { _leaf = value; }
}
private Boolean _expanded = true;
///
/// 是否展开
///
public Boolean expanded
{
get { return _expanded; }
set { _expanded = value; }
}
private Decimal _DR = 0;
///
/// DR
///
public Decimal DR
{
get { return _DR; }
set { _DR = value; }
}
private Decimal _CR = 0;
///
/// CR
///
public Decimal CR
{
get { return _CR; }
set { _CR = value; }
}
#endregion
public MsCwAccitems()
{
TableName = "cw_accitems_gl";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
//
}