|
|
/////////////////////////////////////////////////////////////////
|
|
|
//
|
|
|
// (C) Copyright 2013, Kenneth, Inc.
|
|
|
// All rights reserved. Confidential. Except as pursuant
|
|
|
// to a written agreement with Kenneth, this software may
|
|
|
// not be used or distributed. This software may be covered
|
|
|
// by one or more patents.
|
|
|
//
|
|
|
// 本软件为 ** 公司开发,版权所有,违者必究,23810511@qq.com
|
|
|
//
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Reflection;
|
|
|
using System.ComponentModel;
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
namespace GummingCommon
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// Printsetting
|
|
|
/// </summary>
|
|
|
[Serializable]
|
|
|
public partial class PrintsettingEntity: INotifyPropertyChanged
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public string RecId { get; set; }
|
|
|
/// <summary>
|
|
|
/// SettingCode
|
|
|
/// </summary>
|
|
|
public string SettingCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// SettingName
|
|
|
/// </summary>
|
|
|
public string SettingName { get; set; }
|
|
|
/// <summary>
|
|
|
/// Page
|
|
|
/// </summary>
|
|
|
public string Page { get; set; }
|
|
|
/// <summary>
|
|
|
/// Page
|
|
|
/// </summary>
|
|
|
public string PageDisplayer { get; set; }
|
|
|
/// <summary>
|
|
|
/// ContorlIndex
|
|
|
/// </summary>
|
|
|
public int? ControlIndex { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlType
|
|
|
/// </summary>
|
|
|
public string ControlType { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlField
|
|
|
/// </summary>
|
|
|
public string ControlField { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlFormat
|
|
|
/// </summary>
|
|
|
public string ControlFormat { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// ControlFont
|
|
|
/// </summary>
|
|
|
public string ControlFont { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlFontSize
|
|
|
/// </summary>
|
|
|
public decimal? ControlFontSize { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlFontWeight
|
|
|
/// </summary>
|
|
|
public string ControlFontWeight { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlPen
|
|
|
/// </summary>
|
|
|
public string ControlPen { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlX
|
|
|
/// </summary>
|
|
|
public decimal? ControlX { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlY
|
|
|
/// </summary>
|
|
|
public decimal? ControlY { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlW
|
|
|
/// </summary>
|
|
|
public decimal? ControlW { get; set; }
|
|
|
/// <summary>
|
|
|
/// ControlH
|
|
|
/// </summary>
|
|
|
public decimal? ControlH { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public string CreateBy { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public string ModifyBy { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public int? IsActive { get; set; }
|
|
|
|
|
|
|
|
|
private bool _CheckStatus = false;
|
|
|
public bool CheckStatus
|
|
|
{
|
|
|
get { return _CheckStatus; }
|
|
|
set
|
|
|
{
|
|
|
_CheckStatus = value;
|
|
|
OnPropertyChanged("CheckStatus");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private ObservableCollection<PrintsettingEntity> _children = new ObservableCollection<PrintsettingEntity>();
|
|
|
public ObservableCollection<PrintsettingEntity> Children
|
|
|
{
|
|
|
get { return _children; }
|
|
|
}
|
|
|
|
|
|
#region INotifyPropertyChanged Members
|
|
|
public event PropertyChangedEventHandler PropertyChanged = delegate { };
|
|
|
|
|
|
private void OnPropertyChanged(string propertyName)
|
|
|
{
|
|
|
PropertyChangedEventHandler handler = this.PropertyChanged;
|
|
|
if (handler != null)
|
|
|
{
|
|
|
handler(this, new PropertyChangedEventArgs(propertyName));
|
|
|
}
|
|
|
}
|
|
|
#endregion
|
|
|
}
|
|
|
|
|
|
public partial class PrintsettingEntity
|
|
|
{
|
|
|
public decimal? ControlYBackup { get; set; }
|
|
|
public int CutIndex { get; set; }
|
|
|
public int CutphotographsIndex { get; set; }
|
|
|
public int CutevaluationsIndex { get; set; }
|
|
|
public int CutrisksIndex { get; set; }
|
|
|
public int CutjiankangsIndex { get; set; }
|
|
|
public int CutjiankangmapsIndex { get; set; }
|
|
|
public int CutdotpartvaluesIndex { get; set; }
|
|
|
public int CutchartIndex { get; set; }
|
|
|
public int CutJingluochartIndex { get; set; }
|
|
|
}
|
|
|
|
|
|
[Serializable]
|
|
|
public partial class PrintsettingEntityExtension : PrintsettingEntity
|
|
|
{
|
|
|
public string CreateByDisplayer { get; set; }
|
|
|
public string ModifyByDisplayer { get; set; }
|
|
|
public object Clone()
|
|
|
{
|
|
|
PrintsettingEntityExtension obj = new PrintsettingEntityExtension();
|
|
|
Type t = this.GetType();
|
|
|
PropertyInfo[] properties = t.GetProperties();
|
|
|
foreach (PropertyInfo pi in properties)
|
|
|
{
|
|
|
if (pi.CanWrite)
|
|
|
{
|
|
|
object value = pi.GetValue(this, null);
|
|
|
if (obj.GetType().GetProperty(pi.Name) != null)
|
|
|
{
|
|
|
pi.SetValue(obj, value, null);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return obj;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[Serializable]
|
|
|
public class PrintsettingLogEntityExtension : PrintsettingEntityExtension
|
|
|
{
|
|
|
public string LogId { get; set; }
|
|
|
public DateTime? OperTime { get; set; }
|
|
|
public string OperUser { get; set; }
|
|
|
public string OperType { get; set; }
|
|
|
public string OperInfo { get; set; }
|
|
|
public string OperUserDisplayer { get; set; }
|
|
|
}
|
|
|
} |