/** 版本信息模板在安装目录下,可自行修改。
* SysInquiry_PaperSizeDetail.cs
*
* 功 能: N/A
* 类 名: SysInquiry_PaperSizeDetail
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-27 14:32:57 N/A 初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
*│ 版权所有:四川川印 │
*└──────────────────────────────────┘
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 印刷尺寸详细表
///
[Serializable]
public partial class SysInquiry_PaperSizeDetail : IAggregateRoot
{
public SysInquiry_PaperSizeDetail()
{}
#region Model
private int _keyid;
private int _printtypeid;
private string _name;
private int? _value;
private int? _width;
private int? _hight;
private int? _pagesizeid;
private bool _status;
///
/// 编号
///
public int KeyId
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// 印刷类型编号
///
public int PrintTypeId
{
set{ _printtypeid=value;}
get{return _printtypeid;}
}
///
/// 名称
///
public string Name
{
set{ _name=value;}
get{return _name;}
}
///
/// 尺寸值
///
public int? Value
{
set{ _value=value;}
get{return _value;}
}
///
/// 宽
///
public int? Width
{
set{ _width=value;}
get{return _width;}
}
///
/// 高
///
public int? Hight
{
set{ _hight=value;}
get{return _hight;}
}
///
/// 主尺寸编号
///
public int? PageSizeId
{
set{ _pagesizeid=value;}
get{return _pagesizeid;}
}
///
/// 是否有效
///
public bool Status
{
set{ _status=value;}
get{return _status;}
}
#endregion Model
#region 扩展属性/方法
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
{
object theValue = null;
if ("KeyId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
{
this.KeyId = isChange ? MyConvert.ConvertToInt32(value).Value : KeyId;
theValue = this.KeyId;
}
else if ("PrintTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.PrintTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : PrintTypeId;
theValue = this.PrintTypeId;
}
else if ("Name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.Name = isChange ? MyConvert.ConvertToString(value) : Name;
theValue = this.Name;
}
else if ("Value".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.Value = isChange ? MyConvert.ConvertToInt32(value) : Value;
theValue = this.Value;
}
else if ("Width".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.Width = isChange ? MyConvert.ConvertToInt32(value).Value : Width;
theValue = this.Width;
}
else if ("Hight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.Hight = isChange ? MyConvert.ConvertToInt32(value).Value : Hight;
theValue = this.Hight;
}
else if ("PageSizeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.PageSizeId = isChange ? MyConvert.ConvertToInt32(value) : PageSizeId;
theValue = this.PageSizeId;
}
else if ("Status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.Status = isChange ? MyConvert.ConvertToBoolean(value) : Status;
theValue = this.Status;
}
return theValue;
}
#endregion
#endregion
}
}