Exemplo n.º 1
0
        protected void rgJADuty_ItemDataBound(object sender, GridItemEventArgs e)
        {
            HideRefreshButton(e);
            GridItem gridItem = e.Item;

            //Issue Id: 28
            //Author: Deepali Anuje
            //Date Fixed: 1/29/2012
            //Description: Duty/KSA Screen of JA: Display Duty KSAs on This Screen
            if (gridItem.ItemType == GridItemType.Item || gridItem.ItemType == GridItemType.AlternatingItem)
            {
                RadListBox rdutyqual = gridItem.FindControl("radListDutyQual") as RadListBox;
                if (gridItem.DataItem is JobAnalysisDuty)
                {
                    JobAnalysisDuty JADuty = gridItem.DataItem as JobAnalysisDuty;
                    List <JobAnalysisDutyKSAFactor> qualList = JADuty.GetJobAnalysisDutyKSAFactorByJADutyID();
                    rdutyqual.DataSource = qualList;
                    rdutyqual.DataBind();
                    rdutyqual.Visible = (qualList.Count > 0);
                }
            }
        }