using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace NewMyFormDesigner
{
public class P_systemControlParent
{
///
///界面id
///
/// true if this instance can copy; otherwise, false.
public int id;
///
///界面formKey
///
/// true if this instance can copy; otherwise, false.
public string formKey;
///
///界面高度
///
/// true if this instance can copy; otherwise, false.
public int parentHeight;
///
///界面宽度
///
/// true if this instance can copy; otherwise, false.
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"] + "");
}
}
}