示例#1
0
        public override void Window_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            current_entity_type = BLL <stp_glb_entity_type_option_selResult> .GetDetailsOption(entity_type);

            if (current_entity_type == null)
            {
                DialogResult = true;
                return;
            }
            userTwoPartCode.XEditable  = current_entity_type.glb_entity_type_option_code_edit_by_user;
            userTwoPartCode.XMaxLength = current_entity_type.glb_entity_type_option_digit_count;
            detailRecord.acc_detail_glb_entity_type_id = entity_type;
            base.Window_Loaded(sender, e);
        }
示例#2
0
        public static stp_glb_entity_type_option_selResult GetDetailsOption(long entity)
        {
            stp_glb_entity_type_option_selResult RecordDetailTypeOption = new stp_glb_entity_type_option_selResult();

            if (ListDetailTypeOption.Count == 0)
            {
                ListDetailTypeOption = new BLL <stp_glb_entity_type_option_selResult>().GetAllRecords_DB();
            }
            RecordDetailTypeOption = ListDetailTypeOption.Find(detail => detail.glb_entity_type_option_glb_entity_type_id == entity);
            if (RecordDetailTypeOption == null)
            {
                Messages.ErrorMessage("تنظیمات موجودیت ها وارد نشده است ");
                return(RecordDetailTypeOption);
            }
            return(RecordDetailTypeOption);
        }
 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);
 }