Files
lserp_cs_6.0/其他程序/xNewMyFormDesigner/Model/P_systemControlParent.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

43 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace NewMyFormDesigner
{
public class P_systemControlParent
{
/// <summary>
///界面id
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int id;
/// <summary>
///界面formKey
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public string formKey;
/// <summary>
///界面高度
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int parentHeight;
/// <summary>
///界面宽度
/// </summary>
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
public int parentWidth;
public P_systemControlParent(DataRow rowItem)
{
if (rowItem == null) return;
DataColumnCollection columns = rowItem.Table.Columns;
this.id = string.IsNullOrEmpty(rowItem["id"] + "") ? 0 : Convert.ToInt32(rowItem["id"] + "");
this.formKey = columns.Contains("formKey") ? rowItem["formKey"] + "" : string.Empty;
this.parentHeight = string.IsNullOrEmpty(rowItem["parentHeight"] + "") ? 0 : Convert.ToInt32(rowItem["parentHeight"] + "");
this.parentWidth = string.IsNullOrEmpty(rowItem["parentWidth"] + "") ? 0 : Convert.ToInt32(rowItem["parentWidth"] + "");
}
}
}