//
        public ActionResult getPersonList()
        {
            string where = "";
            string strCurPage;
            string strRowNum;

            if (Request["curpage"] != null)
            {
                strCurPage = Request["curpage"].ToString();
            }
            if (Request["rownum"] != null)
            {
                strRowNum = Request["rownum"].ToString();
            }
            else
            {
                strRowNum = "15";
            }

            string GroupID = Request["GroupID"].ToString();

            where = " and b.GroupID='" + GroupID + "' ";

            UIDataTable udtTask = new UIDataTable();

            udtTask = FlowSystemMan.getPersonList(GFun.SafeToInt32(strRowNum), GFun.SafeToInt32(Request["curpage"]) - 1, where);
            string strjson = GFun.Dt2Json("", udtTask.DtData);

            strjson = strjson.Substring(1);
            strjson = strjson.Substring(0, strjson.Length - 1);
            string jsonData = "{ \"page\":" + GFun.SafeToInt32(Request["curpage"]) + ", \"total\": " + udtTask.IntTotalPages + ", \"records\": " + udtTask.IntRecords + ", \"rows\": ";

            jsonData += strjson + "}";
            return(Json(jsonData, JsonRequestBehavior.AllowGet));
        }
        // 删除小组
        public ActionResult DeleteGroup()
        {
            var    gid    = Request["data1"];
            string strErr = "";

            if (FlowSystemMan.DeleteGroup(gid, ref strErr) == true)
            {
                return(Json(new { success = "true", Msg = "保存成功" }));
            }
            else
            {
                return(Json(new { success = "false", Msg = "保存出错" + "/" + strErr }));
            }
        }
        // 确认新增小组
        public ActionResult InsertGroup()
        {
            var    text   = Request["Text"];
            string strErr = "";

            if (FlowSystemMan.InsertGroup(text, ref strErr) == true)
            {
                return(Json(new { success = "true", Msg = "保存成功" }));
            }
            else
            {
                return(Json(new { success = "false", Msg = "保存出错" + "/" + strErr }));
            }
        }
        // 确认修改
        public ActionResult ModifyGroup()
        {
            var    GroupID = Request["GroupID"];
            var    Text    = Request["Text"];
            string strErr  = "";

            if (FlowSystemMan.ModifyGroup(GroupID, Text, ref strErr) == true)
            {
                return(Json(new { success = "true", Msg = "保存成功" }));
            }
            else
            {
                return(Json(new { success = "false", Msg = "保存出错" + "/" + strErr }));
            }
        }
        //
        public ActionResult BasicGrid()
        {
            string strCurPage;
            string strRowNum;

            string where = "";
            if (Request["curpage"] != null)
            {
                strCurPage = Request["curpage"].ToString();
            }
            if (Request["rownum"] != null)
            {
                strRowNum = Request["rownum"].ToString();
            }
            else
            {
                strRowNum = "10";
            }
            string type = Request["sel"].ToString();

            if (type != "")
            {
                where += " and a.Type ='" + type + "' ";
            }
            UIDataTable udtTask = new UIDataTable();

            if (where != "")
            {
                udtTask = FlowSystemMan.getBasicGrid(GFun.SafeToInt32(strRowNum), GFun.SafeToInt32(Request["curpage"]) - 1, where);
            }
            string strjson = GFun.Dt2Json("", udtTask.DtData);

            strjson = strjson.Substring(1);
            strjson = strjson.Substring(0, strjson.Length - 1);
            string jsonData = "{ \"page\":" + GFun.SafeToInt32(Request["curpage"]) + ", \"total\": " + udtTask.IntTotalPages + ", \"records\": " + udtTask.IntRecords + ", \"rows\": ";

            jsonData += strjson + "}";
            return(Json(jsonData, JsonRequestBehavior.AllowGet));
        }