예제 #1
0
 public string ShowNumberRecord()
 {
     string str = "";
     CDynamicviewHelperXmlLanguageCode dynamic = new CDynamicviewHelperXmlLanguageCode();
     dynamic = (CDynamicviewHelperXmlLanguageCode)HttpContext.Current.Session["language_code_dynamic"];
     str = str + "<span style='font-size: 14pt; color: #ff0066'><strong>" + "Đã có " + dynamic.GetNumberRecord() + " mã chuẩn." + "</strong></span>";
     return str;
 }
예제 #2
0
 public string ShowNumberRecord_Search()
 {
     string str = "";
     CDynamicviewHelperXmlLanguageCode dynamic = new CDynamicviewHelperXmlLanguageCode();
     dynamic = (CDynamicviewHelperXmlLanguageCode)HttpContext.Current.Session["language_code_dynamic_search"];
     str = str + "Tìm thấy " + dynamic.GetNumberRecord() + " mã chuẩn.";
     return str;
 }
예제 #3
0
    //cau hinh trang tim kiem
    public void SetDynamic_Search(string key_search)
    {
        nav = (XPathNavigator)HttpContext.Current.Application["nav_language_code"];
        XPathNodeIterator nodes = nav.Select("/language_code/code[contains(key,'" + key_search + "')]");
        CDynamicviewHelperXmlLanguageCode dynamic = new CDynamicviewHelperXmlLanguageCode();

        if (HttpContext.Current.Session["language_code_dynamic_search"] == null)
        {
            int numCode = nodes.Count;
            dynamic.SetStringSeach(key_search);
            dynamic.SetNumberRecord(numCode);
            dynamic.SetPageSize(10);
            dynamic.SetCurrentPage();
            dynamic.SetNavigator(nav);
            HttpContext.Current.Session["language_code_dynamic_search"] = dynamic;
        }
        else
        {
            dynamic = (CDynamicviewHelperXmlLanguageCode)HttpContext.Current.Session["language_code_dynamic_search"];
            int numCode = nodes.Count;
            dynamic.SetStringSeach(key_search);
            dynamic.SetNumberRecord(numCode);
            dynamic.SetNavigator(nav);
            dynamic.ReSetCurrentPage();
            HttpContext.Current.Session["language_code_dynamic_search"] = dynamic;
        }
    }