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.
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace HcUtility.Core
|
|
{
|
|
/// <summary>
|
|
/// 功能: 业务单据主表Model的基类
|
|
/// 创建: 吴伟 2009-05-07
|
|
/// 说明:
|
|
/// </summary>
|
|
///修改说明:
|
|
/// wuwei 2011-01-25 CMP-8856 中石化:webpos保存数据报错导致数据保存重复的问题
|
|
public abstract class ModelObjectBillHead : ModelObjectBill
|
|
{
|
|
public decimal LoginUserID { get; set; }
|
|
public string LoginUserCode { get; set; }
|
|
public string LoginUserName { get; set; }
|
|
//0-浏览 I-新增 E-修改 D-删除
|
|
private string _modelUIStatus = "0";
|
|
public string ModelUIStatus
|
|
{
|
|
get { return _modelUIStatus; }
|
|
set
|
|
{
|
|
var status = new string[] {"0", "I", "E", "D"};
|
|
var count = (from s in status
|
|
where s.Contains(value)
|
|
select s).Count();
|
|
if(count == 0)
|
|
{
|
|
throw new Exception("ModelUIStatus的值不合法!");
|
|
}
|
|
|
|
_modelUIStatus = value;
|
|
}
|
|
}
|
|
|
|
private string _ywType = "0";
|
|
public string YwType
|
|
{ get {return this._ywType;}
|
|
set {this._ywType = value;}
|
|
}
|
|
}
|
|
} |