示例#1
0
        private void queryBarBtn_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            getTableFromSelect();
            DocumentGroup dpGroup = DevExpress.Xpf.Core.Native.LayoutHelper.FindLayoutOrVisualParentObject(this as FrameworkElement, (el) => { return(el is DocumentGroup); }) as DocumentGroup;
            DocumentPanel panel   = new DocumentPanel()
            {
                ShowCloseButton = true, Caption = "详细数据"
            };
            DetailResultData uc = new DetailResultData(dt);

            panel.Content = uc;
            dpGroup.Add(panel);
            int index = dpGroup.Items.IndexOf(panel);

            dpGroup.SelectedTabIndex = index;
        }
示例#2
0
        private void consistenBarBtn_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            getTableFromSelect();
            if (dt.Rows.Count == 0)
            {
                DXMessageBox.Show("请选中要查询的行!");
                return;
            }
            DataTable     dtResult = RowConvert(dt);
            DocumentGroup dpGroup  = DevExpress.Xpf.Core.Native.LayoutHelper.FindLayoutOrVisualParentObject(this as FrameworkElement, (el) => { return(el is DocumentGroup); }) as DocumentGroup;
            DocumentPanel panel    = new DocumentPanel()
            {
                ShowCloseButton = true, AllowClose = true, Caption = "一致性数据"
            };
            DetailResultData uc = new DetailResultData(dtResult);

            panel.Content = uc;
            dpGroup.Add(panel);
            int index = dpGroup.Items.IndexOf(panel);

            dpGroup.SelectedTabIndex = index;
        }