示例#1
0
        private void DesignTheForm()
        {
            APMBorder APMBorder = new APMBorder();

            this.Content = APMBorder;
            APMDockPanel APMDockPanel = new APMDockPanel();

            APMBorder.Child = APMDockPanel;
            APMToolBar      = new APMToolBar()
            {
                XType = XWindowType.SelectWindow
            };
            APMDockPanel.Children.Add(APMToolBar);
            APMDockPanel.Children.Add(APMStatusBar);
            APMDockPanel.Children.Add(APMGroupBoxFilter);
            APMGroupBoxFilter.SetValue(DockPanel.DockProperty, Dock.Bottom);
            StackPanel StackPanel = new StackPanel()
            {
                Orientation = Orientation.Horizontal
            };

            lblName = new APMLabel()
            {
                Content = "نام:"
            };
            txtName = new APMTextBox();
            lblCode = new APMLabel()
            {
                Content = "کد:"
            };
            txtCode = new APMTextBox();
            StackPanel.Children.Add(new APMLabel()
            {
                Width = 40
            });
            StackPanel.Children.Add(lblName);
            StackPanel.Children.Add(txtName);
            StackPanel.Children.Add(new APMLabel()
            {
                Width = 100
            });
            StackPanel.Children.Add(lblCode);
            StackPanel.Children.Add(txtCode);
            APMGroupBoxFilter.Content = StackPanel;
            APMGroupBoxGridGroup.SetValue(DockPanel.DockProperty, Dock.Top);
            WrapPanel WrapPanel = new WrapPanel()
            {
                Margin = new Thickness(8)
            };

            WrapPanel.Children.Add(aPMComboBox);
            APMGroupBoxGridGroup.Content = WrapPanel;
            APMDockPanel.Children.Add(APMGroupBoxGridGroup);
            tree = new APMTree()
            {
                Background = System.Windows.Media.Brushes.Transparent, Margin = new Thickness(7)
            };
            APMDockPanel.Children.Add(APMGroupBoxDisplay);
        }
示例#2
0
 public virtual void Initial_WindowTreeGrid(APMDataGridExtended userDataGrid,
                                            APMToolBar userToolBar, GroupBox currentRowGroupBox, string xOperation,
                                            WindowSearch <RT> userSearchForm, APMTree userTreeView,
                                            string RootCaption, int LevelCount, int Code_DigitCount)
 {
     base.Initial_WindowBase(userDataGrid, userToolBar, currentRowGroupBox, xOperation, false, userSearchForm);
     tree                 = userTreeView;
     tree.XCaption        = RootCaption;
     this.Code_DigitCount = Code_DigitCount;
     this.LevelCount      = LevelCount;
 }
 public virtual void Initial_WindowTreeGridTwoTable(APMDataGridExtended userDataGrid, APMToolBar userToolBar,
                                                    WindowSearch <RT> userSearchForm, GroupBox groupBoxCurrentRow, APMTree userTreeView, string Header,
                                                    int LevelCount, int Code_DigitCount, UIElement grpGroup, UIElement grpEntity,
                                                    string XOperationGroup, string XOperationEntity, string groupTitle, string entityTitle)
 {
     base.Initial_WindowTreeGrid(userDataGrid, userToolBar, groupBoxCurrentRow, null, userSearchForm, userTreeView, Header, LevelCount, Code_DigitCount);
     this.grpGroup         = grpGroup;
     this.grpEntity        = grpEntity;
     this.XOperationGroup  = XOperationGroup;
     this.XOperationEntity = XOperationEntity;
     status = Status.Entity;
     ChangeStatus(Status.Group);
     tree.XIsTwoTable               = true;
     tree.XEntityTitle              = entityTitle;
     tree.XGroupTitle               = groupTitle;
     tree.XHaveContextMenu          = true;
     tree.XInsertChildClick_Entity += InsertChildClick_Entity;
     glbEntityTypeOption_For_Goods  = BLL <stp_glb_entity_type_option_selResult> .GetDetailsOption((long)EntityType.inv_goods);
 }
 public virtual void Initial_WindowTreeGridHuge(APMDataGridExtended userDataGrid,
                                                APMToolBar userToolBar, GroupBox currentRowGroupBox, string xOperation,
                                                WindowSearch <GridRT> userSearchForm, APMTree userTreeView,
                                                string RootCaption, int LevelCount, int Code_DigitCount)
 {
     base.Initial_WindowTreeGrid(userDataGrid, userToolBar, currentRowGroupBox, xOperation, userSearchForm, userTreeView, RootCaption, LevelCount, Code_DigitCount);
 }