Esempio n. 1
0
        protected void FillDDList()
        {
            var ds = Admin.GetAllAttachmentTypes(); //active and inactive

            ddlAttTypes.Items.Clear();
            ddlAttTypes.DataSource     = ds;
            ddlAttTypes.DataTextField  = ds.Tables[0].Columns["DocTypeName"].ToString();
            ddlAttTypes.DataValueField = ds.Tables[0].Columns["DocTypeCode"].ToString();
            ddlAttTypes.DataBind();
            ddlAttTypes.Items.Insert(0, "- select -");
        }
Esempio n. 2
0
        public DataSet GetDocTypesList()
        {
            var _page = new PageBase();

            if (_page.DocumentTypes == null)
            {
                var ds = Admin.GetAllAttachmentTypes();
                ApplicationAssert.CheckCondition(ds != null && ds.Tables[0].Rows.Count > 0, "There is the problem to load application configurations. Please contact your system administrator.");
                _page.DocumentTypes = ds;
            }
            return(_page.DocumentTypes);
        }