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);
 }
예제 #2
0
        public void Initial_WindowSelect(SelectType selectType, WindowSearch <RT> userSearchForm)
        {
            this.selectType = selectType;
            if (selectType == SelectType.WindowSelectTree)
            {
                displayerControl = tree;
                tree.ContextMenu = null;
            }
            else
            {
                displayerControl             = dataGridExtended;
                dataGridExtended.ContextMenu = null;
            }

            APMGroupBoxDisplay.Content = displayerControl;
            var userDataGrid = (displayerControl is APMDataGridExtended) ? displayerControl as APMDataGridExtended : null;

            userXoperation = FieldNames <RT> .FixPart.Substring(0, FieldNames <RT> .FixPart.Length - 1);

            Initial_WindowBase(userDataGrid, APMToolBar, null, userXoperation, false, userSearchForm);

            if (txtName != null)
            {
                txtName.TextChanged += txtTextChanged;
            }
            if (txtCode != null)
            {
                txtCode.TextChanged += txtTextChanged;
            }
            GlobalFunctions.SetVisibilityForControl(txtCode, GlobalFunctions.PropertyExist(selectedRecord, FieldNames <RT> .Code));
            GlobalFunctions.SetVisibilityForControl(lblCode, GlobalFunctions.PropertyExist(selectedRecord, FieldNames <RT> .Code));
            GlobalFunctions.SetVisibilityForControl(APMGroupBoxGridGroup, selectType == SelectType.WindowSelectGridGroup);
        }
예제 #3
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_WindowEntityGroup(APMDataGridExtended userDataGrid, APMToolBar userToolBar, GroupBox currentRowGroupBox
                                               , string xOperation, Boolean GetAllRecordsAtFirst, WindowSearch <EntityRT> userSearchForm
                                               , long userEntity, APMTwoPartCode userTwoPartCode, APMComboBox userComboBox)
 {
     this.comboBox = userComboBox;
     //new BLL<GroupRT>().FillComboBoxForShow(comboBox, record_GroupRT, "نمایش همه", 0);
     this.comboBox.SelectionChanged += new SelectionChangedEventHandler(comboBox_SelectionChanged);
     Initial_WindowEntity(userDataGrid, userToolBar, currentRowGroupBox, xOperation,
                          GetAllRecordsAtFirst, userSearchForm, userEntity, userTwoPartCode);
 }
예제 #6
0
 public virtual void Initial_WindowEntity(APMDataGridExtended userDataGrid, APMToolBar userToolBar, GroupBox currentRowGroupBox
                                          , string xOperation, Boolean GetAllRecordsAtFirst, WindowSearch <RT> userSearchForm
                                          , long userEntity, APMTwoPartCode userTwoPartCode)
 {
     this.entity_type     = userEntity;
     this.userTwoPartCode = userTwoPartCode;
     Initial_WindowBase(userDataGrid, userToolBar, currentRowGroupBox, xOperation, GetAllRecordsAtFirst, userSearchForm);
 }