Пример #1
0
    private string GetFormListByName(string name)
    {
        string    json = "";
        ArrayList list = FormApprovalManage.GetFormListByName(name);

        json = JsonHelper.SerializeObject(list);
        return(json);
    }
Пример #2
0
    private string GetFormApprovalList()
    {
        string    json = "";
        ArrayList list = FormApprovalManage.GetFormApprovalList();

        json = JsonHelper.SerializeObject(list);
        //DataTable dt = FormApprovalManage.GetFormApprovalList();
        //List<TreeNode> list = new List<TreeNode>();
        //TreeNode root = new TreeNode("表单", 1);

        //foreach(DataRow row in dt.Rows)
        //{
        //    string txt = row["FormName"].ToString();
        //    int id = Convert.ToInt32(row["Id"]);
        //    TreeNode node = new TreeNode(txt, id);
        //    root.children.Add(node);
        //}
        //list.Add(root);
        //json = JsonHelper.SerializeObject(list);
        return(json);
    }