Exemplo n.º 1
0
        protected void FillMenu()
        {
            //lit_nama_user.Text = (Session["userid"] != null) ? Session["userid"].ToString() : "-";
            //lit_no_polis_aktif.Text = (Session["no_polis_aktif"] != null) ? Session["no_polis_aktif"].ToString() : "-";

            if (Cf.GetUrl("FileUrl").ToLower() == ("Default" + ".aspx"))
            {
                li_home.Attributes.Add("class", "active");
            }
            else if (Cf.GetUrl("FileUrl").ToLower() == ("CFS" + ".aspx"))
            {
                li_setup.Attributes.Add("class", "active");
            }
            else if (Cf.GetUrl("FileUrl").ToLower() == ("SumCFS" + ".aspx"))
            {
                li_setup.Attributes.Add("class", "active");
            }
        }
Exemplo n.º 2
0
 protected void FillHeading()
 {
     if (Cf.GetUrl("FileUrl").ToLower() == ("home" + ".aspx"))
     {
         lit_heading.Text = "Home";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengajuan" + ".aspx"))
     {
         lit_heading.Text = "List Pengajuan";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengajuaninput" + ".aspx"))
     {
         lit_heading.Text = "Input Pengajuan";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengajuandetail" + ".aspx"))
     {
         lit_heading.Text = "Detail Pengajuan";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengajuanupload" + ".aspx"))
     {
         lit_heading.Text = "Upload Pengajuan";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengajuanview" + ".aspx"))
     {
         lit_heading.Text = "View Pengajuan";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("verifikasidata" + ".aspx"))
     {
         lit_heading.Text = "Verifikasi Data";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("verifikasidataunderwriting" + ".aspx"))
     {
         lit_heading.Text = "Verifikasi Data Underwriting";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("dokumen" + ".aspx"))
     {
         lit_heading.Text = "Dokumen";
     }
     else if (Cf.GetUrl("FileUrl").ToLower() == ("pengaturan" + ".aspx"))
     {
         lit_heading.Text = "Pengaturan";
     }
 }