Beispiel #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();
        }
Beispiel #2
0
        private DataRow GetRow(Document runningAsset)
        {
            var r = AttributesGrid.NewRow();

            var isInserting = FillRow(runningAsset, r);

            if (!isInserting)
            {
                return(null);
            }

            r[DpowDocName] = runningAsset.Name;
            return(r);
        }
Beispiel #3
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();
        }