/// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPRiverVVo TEnvPRiverV = new TEnvPRiverVVo();

        TEnvPRiverV.ID = Request["id"].ToString();
        TEnvPRiverVVo TEnvPRiverVTemp = new TEnvPRiverVLogic().Details(TEnvPRiverV);

        return(ToJson(TEnvPRiverVTemp));
    }
    public static string deleteTwoGridInfo(string strValue)
    {
        bool isSuccess = new TEnvPRiverVLogic().Delete(strValue);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除河流垂线信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除河流垂线信息" + strValue);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        TEnvPRiverVVo TEnvPRiverV = autoBindRequest(Request, new TEnvPRiverVVo());

        TEnvPRiverV.ID = Request["id"].ToString();
        bool isSuccess = new TEnvPRiverVLogic().Edit(TEnvPRiverV);

        if (isSuccess)
        {
            WriteLog("编辑河流垂线", "", LogInfo.UserInfo.USER_NAME + "编辑河流垂线" + TEnvPRiverV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPRiverVVo TEnvPRiverV = autoBindRequest(Request, new TEnvPRiverVVo());

        TEnvPRiverV.ID         = GetSerialNumber(SerialType.T_ENV_P_RIVER_V);
        TEnvPRiverV.SECTION_ID = this.formId.Value;
        bool isSuccess = new TEnvPRiverVLogic().Create(TEnvPRiverV);

        if (isSuccess)
        {
            WriteLog("添加河流垂线", "", LogInfo.UserInfo.USER_NAME + "添加河流垂线" + TEnvPRiverV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 获取垂线信息
    /// </summary>
    /// <param name="oneGridId">断面ID</param>
    /// <returns></returns>
    public string getTwoGridInfo(string oneGridId)
    {
        string strSortname  = Request.Params["sortname"];
        string strSortorder = Request.Params["sortorder"];
        //当前页面
        int intPageIndex = Convert.ToInt32(Request.Params["page"]);
        //每页记录数
        int intPageSize = Convert.ToInt32(Request.Params["pagesize"]);

        TEnvPRiverVVo TEnvPRiverV = new TEnvPRiverVVo();

        TEnvPRiverV.SECTION_ID = oneGridId;
        TEnvPRiverV.SORT_FIELD = strSortname;
        TEnvPRiverV.SORT_TYPE  = strSortorder;
        DataTable dt            = new TEnvPRiverVLogic().SelectByTable(TEnvPRiverV, intPageIndex, intPageSize);
        int       intTotalCount = new TEnvPRiverVLogic().GetSelectResultCount(TEnvPRiverV);
        string    strJson       = CreateToJson(dt, intTotalCount);

        return(strJson);
    }