protected DataView GetData()
        {
            BPDocumentCategories bp = new BPDocumentCategories();
            DSDocuments = bp.SelectAll();

            DSDocuments.tbl_DocumentCategories.DefaultView.RowFilter = RowFilter("DocumentCategoryName", ((LinkButton)rptLetters.Items[0].FindControl("lnkLetter")).CommandName, "DocumentCategoryActive", lstActive.SelectedValue);
            DSDocuments.tbl_DocumentCategories.DefaultView.Sort = DSDocuments.tbl_DocumentCategories.DocumentCategoryNameColumn.ColumnName;

            return DSDocuments.tbl_DocumentCategories.DefaultView;
        }
Ejemplo n.º 2
0
        private void BindDocumentCategories()
        {
            BPDocumentCategories bp = new BPDocumentCategories();
            BEDocuments dsDocumentCategories = bp.SelectAllActive();
            dsDocumentCategories.tbl_DocumentCategories.DefaultView.Sort = "DocumentCategoryName";

            ddlDocumentCategories.DataSource = dsDocumentCategories.tbl_DocumentCategories;
            ddlDocumentCategories.DataTextField = "DocumentCategoryName";
            ddlDocumentCategories.DataValueField = "DocumentCategoryID";
            ddlDocumentCategories.DataBind();

            ddlDocumentCategories.Items.Insert(0, new ListItem("Select a Document Category", "-1"));
        }
Ejemplo n.º 3
0
        protected void BindDocumentCategories()
        {
            BPDocumentCategories bp = new BPDocumentCategories();
            BEDocuments dsDocumentCategories = bp.SelectAllActive();
            dsDocumentCategories.tbl_DocumentCategories.DefaultView.Sort = "DocumentCategoryName";

            ddlDocumentCategories.DataSource = dsDocumentCategories.tbl_DocumentCategories.DefaultView;
            ddlDocumentCategories.DataTextField = "DocumentCategoryName";
            ddlDocumentCategories.DataValueField = "DocumentCategoryID";
            ddlDocumentCategories.DataBind();

            ddlDocumentCategories.Items.Insert(0, new ListItem("(All Categories)", "-1"));
            ddlDocumentCategories.Items.Insert(1, new ListItem("Not Assigned", "0"));

            if (FilterCatID != "-1")
                if (ddlDocumentCategories.Items.FindByValue(FilterCatID) != null)
                    ddlDocumentCategories.SelectedValue = FilterCatID;
        }
Ejemplo n.º 4
0
		protected void BindDocumentCategories()
		{
			ddlDocumentCategories.Attributes.Add("onchange", "callToServer(this.form.name, this.name, 'Document', '" + ddlDocuments.ClientID + "', 'DocumentLoader.aspx');");
			//ddlDocumentCategories.Attributes.Add("onchange", "alert('hello');");

            BPDocumentCategories bp = new BPDocumentCategories();
            DSDocumentCategories = bp.SelectAllActive();
            DSDocumentCategories.tbl_DocumentCategories.DefaultView.Sort = "DocumentCategoryName";

            ddlDocumentCategories.DataSource = DSDocumentCategories.tbl_DocumentCategories.DefaultView;
            ddlDocumentCategories.DataValueField = DSDocumentCategories.tbl_DocumentCategories.DocumentCategoryIDColumn.ColumnName;
            ddlDocumentCategories.DataTextField = DSDocumentCategories.tbl_DocumentCategories.DocumentCategoryNameColumn.ColumnName;
            ddlDocumentCategories.DataBind();

			ddlDocumentCategories.Items.Insert(0, new ListItem("(All Document Categories)", "-1"));
		}