Example #1
0
        private static void AddCompentencyList(Page myPage, string compentencyID, string title, string category, string area, string itemCode, string userID)
        {
            HtmlGenericControl myDIV = (HtmlGenericControl)myPage.FindControl("Compentency" + compentencyID);
            Label myTitle            = new Label();

            myTitle.Text     = title;
            myTitle.CssClass = "CompentencyTitle";
            myDIV.Controls.Add(myTitle);
            HtmlGenericControl myUL = new HtmlGenericControl("ul");

            try
            {
                DataSet ds1 = new DataSet();

                string _schoolyear = WorkingAppraisee.AppraisalYear;
                ds1 = AppraisalDataLTO.LTOAppraisalCompetencyList("Get", userID, category, area, itemCode, _schoolyear, compentencyID);
                foreach (DataRow row in ds1.Tables[0].Rows)
                {
                    HtmlGenericControl li = new HtmlGenericControl("li");
                    li.InnerText = row[3].ToString();
                    li.Attributes.Add("class", "LookforList");
                    myUL.Controls.Add(li);
                }
                myDIV.Controls.Add(myUL);
            }
            catch
            { }
        }
Example #2
0
        public static void AssemblingLTOCompetencyList(Page myPage, string category, string area, string itemCode, string userID)
        {
            DataSet ds          = new DataSet();
            string  _schoolyear = WorkingAppraisee.AppraisalYear;

            ds = AppraisalDataLTO.LTOAppraisalCompetencyList("Get", userID, category, area, itemCode, _schoolyear);

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                string title = row[3].ToString();
                string cID   = row[1].ToString();
                AddCompentencyList(myPage, cID, title, category, area, itemCode, userID);
            }
        }