Пример #1
0
        public LocationMasterViewModel()
        {
            UserInformation user = (UserInformation)App.Current.Properties["userinfo"];

            userinformation = user;
            oLocMaster      = new LocationMasterBll(userinformation);
            DtDataview      = oLocMaster.GetLocationMaster();
            this.selectChangeComboCommand = new DelegateCommand(this.SelectDataRow);
            this.addClickCommand          = new DelegateCommand(this.AddSubmitCommand);
            this.editClickCommand         = new DelegateCommand(this.EditSubmitCommand);
            this.updateLocCommand         = new DelegateCommand(this.CommonFormValUpdtae);
            this.deleteClickCommand       = new DelegateCommand(this.DeleteSubmitCommand);
        }
Пример #2
0
        public LocationMasterViewModel()
        {
            UserInformation user = (UserInformation)App.Current.Properties["userinfo"];

            userinformation = user;
            oLocMaster      = new LocationMasterBll(userinformation);
            DtDataview      = oLocMaster.GetLocationMaster();
            this.selectChangeComboCommand = new DelegateCommand(this.SelectDataRow);
            this.addClickCommand          = new DelegateCommand(this.AddSubmitCommand);
            this.editClickCommand         = new DelegateCommand(this.EditSubmitCommand);
            this.updateLocCommand         = new DelegateCommand(this.CommonFormValUpdtae);
            this.deleteClickCommand       = new DelegateCommand(this.DeleteSubmitCommand);
            UserRoleObjName   = "LOCATION MASTER";
            ComboBoxMaxLength = 2;
            ActionPermission  = oLocMaster.GetUserRights(UserRoleObjName);
            SetdropDownItems();
            FormLoadRights();
        }