You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
1 year ago
|
using System;
|
||
|
using System.Windows;
|
||
|
|
||
|
namespace SSWMS.Client.SYS
|
||
|
{
|
||
|
public partial class TOP_PARENT_BOTTOM_CHILD : AvalonDock.DocumentContent
|
||
|
{
|
||
|
public TOP_PARENT_BOTTOM_CHILD(String type)
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
switch (type)
|
||
|
{
|
||
|
case "SYS_ITEM":
|
||
|
this.dgParentChild.U_AllowOperatData = true;
|
||
|
this.dgParentChild.U_ParentHeader = "系统编码";
|
||
|
this.dgParentChild.U_TableParent = "SYS_ITEM";
|
||
|
this.dgParentChild.U_TableParentOrderBy = "ITEM_ORDER";
|
||
|
this.dgParentChild.U_TableParentID = "ITEM_ID";
|
||
|
this.dgParentChild.U_ChildHeader = "编码列表";
|
||
|
this.dgParentChild.U_TableChild = "SYS_ITEM_LIST";
|
||
|
this.dgParentChild.U_TableChildOrderBy = "ITEM_LIST_ORDER";
|
||
|
break;
|
||
|
}
|
||
|
DocumentContent_Loaded(null, null);
|
||
|
}
|
||
|
|
||
|
private void DocumentContent_Loaded(object sender, RoutedEventArgs e)
|
||
|
{
|
||
|
this.dgParentChild.U_InitControl();
|
||
|
}
|
||
|
}
|
||
|
}
|