Exemple #1
0
        /// <summary>
        /// Builds a list of Lookup Attributes
        /// </summary>
        private void BuildLookupAttributes()
        {
            DataView lkpAttributes = BOL.BusinessObject.GetAllAsDataView <BOL.LookupAttribute>();

            AttributesGrid.DataSource = lkpAttributes;
            AttributesGrid.DataBind();
        }
Exemple #2
0
        /// <summary>
        /// Bind lookup code columns/grids to their respecitve lookup codes
        /// </summary>
        private void BuildStageStageEventsAndAttributes()
        {
            SetColorAttributeId();

            string sortExpr = LookupCode.LkpOrder + " ASC";

            ProjectTypeGrid.DataSource = GetSortedGridDataSource("ProjectType");
            ProjectTypeGrid.DataBind();

            StagesGrid.DataSource = GetSortedGridDataSource("ProjectStages");
            StagesGrid.DataBind();

            EventsGrid.DataSource = GetSortedGridDataSource("ProjectStageEvents");
            EventsGrid.DataBind();

            AttributesGrid.DataSource = GetSortedGridDataSource("ProjectEventAttributes");
            AttributesGrid.DataBind();
        }