public static string downData(string strID, string strWFID)
    {
        bool bIsSucess            = false;
        TWfSettingTaskLogic logic = new TWfSettingTaskLogic();

        TWfSettingTaskVo tv = new TWfSettingTaskVo();

        tv.WF_ID      = strWFID;
        tv.SORT_FIELD = TWfSettingTaskVo.TASK_ORDER_FIELD;
        tv.SORT_TYPE  = " ASC ";
        DataTable GetStepListTable = logic.SelectByTable(tv);

        for (int i = 0; i < GetStepListTable.Rows.Count; i++)
        {
            if (GetStepListTable.Rows[i][TWfSettingTaskVo.WF_TASK_ID_FIELD].ToString() == strID)
            {
                //开始排序
                //开始排序
                if (i == GetStepListTable.Rows.Count - 1)
                {
                    return("1");
                }
                string           strOrderFlag1 = GetStepListTable.Rows[i][TWfSettingTaskVo.TASK_ORDER_FIELD].ToString();
                string           strOrderFlag2 = GetStepListTable.Rows[i + 1][TWfSettingTaskVo.TASK_ORDER_FIELD].ToString();
                string           strID1        = GetStepListTable.Rows[i][TWfSettingTaskVo.ID_FIELD].ToString();
                string           strID2        = GetStepListTable.Rows[i + 1][TWfSettingTaskVo.ID_FIELD].ToString();
                TWfSettingTaskVo temp1         = new TWfSettingTaskVo()
                {
                    ID = strID1, TASK_ORDER = strOrderFlag2
                };
                TWfSettingTaskVo temp2 = new TWfSettingTaskVo()
                {
                    ID = strID2, TASK_ORDER = strOrderFlag1
                };
                TWfSettingTaskLogic tempLogic = new TWfSettingTaskLogic();
                bIsSucess = tempLogic.Edit(temp1);
                if (bIsSucess)
                {
                    bIsSucess = tempLogic.Edit(temp2);
                }

                string strMessage = new PageBase().LogInfo.UserInfo.USER_NAME + "调整环节顺序:" + strID1 + " 成功";
                new PageBase().WriteLog("调整环节顺序", "", strMessage);
            }
        }

        return(bIsSucess == true ? "1" : "0");
    }
    private void InitUserData()
    {
        TWfSettingFlowVo twf = new TWfSettingFlowLogic().Details(new TWfSettingFlowVo()
        {
            WF_ID = WF_ID.Value
        });

        TWfSettingTaskLogic logic = new TWfSettingTaskLogic();
        TWfSettingTaskVo    tv    = new TWfSettingTaskVo();

        tv.WF_ID          = WF_ID.Value;
        tv.SORT_FIELD     = TWfSettingTaskVo.TASK_ORDER_FIELD;
        tv.SORT_TYPE      = " ASC ";
        pager.RecordCount = logic.GetSelectResultCount(tv);
        DataTable dt = logic.SelectByTable(tv, pager.CurrentPageIndex, pager.PageSize);

        grdList.DataSource = dt.DefaultView;
        grdList.DataBind();
    }
    private void InitUserData()
    {
        TWfSettingFlowVo twf = new TWfSettingFlowLogic().Details(new TWfSettingFlowVo()
        {
            WF_ID = WF_ID.Value
        });

        lblCurFlowName.Text      = twf.WF_CAPTION;
        lblCurFlowName.ForeColor = System.Drawing.Color.Red;
        TWfSettingTaskLogic logic = new TWfSettingTaskLogic();
        TWfSettingTaskVo    tv    = new TWfSettingTaskVo();

        tv.WF_ID      = WF_ID.Value;
        tv.SORT_FIELD = TWfSettingTaskVo.TASK_ORDER_FIELD;
        tv.SORT_TYPE  = " ASC ";
        DataTable dt = logic.SelectByTable(tv);

        grdList.DataSource = dt.DefaultView;
        grdList.DataBind();
        GetStepListTable = dt;
    }
    //获取信息
    private void getData(string strWFID)
    {
        string strSortname  = TWfSettingTaskVo.TASK_ORDER_FIELD;
        string strSortorder = Request.Params["sortorder"];
        //当前页面
        int intPageIndex = Convert.ToInt32(Request.Params["page"]);
        //每页记录数
        int intPageSize = Convert.ToInt32(Request.Params["pagesize"]);

        TWfSettingTaskLogic logic = new TWfSettingTaskLogic();
        TWfSettingTaskVo    tv    = new TWfSettingTaskVo();

        tv.WF_ID      = strWFID;
        tv.SORT_FIELD = strSortname;
        tv.SORT_TYPE  = strSortorder;
        DataTable dt            = logic.SelectByTable(tv, intPageIndex, intPageSize);
        int       intTotalCount = logic.GetSelectResultCount(tv);
        string    strJson       = CreateToJson(dt, intTotalCount);

        Response.Write(strJson);
        Response.End();
    }