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(); } } }