Esempio n. 1
0
        private void GetExtraPermission(int levelid)
        {
            DataTable      _datatable = new DataTable();
            BAQuestionType _baqtype   = new BALayer.BAQuestionType();

            System.Data.DataSet _dataset = new System.Data.DataSet();
            _dataset   = _baqtype.SelectQuestionTypeList("GetQTypeWithMLevel", levelid);
            _datatable = _dataset.Tables[1];
            exists     = _datatable.Select().ToList().Exists(row => row["ExtraPermissionOptId"].ToString() == "4");
        }
        private void GetExtraPermission(int levelid)
        {
            DataTable      _datatable = new DataTable();
            BAQuestionType _baqtype   = new BALayer.BAQuestionType();
            DataSet        _dataset   = new System.Data.DataSet();

            if (ViewState["extrapermission"] != null && !ViewState["extrapermission"].Equals(""))
            {
                _datatable = (DataTable)ViewState["dtAcsOpt"];
            }
            else
            {
                _dataset   = _baqtype.SelectQuestionTypeList("GetQTypeWithMLevel", levelid);
                _datatable = _dataset.Tables[1];
                ViewState["extrapermission"] = _datatable;
            }
        }