Esempio n. 1
0
    private void InitlJobTypeList()
    {
        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        XYECOM.Business.Post p = new Post();
        DataTable dt = p.GetDataTable(0);

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            sb.Append("<li><a href=\"#\" title=\"点击选择此项\" onclick=\"selectlpjobtypelist(");
            sb.Append(dt.Rows[i]["P_ID"].ToString());
            sb.Append(",'");
            sb.Append(dt.Rows[i]["P_Name"].ToString());
            sb.Append("');\">");
            sb.Append(dt.Rows[i]["P_Name"].ToString());
            sb.Append("</a></li>");
        }

        HttpContext.Current.Response.Write(sb.ToString());
    }
Esempio n. 2
0
    private void createselectpostTypeHTML(string P_IDs)
    {
        string str = "";

        Post p = new Post();
        DataTable dt = p.GetDataTable(P_IDs);
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            str += "<li class=\"result\">" + dt.Rows[i]["P_Name"].ToString() + "</li>";
        }
        Response.Write(str);
    }