Example #1
0
 public static void BuildingTextTitle(ref Label myTitle, string type, string userID, string category, string area, string code)
 {
     myTitle.Text = TitleContext.Content(type, userID, category, area, code);
     if (myTitle.Text.Length == 0)
     {
         myTitle.Visible = false;
     }
 }
Example #2
0
 public string GetTitleContent(string operation, string userId, string categoryId, string areaId, string itemCode)
 {
     try
     {
         return(TitleContext.Content(operation, userId, categoryId, areaId, itemCode));
     }
     catch (Exception ex)
     {
         var em = ex.Message;
         return("");
     }
 }
Example #3
0
        public static void BuildingTitleTab(ref HtmlGenericControl myDIV, string userID, string category, string area, string code)
        {
            myDIV.InnerHtml = "";

            string             title = TitleContext.Content("Title", userID, category, area, code); // AppraisalProcess.AppraisalPageTitle("0", category,area,code,role);
            HtmlGenericControl span  = new HtmlGenericControl("span");

            span.ID = "title_" + code;
            span.Attributes.Add("class", "pageTitle");
            span.InnerText = title;
            span.Attributes.Add("title", category + "-" + area + "-" + code);
            myDIV.Controls.Add(span);
            HtmlImage img = new HtmlImage();

            img.ID  = "img_" + code;
            img.Src = "../images/help2.png";
            img.Attributes.Add("class", "helpImg");


            myDIV.Controls.Add(img);
        }